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>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int N, L;
  char **S;
  
  int i, j, k, ii;
  char *tmp;
  
  scanf("%d%d", &N, &L);
  S = (char **)malloc(sizeof(char *)*N);
  for( i=0; i<N; i++) {
    S[i] = (char *)malloc(sizeof(char)*(L+1));
    scanf("%s", S[i]);
  }
  
  for( i=N-1; i; i--) {
    for( j=0; j<i; j++) {
      for( k=0; k<L; k++) {
        if( strcmp(S[j], S[j+1]) > 0 ) {
          tmp = S[j];
          S[j] = S[j+1];
          S[j+1] = tmp;
          break;
        }
      }
      //for( ii=0; ii<N; ii++)
      //  printf("%s ", S[ii]);
      //printf("\n");
    }
  }
  
  for( ii=0; ii<N; ii++)
    printf("%s", S[ii]);
  printf("\n");
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L2
.L3:
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-56(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -56(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L3
	movl	-64(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -52(%rbp)
	jmp	.L5
.L10:
	movl	$0, -48(%rbp)
	jmp	.L6
.L9:
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jle	.L7
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rdx)
	jmp	.L8
.L7:
	addl	$1, -48(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L9
.L8:
	addl	$1, -52(%rbp)
.L5:
	movl	-52(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L10
	subl	$1, -56(%rbp)
.L4:
	cmpl	$0, -56(%rbp)
	jne	.L11
	movl	$0, -44(%rbp)
	jmp	.L12
.L13:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -44(%rbp)
.L12:
	movl	-64(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	32(%rsp), %rdi
	movq	%rdi, %r14
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	testl	%r14d, %r14d
	jle	.L2
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	36(%rsp), %eax
	leal	1(%rax), %edi
	movslq	%edi, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 0(%r13,%rbp,8)
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %r14d
	cmpl	%ebp, %r14d
	jg	.L3
	movl	%r14d, %r12d
	subl	$1, %r12d
	je	.L4
.L13:
	leaq	8(%r13), %rax
	movl	36(%rsp), %ebp
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%r12d, %r12d
	jle	.L26
	movq	24(%rsp), %rcx
	leal	-1(%r12), %eax
	movq	%r13, %r15
	movq	%rax, %r12
	leaq	(%rcx,%rax,8), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%ebp, %ebp
	jle	.L6
	movdqu	(%r15), %xmm0
	movhlps	%xmm0, %xmm2
	movdqa	%xmm0, %xmm1
	movq	%xmm0, %rdi
	movq	%xmm2, %rsi
	shufpd	$1, %xmm0, %xmm1
	movaps	%xmm1, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	jle	.L6
	movdqa	(%rsp), %xmm3
	movups	%xmm3, (%r15)
.L6:
	addq	$8, %r15
	cmpq	%r15, %rbx
	jne	.L10
	testl	%r12d, %r12d
	jne	.L5
.L9:
	leaq	.LC1(%rip), %rbx
	testl	%r14d, %r14d
	jle	.L12
.L4:
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	0(%r13,%rbp,8), %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 32(%rsp)
	jg	.L11
.L12:
	movl	$10, %edi
	call	putchar@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$56, %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
.L26:
	.cfi_restore_state
	subl	$1, %r12d
	testl	%r12d, %r12d
	jne	.L5
	jmp	.L9
.L2:
	leal	-1(%r14), %r12d
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	32(%rsp), %rdi
	movq	%rdi, %r14
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, %r13
	testl	%r14d, %r14d
	jle	.L2
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	36(%rsp), %eax
	leal	1(%rax), %edi
	movslq	%edi, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 0(%r13,%rbp,8)
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %r14d
	cmpl	%ebp, %r14d
	jg	.L3
	movl	%r14d, %r12d
	subl	$1, %r12d
	je	.L4
.L13:
	leaq	8(%r13), %rax
	movl	36(%rsp), %ebp
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%r12d, %r12d
	jle	.L26
	movq	24(%rsp), %rcx
	leal	-1(%r12), %eax
	movq	%r13, %r15
	movq	%rax, %r12
	leaq	(%rcx,%rax,8), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%ebp, %ebp
	jle	.L6
	movdqu	(%r15), %xmm0
	movhlps	%xmm0, %xmm2
	movdqa	%xmm0, %xmm1
	movq	%xmm0, %rdi
	movq	%xmm2, %rsi
	shufpd	$1, %xmm0, %xmm1
	movaps	%xmm1, (%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	jle	.L6
	movdqa	(%rsp), %xmm3
	movups	%xmm3, (%r15)
.L6:
	addq	$8, %r15
	cmpq	%r15, %rbx
	jne	.L10
	testl	%r12d, %r12d
	jne	.L5
.L9:
	leaq	.LC1(%rip), %rbx
	testl	%r14d, %r14d
	jle	.L12
.L4:
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L11:
	movq	0(%r13,%rbp,8), %rdx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 32(%rsp)
	jg	.L11
.L12:
	movl	$10, %edi
	call	putchar@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$56, %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
.L26:
	.cfi_restore_state
	subl	$1, %r12d
	testl	%r12d, %r12d
	jne	.L5
	jmp	.L9
.L2:
	leal	-1(%r14), %r12d
	jmp	.L13
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int N, L;
  char **S;
  
  int i, j, k, ii;
  char *tmp;
  
  scanf("%d%d", &N, &L);
  S = (char **)malloc(sizeof(char *)*N);
  for( i=0; i<N; i++) {
    S[i] = (char *)malloc(sizeof(char)*(L+1));
    scanf("%s", S[i]);
  }
  
  for( i=N-1; i; i--) {
    for( j=0; j<i; j++) {
      for( k=0; k<L; k++) {
        if( strcmp(S[j], S[j+1]) > 0 ) {
          tmp = S[j];
          S[j] = S[j+1];
          S[j+1] = tmp;
          break;
        }
      }
      //for( ii=0; ii<N; ii++)
      //  printf("%s ", S[ii]);
      //printf("\n");
    }
  }
  
  for( ii=0; ii<N; ii++)
    printf("%s", S[ii]);
  printf("\n");
  
  return 0;
}
3 3
dxx
axx
dxx
 3 3
dxx
axx
xxd
 3 3
dxx
xxa
xxd
 3 3
cxx
xxa
xxd
 3 3
dxx
`xx
cxx
 3 3
xdx
axx
dxx
 3 3
xxd
axx
xxd
 3 3
xxd
xxa
xxd
 3 3
cxx
axx
xxd
 3 3
xxd
`xx
cxx

axxdxxdxx
 axxdxxxxd
 dxxxxaxxd
 cxxxxaxxd
 `xxcxxdxx
 axxdxxxdx
 axxxxdxxd
 xxaxxdxxd
 axxcxxxxd
 `xxcxxxxd

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>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int N, L;
  char **S;
  
  int i, j, k, ii;
  char *tmp;
  
  scanf("%d%d", &N, &L);
  S = (char **)malloc(sizeof(char *)*N);
  for( i=0; i<N; i++) {
    S[i] = (char *)malloc(sizeof(char)*(L+1));
    scanf("%s", S[i]);
  }
  
  for( i=N-1; i; i--) {
    for( j=0; j<i; j++) {
      for( k=0; k<L; k++) {
        if( strcmp(S[j], S[j+1]) > 0 ) {
          tmp = S[j];
          S[j] = S[j+1];
          S[j+1] = tmp;
          break;
        }
      }
      //for( ii=0; ii<N; ii++)
      //  printf("%s ", S[ii]);
      //printf("\n");
    }
  }
  
  for( ii=0; ii<N; ii++)
    printf("%s", S[ii]);
  printf("\n");
  
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L2
.L3:
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-56(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -56(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L3
	movl	-64(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -52(%rbp)
	jmp	.L5
.L10:
	movl	$0, -48(%rbp)
	jmp	.L6
.L9:
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jle	.L7
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rdx)
	jmp	.L8
.L7:
	addl	$1, -48(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L9
.L8:
	addl	$1, -52(%rbp)
.L5:
	movl	-52(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L10
	subl	$1, -56(%rbp)
.L4:
	cmpl	$0, -56(%rbp)
	jne	.L11
	movl	$0, -44(%rbp)
	jmp	.L12
.L13:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -44(%rbp)
.L12:
	movl	-64(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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%d"
.LC1:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L2
.L3:
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-56(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -56(%rbp)
.L2:
	movl	-64(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L3
	movl	-64(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -56(%rbp)
	jmp	.L4
.L11:
	movl	$0, -52(%rbp)
	jmp	.L5
.L10:
	movl	$0, -48(%rbp)
	jmp	.L6
.L9:
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jle	.L7
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movl	-52(%rbp), %eax
	cltq
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	%rax, (%rdx)
	jmp	.L8
.L7:
	addl	$1, -48(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L9
.L8:
	addl	$1, -52(%rbp)
.L5:
	movl	-52(%rbp), %eax
	cmpl	-56(%rbp), %eax
	jl	.L10
	subl	$1, -56(%rbp)
.L4:
	cmpl	$0, -56(%rbp)
	jne	.L11
	movl	$0, -44(%rbp)
	jmp	.L12
.L13:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -44(%rbp)
.L12:
	movl	-64(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
