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

```c
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <ctype.h>

#define LENGTH 1000000

int countDigit(char *s){
  int i;
  for(i=0;isdigit(s[i]);i++);
  return i;
}

int main(int argc, char *argv[])
 // argc は実行時引数の個数 +1
// argv[0] はプログラム名, argv[1] から順に実行時引数
{
  int n;
  int i;
  int j;
  int k;
  int l;
  int cnt;
  int tmp;
  
    char x[1000000]={0};
      char y[1000000]={0};
 
    while(scanf("%d",&n),n)
      {
        cnt=0;
        scanf("%s",x);
	
        while(n--)

	  {
            cnt=0;
            for(k=0;x[k]!='\0';k++)
	      {
		
                for(l=1;x[k]==x[k+l-1];l++);
                tmp=l-1;
                l--;
		
                if(l>99)
		  {
                    y[cnt++]=l/100+'0';
                    l%=100;
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
	
		else if(l<=9)

		  {
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
			else 

		  {
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
                k=k+tmp-1;
            }
            for(k=0;k<1000000;k++)

	      {
                x[k]=y[k];
                y[k]=0;
            }
        }
    printf("%s\n",x);
    }
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	countDigit
	.type	countDigit, @function
countDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	countDigit, .-countDigit
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1998848(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1216, %rsp
	movl	%edi, -2000052(%rbp)
	movq	%rsi, -2000064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2000016(%rbp)
	movq	$0, -2000008(%rbp)
	leaq	-2000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -1000016(%rbp)
	movq	$0, -1000008(%rbp)
	leaq	-1000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L6
.L18:
	movl	$0, -2000024(%rbp)
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L7
.L17:
	movl	$0, -2000024(%rbp)
	movl	$0, -2000032(%rbp)
	jmp	.L8
.L14:
	movl	$1, -2000028(%rbp)
	jmp	.L9
.L10:
	addl	$1, -2000028(%rbp)
.L9:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %ecx
	movl	-2000028(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	-2000028(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -2000020(%rbp)
	subl	$1, -2000028(%rbp)
	cmpl	$99, -2000028(%rbp)
	jle	.L11
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2000028(%rbp)
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L11:
	cmpl	$9, -2000028(%rbp)
	jg	.L13
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L13:
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
.L12:
	movl	-2000032(%rbp), %edx
	movl	-2000020(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2000032(%rbp)
	addl	$1, -2000032(%rbp)
.L8:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movl	$0, -2000032(%rbp)
	jmp	.L15
.L16:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-1000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %eax
	cltq
	movb	%dl, -2000016(%rbp,%rax)
	movl	-2000032(%rbp), %eax
	cltq
	movb	$0, -1000016(%rbp,%rax)
	addl	$1, -2000032(%rbp)
.L15:
	cmpl	$999999, -2000032(%rbp)
	jle	.L16
.L7:
	movl	-2000036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2000036(%rbp)
	testl	%eax, %eax
	jne	.L17
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-2000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2000036(%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
.LFE7:
	.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
	.p2align 4
	.globl	countDigit
	.type	countDigit, @function
countDigit:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__ctype_b_loc@PLT
	movq	(%rax), %rcx
	movsbq	(%rbx), %rax
	testb	$8, 1(%rcx,%rax,2)
	je	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movsbq	(%rbx,%rax), %rdx
	movl	%eax, %r8d
	addq	$1, %rax
	testb	$8, 1(%rcx,%rdx,2)
	jne	.L3
	movl	%r8d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%r8d, %r8d
	popq	%rbx
	.cfi_def_cfa_offset 8
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	countDigit, .-countDigit
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.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	-1998848(%rsp), %r11
	.cfi_def_cfa 11, 1998904
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1208, %rsp
	.cfi_def_cfa_offset 2000112
	pxor	%xmm0, %xmm0
	movl	$999984, %edx
	xorl	%esi, %esi
	movl	$3435973837, %r12d
	movq	%fs:40, %rax
	movq	%rax, 2000040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbp
	call	memset@PLT
	pxor	%xmm0, %xmm0
	movl	$999984, %edx
	xorl	%esi, %esi
	leaq	1000048(%rsp), %rdi
	movaps	%xmm0, 1000032(%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
.L9:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L33
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leaq	1000032(%rsp), %rbx
	leal	-1(%rax), %r13d
	movl	%r13d, 28(%rsp)
	testl	%eax, %eax
	je	.L11
.L10:
	movzbl	32(%rsp), %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	testb	%sil, %sil
	je	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$1, %eax
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %edx
	movq	%rax, %rdi
	addq	$1, %rax
	cmpb	%sil, -1(%rcx,%rax)
	je	.L12
	addl	%edx, %r9d
	leal	1(%r8), %r11d
	leal	2(%r8), %eax
	movslq	%r9d, %rcx
	movzbl	32(%rsp,%rcx), %r10d
	cmpl	$99, %edx
	jle	.L13
	movl	%edx, %edi
	movslq	%r8d, %r14
	movslq	%r11d, %r11
	cltq
	imulq	$1374389535, %rdi, %rdi
	shrq	$37, %rdi
	leal	48(%rdi), %r15d
	imull	$100, %edi, %edi
	movb	%r15b, 1000032(%rsp,%r14)
	subl	%edi, %edx
	movl	%edx, %edi
	imulq	%r12, %rdi
	shrq	$35, %rdi
	leal	48(%rdi), %r14d
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	movb	%r14b, 1000032(%rsp,%r11)
	leal	3(%r8), %r11d
	addl	$4, %r8d
	subl	%edi, %edx
	addl	$48, %edx
	movb	%dl, 1000032(%rsp,%rax)
	movslq	%r11d, %rax
	movb	%sil, 1000032(%rsp,%rax)
.L14:
	testb	%r10b, %r10b
	je	.L16
.L35:
	movl	%r10d, %esi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	$9, %edx
	jle	.L34
	movl	%edx, %edi
	movslq	%r8d, %r14
	movslq	%r11d, %r11
	cltq
	imulq	%r12, %rdi
	addl	$3, %r8d
	shrq	$35, %rdi
	leal	48(%rdi), %r15d
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	movb	%r15b, 1000032(%rsp,%r14)
	subl	%edi, %edx
	addl	$48, %edx
	movb	%dl, 1000032(%rsp,%r11)
	movb	%sil, 1000032(%rsp,%rax)
	testb	%r10b, %r10b
	jne	.L35
.L16:
	movl	$1000000, %edx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	memcpy@PLT
	xorl	%esi, %esi
	movl	$1000000, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	subl	$1, %r13d
	jnb	.L10
	movl	$-1, 28(%rsp)
.L11:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	movslq	%r8d, %r8
	addl	$48, %edi
	movslq	%r11d, %r11
	movb	%dil, 1000032(%rsp,%r8)
	movl	%eax, %r8d
	movb	%sil, 1000032(%rsp,%r11)
	jmp	.L14
.L33:
	movq	2000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2000056, %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
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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
	.p2align 4
	.globl	countDigit
	.type	countDigit, @function
countDigit:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	__ctype_b_loc@PLT
	movq	(%rax), %rcx
	movsbq	(%rbx), %rax
	testb	$8, 1(%rcx,%rax,2)
	je	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movsbq	(%rbx,%rax), %rdx
	movl	%eax, %r8d
	addq	$1, %rax
	testb	$8, 1(%rcx,%rdx,2)
	jne	.L3
	movl	%r8d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xorl	%r8d, %r8d
	popq	%rbx
	.cfi_def_cfa_offset 8
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	countDigit, .-countDigit
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.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	-1998848(%rsp), %r11
	.cfi_def_cfa 11, 1998904
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1208, %rsp
	.cfi_def_cfa_offset 2000112
	pxor	%xmm0, %xmm0
	movl	$999984, %edx
	xorl	%esi, %esi
	movl	$3435973837, %r12d
	movq	%fs:40, %rax
	movq	%rax, 2000040(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rdi
	movaps	%xmm0, 32(%rsp)
	leaq	32(%rsp), %rbp
	call	memset@PLT
	pxor	%xmm0, %xmm0
	movl	$999984, %edx
	xorl	%esi, %esi
	leaq	1000048(%rsp), %rdi
	movaps	%xmm0, 1000032(%rsp)
	call	memset@PLT
	leaq	28(%rsp), %rax
	movq	%rax, 8(%rsp)
.L9:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L33
	movq	%rbp, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	leaq	1000032(%rsp), %rbx
	leal	-1(%rax), %r13d
	movl	%r13d, 28(%rsp)
	testl	%eax, %eax
	je	.L11
.L10:
	movzbl	32(%rsp), %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%ecx, %ecx
	testb	%sil, %sil
	je	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	movl	$1, %eax
	addq	%rbp, %rcx
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%eax, %edx
	movq	%rax, %rdi
	addq	$1, %rax
	cmpb	%sil, -1(%rcx,%rax)
	je	.L12
	addl	%edx, %r9d
	leal	1(%r8), %r11d
	leal	2(%r8), %eax
	movslq	%r9d, %rcx
	movzbl	32(%rsp,%rcx), %r10d
	cmpl	$99, %edx
	jle	.L13
	movl	%edx, %edi
	movslq	%r8d, %r14
	movslq	%r11d, %r11
	cltq
	imulq	$1374389535, %rdi, %rdi
	shrq	$37, %rdi
	leal	48(%rdi), %r15d
	imull	$100, %edi, %edi
	movb	%r15b, 1000032(%rsp,%r14)
	subl	%edi, %edx
	movl	%edx, %edi
	imulq	%r12, %rdi
	shrq	$35, %rdi
	leal	48(%rdi), %r14d
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	movb	%r14b, 1000032(%rsp,%r11)
	leal	3(%r8), %r11d
	addl	$4, %r8d
	subl	%edi, %edx
	addl	$48, %edx
	movb	%dl, 1000032(%rsp,%rax)
	movslq	%r11d, %rax
	movb	%sil, 1000032(%rsp,%rax)
.L14:
	testb	%r10b, %r10b
	je	.L16
.L35:
	movl	%r10d, %esi
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	$9, %edx
	jle	.L34
	movl	%edx, %edi
	movslq	%r8d, %r14
	movslq	%r11d, %r11
	cltq
	imulq	%r12, %rdi
	addl	$3, %r8d
	shrq	$35, %rdi
	leal	48(%rdi), %r15d
	leal	(%rdi,%rdi,4), %edi
	addl	%edi, %edi
	movb	%r15b, 1000032(%rsp,%r14)
	subl	%edi, %edx
	addl	$48, %edx
	movb	%dl, 1000032(%rsp,%r11)
	movb	%sil, 1000032(%rsp,%rax)
	testb	%r10b, %r10b
	jne	.L35
.L16:
	movl	$1000000, %edx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	memcpy@PLT
	xorl	%esi, %esi
	movl	$1000000, %edx
	movq	%rbx, %rdi
	call	memset@PLT
	subl	$1, %r13d
	jnb	.L10
	movl	$-1, 28(%rsp)
.L11:
	movq	%rbp, %rdi
	call	puts@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	movslq	%r8d, %r8
	addl	$48, %edi
	movslq	%r11d, %r11
	movb	%dil, 1000032(%rsp,%r8)
	movl	%eax, %r8d
	movb	%sil, 1000032(%rsp,%r11)
	jmp	.L14
.L33:
	movq	2000040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$2000056, %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
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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 <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <ctype.h>

#define LENGTH 1000000

int countDigit(char *s){
  int i;
  for(i=0;isdigit(s[i]);i++);
  return i;
}

int main(int argc, char *argv[])
 // argc は実行時引数の個数 +1
// argv[0] はプログラム名, argv[1] から順に実行時引数
{
  int n;
  int i;
  int j;
  int k;
  int l;
  int cnt;
  int tmp;
  
    char x[1000000]={0};
      char y[1000000]={0};
 
    while(scanf("%d",&n),n)
      {
        cnt=0;
        scanf("%s",x);
	
        while(n--)

	  {
            cnt=0;
            for(k=0;x[k]!='\0';k++)
	      {
		
                for(l=1;x[k]==x[k+l-1];l++);
                tmp=l-1;
                l--;
		
                if(l>99)
		  {
                    y[cnt++]=l/100+'0';
                    l%=100;
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
	
		else if(l<=9)

		  {
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
			else 

		  {
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
                k=k+tmp-1;
            }
            for(k=0;k<1000000;k++)

	      {
                x[k]=y[k];
                y[k]=0;
            }
        }
    printf("%s\n",x);
    }
    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 <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <ctype.h>

#define LENGTH 1000000

int countDigit(char *s){
  int i;
  for(i=0;isdigit(s[i]);i++);
  return i;
}

int main(int argc, char *argv[])
 // argc は実行時引数の個数 +1
// argv[0] はプログラム名, argv[1] から順に実行時引数
{
  int n;
  int i;
  int j;
  int k;
  int l;
  int cnt;
  int tmp;
  
    char x[1000000]={0};
      char y[1000000]={0};
 
    while(scanf("%d",&n),n)
      {
        cnt=0;
        scanf("%s",x);
	
        while(n--)

	  {
            cnt=0;
            for(k=0;x[k]!='\0';k++)
	      {
		
                for(l=1;x[k]==x[k+l-1];l++);
                tmp=l-1;
                l--;
		
                if(l>99)
		  {
                    y[cnt++]=l/100+'0';
                    l%=100;
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
	
		else if(l<=9)

		  {
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
			else 

		  {
                    y[cnt++]=l/10+'0';
                    l%=10;
                    y[cnt++]=l+'0';
                    y[cnt++]=x[k];
                }
                k=k+tmp-1;
            }
            for(k=0;k<1000000;k++)

	      {
                x[k]=y[k];
                y[k]=0;
            }
        }
    printf("%s\n",x);
    }
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	countDigit
	.type	countDigit, @function
countDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	countDigit, .-countDigit
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1998848(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1216, %rsp
	movl	%edi, -2000052(%rbp)
	movq	%rsi, -2000064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2000016(%rbp)
	movq	$0, -2000008(%rbp)
	leaq	-2000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -1000016(%rbp)
	movq	$0, -1000008(%rbp)
	leaq	-1000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L6
.L18:
	movl	$0, -2000024(%rbp)
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L7
.L17:
	movl	$0, -2000024(%rbp)
	movl	$0, -2000032(%rbp)
	jmp	.L8
.L14:
	movl	$1, -2000028(%rbp)
	jmp	.L9
.L10:
	addl	$1, -2000028(%rbp)
.L9:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %ecx
	movl	-2000028(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	-2000028(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -2000020(%rbp)
	subl	$1, -2000028(%rbp)
	cmpl	$99, -2000028(%rbp)
	jle	.L11
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2000028(%rbp)
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L11:
	cmpl	$9, -2000028(%rbp)
	jg	.L13
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L13:
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
.L12:
	movl	-2000032(%rbp), %edx
	movl	-2000020(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2000032(%rbp)
	addl	$1, -2000032(%rbp)
.L8:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movl	$0, -2000032(%rbp)
	jmp	.L15
.L16:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-1000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %eax
	cltq
	movb	%dl, -2000016(%rbp,%rax)
	movl	-2000032(%rbp), %eax
	cltq
	movb	$0, -1000016(%rbp,%rax)
	addl	$1, -2000032(%rbp)
.L15:
	cmpl	$999999, -2000032(%rbp)
	jle	.L16
.L7:
	movl	-2000036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2000036(%rbp)
	testl	%eax, %eax
	jne	.L17
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-2000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2000036(%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
.LFE7:
	.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
	.globl	countDigit
	.type	countDigit, @function
countDigit:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	jne	.L3
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	countDigit, .-countDigit
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1998848(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1216, %rsp
	movl	%edi, -2000052(%rbp)
	movq	%rsi, -2000064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2000016(%rbp)
	movq	$0, -2000008(%rbp)
	leaq	-2000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$0, -1000016(%rbp)
	movq	$0, -1000008(%rbp)
	leaq	-1000000(%rbp), %rax
	movl	$999984, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	jmp	.L6
.L18:
	movl	$0, -2000024(%rbp)
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L7
.L17:
	movl	$0, -2000024(%rbp)
	movl	$0, -2000032(%rbp)
	jmp	.L8
.L14:
	movl	$1, -2000028(%rbp)
	jmp	.L9
.L10:
	addl	$1, -2000028(%rbp)
.L9:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %ecx
	movl	-2000028(%rbp), %eax
	addl	%ecx, %eax
	subl	$1, %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	-2000028(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -2000020(%rbp)
	subl	$1, -2000028(%rbp)
	cmpl	$99, -2000028(%rbp)
	jle	.L11
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1374389535, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	imull	$100, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -2000028(%rbp)
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L11:
	cmpl	$9, -2000028(%rbp)
	jg	.L13
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	jmp	.L12
.L13:
	movl	-2000028(%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
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000028(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	subl	%eax, %edx
	movl	%edx, -2000028(%rbp)
	movl	-2000028(%rbp), %eax
	leal	48(%rax), %ecx
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
	movl	-2000024(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -2000024(%rbp)
	movl	-2000032(%rbp), %edx
	movslq	%edx, %rdx
	movzbl	-2000016(%rbp,%rdx), %edx
	cltq
	movb	%dl, -1000016(%rbp,%rax)
.L12:
	movl	-2000032(%rbp), %edx
	movl	-2000020(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -2000032(%rbp)
	addl	$1, -2000032(%rbp)
.L8:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-2000016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movl	$0, -2000032(%rbp)
	jmp	.L15
.L16:
	movl	-2000032(%rbp), %eax
	cltq
	movzbl	-1000016(%rbp,%rax), %edx
	movl	-2000032(%rbp), %eax
	cltq
	movb	%dl, -2000016(%rbp,%rax)
	movl	-2000032(%rbp), %eax
	cltq
	movb	$0, -1000016(%rbp,%rax)
	addl	$1, -2000032(%rbp)
.L15:
	cmpl	$999999, -2000032(%rbp)
	jle	.L16
.L7:
	movl	-2000036(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -2000036(%rbp)
	testl	%eax, %eax
	jne	.L17
	leaq	-2000016(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L6:
	leaq	-2000036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2000036(%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
.LFE7:
	.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:
