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

```c
#include <stdio.h>

#define SWAP(A,B) \
  { \
    char * G__1 = (A); \
    (A) = (B); \
    (B) = G__1; \
  }

char buf[ 2 ][ 16777216 ];

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char  * dest = buf[ 0 ]
     ,  * src  = buf[ 1 ];

  for ( ; ; )
  {
    char  * d
       ,  * s;
    int n;

    fgets ( dest, 128, stdin );
    n = atoi ( dest );
    if ( !( n ) ) break ;
    fgets ( src, 128, stdin );

    while ( n-- )
    {
      int ctr = 0;

      d = dest;
      for ( s = src; isdigit ( *s ); ++s )
      {
        if ( s[ 0 ] == s[ 1 ] ) ++ctr ;
        else
        {
          d += sprintf ( d, "%d", ++ctr );
          *( d++ ) = *s;
          ctr = 0;
        }
      }
      *d = '\0';

      SWAP ( dest, src );
    }
    puts ( src );
  }

  return ( 0 );
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	buf(%rip), %rbx
	leaq	16777216(%rbx), %r13
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	atoi@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L2
	movq	stdin(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	subl	$1, %r12d
	call	fgets@PLT
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %eax
	movq	%rbx, %r14
	movq	%r13, %r15
	xorl	%r8d, %r8d
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$9, %edx
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movq	$-1, %rdx
	movq	%r15, %rdi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movl	$1, %esi
	addq	$1, %r14
	call	__sprintf_chk@PLT
	movzbl	-1(%r14), %edx
	cltq
	addq	%r15, %rax
	movb	%dl, (%rax)
	leaq	1(%rax), %r15
	movsbl	(%r14), %eax
	movl	%eax, %edx
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L6
	xorl	%r8d, %r8d
.L5:
	movsbl	%dl, %eax
.L7:
	movzbl	1(%r14), %edx
	addl	$1, %r8d
	cmpb	%al, %dl
	jne	.L15
	subl	$48, %eax
	addq	$1, %r14
	cmpl	$9, %eax
	jbe	.L5
.L6:
	movb	$0, (%r15)
	subl	$1, %r12d
	jb	.L8
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L9
.L2:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 33554432
buf:
	.zero	33554432
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	buf(%rip), %rbx
	leaq	16777216(%rbx), %r13
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	atoi@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L2
	movq	stdin(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	subl	$1, %r12d
	call	fgets@PLT
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %eax
	movq	%rbx, %r14
	movq	%r13, %r15
	xorl	%r8d, %r8d
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$9, %edx
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movq	$-1, %rdx
	movq	%r15, %rdi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movl	$1, %esi
	addq	$1, %r14
	call	__sprintf_chk@PLT
	movzbl	-1(%r14), %edx
	cltq
	addq	%r15, %rax
	movb	%dl, (%rax)
	leaq	1(%rax), %r15
	movsbl	(%r14), %eax
	movl	%eax, %edx
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L6
	xorl	%r8d, %r8d
.L5:
	movsbl	%dl, %eax
.L7:
	movzbl	1(%r14), %edx
	addl	$1, %r8d
	cmpb	%al, %dl
	jne	.L15
	subl	$48, %eax
	addq	$1, %r14
	cmpl	$9, %eax
	jbe	.L5
.L6:
	movb	$0, (%r15)
	subl	$1, %r12d
	jb	.L8
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L9
.L2:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 33554432
buf:
	.zero	33554432
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	buf(%rip), %rbx
	leaq	16777216(%rbx), %r13
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	atoi@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L2
	movq	stdin(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	subl	$1, %r12d
	call	fgets@PLT
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %eax
	movq	%rbx, %r14
	movq	%r13, %r15
	xorl	%r8d, %r8d
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$9, %edx
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movq	$-1, %rdx
	movq	%r15, %rdi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movl	$1, %esi
	addq	$1, %r14
	call	__sprintf_chk@PLT
	movzbl	-1(%r14), %edx
	cltq
	addq	%r15, %rax
	movb	%dl, (%rax)
	leaq	1(%rax), %r15
	movsbl	(%r14), %eax
	movl	%eax, %edx
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L6
	xorl	%r8d, %r8d
.L5:
	movsbl	%dl, %eax
.L7:
	movzbl	1(%r14), %edx
	addl	$1, %r8d
	cmpb	%al, %dl
	jne	.L15
	subl	$48, %eax
	addq	$1, %r14
	cmpl	$9, %eax
	jbe	.L5
.L6:
	movb	$0, (%r15)
	subl	$1, %r12d
	jb	.L8
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L9
.L2:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 33554432
buf:
	.zero	33554432
	.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:
```
```c
#include <stdio.h>

#define SWAP(A,B) \
  { \
    char * G__1 = (A); \
    (A) = (B); \
    (B) = G__1; \
  }

char buf[ 2 ][ 16777216 ];

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char  * dest = buf[ 0 ]
     ,  * src  = buf[ 1 ];

  for ( ; ; )
  {
    char  * d
       ,  * s;
    int n;

    fgets ( dest, 128, stdin );
    n = atoi ( dest );
    if ( !( n ) ) break ;
    fgets ( src, 128, stdin );

    while ( n-- )
    {
      int ctr = 0;

      d = dest;
      for ( s = src; isdigit ( *s ); ++s )
      {
        if ( s[ 0 ] == s[ 1 ] ) ++ctr ;
        else
        {
          d += sprintf ( d, "%d", ++ctr );
          *( d++ ) = *s;
          ctr = 0;
        }
      }
      *d = '\0';

      SWAP ( dest, src );
    }
    puts ( src );
  }

  return ( 0 );
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define SWAP(A,B) \
  { \
    char * G__1 = (A); \
    (A) = (B); \
    (B) = G__1; \
  }

char buf[ 2 ][ 16777216 ];

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char  * dest = buf[ 0 ]
     ,  * src  = buf[ 1 ];

  for ( ; ; )
  {
    char  * d
       ,  * s;
    int n;

    fgets ( dest, 128, stdin );
    n = atoi ( dest );
    if ( !( n ) ) break ;
    fgets ( src, 128, stdin );

    while ( n-- )
    {
      int ctr = 0;

      d = dest;
      for ( s = src; isdigit ( *s ); ++s )
      {
        if ( s[ 0 ] == s[ 1 ] ) ++ctr ;
        else
        {
          d += sprintf ( d, "%d", ++ctr );
          *( d++ ) = *s;
          ctr = 0;
        }
      }
      *d = '\0';

      SWAP ( dest, src );
    }
    puts ( src );
  }

  return ( 0 );
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

#define SWAP(A,B) \
  { \
    char * G__1 = (A); \
    (A) = (B); \
    (B) = G__1; \
  }

char buf[ 2 ][ 16777216 ];

/** Application main entry point. */
int
main (
  int     argc,
  char  * argv[ ]
  )
{
  char  * dest = buf[ 0 ]
     ,  * src  = buf[ 1 ];

  for ( ; ; )
  {
    char  * d
       ,  * s;
    int n;

    fgets ( dest, 128, stdin );
    n = atoi ( dest );
    if ( !( n ) ) break ;
    fgets ( src, 128, stdin );

    while ( n-- )
    {
      int ctr = 0;

      d = dest;
      for ( s = src; isdigit ( *s ); ++s )
      {
        if ( s[ 0 ] == s[ 1 ] ) ++ctr ;
        else
        {
          d += sprintf ( d, "%d", ++ctr );
          *( d++ ) = *s;
          ctr = 0;
        }
      }
      *d = '\0';

      SWAP ( dest, src );
    }
    puts ( src );
  }

  return ( 0 );
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	buf(%rip), %rbx
	leaq	16777216(%rbx), %r13
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	atoi@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L2
	movq	stdin(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	subl	$1, %r12d
	call	fgets@PLT
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %eax
	movq	%rbx, %r14
	movq	%r13, %r15
	xorl	%r8d, %r8d
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$9, %edx
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movq	$-1, %rdx
	movq	%r15, %rdi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movl	$1, %esi
	addq	$1, %r14
	call	__sprintf_chk@PLT
	movzbl	-1(%r14), %edx
	cltq
	addq	%r15, %rax
	movb	%dl, (%rax)
	leaq	1(%rax), %r15
	movsbl	(%r14), %eax
	movl	%eax, %edx
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L6
	xorl	%r8d, %r8d
.L5:
	movsbl	%dl, %eax
.L7:
	movzbl	1(%r14), %edx
	addl	$1, %r8d
	cmpb	%al, %dl
	jne	.L15
	subl	$48, %eax
	addq	$1, %r14
	cmpl	$9, %eax
	jbe	.L5
.L6:
	movb	$0, (%r15)
	subl	$1, %r12d
	jb	.L8
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L9
.L2:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 33554432
buf:
	.zero	33554432
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	buf(%rip), %rbx
	leaq	16777216(%rbx), %r13
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L9:
	movq	stdin(%rip), %rdx
	movl	$128, %esi
	movq	%rbx, %rdi
	call	fgets@PLT
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	atoi@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L2
	movq	stdin(%rip), %rdx
	movq	%r13, %rdi
	movl	$128, %esi
	subl	$1, %r12d
	call	fgets@PLT
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movsbl	(%rbx), %eax
	movq	%rbx, %r14
	movq	%r13, %r15
	xorl	%r8d, %r8d
	movsbl	%al, %edx
	subl	$48, %edx
	cmpl	$9, %edx
	jbe	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movq	$-1, %rdx
	movq	%r15, %rdi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movl	$1, %esi
	addq	$1, %r14
	call	__sprintf_chk@PLT
	movzbl	-1(%r14), %edx
	cltq
	addq	%r15, %rax
	movb	%dl, (%rax)
	leaq	1(%rax), %r15
	movsbl	(%r14), %eax
	movl	%eax, %edx
	subl	$48, %eax
	cmpl	$9, %eax
	ja	.L6
	xorl	%r8d, %r8d
.L5:
	movsbl	%dl, %eax
.L7:
	movzbl	1(%r14), %edx
	addl	$1, %r8d
	cmpb	%al, %dl
	jne	.L15
	subl	$48, %eax
	addq	$1, %r14
	cmpl	$9, %eax
	jbe	.L5
.L6:
	movb	$0, (%r15)
	subl	$1, %r12d
	jb	.L8
	movq	%r13, %rax
	movq	%rbx, %r13
	movq	%rax, %rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r13, %rdi
	call	puts@PLT
	jmp	.L9
.L2:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 33554432
buf:
	.zero	33554432
	.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:
```