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

```c
long d['~~'];A,x,i,j;main(n){for(scanf("%d%d",&n,&A),d[n*=A]=1;~scanf("%d",&x);i=5e3-i)for(x-=A,j=2*n;j--;)d[5000-i+j]=d[i+j]+d[j<x?:i+j-x];printf("%ld",d[i+n]-1);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 259056
d:
	.zero	259056
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%ld"
	.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)
	leaq	-4(%rbp), %rax
	leaq	A(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	x(%rip), %eax
	movl	A(%rip), %edx
	subl	%edx, %eax
	movl	%eax, x(%rip)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, j(%rip)
	jmp	.L3
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	j(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L5
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	movl	x(%rip), %edx
	subl	%edx, %eax
.L5:
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	i(%rip), %eax
	movl	$5000, %esi
	subl	%eax, %esi
	movl	j(%rip), %eax
	addl	%esi, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L3:
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	movl	i(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, i(%rip)
.L2:
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L7
	movl	i(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1085507584
	.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"
.LC2:
	.string	"%d"
.LC3:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	A(%rip), %rdx
	xorl	%eax, %eax
	leaq	d(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC2(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	scanf@PLT
	movl	12(%rsp), %eax
	imull	A(%rip), %eax
	movl	%eax, 12(%rsp)
	cltq
	movq	$1, (%r12,%rax,8)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movl	12(%rsp), %edx
	movl	x(%rip), %r8d
	subl	A(%rip), %r8d
	movl	i(%rip), %r9d
	leal	-1(%rdx,%rdx), %eax
	movl	%r8d, x(%rip)
	movl	%eax, j(%rip)
	testl	%edx, %edx
	je	.L3
	movl	$5000, %edi
	leal	(%rax,%r9), %edx
	movslq	%r9d, %rcx
	movl	%r9d, %r10d
	subl	%r9d, %edi
	movslq	%edx, %rdx
	subl	%r8d, %r10d
	movslq	%edi, %rdi
	leaq	(%r12,%rdx,8), %rdx
	subq	%rcx, %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	leal	(%r10,%rax), %esi
	subl	$1, %eax
	movslq	%esi, %rsi
	addq	(%r12,%rsi,8), %rcx
	movq	%rcx, (%rdx,%rdi,8)
	subq	$8, %rdx
	cmpl	$-1, %eax
	je	.L19
.L7:
	movq	(%rdx), %rcx
	cmpl	%eax, %r8d
	jle	.L20
	addq	8+d(%rip), %rcx
	subl	$1, %eax
	movq	%rcx, (%rdx,%rdi,8)
	subq	$8, %rdx
	cmpl	$-1, %eax
	jne	.L7
.L19:
	movl	$-1, j(%rip)
.L3:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%r9d, %xmm1
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movl	12(%rsp), %eax
	addl	i(%rip), %eax
	leaq	.LC3(%rip), %rdi
	cltq
	movq	(%r12,%rax,8), %rsi
	xorl	%eax, %eax
	subq	$1, %rsi
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	j
	.bss
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 259056
d:
	.zero	259056
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1085507584
	.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"
.LC2:
	.string	"%d"
.LC3:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	A(%rip), %rdx
	xorl	%eax, %eax
	leaq	d(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC2(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	scanf@PLT
	movl	12(%rsp), %eax
	imull	A(%rip), %eax
	movl	%eax, 12(%rsp)
	cltq
	movq	$1, (%r12,%rax,8)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L18
	movl	12(%rsp), %edx
	movl	x(%rip), %r8d
	subl	A(%rip), %r8d
	movl	i(%rip), %r9d
	leal	-1(%rdx,%rdx), %eax
	movl	%r8d, x(%rip)
	movl	%eax, j(%rip)
	testl	%edx, %edx
	je	.L3
	movl	$5000, %edi
	leal	(%rax,%r9), %edx
	movslq	%r9d, %rcx
	movl	%r9d, %r10d
	subl	%r9d, %edi
	movslq	%edx, %rdx
	subl	%r8d, %r10d
	movslq	%edi, %rdi
	leaq	(%r12,%rdx,8), %rdx
	subq	%rcx, %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	leal	(%r10,%rax), %esi
	subl	$1, %eax
	movslq	%esi, %rsi
	addq	(%r12,%rsi,8), %rcx
	movq	%rcx, (%rdx,%rdi,8)
	subq	$8, %rdx
	cmpl	$-1, %eax
	je	.L19
.L7:
	movq	(%rdx), %rcx
	cmpl	%eax, %r8d
	jle	.L20
	addq	8+d(%rip), %rcx
	subl	$1, %eax
	movq	%rcx, (%rdx,%rdi,8)
	subq	$8, %rdx
	cmpl	$-1, %eax
	jne	.L7
.L19:
	movl	$-1, j(%rip)
.L3:
	pxor	%xmm1, %xmm1
	movsd	.LC1(%rip), %xmm0
	cvtsi2sdl	%r9d, %xmm1
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	movl	12(%rsp), %eax
	addl	i(%rip), %eax
	leaq	.LC3(%rip), %rdi
	cltq
	movq	(%r12,%rax,8), %rsi
	xorl	%eax, %eax
	subq	$1, %rsi
	call	printf@PLT
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	j
	.bss
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 259056
d:
	.zero	259056
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1085507584
	.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:

long d['~~'];A,x,i,j;main(n){for(scanf("%d%d",&n,&A),d[n*=A]=1;~scanf("%d",&x);i=5e3-i)for(x-=A,j=2*n;j--;)d[5000-i+j]=d[i+j]+d[j<x?:i+j-x];printf("%ld",d[i+n]-1);}
4 8
7 9 8 9

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

```c
long d['~~'];A,x,i,j;main(n){for(scanf("%d%d",&n,&A),d[n*=A]=1;~scanf("%d",&x);i=5e3-i)for(x-=A,j=2*n;j--;)d[5000-i+j]=d[i+j]+d[j<x?:i+j-x];printf("%ld",d[i+n]-1);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 259056
d:
	.zero	259056
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%ld"
	.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)
	leaq	-4(%rbp), %rax
	leaq	A(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	x(%rip), %eax
	movl	A(%rip), %edx
	subl	%edx, %eax
	movl	%eax, x(%rip)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, j(%rip)
	jmp	.L3
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	j(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L5
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	movl	x(%rip), %edx
	subl	%edx, %eax
.L5:
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	i(%rip), %eax
	movl	$5000, %esi
	subl	%eax, %esi
	movl	j(%rip), %eax
	addl	%esi, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L3:
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	movl	i(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, i(%rip)
.L2:
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L7
	movl	i(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1085507584
	.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.
val
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 259056
d:
	.zero	259056
	.globl	A
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%ld"
	.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)
	leaq	-4(%rbp), %rax
	leaq	A(%rip), %rdx
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %edx
	movl	A(%rip), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	$1, (%rdx,%rax)
	jmp	.L2
.L7:
	movl	x(%rip), %eax
	movl	A(%rip), %edx
	subl	%edx, %eax
	movl	%eax, x(%rip)
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, j(%rip)
	jmp	.L3
.L6:
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	j(%rip), %edx
	movl	x(%rip), %eax
	cmpl	%eax, %edx
	setl	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L5
	movl	i(%rip), %edx
	movl	j(%rip), %eax
	addl	%edx, %eax
	movl	x(%rip), %edx
	subl	%edx, %eax
.L5:
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	i(%rip), %eax
	movl	$5000, %esi
	subl	%eax, %esi
	movl	j(%rip), %eax
	addl	%esi, %eax
	addq	%rdx, %rcx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L3:
	movl	j(%rip), %eax
	leal	-1(%rax), %edx
	movl	%edx, j(%rip)
	testl	%eax, %eax
	jne	.L6
	movl	i(%rip), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC1(%rip), %xmm0
	subsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %eax
	movl	%eax, i(%rip)
.L2:
	leaq	x(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L7
	movl	i(%rip), %edx
	movl	-4(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	d(%rip), %rax
	movq	(%rdx,%rax), %rax
	subq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1085507584
	.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:
