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

```c
#include <stdio.h>

int main(){
	char S[102][102];
	int C[102];
	int N,L,X;
	scanf("%d %d\n",&N,&L);
	
	for(int i=0;i<N;i++)
		scanf("%s\n",&S[i]);
	
	for(int i=0;i<N;i++){
		X=-1;
		for(int j=0;j<N;j++){
			if(C[j]!=0)
				continue;
			if(X==-1){
				X=j;
				continue;
			}
			for(int k=0;k<L;k++){
				if(S[X][k]<S[j][k]){
					break;
				}
				if(S[X][k]>S[j][k]){
					X=j;
					break;
				}
			}
		}
		C[X]=1;
		printf("%s",S[X]);
	}
	printf("\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2672, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10856(%rbp), %rdx
	leaq	-10860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10848(%rbp)
	jmp	.L2
.L3:
	leaq	-10416(%rbp), %rdx
	movl	-10848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10848(%rbp)
.L2:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10848(%rbp)
	jl	.L3
	movl	$0, -10844(%rbp)
	jmp	.L4
.L14:
	movl	$-1, -10852(%rbp)
	movl	$0, -10840(%rbp)
	jmp	.L5
.L13:
	movl	-10840(%rbp), %eax
	cltq
	movl	-10832(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L17
	cmpl	$-1, -10852(%rbp)
	jne	.L8
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L8:
	movl	$0, -10836(%rbp)
	jmp	.L9
.L12:
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jl	.L18
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L11
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L11:
	addl	$1, -10836(%rbp)
.L9:
	movl	-10856(%rbp), %eax
	cmpl	%eax, -10836(%rbp)
	jl	.L12
	jmp	.L7
.L17:
	nop
	jmp	.L7
.L18:
	nop
.L7:
	addl	$1, -10840(%rbp)
.L5:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10840(%rbp)
	jl	.L13
	movl	-10852(%rbp), %eax
	cltq
	movl	$1, -10832(%rbp,%rax,4)
	leaq	-10416(%rbp), %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -10844(%rbp)
.L4:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10844(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$2680, %rsp
	.cfi_def_cfa_offset 10928
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10856(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	448(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r10d
	addq	$102, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
	testl	%r10d, %r10d
	jle	.L4
	leaq	1(%r12), %rax
	xorl	%r13d, %r13d
	leaq	32(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	28(%rsp), %r15d
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	movq	$-1, %r9
	leal	-1(%r15), %r14d
	addq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp,%rdi,4), %eax
	movl	%edi, %r8d
	testl	%eax, %eax
	jne	.L5
	cmpl	$-1, %r9d
	je	.L10
	testl	%r15d, %r15d
	jle	.L5
	movslq	%r9d, %rsi
	imulq	$102, %rsi, %rsi
	leaq	(%r12,%rsi), %rax
	leaq	(%r14,%rsi), %r11
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	jg	.L11
	addq	$1, %rax
	cmpq	%r11, %rax
	je	.L5
.L6:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	jge	.L20
.L5:
	addq	$1, %rdi
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
.L22:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	movl	$1, 32(%rsp,%r9,4)
	imulq	$102, %r9, %r9
	leaq	(%r12,%r9), %rdx
	call	__printf_chk@PLT
	movl	24(%rsp), %r10d
	cmpl	%r13d, %r10d
	jg	.L8
.L4:
	movl	$10, %edi
	call	putchar@PLT
	movq	10856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$10872, %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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%edi, %r9
	addq	$1, %rdi
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rdi
	movslq	%r8d, %r9
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
	jmp	.L22
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$2680, %rsp
	.cfi_def_cfa_offset 10928
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10856(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	leaq	448(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r10d
	addq	$102, %rbp
	cmpl	%ebx, %r10d
	jg	.L3
	testl	%r10d, %r10d
	jle	.L4
	leaq	1(%r12), %rax
	xorl	%r13d, %r13d
	leaq	32(%rsp), %rbp
	movq	%rax, 8(%rsp)
	leaq	.LC2(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movl	28(%rsp), %r15d
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	movq	$-1, %r9
	leal	-1(%r15), %r14d
	addq	8(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp,%rdi,4), %eax
	movl	%edi, %r8d
	testl	%eax, %eax
	jne	.L5
	cmpl	$-1, %r9d
	je	.L10
	testl	%r15d, %r15d
	jle	.L5
	movslq	%r9d, %rsi
	imulq	$102, %rsi, %rsi
	leaq	(%r12,%rsi), %rax
	leaq	(%r14,%rsi), %r11
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	jg	.L11
	addq	$1, %rax
	cmpq	%r11, %rax
	je	.L5
.L6:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	jge	.L20
.L5:
	addq	$1, %rdi
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
.L22:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addl	$1, %r13d
	movl	$1, 32(%rsp,%r9,4)
	imulq	$102, %r9, %r9
	leaq	(%r12,%r9), %rdx
	call	__printf_chk@PLT
	movl	24(%rsp), %r10d
	cmpl	%r13d, %r10d
	jg	.L8
.L4:
	movl	$10, %edi
	call	putchar@PLT
	movq	10856(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$10872, %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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movslq	%edi, %r9
	addq	$1, %rdi
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$1, %rdi
	movslq	%r8d, %r9
	addq	$102, %rcx
	cmpl	%edi, %r10d
	jg	.L7
	jmp	.L22
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(){
	char S[102][102];
	int C[102];
	int N,L,X;
	scanf("%d %d\n",&N,&L);
	
	for(int i=0;i<N;i++)
		scanf("%s\n",&S[i]);
	
	for(int i=0;i<N;i++){
		X=-1;
		for(int j=0;j<N;j++){
			if(C[j]!=0)
				continue;
			if(X==-1){
				X=j;
				continue;
			}
			for(int k=0;k<L;k++){
				if(S[X][k]<S[j][k]){
					break;
				}
				if(S[X][k]>S[j][k]){
					X=j;
					break;
				}
			}
		}
		C[X]=1;
		printf("%s",S[X]);
	}
	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>

int main(){
	char S[102][102];
	int C[102];
	int N,L,X;
	scanf("%d %d\n",&N,&L);
	
	for(int i=0;i<N;i++)
		scanf("%s\n",&S[i]);
	
	for(int i=0;i<N;i++){
		X=-1;
		for(int j=0;j<N;j++){
			if(C[j]!=0)
				continue;
			if(X==-1){
				X=j;
				continue;
			}
			for(int k=0;k<L;k++){
				if(S[X][k]<S[j][k]){
					break;
				}
				if(S[X][k]>S[j][k]){
					X=j;
					break;
				}
			}
		}
		C[X]=1;
		printf("%s",S[X]);
	}
	printf("\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2672, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10856(%rbp), %rdx
	leaq	-10860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10848(%rbp)
	jmp	.L2
.L3:
	leaq	-10416(%rbp), %rdx
	movl	-10848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10848(%rbp)
.L2:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10848(%rbp)
	jl	.L3
	movl	$0, -10844(%rbp)
	jmp	.L4
.L14:
	movl	$-1, -10852(%rbp)
	movl	$0, -10840(%rbp)
	jmp	.L5
.L13:
	movl	-10840(%rbp), %eax
	cltq
	movl	-10832(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L17
	cmpl	$-1, -10852(%rbp)
	jne	.L8
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L8:
	movl	$0, -10836(%rbp)
	jmp	.L9
.L12:
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jl	.L18
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L11
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L11:
	addl	$1, -10836(%rbp)
.L9:
	movl	-10856(%rbp), %eax
	cmpl	%eax, -10836(%rbp)
	jl	.L12
	jmp	.L7
.L17:
	nop
	jmp	.L7
.L18:
	nop
.L7:
	addl	$1, -10840(%rbp)
.L5:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10840(%rbp)
	jl	.L13
	movl	-10852(%rbp), %eax
	cltq
	movl	$1, -10832(%rbp,%rax,4)
	leaq	-10416(%rbp), %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -10844(%rbp)
.L4:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10844(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2672, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10856(%rbp), %rdx
	leaq	-10860(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10848(%rbp)
	jmp	.L2
.L3:
	leaq	-10416(%rbp), %rdx
	movl	-10848(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10848(%rbp)
.L2:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10848(%rbp)
	jl	.L3
	movl	$0, -10844(%rbp)
	jmp	.L4
.L14:
	movl	$-1, -10852(%rbp)
	movl	$0, -10840(%rbp)
	jmp	.L5
.L13:
	movl	-10840(%rbp), %eax
	cltq
	movl	-10832(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L17
	cmpl	$-1, -10852(%rbp)
	jne	.L8
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L8:
	movl	$0, -10836(%rbp)
	jmp	.L9
.L12:
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jl	.L18
	movl	-10836(%rbp), %eax
	movslq	%eax, %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %edx
	movl	-10836(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10840(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10416, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jle	.L11
	movl	-10840(%rbp), %eax
	movl	%eax, -10852(%rbp)
	jmp	.L7
.L11:
	addl	$1, -10836(%rbp)
.L9:
	movl	-10856(%rbp), %eax
	cmpl	%eax, -10836(%rbp)
	jl	.L12
	jmp	.L7
.L17:
	nop
	jmp	.L7
.L18:
	nop
.L7:
	addl	$1, -10840(%rbp)
.L5:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10840(%rbp)
	jl	.L13
	movl	-10852(%rbp), %eax
	cltq
	movl	$1, -10832(%rbp,%rax,4)
	leaq	-10416(%rbp), %rdx
	movl	-10852(%rbp), %eax
	cltq
	imulq	$102, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -10844(%rbp)
.L4:
	movl	-10860(%rbp), %eax
	cmpl	%eax, -10844(%rbp)
	jl	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
