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

```c
#define A scanf("%"
t[128],a,b;main(n){for(;A"d",&n),n;puts("")){for(;b<128;t[b]=b++);for(;n--;t[a]=b)A"s%s",&a,&b);for(A"d",&n);b=n--;printf("%c",t[a]))A"s",&a);}return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s%s"
.LC3:
	.string	"%d"
.LC4:
	.string	""
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	b(%rip), %r13
	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
	leaq	t(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L9
	movl	b(%rip), %edx
	cmpl	$127, %edx
	jg	.L11
	movl	$127, %eax
	movl	$128, %r8d
	subl	%edx, %eax
	subl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L3
	leal	1(%rdx), %eax
	movd	%edx, %xmm2
	cltq
	pshufd	$0, %xmm2, %xmm0
	paddd	.LC0(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rcx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rcx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rax
.L4:
	movdqa	%xmm0, %xmm1
	paddd	.LC1(%rip), %xmm0
	movups	%xmm1, (%rcx)
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	.L27
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edx
	cmpl	%eax, %r8d
	je	.L5
.L3:
	leal	1(%rdx), %eax
	movslq	%eax, %rcx
	movl	%edx, (%rbx,%rcx,4)
	cmpl	$128, %eax
	je	.L5
	leal	2(%rdx), %ecx
	movslq	%ecx, %rsi
	movl	%eax, (%rbx,%rsi,4)
	cmpl	$128, %ecx
	je	.L5
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rbx,%rdx,4)
.L5:
	movl	$128, b(%rip)
.L11:
	subl	$1, %edi
	leaq	a(%rip), %rbp
	leaq	.LC2(%rip), %r12
	movl	%edi, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	b(%rip), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L6
	movq	%r15, %rsi
	movq	%r14, %rdi
	leaq	.LC5(%rip), %r12
	call	scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	(%rbx,%rax,4), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %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
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC2:
	.string	"%s%s"
.LC3:
	.string	"%d"
.LC4:
	.string	""
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	b(%rip), %r13
	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
	leaq	t(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L9
	movl	b(%rip), %edx
	cmpl	$127, %edx
	jg	.L11
	movl	$127, %eax
	movl	$128, %r8d
	subl	%edx, %eax
	subl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L3
	leal	1(%rdx), %eax
	movd	%edx, %xmm2
	cltq
	pshufd	$0, %xmm2, %xmm0
	paddd	.LC0(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rcx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rcx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rax
.L4:
	movdqa	%xmm0, %xmm1
	paddd	.LC1(%rip), %xmm0
	movups	%xmm1, (%rcx)
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	.L27
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edx
	cmpl	%eax, %r8d
	je	.L5
.L3:
	leal	1(%rdx), %eax
	movslq	%eax, %rcx
	movl	%edx, (%rbx,%rcx,4)
	cmpl	$128, %eax
	je	.L5
	leal	2(%rdx), %ecx
	movslq	%ecx, %rsi
	movl	%eax, (%rbx,%rsi,4)
	cmpl	$128, %ecx
	je	.L5
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rbx,%rdx,4)
.L5:
	movl	$128, b(%rip)
.L11:
	subl	$1, %edi
	leaq	a(%rip), %rbp
	leaq	.LC2(%rip), %r12
	movl	%edi, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	b(%rip), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L6
	movq	%r15, %rsi
	movq	%r14, %rdi
	leaq	.LC5(%rip), %r12
	call	scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	(%rbx,%rax,4), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %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
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC2:
	.string	"%s%s"
.LC3:
	.string	"%d"
.LC4:
	.string	""
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	b(%rip), %r13
	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
	leaq	t(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L9
	movl	b(%rip), %edx
	cmpl	$127, %edx
	jg	.L11
	movl	$127, %eax
	movl	$128, %r8d
	subl	%edx, %eax
	subl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L3
	leal	1(%rdx), %eax
	movd	%edx, %xmm2
	cltq
	pshufd	$0, %xmm2, %xmm0
	paddd	.LC0(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rcx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rcx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rax
.L4:
	movdqa	%xmm0, %xmm1
	paddd	.LC1(%rip), %xmm0
	movups	%xmm1, (%rcx)
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	.L27
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edx
	cmpl	%eax, %r8d
	je	.L5
.L3:
	leal	1(%rdx), %eax
	movslq	%eax, %rcx
	movl	%edx, (%rbx,%rcx,4)
	cmpl	$128, %eax
	je	.L5
	leal	2(%rdx), %ecx
	movslq	%ecx, %rsi
	movl	%eax, (%rbx,%rsi,4)
	cmpl	$128, %ecx
	je	.L5
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rbx,%rdx,4)
.L5:
	movl	$128, b(%rip)
.L11:
	subl	$1, %edi
	leaq	a(%rip), %rbp
	leaq	.LC2(%rip), %r12
	movl	%edi, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	b(%rip), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L6
	movq	%r15, %rsi
	movq	%r14, %rdi
	leaq	.LC5(%rip), %r12
	call	scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	(%rbx,%rax,4), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %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
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
#define A scanf("%"
t[128],a,b;main(n){for(;A"d",&n),n;puts("")){for(;b<128;t[b]=b++);for(;n--;t[a]=b)A"s%s",&a,&b);for(A"d",&n);b=n--;printf("%c",t[a]))A"s",&a);}return 0;}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define A scanf("%"
t[128],a,b;main(n){for(;A"d",&n),n;puts("")){for(;b<128;t[b]=b++);for(;n--;t[a]=b)A"s%s",&a,&b);for(A"d",&n);b=n--;printf("%c",t[a]))A"s",&a);}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

AAB5034`aa
aAB5034`aa
 AAB0034`aa
aAB5034`aa
 AAB0034`aa
@AB5034`a@
 AAB0034`aa
@AB5034`aa
 AAB0034`aa
@AB5035`aa
 AAB0004`aa
@AB5035`aa
 AAB0004`ba
@AB5035`aa
 aAB5034`aa
?AB5034`aa
 AAB5034`aa
aBB5034`aa
 aAB0034`aa
aAB5034`aa

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

```c
#define A scanf("%"
t[128],a,b;main(n){for(;A"d",&n),n;puts("")){for(;b<128;t[b]=b++);for(;n--;t[a]=b)A"s%s",&a,&b);for(A"d",&n);b=n--;printf("%c",t[a]))A"s",&a);}return 0;}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s%s"
.LC3:
	.string	"%d"
.LC4:
	.string	""
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	b(%rip), %r13
	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
	leaq	t(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L9
	movl	b(%rip), %edx
	cmpl	$127, %edx
	jg	.L11
	movl	$127, %eax
	movl	$128, %r8d
	subl	%edx, %eax
	subl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L3
	leal	1(%rdx), %eax
	movd	%edx, %xmm2
	cltq
	pshufd	$0, %xmm2, %xmm0
	paddd	.LC0(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rcx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rcx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rax
.L4:
	movdqa	%xmm0, %xmm1
	paddd	.LC1(%rip), %xmm0
	movups	%xmm1, (%rcx)
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	.L27
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edx
	cmpl	%eax, %r8d
	je	.L5
.L3:
	leal	1(%rdx), %eax
	movslq	%eax, %rcx
	movl	%edx, (%rbx,%rcx,4)
	cmpl	$128, %eax
	je	.L5
	leal	2(%rdx), %ecx
	movslq	%ecx, %rsi
	movl	%eax, (%rbx,%rsi,4)
	cmpl	$128, %ecx
	je	.L5
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rbx,%rdx,4)
.L5:
	movl	$128, b(%rip)
.L11:
	subl	$1, %edi
	leaq	a(%rip), %rbp
	leaq	.LC2(%rip), %r12
	movl	%edi, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	b(%rip), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L6
	movq	%r15, %rsi
	movq	%r14, %rdi
	leaq	.LC5(%rip), %r12
	call	scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	(%rbx,%rax,4), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %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
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC2:
	.string	"%s%s"
.LC3:
	.string	"%d"
.LC4:
	.string	""
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	b(%rip), %r13
	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
	leaq	t(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	je	.L9
	movl	b(%rip), %edx
	cmpl	$127, %edx
	jg	.L11
	movl	$127, %eax
	movl	$128, %r8d
	subl	%edx, %eax
	subl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L3
	leal	1(%rdx), %eax
	movd	%edx, %xmm2
	cltq
	pshufd	$0, %xmm2, %xmm0
	paddd	.LC0(%rip), %xmm0
	leaq	(%rbx,%rax,4), %rcx
	movl	%r8d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %esi
	leaq	16(%rcx), %rax
	salq	$4, %rsi
	addq	%rax, %rsi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$16, %rax
.L4:
	movdqa	%xmm0, %xmm1
	paddd	.LC1(%rip), %xmm0
	movups	%xmm1, (%rcx)
	movq	%rax, %rcx
	cmpq	%rsi, %rax
	jne	.L27
	movl	%r8d, %eax
	andl	$-4, %eax
	addl	%eax, %edx
	cmpl	%eax, %r8d
	je	.L5
.L3:
	leal	1(%rdx), %eax
	movslq	%eax, %rcx
	movl	%edx, (%rbx,%rcx,4)
	cmpl	$128, %eax
	je	.L5
	leal	2(%rdx), %ecx
	movslq	%ecx, %rsi
	movl	%eax, (%rbx,%rsi,4)
	cmpl	$128, %ecx
	je	.L5
	addl	$3, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rbx,%rdx,4)
.L5:
	movl	$128, b(%rip)
.L11:
	subl	$1, %edi
	leaq	a(%rip), %rbp
	leaq	.LC2(%rip), %r12
	movl	%edi, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	b(%rip), %edx
	movl	%edx, (%rbx,%rax,4)
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L6
	movq	%r15, %rsi
	movq	%r14, %rdi
	leaq	.LC5(%rip), %r12
	call	scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	a(%rip), %rax
	movl	(%rbx,%rax,4), %edi
	call	putchar@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%eax, b(%rip)
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L7
.L8:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$24, %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
.LFE0:
	.size	main, .-main
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC1:
	.long	4
	.long	4
	.long	4
	.long	4
	.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:
```