Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
int  b[11],n,i,j,x,h,temp;
char a[101];
	scanf("%d",&n);
	while(n!=0){
		scanf("%s",a);
		for(i=0;i<n;i++){
	b[i]=0;
		}
	h=0;
	x=0;
	for(i=0;i<100;i++){
		if(a[i]=='S'){
			b[h]++;
		x=x+b[h];
		b[h]=0;
		}
		else if(a[i]=='L'){
			b[h]++;
			b[h]=b[h]+x;
			x=0;
		}
		else{
		b[h]++;
		}
		h++;
		if(h>=n){
		h=0;
		}
	}
	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(b[i]>b[j]){
				temp=b[i];
				b[i]=b[j];
				b[j]=temp;
			}
		}
	}
	for(i=0;i<n;i++){
		printf("%d ",b[i]);
	}
	printf("%d\n",x);
	scanf("%d",&n);
}
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L18:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L3
.L4:
	movl	-180(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -180(%rbp)
.L3:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L4
	movl	$0, -168(%rbp)
	movl	$0, -172(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L5
.L10:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$83, %al
	jne	.L6
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	addl	%eax, -172(%rbp)
	movl	-168(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$76, %al
	jne	.L8
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	addl	%eax, %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	$0, -172(%rbp)
	jmp	.L7
.L8:
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L7:
	addl	$1, -168(%rbp)
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L9
	movl	$0, -168(%rbp)
.L9:
	addl	$1, -180(%rbp)
.L5:
	cmpl	$99, -180(%rbp)
	jle	.L10
	movl	$0, -180(%rbp)
	jmp	.L11
.L15:
	movl	-184(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L12
.L14:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-180(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-176(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L13:
	subl	$1, -176(%rbp)
.L12:
	movl	-176(%rbp), %eax
	cmpl	-180(%rbp), %eax
	jg	.L14
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	movl	$0, -180(%rbp)
	jmp	.L16
.L17:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -180(%rbp)
.L16:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L17
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-184(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	leaq	228(%rsp), %r13
	movq	%rax, 56(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edx
	leaq	128(%rsp), %rax
	movq	%rax, 24(%rsp)
	testl	%edx, %edx
	je	.L10
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L5
	movslq	%ebx, %rdx
	leaq	80(%rsp), %rbp
	xorl	%esi, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L5:
	movq	24(%rsp), %rcx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$76, %dil
	jne	.L7
	addl	%r12d, %edx
	xorl	%r12d, %r12d
.L7:
	addl	$1, %eax
	movl	%edx, 80(%rsp,%rsi,4)
	cmpl	%ebx, %eax
	cmovge	%r8d, %eax
	addq	$1, %rcx
	cmpq	%r13, %rcx
	je	.L41
.L4:
	movslq	%eax, %rsi
	movzbl	(%rcx), %edi
	movl	80(%rsp,%rsi,4), %edx
	addl	$1, %edx
	cmpb	$83, %dil
	jne	.L6
	addl	%edx, %r12d
	xorl	%edx, %edx
	jmp	.L7
.L41:
	testl	%ebx, %ebx
	jle	.L25
	movl	%ebx, %eax
	leaq	80(%rsp), %rbp
	subl	$1, %eax
	movl	%eax, %edi
	je	.L11
	leal	-3(%rbx), %ecx
	movslq	%edi, %r8
	movl	%r12d, 36(%rsp)
	movq	%rbp, %rax
	movl	%ecx, 8(%rsp)
	movslq	%ecx, %r9
	leal	-4(%rbx), %ecx
	xorl	%edx, %edx
	movl	%ecx, 12(%rsp)
	movslq	%ecx, %r10
	leal	-5(%rbx), %ecx
	leal	-2(%rbx), %edi
	movl	%ecx, 16(%rsp)
	movslq	%ecx, %r11
	leal	-6(%rbx), %ecx
	movslq	%ecx, %r15
	movl	%ecx, 20(%rsp)
	leal	-7(%rbx), %ecx
	movl	%ecx, 32(%rsp)
	movslq	%ecx, %rcx
	movq	%r15, %r12
	movq	%r13, 40(%rsp)
	movq	%rcx, %r13
	movq	%rbp, 48(%rsp)
	movl	%r8d, %ebp
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%rax), %ecx
	movl	80(%rsp,%r8,4), %esi
	cmpl	%esi, %ecx
	jle	.L12
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r8,4)
.L12:
	cmpl	%edi, %edx
	jge	.L13
	movslq	%edi, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L14
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L14:
	cmpl	%edx, 8(%rsp)
	jle	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r9,4), %esi
	cmpl	%ecx, %esi
	jge	.L15
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r9,4)
.L15:
	cmpl	%edx, 12(%rsp)
	jle	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r10,4), %esi
	cmpl	%ecx, %esi
	jge	.L16
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r10,4)
.L16:
	cmpl	16(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r11,4), %esi
	cmpl	%esi, %ecx
	jle	.L17
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r11,4)
.L17:
	cmpl	20(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r12,4), %esi
	cmpl	%esi, %ecx
	jle	.L18
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r12,4)
.L18:
	cmpl	32(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r13,4), %esi
	cmpl	%esi, %ecx
	jle	.L19
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r13,4)
.L19:
	leal	-8(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movslq	%ecx, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L20
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L20:
	leal	-9(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movslq	%ecx, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L21
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L21:
	leal	-10(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	84(%rsp), %esi
	cmpl	%esi, %ecx
	jle	.L13
	movl	%esi, (%rax)
	movl	%ecx, 84(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%edx, %ebp
	jg	.L23
	movl	36(%rsp), %r12d
	movq	40(%rsp), %r13
	movq	48(%rsp), %rbp
.L11:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L24:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 76(%rsp)
	jg	.L24
.L25:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L10:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$248, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rax
	leaq	228(%rsp), %r13
	movq	%rax, 56(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %edx
	leaq	128(%rsp), %rax
	movq	%rax, 24(%rsp)
	testl	%edx, %edx
	je	.L10
.L2:
	movq	24(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L5
	movslq	%ebx, %rdx
	leaq	80(%rsp), %rbp
	xorl	%esi, %esi
	salq	$2, %rdx
	movq	%rbp, %rdi
	call	memset@PLT
.L5:
	movq	24(%rsp), %rcx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$76, %dil
	jne	.L7
	addl	%r12d, %edx
	xorl	%r12d, %r12d
.L7:
	addl	$1, %eax
	movl	%edx, 80(%rsp,%rsi,4)
	cmpl	%ebx, %eax
	cmovge	%r8d, %eax
	addq	$1, %rcx
	cmpq	%r13, %rcx
	je	.L41
.L4:
	movslq	%eax, %rsi
	movzbl	(%rcx), %edi
	movl	80(%rsp,%rsi,4), %edx
	addl	$1, %edx
	cmpb	$83, %dil
	jne	.L6
	addl	%edx, %r12d
	xorl	%edx, %edx
	jmp	.L7
.L41:
	testl	%ebx, %ebx
	jle	.L25
	movl	%ebx, %eax
	leaq	80(%rsp), %rbp
	subl	$1, %eax
	movl	%eax, %edi
	je	.L11
	leal	-3(%rbx), %ecx
	movslq	%edi, %r8
	movl	%r12d, 36(%rsp)
	movq	%rbp, %rax
	movl	%ecx, 8(%rsp)
	movslq	%ecx, %r9
	leal	-4(%rbx), %ecx
	xorl	%edx, %edx
	movl	%ecx, 12(%rsp)
	movslq	%ecx, %r10
	leal	-5(%rbx), %ecx
	leal	-2(%rbx), %edi
	movl	%ecx, 16(%rsp)
	movslq	%ecx, %r11
	leal	-6(%rbx), %ecx
	movslq	%ecx, %r15
	movl	%ecx, 20(%rsp)
	leal	-7(%rbx), %ecx
	movl	%ecx, 32(%rsp)
	movslq	%ecx, %rcx
	movq	%r15, %r12
	movq	%r13, 40(%rsp)
	movq	%rcx, %r13
	movq	%rbp, 48(%rsp)
	movl	%r8d, %ebp
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%rax), %ecx
	movl	80(%rsp,%r8,4), %esi
	cmpl	%esi, %ecx
	jle	.L12
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r8,4)
.L12:
	cmpl	%edi, %edx
	jge	.L13
	movslq	%edi, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L14
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L14:
	cmpl	%edx, 8(%rsp)
	jle	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r9,4), %esi
	cmpl	%ecx, %esi
	jge	.L15
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r9,4)
.L15:
	cmpl	%edx, 12(%rsp)
	jle	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r10,4), %esi
	cmpl	%ecx, %esi
	jge	.L16
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r10,4)
.L16:
	cmpl	16(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r11,4), %esi
	cmpl	%esi, %ecx
	jle	.L17
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r11,4)
.L17:
	cmpl	20(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r12,4), %esi
	cmpl	%esi, %ecx
	jle	.L18
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r12,4)
.L18:
	cmpl	32(%rsp), %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	80(%rsp,%r13,4), %esi
	cmpl	%esi, %ecx
	jle	.L19
	movl	%esi, (%rax)
	movl	%ecx, 80(%rsp,%r13,4)
.L19:
	leal	-8(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movslq	%ecx, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L20
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L20:
	leal	-9(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movslq	%ecx, %rcx
	movl	(%rax), %esi
	movl	80(%rsp,%rcx,4), %r15d
	cmpl	%r15d, %esi
	jle	.L21
	movl	%r15d, (%rax)
	movl	%esi, 80(%rsp,%rcx,4)
.L21:
	leal	-10(%rbx), %ecx
	cmpl	%ecx, %edx
	jge	.L13
	movl	(%rax), %ecx
	movl	84(%rsp), %esi
	cmpl	%esi, %ecx
	jle	.L13
	movl	%esi, (%rax)
	movl	%ecx, 84(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%edx, %ebp
	jg	.L23
	movl	36(%rsp), %r12d
	movq	40(%rsp), %r13
	movq	48(%rsp), %rbp
.L11:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L24:
	movl	0(%rbp,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 76(%rsp)
	jg	.L24
.L25:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %eax
	testl	%eax, %eax
	jne	.L2
.L10:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L42:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
int main(void)
{
int  b[11],n,i,j,x,h,temp;
char a[101];
	scanf("%d",&n);
	while(n!=0){
		scanf("%s",a);
		for(i=0;i<n;i++){
	b[i]=0;
		}
	h=0;
	x=0;
	for(i=0;i<100;i++){
		if(a[i]=='S'){
			b[h]++;
		x=x+b[h];
		b[h]=0;
		}
		else if(a[i]=='L'){
			b[h]++;
			b[h]=b[h]+x;
			x=0;
		}
		else{
		b[h]++;
		}
		h++;
		if(h>=n){
		h=0;
		}
	}
	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(b[i]>b[j]){
				temp=b[i];
				b[i]=b[j];
				b[j]=temp;
			}
		}
	}
	for(i=0;i<n;i++){
		printf("%d ",b[i]);
	}
	printf("%d\n",x);
	scanf("%d",&n);
}
return 0;
}
2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL
5
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSSLMSMMMMMMMMMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLMMMMMMSL
5
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL
1
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSSLMSMMMMMMMMMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
LSMMMMMMLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLLLLLLLLLLLLLLLLLLLLSSSSSSSSSSSSSS
5
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
LSMMMMMMLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLLLLLLLLLLLLLLLLLLLLSSSSSSSSSSSSSS
0
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLMMMMMMSL
0
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
4
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL
5
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSSLMSMMMMMMMMMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLMMMMMMSL
5
MSSMMMMMMMMMLMMLMMMSMMMMMLMMMMMMSMMMMMMMSMLMSLMLMMMMLSSSMLLMMLMMSLMLLLLSLMMMMLMMMLSMMSMMMLLSLSMMMMMM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
2
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL
8
MMMMMMSMSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0
 2
SSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
5
SSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL
5
MMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMSSSLMMMMLMLSSLMSMMMMMMMMMMMMMMLMMMMMSMMMLMMLMMMMMMMMMSSM
0

42 58 0
0 100 0
0 0 3 8 16 73
 42 58 0
0 100 0
0 0 3 10 59 28
 42 58 0
0 100 0
1 99
 42 58 0
0 0 100
0 0 3 10 59 28
 42 58 0
0 0 100
 42 58 0
0 100 0
 42 58 0
0 21 21 58 0
0 0 3 8 16 73
 42 58 0
0 100 0
1 1 2 7 81 8
 42 58 0
0 100 0
0 0 2 4 5 6 6 15 62
 42 58 0
0 17 17 17 49 0
0 0 3 8 16 73

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
int  b[11],n,i,j,x,h,temp;
char a[101];
	scanf("%d",&n);
	while(n!=0){
		scanf("%s",a);
		for(i=0;i<n;i++){
	b[i]=0;
		}
	h=0;
	x=0;
	for(i=0;i<100;i++){
		if(a[i]=='S'){
			b[h]++;
		x=x+b[h];
		b[h]=0;
		}
		else if(a[i]=='L'){
			b[h]++;
			b[h]=b[h]+x;
			x=0;
		}
		else{
		b[h]++;
		}
		h++;
		if(h>=n){
		h=0;
		}
	}
	for(i=0;i<n;i++){
		for(j=n-1;j>i;j--){
			if(b[i]>b[j]){
				temp=b[i];
				b[i]=b[j];
				b[j]=temp;
			}
		}
	}
	for(i=0;i<n;i++){
		printf("%d ",b[i]);
	}
	printf("%d\n",x);
	scanf("%d",&n);
}
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L18:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L3
.L4:
	movl	-180(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -180(%rbp)
.L3:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L4
	movl	$0, -168(%rbp)
	movl	$0, -172(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L5
.L10:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$83, %al
	jne	.L6
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	addl	%eax, -172(%rbp)
	movl	-168(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$76, %al
	jne	.L8
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	addl	%eax, %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	$0, -172(%rbp)
	jmp	.L7
.L8:
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L7:
	addl	$1, -168(%rbp)
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L9
	movl	$0, -168(%rbp)
.L9:
	addl	$1, -180(%rbp)
.L5:
	cmpl	$99, -180(%rbp)
	jle	.L10
	movl	$0, -180(%rbp)
	jmp	.L11
.L15:
	movl	-184(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L12
.L14:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-180(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-176(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L13:
	subl	$1, -176(%rbp)
.L12:
	movl	-176(%rbp), %eax
	cmpl	-180(%rbp), %eax
	jg	.L14
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	movl	$0, -180(%rbp)
	jmp	.L16
.L17:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -180(%rbp)
.L16:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L17
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-184(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$192, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L18:
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -180(%rbp)
	jmp	.L3
.L4:
	movl	-180(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	addl	$1, -180(%rbp)
.L3:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L4
	movl	$0, -168(%rbp)
	movl	$0, -172(%rbp)
	movl	$0, -180(%rbp)
	jmp	.L5
.L10:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$83, %al
	jne	.L6
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	addl	%eax, -172(%rbp)
	movl	-168(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	jmp	.L7
.L6:
	movl	-180(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$76, %al
	jne	.L8
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-172(%rbp), %eax
	addl	%eax, %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	$0, -172(%rbp)
	jmp	.L7
.L8:
	movl	-168(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-168(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
.L7:
	addl	$1, -168(%rbp)
	movl	-184(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L9
	movl	$0, -168(%rbp)
.L9:
	addl	$1, -180(%rbp)
.L5:
	cmpl	$99, -180(%rbp)
	jle	.L10
	movl	$0, -180(%rbp)
	jmp	.L11
.L15:
	movl	-184(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -176(%rbp)
	jmp	.L12
.L14:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, -164(%rbp)
	movl	-176(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %edx
	movl	-180(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movl	-176(%rbp), %eax
	cltq
	movl	-164(%rbp), %edx
	movl	%edx, -160(%rbp,%rax,4)
.L13:
	subl	$1, -176(%rbp)
.L12:
	movl	-176(%rbp), %eax
	cmpl	-180(%rbp), %eax
	jg	.L14
	addl	$1, -180(%rbp)
.L11:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L15
	movl	$0, -180(%rbp)
	jmp	.L16
.L17:
	movl	-180(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -180(%rbp)
.L16:
	movl	-184(%rbp), %eax
	cmpl	%eax, -180(%rbp)
	jl	.L17
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-184(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-184(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
