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 i, j, k, m, n, key, Key, waru, digit;
    char s[100000], S[100000], c[100000], C[100000];
    scanf("%d", &n);
    scanf("%s", s);
    while ( n-- ) {
        j = 0;
        key = 1;
        for ( i = 0; i < strlen(s); i++ ) {
            if ( s[i] == s[i + 1] ) key++;
            else {
                Key = key;
                digit = 0;
                waru = 1;
                while ( Key != 0 ){
                    Key /= 10;
                    digit++;
                }
                digit--;
                while ( digit-- ) waru *= 10;
                while (waru) {
                    Key = key;
                    Key /= waru;
                    if ( Key == 0 ) S[j] = '30';
                    if ( Key == 1 ) S[j] = '31';
                    if ( Key == 2 ) S[j] = '32';
                    if ( Key == 3 ) S[j] = '33';
                    if ( Key == 4 ) S[j] = '34';
                    if ( Key == 5 ) S[j] = '35';
                    if ( Key == 6 ) S[j] = '36';
                    if ( Key == 7 ) S[j] = '37';
                    if ( Key == 8 ) S[j] = '38';
                    if ( Key == 9 ) S[j] = '39';
                    key %= waru;
                    waru /= 10;
                    j++;
                }
                S[j] = s[i];
                j++;
                key = 1;
            }
        }
        memset( s , '\0' , strlen(s) );
        for ( i = 0; i < strlen(S); i++ ) s[i] = S[i];
        memset( S , '\0' , strlen(S) );
        if ( n == 0 ) {
            printf("%s\n", s);
            memset( s , '\0' , strlen(s) );
            scanf("%d", &n);
            if ( n == 0 ) break;
            scanf("%s", s);
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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
	pushq	%rbx
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3448, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L27:
	movl	$0, -200052(%rbp)
	movl	$1, -200048(%rbp)
	movl	$0, -200056(%rbp)
	jmp	.L3
.L22:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L4
	addl	$1, -200048(%rbp)
	jmp	.L5
.L4:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	$0, -200036(%rbp)
	movl	$1, -200040(%rbp)
	jmp	.L6
.L7:
	movl	-200044(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200044(%rbp)
	addl	$1, -200036(%rbp)
.L6:
	cmpl	$0, -200044(%rbp)
	jne	.L7
	subl	$1, -200036(%rbp)
	jmp	.L8
.L9:
	movl	-200040(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -200040(%rbp)
.L8:
	movl	-200036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200036(%rbp)
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L21:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	-200044(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%eax, -200044(%rbp)
	cmpl	$0, -200044(%rbp)
	jne	.L11
	movl	-200052(%rbp), %eax
	cltq
	movb	$48, -100032(%rbp,%rax)
.L11:
	cmpl	$1, -200044(%rbp)
	jne	.L12
	movl	-200052(%rbp), %eax
	cltq
	movb	$49, -100032(%rbp,%rax)
.L12:
	cmpl	$2, -200044(%rbp)
	jne	.L13
	movl	-200052(%rbp), %eax
	cltq
	movb	$50, -100032(%rbp,%rax)
.L13:
	cmpl	$3, -200044(%rbp)
	jne	.L14
	movl	-200052(%rbp), %eax
	cltq
	movb	$51, -100032(%rbp,%rax)
.L14:
	cmpl	$4, -200044(%rbp)
	jne	.L15
	movl	-200052(%rbp), %eax
	cltq
	movb	$52, -100032(%rbp,%rax)
.L15:
	cmpl	$5, -200044(%rbp)
	jne	.L16
	movl	-200052(%rbp), %eax
	cltq
	movb	$53, -100032(%rbp,%rax)
.L16:
	cmpl	$6, -200044(%rbp)
	jne	.L17
	movl	-200052(%rbp), %eax
	cltq
	movb	$54, -100032(%rbp,%rax)
.L17:
	cmpl	$7, -200044(%rbp)
	jne	.L18
	movl	-200052(%rbp), %eax
	cltq
	movb	$55, -100032(%rbp,%rax)
.L18:
	cmpl	$8, -200044(%rbp)
	jne	.L19
	movl	-200052(%rbp), %eax
	cltq
	movb	$56, -100032(%rbp,%rax)
.L19:
	cmpl	$9, -200044(%rbp)
	jne	.L20
	movl	-200052(%rbp), %eax
	cltq
	movb	$57, -100032(%rbp,%rax)
.L20:
	movl	-200048(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%edx, -200048(%rbp)
	movl	-200040(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200040(%rbp)
	addl	$1, -200052(%rbp)
.L10:
	cmpl	$0, -200040(%rbp)
	jne	.L21
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200052(%rbp), %eax
	cltq
	movb	%dl, -100032(%rbp,%rax)
	addl	$1, -200052(%rbp)
	movl	$1, -200048(%rbp)
.L5:
	addl	$1, -200056(%rbp)
.L3:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L22
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -200056(%rbp)
	jmp	.L23
.L24:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-100032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
	addl	$1, -200056(%rbp)
.L23:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L24
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-100032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-200060(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200060(%rbp)
	testl	%eax, %eax
	jne	.L27
	jmp	.L26
.L30:
	nop
.L26:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	movq	-8(%rbp), %rbx
	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
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196664
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC1(%rip), %rdi
	movl	$3435973837, %r14d
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %rbx
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	.LC0(%rip), %r12
.L2:
	movl	28(%rsp), %eax
	leaq	100032(%rsp), %r15
	leal	-1(%rax), %ebp
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%ebp, 4(%rsp)
	movl	%ebp, 28(%rsp)
	cmpl	$-1, %ebp
	je	.L34
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L35
	xorl	%r8d, %r8d
	movl	$1, %eax
	leaq	33(%rsp), %r11
	xorl	%edi, %edi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L60:
	addq	$1, %r8
	addl	$1, %eax
	cmpq	%r10, %r8
	jnb	.L35
.L30:
	movzbl	(%rbx,%r8), %r9d
	cmpb	(%r11,%r8), %r9b
	je	.L60
	movl	%eax, %esi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%esi, %esi
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%r14, %rsi
	shrq	$35, %rsi
	testl	%esi, %esi
	jne	.L3
	testl	%ecx, %ecx
	je	.L38
	movl	%ecx, %esi
	cmpl	$1, %ecx
	je	.L6
	shrl	%ecx
	xorl	%edx, %edx
	movq	%r12, %xmm0
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm0, %xmm1
	addl	$1, %edx
	pslld	$2, %xmm1
	paddd	%xmm1, %xmm0
	pslld	$1, %xmm0
	cmpl	%edx, %ecx
	jne	.L7
	movd	%xmm0, %ecx
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm2, %edx
	imull	%edx, %ecx
	andl	$1, %esi
	je	.L5
.L6:
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
.L5:
	movslq	%edi, %rsi
	addq	%r15, %rsi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L62:
	movb	$48, (%rsi)
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%ecx, %ecx
	movl	%edx, %eax
	leal	1(%rdi), %edx
	addq	$1, %rsi
	imulq	%r14, %rcx
	shrq	$35, %rcx
	testl	%ecx, %ecx
	je	.L61
	movl	%edx, %edi
.L29:
	cltd
	idivl	%ecx
	testl	%eax, %eax
	je	.L62
	cmpl	$1, %eax
	jne	.L63
	movb	$49, (%rsi)
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L63:
	cmpl	$2, %eax
	jne	.L64
	movb	$50, (%rsi)
	jmp	.L24
.L64:
	cmpl	$3, %eax
	jne	.L65
	movb	$51, (%rsi)
	jmp	.L24
.L65:
	cmpl	$4, %eax
	jne	.L66
	movb	$52, (%rsi)
	jmp	.L24
.L66:
	cmpl	$5, %eax
	jne	.L67
	movb	$53, (%rsi)
	jmp	.L24
.L67:
	cmpl	$6, %eax
	jne	.L68
	movb	$54, (%rsi)
	jmp	.L24
.L68:
	cmpl	$7, %eax
	jne	.L69
	movb	$55, (%rsi)
	jmp	.L24
.L69:
	cmpl	$8, %eax
	jne	.L70
	movb	$56, (%rsi)
	jmp	.L24
.L70:
	cmpl	$9, %eax
	jne	.L24
	movb	$57, (%rsi)
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L61:
	movslq	%edx, %rdx
	addq	$1, %r8
	addl	$2, %edi
	movl	$1, %eax
	movb	%r9b, 100032(%rsp,%rdx)
	cmpq	%r10, %r8
	jb	.L30
.L35:
	movq	%r10, %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	xorl	%r13d, %r13d
	call	memset@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movzbl	(%r15,%r13), %eax
	movb	%al, (%rbx,%r13)
	addq	$1, %r13
.L31:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r13, %rax
	ja	.L32
	movq	%rax, %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	subl	$1, %ebp
	call	memset@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jne	.L33
	movq	%rbx, %rdi
	call	puts@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	call	memset@PLT
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	movq	%rbx, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L38:
	movl	$1, %ecx
	jmp	.L5
.L34:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	addq	$200056, %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
.L71:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
	.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
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196664
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200112
	leaq	.LC1(%rip), %rdi
	movl	$3435973837, %r14d
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rax
	leaq	32(%rsp), %rbx
	movq	%rax, %rsi
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	.LC0(%rip), %r12
.L2:
	movl	28(%rsp), %eax
	leaq	100032(%rsp), %r15
	leal	-1(%rax), %ebp
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%ebp, 4(%rsp)
	movl	%ebp, 28(%rsp)
	cmpl	$-1, %ebp
	je	.L34
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rax, %r10
	testq	%rax, %rax
	je	.L35
	xorl	%r8d, %r8d
	movl	$1, %eax
	leaq	33(%rsp), %r11
	xorl	%edi, %edi
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L60:
	addq	$1, %r8
	addl	$1, %eax
	cmpq	%r10, %r8
	jnb	.L35
.L30:
	movzbl	(%rbx,%r8), %r9d
	cmpb	(%r11,%r8), %r9b
	je	.L60
	movl	%eax, %esi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%esi, %esi
	movl	%edx, %ecx
	addl	$1, %edx
	imulq	%r14, %rsi
	shrq	$35, %rsi
	testl	%esi, %esi
	jne	.L3
	testl	%ecx, %ecx
	je	.L38
	movl	%ecx, %esi
	cmpl	$1, %ecx
	je	.L6
	shrl	%ecx
	xorl	%edx, %edx
	movq	%r12, %xmm0
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm0, %xmm1
	addl	$1, %edx
	pslld	$2, %xmm1
	paddd	%xmm1, %xmm0
	pslld	$1, %xmm0
	cmpl	%edx, %ecx
	jne	.L7
	movd	%xmm0, %ecx
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm2, %edx
	imull	%edx, %ecx
	andl	$1, %esi
	je	.L5
.L6:
	leal	(%rcx,%rcx,4), %ecx
	addl	%ecx, %ecx
.L5:
	movslq	%edi, %rsi
	addq	%r15, %rsi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L62:
	movb	$48, (%rsi)
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%ecx, %ecx
	movl	%edx, %eax
	leal	1(%rdi), %edx
	addq	$1, %rsi
	imulq	%r14, %rcx
	shrq	$35, %rcx
	testl	%ecx, %ecx
	je	.L61
	movl	%edx, %edi
.L29:
	cltd
	idivl	%ecx
	testl	%eax, %eax
	je	.L62
	cmpl	$1, %eax
	jne	.L63
	movb	$49, (%rsi)
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L63:
	cmpl	$2, %eax
	jne	.L64
	movb	$50, (%rsi)
	jmp	.L24
.L64:
	cmpl	$3, %eax
	jne	.L65
	movb	$51, (%rsi)
	jmp	.L24
.L65:
	cmpl	$4, %eax
	jne	.L66
	movb	$52, (%rsi)
	jmp	.L24
.L66:
	cmpl	$5, %eax
	jne	.L67
	movb	$53, (%rsi)
	jmp	.L24
.L67:
	cmpl	$6, %eax
	jne	.L68
	movb	$54, (%rsi)
	jmp	.L24
.L68:
	cmpl	$7, %eax
	jne	.L69
	movb	$55, (%rsi)
	jmp	.L24
.L69:
	cmpl	$8, %eax
	jne	.L70
	movb	$56, (%rsi)
	jmp	.L24
.L70:
	cmpl	$9, %eax
	jne	.L24
	movb	$57, (%rsi)
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L61:
	movslq	%edx, %rdx
	addq	$1, %r8
	addl	$2, %edi
	movl	$1, %eax
	movb	%r9b, 100032(%rsp,%rdx)
	cmpq	%r10, %r8
	jb	.L30
.L35:
	movq	%r10, %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	xorl	%r13d, %r13d
	call	memset@PLT
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	movzbl	(%r15,%r13), %eax
	movb	%al, (%rbx,%r13)
	addq	$1, %r13
.L31:
	movq	%r15, %rdi
	call	strlen@PLT
	cmpq	%r13, %rax
	ja	.L32
	movq	%rax, %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	subl	$1, %ebp
	call	memset@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jne	.L33
	movq	%rbx, %rdi
	call	puts@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	call	memset@PLT
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L34
	movq	%rbx, %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L38:
	movl	$1, %ecx
	jmp	.L5
.L34:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L71
	addq	$200056, %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
.L71:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	1
	.long	1
	.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 i, j, k, m, n, key, Key, waru, digit;
    char s[100000], S[100000], c[100000], C[100000];
    scanf("%d", &n);
    scanf("%s", s);
    while ( n-- ) {
        j = 0;
        key = 1;
        for ( i = 0; i < strlen(s); i++ ) {
            if ( s[i] == s[i + 1] ) key++;
            else {
                Key = key;
                digit = 0;
                waru = 1;
                while ( Key != 0 ){
                    Key /= 10;
                    digit++;
                }
                digit--;
                while ( digit-- ) waru *= 10;
                while (waru) {
                    Key = key;
                    Key /= waru;
                    if ( Key == 0 ) S[j] = '30';
                    if ( Key == 1 ) S[j] = '31';
                    if ( Key == 2 ) S[j] = '32';
                    if ( Key == 3 ) S[j] = '33';
                    if ( Key == 4 ) S[j] = '34';
                    if ( Key == 5 ) S[j] = '35';
                    if ( Key == 6 ) S[j] = '36';
                    if ( Key == 7 ) S[j] = '37';
                    if ( Key == 8 ) S[j] = '38';
                    if ( Key == 9 ) S[j] = '39';
                    key %= waru;
                    waru /= 10;
                    j++;
                }
                S[j] = s[i];
                j++;
                key = 1;
            }
        }
        memset( s , '\0' , strlen(s) );
        for ( i = 0; i < strlen(S); i++ ) s[i] = S[i];
        memset( S , '\0' , strlen(S) );
        if ( n == 0 ) {
            printf("%s\n", s);
            memset( s , '\0' , strlen(s) );
            scanf("%d", &n);
            if ( n == 0 ) break;
            scanf("%s", s);
        }
    }
    return 0;
}
5
11
5
21
0
 5
18
5
21
0
 5
18
5
1
0
 5
18
6
1
0
 5
28
6
1
0
 5
28
11
1
0
 5
28
3
1
0
 5
43
3
1
0
 5
43
3
0
0
 5
11
5
15
0

13112221
1113213211
 311311222118
1113213211
 311311222118
312211
 311311222118
13112221
 11131221121113122118
13112221
 11131221121113122118
3113112221232112111312211312113211
 11131221121113122118
1211
 11131221141113122113
1211
 11131221141113122113
3110
 13112221
311311222115

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 i, j, k, m, n, key, Key, waru, digit;
    char s[100000], S[100000], c[100000], C[100000];
    scanf("%d", &n);
    scanf("%s", s);
    while ( n-- ) {
        j = 0;
        key = 1;
        for ( i = 0; i < strlen(s); i++ ) {
            if ( s[i] == s[i + 1] ) key++;
            else {
                Key = key;
                digit = 0;
                waru = 1;
                while ( Key != 0 ){
                    Key /= 10;
                    digit++;
                }
                digit--;
                while ( digit-- ) waru *= 10;
                while (waru) {
                    Key = key;
                    Key /= waru;
                    if ( Key == 0 ) S[j] = '30';
                    if ( Key == 1 ) S[j] = '31';
                    if ( Key == 2 ) S[j] = '32';
                    if ( Key == 3 ) S[j] = '33';
                    if ( Key == 4 ) S[j] = '34';
                    if ( Key == 5 ) S[j] = '35';
                    if ( Key == 6 ) S[j] = '36';
                    if ( Key == 7 ) S[j] = '37';
                    if ( Key == 8 ) S[j] = '38';
                    if ( Key == 9 ) S[j] = '39';
                    key %= waru;
                    waru /= 10;
                    j++;
                }
                S[j] = s[i];
                j++;
                key = 1;
            }
        }
        memset( s , '\0' , strlen(s) );
        for ( i = 0; i < strlen(S); i++ ) s[i] = S[i];
        memset( S , '\0' , strlen(S) );
        if ( n == 0 ) {
            printf("%s\n", s);
            memset( s , '\0' , strlen(s) );
            scanf("%d", &n);
            if ( n == 0 ) break;
            scanf("%s", s);
        }
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.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
	pushq	%rbx
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3448, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L27:
	movl	$0, -200052(%rbp)
	movl	$1, -200048(%rbp)
	movl	$0, -200056(%rbp)
	jmp	.L3
.L22:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L4
	addl	$1, -200048(%rbp)
	jmp	.L5
.L4:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	$0, -200036(%rbp)
	movl	$1, -200040(%rbp)
	jmp	.L6
.L7:
	movl	-200044(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200044(%rbp)
	addl	$1, -200036(%rbp)
.L6:
	cmpl	$0, -200044(%rbp)
	jne	.L7
	subl	$1, -200036(%rbp)
	jmp	.L8
.L9:
	movl	-200040(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -200040(%rbp)
.L8:
	movl	-200036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200036(%rbp)
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L21:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	-200044(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%eax, -200044(%rbp)
	cmpl	$0, -200044(%rbp)
	jne	.L11
	movl	-200052(%rbp), %eax
	cltq
	movb	$48, -100032(%rbp,%rax)
.L11:
	cmpl	$1, -200044(%rbp)
	jne	.L12
	movl	-200052(%rbp), %eax
	cltq
	movb	$49, -100032(%rbp,%rax)
.L12:
	cmpl	$2, -200044(%rbp)
	jne	.L13
	movl	-200052(%rbp), %eax
	cltq
	movb	$50, -100032(%rbp,%rax)
.L13:
	cmpl	$3, -200044(%rbp)
	jne	.L14
	movl	-200052(%rbp), %eax
	cltq
	movb	$51, -100032(%rbp,%rax)
.L14:
	cmpl	$4, -200044(%rbp)
	jne	.L15
	movl	-200052(%rbp), %eax
	cltq
	movb	$52, -100032(%rbp,%rax)
.L15:
	cmpl	$5, -200044(%rbp)
	jne	.L16
	movl	-200052(%rbp), %eax
	cltq
	movb	$53, -100032(%rbp,%rax)
.L16:
	cmpl	$6, -200044(%rbp)
	jne	.L17
	movl	-200052(%rbp), %eax
	cltq
	movb	$54, -100032(%rbp,%rax)
.L17:
	cmpl	$7, -200044(%rbp)
	jne	.L18
	movl	-200052(%rbp), %eax
	cltq
	movb	$55, -100032(%rbp,%rax)
.L18:
	cmpl	$8, -200044(%rbp)
	jne	.L19
	movl	-200052(%rbp), %eax
	cltq
	movb	$56, -100032(%rbp,%rax)
.L19:
	cmpl	$9, -200044(%rbp)
	jne	.L20
	movl	-200052(%rbp), %eax
	cltq
	movb	$57, -100032(%rbp,%rax)
.L20:
	movl	-200048(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%edx, -200048(%rbp)
	movl	-200040(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200040(%rbp)
	addl	$1, -200052(%rbp)
.L10:
	cmpl	$0, -200040(%rbp)
	jne	.L21
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200052(%rbp), %eax
	cltq
	movb	%dl, -100032(%rbp,%rax)
	addl	$1, -200052(%rbp)
	movl	$1, -200048(%rbp)
.L5:
	addl	$1, -200056(%rbp)
.L3:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L22
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -200056(%rbp)
	jmp	.L23
.L24:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-100032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
	addl	$1, -200056(%rbp)
.L23:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L24
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-100032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-200060(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200060(%rbp)
	testl	%eax, %eax
	jne	.L27
	jmp	.L26
.L30:
	nop
.L26:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	movq	-8(%rbp), %rbx
	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"
	.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
	pushq	%rbx
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3448, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L27:
	movl	$0, -200052(%rbp)
	movl	$1, -200048(%rbp)
	movl	$0, -200056(%rbp)
	jmp	.L3
.L22:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L4
	addl	$1, -200048(%rbp)
	jmp	.L5
.L4:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	$0, -200036(%rbp)
	movl	$1, -200040(%rbp)
	jmp	.L6
.L7:
	movl	-200044(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200044(%rbp)
	addl	$1, -200036(%rbp)
.L6:
	cmpl	$0, -200044(%rbp)
	jne	.L7
	subl	$1, -200036(%rbp)
	jmp	.L8
.L9:
	movl	-200040(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, -200040(%rbp)
.L8:
	movl	-200036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200036(%rbp)
	testl	%eax, %eax
	jne	.L9
	jmp	.L10
.L21:
	movl	-200048(%rbp), %eax
	movl	%eax, -200044(%rbp)
	movl	-200044(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%eax, -200044(%rbp)
	cmpl	$0, -200044(%rbp)
	jne	.L11
	movl	-200052(%rbp), %eax
	cltq
	movb	$48, -100032(%rbp,%rax)
.L11:
	cmpl	$1, -200044(%rbp)
	jne	.L12
	movl	-200052(%rbp), %eax
	cltq
	movb	$49, -100032(%rbp,%rax)
.L12:
	cmpl	$2, -200044(%rbp)
	jne	.L13
	movl	-200052(%rbp), %eax
	cltq
	movb	$50, -100032(%rbp,%rax)
.L13:
	cmpl	$3, -200044(%rbp)
	jne	.L14
	movl	-200052(%rbp), %eax
	cltq
	movb	$51, -100032(%rbp,%rax)
.L14:
	cmpl	$4, -200044(%rbp)
	jne	.L15
	movl	-200052(%rbp), %eax
	cltq
	movb	$52, -100032(%rbp,%rax)
.L15:
	cmpl	$5, -200044(%rbp)
	jne	.L16
	movl	-200052(%rbp), %eax
	cltq
	movb	$53, -100032(%rbp,%rax)
.L16:
	cmpl	$6, -200044(%rbp)
	jne	.L17
	movl	-200052(%rbp), %eax
	cltq
	movb	$54, -100032(%rbp,%rax)
.L17:
	cmpl	$7, -200044(%rbp)
	jne	.L18
	movl	-200052(%rbp), %eax
	cltq
	movb	$55, -100032(%rbp,%rax)
.L18:
	cmpl	$8, -200044(%rbp)
	jne	.L19
	movl	-200052(%rbp), %eax
	cltq
	movb	$56, -100032(%rbp,%rax)
.L19:
	cmpl	$9, -200044(%rbp)
	jne	.L20
	movl	-200052(%rbp), %eax
	cltq
	movb	$57, -100032(%rbp,%rax)
.L20:
	movl	-200048(%rbp), %eax
	cltd
	idivl	-200040(%rbp)
	movl	%edx, -200048(%rbp)
	movl	-200040(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -200040(%rbp)
	addl	$1, -200052(%rbp)
.L10:
	cmpl	$0, -200040(%rbp)
	jne	.L21
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200052(%rbp), %eax
	cltq
	movb	%dl, -100032(%rbp,%rax)
	addl	$1, -200052(%rbp)
	movl	$1, -200048(%rbp)
.L5:
	addl	$1, -200056(%rbp)
.L3:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L22
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -200056(%rbp)
	jmp	.L23
.L24:
	movl	-200056(%rbp), %eax
	cltq
	movzbl	-100032(%rbp,%rax), %edx
	movl	-200056(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
	addl	$1, -200056(%rbp)
.L23:
	movl	-200056(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L24
	leaq	-100032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-100032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
	leaq	-200032(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-200032(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-200060(%rbp), %eax
	testl	%eax, %eax
	je	.L30
	leaq	-200032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L2:
	movl	-200060(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -200060(%rbp)
	testl	%eax, %eax
	jne	.L27
	jmp	.L26
.L30:
	nop
.L26:
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	movq	-8(%rbp), %rbx
	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:
