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>
char a[2000000],b[2000000];
void str(void){
  int c,i,sw=0,j;
  char cp;
  j=0;
  sw=0;
  // printf("point1\n");
  for(i=0;a[i]!='\0';i++){
    if(sw==0){
      cp=a[i];
      c=1;
      sw=1;
      continue;
    }
    else{
      // printf("point2\n");
      if(cp==a[i]){
	c++;
      }
      else{
	if(c>=100){
	  b[j]=c/100+'0';
	  c%=100;
	  j++;
	}
	if(c>=10){
	  b[j]=c/10+'0';
	  c%=10;
	  j++;
	}
	b[j]=c+'0';
	j++;
	b[j]=cp;
	j++;
	sw=0;
	i--;
	//	printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
      }
    }
  }
  if(sw==1){
    // printf("point4\n");

    if(c>=100){
      b[j]=c/100+'0';
      c%=100;
      j++;
    }
    if(c>=10){
      b[j]=c/10+'0';
      c%=10;
      j++;
    }
    b[j]=c+'0';
    j++;
    b[j]=cp;
    j++;
    sw=0;
    i--;
    //   printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
  }
  b[j]='\0';
  return;
}

int main(){
  int i,n,j;
 
  while(1){
    for(i=0;i<2000000;i++){
      a[i]=b[i]=0;
    }
  
    scanf("%d",&n);
    if(n==0)break;
    scanf("%s",a);
    for(i=0;i<n;i++){
      str();
      // printf("%c%c%c\n",b[0],b[1],b[2]);//
      for(j=0;b[j]!='\0';j++){
	a[j]=b[j];
      }
      a[j]='\0';
    }
    for(i=0;a[i]!='\0';i++){
      printf("%c",a[i]);
    }
    printf("\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2000000
a:
	.zero	2000000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2000000
b:
	.zero	2000000
	.text
	.globl	str
	.type	str, @function
str:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L8:
	cmpl	$0, -8(%rbp)
	jne	.L3
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movb	%al, -17(%rbp)
	movl	$1, -16(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	%al, -17(%rbp)
	jne	.L5
	addl	$1, -16(%rbp)
	jmp	.L4
.L5:
	cmpl	$99, -16(%rbp)
	jle	.L6
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L6:
	cmpl	$9, -16(%rbp)
	jle	.L7
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L7:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -8(%rbp)
	jne	.L9
	cmpl	$99, -16(%rbp)
	jle	.L10
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L10:
	cmpl	$9, -16(%rbp)
	jle	.L11
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L11:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	str, .-str
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	movl	$0, -16(%rbp)
	jmp	.L14
.L15:
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L14:
	cmpl	$1999999, -16(%rbp)
	jle	.L15
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L18
.L21:
	call	str
	movl	$0, -12(%rbp)
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -12(%rbp)
.L19:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L20
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -16(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movl	$0, -16(%rbp)
	jmp	.L22
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L23
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L24
.L28:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	str
	.type	str, @function
str:
.LFB23:
	.cfi_startproc
	endbr64
	movzbl	a(%rip), %r8d
	testb	%r8b, %r8b
	je	.L10
	movzbl	1+a(%rip), %ecx
	testb	%cl, %cl
	je	.L11
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %r11d
	xorl	%r9d, %r9d
	movl	$1, %eax
	leaq	b(%rip), %rdi
	leaq	a(%rip), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$99, %eax
	jle	.L6
	movslq	%eax, %rcx
	movl	%eax, %r11d
	movslq	%edx, %rsi
	addl	$1, %edx
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %r11d
	sarq	$37, %rcx
	subl	%r11d, %ecx
	leal	48(%rcx), %r11d
	imull	$100, %ecx, %ecx
	movb	%r11b, (%rdi,%rsi)
	subl	%ecx, %eax
.L6:
	cmpl	$9, %eax
	jle	.L7
	movslq	%eax, %rcx
	movl	%eax, %r11d
	movslq	%edx, %rsi
	addl	$1, %edx
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r11d
	sarq	$34, %rcx
	subl	%r11d, %ecx
	leal	48(%rcx), %r11d
	leal	(%rcx,%rcx,4), %ecx
	movb	%r11b, (%rdi,%rsi)
	addl	%ecx, %ecx
	subl	%ecx, %eax
.L7:
	movslq	%edx, %rcx
	leal	48(%rax), %esi
	xorl	%r11d, %r11d
	movb	%sil, (%rdi,%rcx)
	leal	1(%rdx), %ecx
	addl	$2, %edx
	movslq	%ecx, %rcx
	movb	%r8b, (%rdi,%rcx)
.L4:
	leal	1(%r9), %esi
	movslq	%esi, %rcx
	movzbl	(%r10,%rcx), %ecx
	testb	%cl, %cl
	je	.L17
.L8:
	testl	%r11d, %r11d
	je	.L12
	cmpb	%cl, %r8b
	jne	.L5
	movl	%esi, %r9d
	addl	$1, %eax
	leal	1(%r9), %esi
	movslq	%esi, %rcx
	movzbl	(%r10,%rcx), %ecx
	testb	%cl, %cl
	jne	.L8
.L17:
	cmpl	$1, %r11d
	je	.L18
	movslq	%edx, %rdx
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ecx, %r8d
	movl	%esi, %r9d
	movl	$1, %r11d
	movl	$1, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %esi
	cmpl	$99, %eax
	jle	.L9
	movslq	%eax, %rcx
	movl	%eax, %r9d
	movslq	%edx, %rdx
	addl	$1, %esi
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %r9d
	sarq	$37, %rcx
	subl	%r9d, %ecx
	leal	48(%rcx), %r9d
	imull	$100, %ecx, %ecx
	movb	%r9b, (%rdi,%rdx)
	subl	%ecx, %eax
.L9:
	cmpl	$9, %eax
	jle	.L14
	movslq	%eax, %rcx
	movl	%eax, %r9d
	leal	1(%rsi), %edx
	movslq	%esi, %rsi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r9d
	sarq	$34, %rcx
	subl	%r9d, %ecx
	leal	48(%rcx), %r9d
	leal	(%rcx,%rcx,4), %ecx
	movb	%r9b, (%rdi,%rsi)
	addl	%ecx, %ecx
	subl	%ecx, %eax
.L3:
	movslq	%edx, %rcx
	addl	$48, %eax
	movb	%al, (%rdi,%rcx)
	leal	1(%rdx), %eax
	addl	$2, %edx
	cltq
	movslq	%edx, %rdx
	movb	%r8b, (%rdi,%rax)
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%edx, %edx
	leaq	b(%rip), %rdi
	movslq	%edx, %rdx
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%edx, %edx
	movl	$1, %eax
	leaq	b(%rip), %rdi
	jmp	.L3
.L14:
	movl	%esi, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	str, .-str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	b(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	leaq	-1(%rbp), %r15
	leaq	-1(%rbx), %r14
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
.L27:
	movl	$2000000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$2000000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	je	.L20
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L24:
	call	str
	movzbl	0(%rbp), %edx
	testb	%dl, %dl
	je	.L29
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movb	%dl, (%r14,%rax)
	movslq	%eax, %rcx
	addq	$1, %rax
	movzbl	(%r15,%rax), %edx
	testb	%dl, %dl
	jne	.L23
	movb	$0, (%rbx,%rcx)
	addl	$1, %r12d
	cmpl	%r12d, 4(%rsp)
	jg	.L24
.L21:
	movsbl	(%rbx), %edi
	testb	%dil, %dil
	je	.L25
	leaq	1+a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	call	putchar@PLT
	movsbl	(%r12), %edi
	addq	$1, %r12
	testb	%dil, %dil
	jne	.L26
.L25:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L27
.L29:
	xorl	%ecx, %ecx
	addl	$1, %r12d
	movb	$0, (%rbx,%rcx)
	cmpl	%r12d, 4(%rsp)
	jg	.L24
	jmp	.L21
.L20:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$24, %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
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 2000000
b:
	.zero	2000000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2000000
a:
	.zero	2000000
	.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	str
	.type	str, @function
str:
.LFB23:
	.cfi_startproc
	endbr64
	movzbl	a(%rip), %r8d
	testb	%r8b, %r8b
	je	.L10
	movzbl	1+a(%rip), %ecx
	testb	%cl, %cl
	je	.L11
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %r11d
	xorl	%r9d, %r9d
	movl	$1, %eax
	leaq	b(%rip), %rdi
	leaq	a(%rip), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmpl	$99, %eax
	jle	.L6
	movslq	%eax, %rcx
	movl	%eax, %r11d
	movslq	%edx, %rsi
	addl	$1, %edx
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %r11d
	sarq	$37, %rcx
	subl	%r11d, %ecx
	leal	48(%rcx), %r11d
	imull	$100, %ecx, %ecx
	movb	%r11b, (%rdi,%rsi)
	subl	%ecx, %eax
.L6:
	cmpl	$9, %eax
	jle	.L7
	movslq	%eax, %rcx
	movl	%eax, %r11d
	movslq	%edx, %rsi
	addl	$1, %edx
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r11d
	sarq	$34, %rcx
	subl	%r11d, %ecx
	leal	48(%rcx), %r11d
	leal	(%rcx,%rcx,4), %ecx
	movb	%r11b, (%rdi,%rsi)
	addl	%ecx, %ecx
	subl	%ecx, %eax
.L7:
	movslq	%edx, %rcx
	leal	48(%rax), %esi
	xorl	%r11d, %r11d
	movb	%sil, (%rdi,%rcx)
	leal	1(%rdx), %ecx
	addl	$2, %edx
	movslq	%ecx, %rcx
	movb	%r8b, (%rdi,%rcx)
.L4:
	leal	1(%r9), %esi
	movslq	%esi, %rcx
	movzbl	(%r10,%rcx), %ecx
	testb	%cl, %cl
	je	.L17
.L8:
	testl	%r11d, %r11d
	je	.L12
	cmpb	%cl, %r8b
	jne	.L5
	movl	%esi, %r9d
	addl	$1, %eax
	leal	1(%r9), %esi
	movslq	%esi, %rcx
	movzbl	(%r10,%rcx), %ecx
	testb	%cl, %cl
	jne	.L8
.L17:
	cmpl	$1, %r11d
	je	.L18
	movslq	%edx, %rdx
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%ecx, %r8d
	movl	%esi, %r9d
	movl	$1, %r11d
	movl	$1, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %esi
	cmpl	$99, %eax
	jle	.L9
	movslq	%eax, %rcx
	movl	%eax, %r9d
	movslq	%edx, %rdx
	addl	$1, %esi
	imulq	$1374389535, %rcx, %rcx
	sarl	$31, %r9d
	sarq	$37, %rcx
	subl	%r9d, %ecx
	leal	48(%rcx), %r9d
	imull	$100, %ecx, %ecx
	movb	%r9b, (%rdi,%rdx)
	subl	%ecx, %eax
.L9:
	cmpl	$9, %eax
	jle	.L14
	movslq	%eax, %rcx
	movl	%eax, %r9d
	leal	1(%rsi), %edx
	movslq	%esi, %rsi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %r9d
	sarq	$34, %rcx
	subl	%r9d, %ecx
	leal	48(%rcx), %r9d
	leal	(%rcx,%rcx,4), %ecx
	movb	%r9b, (%rdi,%rsi)
	addl	%ecx, %ecx
	subl	%ecx, %eax
.L3:
	movslq	%edx, %rcx
	addl	$48, %eax
	movb	%al, (%rdi,%rcx)
	leal	1(%rdx), %eax
	addl	$2, %edx
	cltq
	movslq	%edx, %rdx
	movb	%r8b, (%rdi,%rax)
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%edx, %edx
	leaq	b(%rip), %rdi
	movslq	%edx, %rdx
	movb	$0, (%rdi,%rdx)
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%edx, %edx
	movl	$1, %eax
	leaq	b(%rip), %rdi
	jmp	.L3
.L14:
	movl	%esi, %edx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	str, .-str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	leaq	b(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	leaq	-1(%rbp), %r15
	leaq	-1(%rbx), %r14
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r13
.L27:
	movl	$2000000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$2000000, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movq	%r13, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	je	.L20
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L21
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L24:
	call	str
	movzbl	0(%rbp), %edx
	testb	%dl, %dl
	je	.L29
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L23:
	movb	%dl, (%r14,%rax)
	movslq	%eax, %rcx
	addq	$1, %rax
	movzbl	(%r15,%rax), %edx
	testb	%dl, %dl
	jne	.L23
	movb	$0, (%rbx,%rcx)
	addl	$1, %r12d
	cmpl	%r12d, 4(%rsp)
	jg	.L24
.L21:
	movsbl	(%rbx), %edi
	testb	%dil, %dil
	je	.L25
	leaq	1+a(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L26:
	call	putchar@PLT
	movsbl	(%r12), %edi
	addq	$1, %r12
	testb	%dil, %dil
	jne	.L26
.L25:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L27
.L29:
	xorl	%ecx, %ecx
	addl	$1, %r12d
	movb	$0, (%rbx,%rcx)
	cmpl	%r12d, 4(%rsp)
	jg	.L24
	jmp	.L21
.L20:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$24, %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
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 2000000
b:
	.zero	2000000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2000000
a:
	.zero	2000000
	.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>
char a[2000000],b[2000000];
void str(void){
  int c,i,sw=0,j;
  char cp;
  j=0;
  sw=0;
  // printf("point1\n");
  for(i=0;a[i]!='\0';i++){
    if(sw==0){
      cp=a[i];
      c=1;
      sw=1;
      continue;
    }
    else{
      // printf("point2\n");
      if(cp==a[i]){
	c++;
      }
      else{
	if(c>=100){
	  b[j]=c/100+'0';
	  c%=100;
	  j++;
	}
	if(c>=10){
	  b[j]=c/10+'0';
	  c%=10;
	  j++;
	}
	b[j]=c+'0';
	j++;
	b[j]=cp;
	j++;
	sw=0;
	i--;
	//	printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
      }
    }
  }
  if(sw==1){
    // printf("point4\n");

    if(c>=100){
      b[j]=c/100+'0';
      c%=100;
      j++;
    }
    if(c>=10){
      b[j]=c/10+'0';
      c%=10;
      j++;
    }
    b[j]=c+'0';
    j++;
    b[j]=cp;
    j++;
    sw=0;
    i--;
    //   printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
  }
  b[j]='\0';
  return;
}

int main(){
  int i,n,j;
 
  while(1){
    for(i=0;i<2000000;i++){
      a[i]=b[i]=0;
    }
  
    scanf("%d",&n);
    if(n==0)break;
    scanf("%s",a);
    for(i=0;i<n;i++){
      str();
      // printf("%c%c%c\n",b[0],b[1],b[2]);//
      for(j=0;b[j]!='\0';j++){
	a[j]=b[j];
      }
      a[j]='\0';
    }
    for(i=0;a[i]!='\0';i++){
      printf("%c",a[i]);
    }
    printf("\n");
  }
  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>
char a[2000000],b[2000000];
void str(void){
  int c,i,sw=0,j;
  char cp;
  j=0;
  sw=0;
  // printf("point1\n");
  for(i=0;a[i]!='\0';i++){
    if(sw==0){
      cp=a[i];
      c=1;
      sw=1;
      continue;
    }
    else{
      // printf("point2\n");
      if(cp==a[i]){
	c++;
      }
      else{
	if(c>=100){
	  b[j]=c/100+'0';
	  c%=100;
	  j++;
	}
	if(c>=10){
	  b[j]=c/10+'0';
	  c%=10;
	  j++;
	}
	b[j]=c+'0';
	j++;
	b[j]=cp;
	j++;
	sw=0;
	i--;
	//	printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
      }
    }
  }
  if(sw==1){
    // printf("point4\n");

    if(c>=100){
      b[j]=c/100+'0';
      c%=100;
      j++;
    }
    if(c>=10){
      b[j]=c/10+'0';
      c%=10;
      j++;
    }
    b[j]=c+'0';
    j++;
    b[j]=cp;
    j++;
    sw=0;
    i--;
    //   printf("point3 %c%c%c\n",b[0],b[1],b[2]);//
  }
  b[j]='\0';
  return;
}

int main(){
  int i,n,j;
 
  while(1){
    for(i=0;i<2000000;i++){
      a[i]=b[i]=0;
    }
  
    scanf("%d",&n);
    if(n==0)break;
    scanf("%s",a);
    for(i=0;i<n;i++){
      str();
      // printf("%c%c%c\n",b[0],b[1],b[2]);//
      for(j=0;b[j]!='\0';j++){
	a[j]=b[j];
      }
      a[j]='\0';
    }
    for(i=0;a[i]!='\0';i++){
      printf("%c",a[i]);
    }
    printf("\n");
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2000000
a:
	.zero	2000000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2000000
b:
	.zero	2000000
	.text
	.globl	str
	.type	str, @function
str:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L8:
	cmpl	$0, -8(%rbp)
	jne	.L3
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movb	%al, -17(%rbp)
	movl	$1, -16(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	%al, -17(%rbp)
	jne	.L5
	addl	$1, -16(%rbp)
	jmp	.L4
.L5:
	cmpl	$99, -16(%rbp)
	jle	.L6
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L6:
	cmpl	$9, -16(%rbp)
	jle	.L7
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L7:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -8(%rbp)
	jne	.L9
	cmpl	$99, -16(%rbp)
	jle	.L10
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L10:
	cmpl	$9, -16(%rbp)
	jle	.L11
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L11:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	str, .-str
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	movl	$0, -16(%rbp)
	jmp	.L14
.L15:
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L14:
	cmpl	$1999999, -16(%rbp)
	jle	.L15
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L18
.L21:
	call	str
	movl	$0, -12(%rbp)
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -12(%rbp)
.L19:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L20
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -16(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movl	$0, -16(%rbp)
	jmp	.L22
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L23
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L24
.L28:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2000000
a:
	.zero	2000000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2000000
b:
	.zero	2000000
	.text
	.globl	str
	.type	str, @function
str:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L8:
	cmpl	$0, -8(%rbp)
	jne	.L3
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movb	%al, -17(%rbp)
	movl	$1, -16(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	%al, -17(%rbp)
	jne	.L5
	addl	$1, -16(%rbp)
	jmp	.L4
.L5:
	cmpl	$99, -16(%rbp)
	jle	.L6
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L6:
	cmpl	$9, -16(%rbp)
	jle	.L7
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L7:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L8
	cmpl	$1, -8(%rbp)
	jne	.L9
	cmpl	$99, -16(%rbp)
	jle	.L10
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L10:
	cmpl	$9, -16(%rbp)
	jle	.L11
	movl	-16(%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
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	movl	-16(%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, -16(%rbp)
	addl	$1, -4(%rbp)
.L11:
	movl	-16(%rbp), %eax
	addl	$48, %eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rcx
	movzbl	-17(%rbp), %edx
	movb	%dl, (%rax,%rcx)
	addl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	subl	$1, -12(%rbp)
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	str, .-str
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L24:
	movl	$0, -16(%rbp)
	jmp	.L14
.L15:
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-16(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -16(%rbp)
.L14:
	cmpl	$1999999, -16(%rbp)
	jle	.L15
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L18
.L21:
	call	str
	movl	$0, -12(%rbp)
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movb	%dl, (%rax,%rcx)
	addl	$1, -12(%rbp)
.L19:
	movl	-12(%rbp), %eax
	cltq
	leaq	b(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L20
	movl	-12(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movb	$0, (%rax,%rdx)
	addl	$1, -16(%rbp)
.L18:
	movl	-20(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	movl	$0, -16(%rbp)
	jmp	.L22
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	addl	$1, -16(%rbp)
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L23
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L24
.L28:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
