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>

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;
}```

Assembly Code:

```assembly
	.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:
```

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 %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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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:

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 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;
}```

Assembly Code:

```assembly
	.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:
```

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 %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:
```