Given the following C code and unoptimized 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;}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	""
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L4:
	movl	b(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, b(%rip)
	movl	b(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L3:
	movl	b(%rip), %eax
	cmpl	$127, %eax
	jle	.L4
	jmp	.L5
.L6:
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L5:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L6
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L7
.L8:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	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
.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
	.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:

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

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	""
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L4:
	movl	b(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, b(%rip)
	movl	b(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L3:
	movl	b(%rip), %eax
	cmpl	$127, %eax
	jle	.L4
	jmp	.L5
.L6:
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L5:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L6
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L7
.L8:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	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
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 512
t:
	.zero	512
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%s"
.LC3:
	.string	""
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L4:
	movl	b(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, b(%rip)
	movl	b(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L3:
	movl	b(%rip), %eax
	cmpl	$127, %eax
	jle	.L4
	jmp	.L5
.L6:
	leaq	b(%rip), %rax
	movq	%rax, %rdx
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %edx
	movl	b(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
.L5:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L6
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L7
.L8:
	leaq	a(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	a(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	putchar@PLT
.L7:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	movl	%eax, b(%rip)
	movl	b(%rip), %eax
	testl	%eax, %eax
	jne	.L8
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L2:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, %eax
	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:
