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(void){
    int n,m,i,j,flag;
    char a,b;
    char sb[62]={0},sa[62]={0};

    while(scanf("%d%*c",&n),n!=0){
        for(i=0;i<n;i++){
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            scanf("%c %c",&sb[i],&sa[i]);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        }
        scanf("%d%*c",&m);
        //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        for(i=0;i<m;i++){
            flag=0;
            scanf("%c",&a);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            for(j=0;j<n;j++){
                if(sb[j]==a){
                    printf("%c",sa[j]);
                    flag=1;
                    break;
                }
            }
            if(!flag)printf("%c",a);
        }
        puts("");
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%c %c"
.LC1:
	.string	"%d%*c"
.LC2:
	.string	""
.LC3:
	.string	"%c"
	.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
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movw	%cx, 92(%rsp)
	leaq	96(%rsp), %r14
	movq	$0, 80(%rsp)
	movl	$0, 88(%rsp)
	movq	$0, 144(%rsp)
	movl	$0, 152(%rsp)
	movw	%si, 156(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %ebx
	leaq	32(%rsp), %r15
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	call	getc@PLT
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L12:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	leaq	23(%rsp), %rbp
	testl	%edx, %edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movslq	24(%rsp), %rdx
	movsbl	23(%rsp), %edi
	testl	%edx, %edx
	jle	.L9
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L9
.L8:
	movslq	%eax, %rsi
	cmpb	%dil, (%r15,%rax)
	jne	.L6
	movsbl	96(%rsp,%rsi), %edi
	call	putchar@PLT
.L7:
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L4
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	putchar@PLT
	jmp	.L7
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$184, %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
.L22:
	.cfi_restore_state
	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	"%c %c"
.LC1:
	.string	"%d%*c"
.LC2:
	.string	""
.LC3:
	.string	"%c"
	.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
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movw	%cx, 92(%rsp)
	leaq	96(%rsp), %r14
	movq	$0, 80(%rsp)
	movl	$0, 88(%rsp)
	movq	$0, 144(%rsp)
	movl	$0, 152(%rsp)
	movw	%si, 156(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %ebx
	leaq	32(%rsp), %r15
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	call	getc@PLT
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L12:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	leaq	23(%rsp), %rbp
	testl	%edx, %edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movslq	24(%rsp), %rdx
	movsbl	23(%rsp), %edi
	testl	%edx, %edx
	jle	.L9
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L9
.L8:
	movslq	%eax, %rsi
	cmpb	%dil, (%r15,%rax)
	jne	.L6
	movsbl	96(%rsp,%rsi), %edi
	call	putchar@PLT
.L7:
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L4
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	putchar@PLT
	jmp	.L7
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$184, %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
.L22:
	.cfi_restore_state
	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	"%c %c"
.LC1:
	.string	"%d%*c"
.LC2:
	.string	""
.LC3:
	.string	"%c"
	.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
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movw	%cx, 92(%rsp)
	leaq	96(%rsp), %r14
	movq	$0, 80(%rsp)
	movl	$0, 88(%rsp)
	movq	$0, 144(%rsp)
	movl	$0, 152(%rsp)
	movw	%si, 156(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %ebx
	leaq	32(%rsp), %r15
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	call	getc@PLT
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L12:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	leaq	23(%rsp), %rbp
	testl	%edx, %edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movslq	24(%rsp), %rdx
	movsbl	23(%rsp), %edi
	testl	%edx, %edx
	jle	.L9
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L9
.L8:
	movslq	%eax, %rsi
	cmpb	%dil, (%r15,%rax)
	jne	.L6
	movsbl	96(%rsp,%rsi), %edi
	call	putchar@PLT
.L7:
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L4
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	putchar@PLT
	jmp	.L7
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$184, %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
.L22:
	.cfi_restore_state
	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(void){
    int n,m,i,j,flag;
    char a,b;
    char sb[62]={0},sa[62]={0};

    while(scanf("%d%*c",&n),n!=0){
        for(i=0;i<n;i++){
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            scanf("%c %c",&sb[i],&sa[i]);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        }
        scanf("%d%*c",&m);
        //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        for(i=0;i<m;i++){
            flag=0;
            scanf("%c",&a);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            for(j=0;j<n;j++){
                if(sb[j]==a){
                    printf("%c",sa[j]);
                    flag=1;
                    break;
                }
            }
            if(!flag)printf("%c",a);
        }
        puts("");
    }
    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(void){
    int n,m,i,j,flag;
    char a,b;
    char sb[62]={0},sa[62]={0};

    while(scanf("%d%*c",&n),n!=0){
        for(i=0;i<n;i++){
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            scanf("%c %c",&sb[i],&sa[i]);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        }
        scanf("%d%*c",&m);
        //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        for(i=0;i<m;i++){
            flag=0;
            scanf("%c",&a);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            for(j=0;j<n;j++){
                if(sb[j]==a){
                    printf("%c",sa[j]);
                    flag=1;
                    break;
                }
            }
            if(!flag)printf("%c",a);
        }
        puts("");
    }
    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
A a
0 5
5 4
10
B
B
C
0
1
4
5
a
b
A
3
A a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
A
0
 3
A a
0 0
5 4
10
B
B
C
0
1
4
5
a
b
A
3
A a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
A
0
 3
A a
0 0
5 4
10
B
B
C
0
1
4
5
a
b
A
3
@ a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
A
0
 3
A a
0 0
5 4
10
B
B
C
0
1
4
5
a
b
A
3
@ a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
@
0
 3
A a
0 0
5 4
10
B
B
C
0
1
4
5
a
b
A
3
@ a
0 5
5 5
10
A
B
C
0
1
4
5
a
b
@
0
 3
A a
0 0
5 4
10
B
B
C
0
1
0
5
a
b
A
3
@ a
0 5
5 5
10
A
B
C
0
1
4
5
a
b
@
0
 3
A a
0 0
5 4
10
B
B
C
0
1
0
5
a
c
A
3
@ a
0 5
5 5
10
A
B
C
0
1
4
5
a
b
@
0
 3
A a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
A
3
A a
0 5
5 4
10
@
B
C
0
1
4
5
a
b
A
0
 3
A a
0 5
5 4
10
B
B
C
0
1
4
5
a
b
A
3
A a
0 5
5 4
10
A
C
C
0
1
4
5
a
b
A
0
 3
A a
0 0
5 4
10
A
B
C
0
1
4
5
a
b
A
3
A a
0 5
5 4
10
A
B
C
0
1
4
5
a
b
A
0

BBC5144aba
aBC5144aba
 BBC0144aba
aBC5144aba
 BBC0144aba
ABC5144abA
 BBC0144aba
ABC5144aba
 BBC0144aba
ABC5145aba
 BBC0104aba
ABC5145aba
 BBC0104aca
ABC5145aba
 aBC5144aba
@BC5144aba
 BBC5144aba
aCC5144aba
 aBC0144aba
aBC5144aba

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(void){
    int n,m,i,j,flag;
    char a,b;
    char sb[62]={0},sa[62]={0};

    while(scanf("%d%*c",&n),n!=0){
        for(i=0;i<n;i++){
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            scanf("%c %c",&sb[i],&sa[i]);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        }
        scanf("%d%*c",&m);
        //for(scanf("%c",&b);b==' ';scanf("%c",&b));
        for(i=0;i<m;i++){
            flag=0;
            scanf("%c",&a);
            getchar();
            //for(scanf("%c",&b);b==' ';scanf("%c",&b));
            for(j=0;j<n;j++){
                if(sb[j]==a){
                    printf("%c",sa[j]);
                    flag=1;
                    break;
                }
            }
            if(!flag)printf("%c",a);
        }
        puts("");
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%c %c"
.LC1:
	.string	"%d%*c"
.LC2:
	.string	""
.LC3:
	.string	"%c"
	.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
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movw	%cx, 92(%rsp)
	leaq	96(%rsp), %r14
	movq	$0, 80(%rsp)
	movl	$0, 88(%rsp)
	movq	$0, 144(%rsp)
	movl	$0, 152(%rsp)
	movw	%si, 156(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %ebx
	leaq	32(%rsp), %r15
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	call	getc@PLT
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L12:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	leaq	23(%rsp), %rbp
	testl	%edx, %edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movslq	24(%rsp), %rdx
	movsbl	23(%rsp), %edi
	testl	%edx, %edx
	jle	.L9
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L9
.L8:
	movslq	%eax, %rsi
	cmpb	%dil, (%r15,%rax)
	jne	.L6
	movsbl	96(%rsp,%rsi), %edi
	call	putchar@PLT
.L7:
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L4
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	putchar@PLT
	jmp	.L7
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$184, %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
.L22:
	.cfi_restore_state
	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	"%c %c"
.LC1:
	.string	"%d%*c"
.LC2:
	.string	""
.LC3:
	.string	"%c"
	.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
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	pxor	%xmm0, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC3(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$184, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 168(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movw	%cx, 92(%rsp)
	leaq	96(%rsp), %r14
	movq	$0, 80(%rsp)
	movl	$0, 88(%rsp)
	movq	$0, 144(%rsp)
	movl	$0, 152(%rsp)
	movw	%si, 156(%rsp)
	movq	%rax, 8(%rsp)
	movaps	%xmm0, 32(%rsp)
	movaps	%xmm0, 48(%rsp)
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 96(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %ebx
	leaq	32(%rsp), %r15
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	(%r14,%rbx), %rdx
	leaq	(%r15,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	addq	$1, %rbx
	call	getc@PLT
	cmpl	%ebx, 24(%rsp)
	jg	.L3
.L12:
	leaq	28(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %edx
	leaq	23(%rsp), %rbp
	testl	%edx, %edx
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movslq	24(%rsp), %rdx
	movsbl	23(%rsp), %edi
	testl	%edx, %edx
	jle	.L9
	xorl	%eax, %eax
	leaq	32(%rsp), %r15
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rax
	cmpq	%rax, %rdx
	je	.L9
.L8:
	movslq	%eax, %rsi
	cmpb	%dil, (%r15,%rax)
	jne	.L6
	movsbl	96(%rsp,%rsi), %edi
	call	putchar@PLT
.L7:
	addl	$1, %ebx
	cmpl	%ebx, 28(%rsp)
	jg	.L4
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	putchar@PLT
	jmp	.L7
.L11:
	movq	168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$184, %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
.L22:
	.cfi_restore_state
	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:
```