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

```c
A[20000];z(int*a,int*b){return*b-*a;}
main(n,i,j){for(;scanf("%d",&n),n;puts(i>n?"No":"Yes")){
for(i=0;i<n*2;i++)scanf("%d",A+i);
for(i=qsort(A,n,4,z);i<n;i=A[i]?n+1:i+1)for(j=0;j<n;j++)if(A[j+n])A[i]--,A[j+n]--;
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 80000
A:
	.zero	80000
	.text
	.globl	z
	.type	z, @function
z:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	z, .-z
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L4
.L16:
	movl	$0, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -8(%rbp)
.L5:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	leaq	z(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	A(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	%eax, -8(%rbp)
	jmp	.L7
.L13:
	movl	$0, -12(%rbp)
	jmp	.L8
.L10:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	-8(%rbp), %eax
	addl	$1, %eax
.L12:
	movl	%eax, -8(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L14
	leaq	.LC1(%rip), %rax
	jmp	.L15
.L14:
	leaq	.LC2(%rip), %rax
.L15:
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	z
	.type	z, @function
z:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	z, .-z
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	A(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	z(%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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L14
	movq	%r15, %r14
	movl	$0, %r12d
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	leal	(%rsi,%rsi), %eax
	cmpl	%r12d, %eax
	jg	.L5
.L16:
	movq	%r15, %rdi
	movq	%r13, %rcx
	movl	$4, %edx
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %edi
	movl	%eax, %r12d
	cmpl	%eax, %edi
	jle	.L6
	movslq	%edi, %rdx
	leal	-1(%rdi), %eax
	leaq	4+A(%rip), %rcx
	addq	%rdx, %rax
	leaq	(%r15,%rdx,4), %r8
	leaq	(%rcx,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r8, %rax
	movslq	%r12d, %rdx
	testl	%edi, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	.L8
	subl	$1, (%r15,%rdx,4)
	subl	$1, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L9
.L12:
	movl	(%r15,%rdx,4), %eax
	addl	$1, %r12d
	testl	%eax, %eax
	je	.L11
	leal	1(%rdi), %r12d
.L11:
	cmpl	%r12d, %edi
	jg	.L7
.L6:
	cmpl	%r12d, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L14:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 80000
A:
	.zero	80000
	.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
	.p2align 4
	.globl	z
	.type	z, @function
z:
.LFB0:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE0:
	.size	z, .-z
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No"
.LC1:
	.string	"Yes"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	A(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	z(%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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L14
	movq	%r15, %r14
	movl	$0, %r12d
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	leal	(%rsi,%rsi), %eax
	cmpl	%r12d, %eax
	jg	.L5
.L16:
	movq	%r15, %rdi
	movq	%r13, %rcx
	movl	$4, %edx
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %edi
	movl	%eax, %r12d
	cmpl	%eax, %edi
	jle	.L6
	movslq	%edi, %rdx
	leal	-1(%rdi), %eax
	leaq	4+A(%rip), %rcx
	addq	%rdx, %rax
	leaq	(%r15,%rdx,4), %r8
	leaq	(%rcx,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r8, %rax
	movslq	%r12d, %rdx
	testl	%edi, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	.L8
	subl	$1, (%r15,%rdx,4)
	subl	$1, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rsi, %rax
	jne	.L9
.L12:
	movl	(%r15,%rdx,4), %eax
	addl	$1, %r12d
	testl	%eax, %eax
	je	.L11
	leal	1(%rdi), %r12d
.L11:
	cmpl	%r12d, %edi
	jg	.L7
.L6:
	cmpl	%r12d, %edi
	leaq	.LC0(%rip), %rax
	leaq	.LC1(%rip), %rdi
	cmovl	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L14:
	xorl	%edi, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 80000
A:
	.zero	80000
	.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:

A[20000];z(int*a,int*b){return*b-*a;}
main(n,i,j){for(;scanf("%d",&n),n;puts(i>n?"No":"Yes")){
for(i=0;i<n*2;i++)scanf("%d",A+i);
for(i=qsort(A,n,4,z);i<n;i=A[i]?n+1:i+1)for(j=0;j<n;j++)if(A[j+n])A[i]--,A[j+n]--;
}exit(0);}
2
1 2
2 1
3
0 1 2
2 1 2
10
0 1 1 2 5 5 5 8 8 9
0 1 3 3 3 6 6 6 7 9
0

Yes
No
Yes

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

```c
A[20000];z(int*a,int*b){return*b-*a;}
main(n,i,j){for(;scanf("%d",&n),n;puts(i>n?"No":"Yes")){
for(i=0;i<n*2;i++)scanf("%d",A+i);
for(i=qsort(A,n,4,z);i<n;i=A[i]?n+1:i+1)for(j=0;j<n;j++)if(A[j+n])A[i]--,A[j+n]--;
}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 80000
A:
	.zero	80000
	.text
	.globl	z
	.type	z, @function
z:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	z, .-z
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L4
.L16:
	movl	$0, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -8(%rbp)
.L5:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	leaq	z(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	A(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	%eax, -8(%rbp)
	jmp	.L7
.L13:
	movl	$0, -12(%rbp)
	jmp	.L8
.L10:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	-8(%rbp), %eax
	addl	$1, %eax
.L12:
	movl	%eax, -8(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L14
	leaq	.LC1(%rip), %rax
	jmp	.L15
.L14:
	leaq	.LC2(%rip), %rax
.L15:
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 80000
A:
	.zero	80000
	.text
	.globl	z
	.type	z, @function
z:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	z, .-z
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	jmp	.L4
.L16:
	movl	$0, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -8(%rbp)
.L5:
	movl	-4(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -8(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	leaq	z(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	%eax, %esi
	leaq	A(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	qsort@PLT
	movl	%eax, -8(%rbp)
	jmp	.L7
.L13:
	movl	$0, -12(%rbp)
	jmp	.L8
.L10:
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L9
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	-1(%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	-4(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L11
	movl	-4(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	-8(%rbp), %eax
	addl	$1, %eax
.L12:
	movl	%eax, -8(%rbp)
.L7:
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	cmpl	%eax, -8(%rbp)
	jle	.L14
	leaq	.LC1(%rip), %rax
	jmp	.L15
.L14:
	leaq	.LC2(%rip), %rax
.L15:
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L16
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.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:
