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

```c
A[10000],B[10000];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;i++)scanf("%d",A+i);
qsort(A,n,4,z);
for(i=0;i<n;i++)scanf("%d",B+i);
for(i=0;i<n;i++){for(j=0;j<n;j++)if(B[j])A[i]--,B[j]--;if(A[i])i=n;}
}exit(0);}```

Assembly Code:

```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	B(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L13
	movq	%r15, %r13
	movl	$0, %r14d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r14d, %esi
	jg	.L5
.L15:
	leaq	z(%rip), %rcx
	movl	$4, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L17
	leaq	B(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r14d, %r9d
	jg	.L7
	testl	%r9d, %r9d
	jle	.L17
	leal	-1(%r9), %eax
	leaq	4+B(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	(%rdi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%r14d, %rdi
	movq	%rbp, %rax
	movl	(%r15,%rdi,4), %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	.L8
	subl	$1, %ecx
	subl	$1, %edx
	movl	%ecx, (%r15,%rdi,4)
	movl	%edx, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L9
	testl	%ecx, %ecx
	jne	.L10
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r14d, %r9d
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r9), %r14d
	jmp	.L6
.L13:
	xorl	%edi, %edi
	call	exit@PLT
.L17:
	xorl	%r14d, %r14d
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 40000
B:
	.zero	40000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 40000
A:
	.zero	40000
	.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
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	B(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L13
	movq	%r15, %r13
	movl	$0, %r14d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r14d, %esi
	jg	.L5
.L15:
	leaq	z(%rip), %rcx
	movl	$4, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L17
	leaq	B(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r14d, %r9d
	jg	.L7
	testl	%r9d, %r9d
	jle	.L17
	leal	-1(%r9), %eax
	leaq	4+B(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	(%rdi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%r14d, %rdi
	movq	%rbp, %rax
	movl	(%r15,%rdi,4), %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	.L8
	subl	$1, %ecx
	subl	$1, %edx
	movl	%ecx, (%r15,%rdi,4)
	movl	%edx, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L9
	testl	%ecx, %ecx
	jne	.L10
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r14d, %r9d
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r9), %r14d
	jmp	.L6
.L13:
	xorl	%edi, %edi
	call	exit@PLT
.L17:
	xorl	%r14d, %r14d
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 40000
B:
	.zero	40000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 40000
A:
	.zero	40000
	.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
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	B(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L13
	movq	%r15, %r13
	movl	$0, %r14d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r14d, %esi
	jg	.L5
.L15:
	leaq	z(%rip), %rcx
	movl	$4, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L17
	leaq	B(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r14d, %r9d
	jg	.L7
	testl	%r9d, %r9d
	jle	.L17
	leal	-1(%r9), %eax
	leaq	4+B(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	(%rdi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%r14d, %rdi
	movq	%rbp, %rax
	movl	(%r15,%rdi,4), %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	.L8
	subl	$1, %ecx
	subl	$1, %edx
	movl	%ecx, (%r15,%rdi,4)
	movl	%edx, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L9
	testl	%ecx, %ecx
	jne	.L10
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r14d, %r9d
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r9), %r14d
	jmp	.L6
.L13:
	xorl	%edi, %edi
	call	exit@PLT
.L17:
	xorl	%r14d, %r14d
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 40000
B:
	.zero	40000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 40000
A:
	.zero	40000
	.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
A[10000],B[10000];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;i++)scanf("%d",A+i);
qsort(A,n,4,z);
for(i=0;i<n;i++)scanf("%d",B+i);
for(i=0;i<n;i++){for(j=0;j<n;j++)if(B[j])A[i]--,B[j]--;if(A[i])i=n;}
}exit(0);}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
A[10000],B[10000];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;i++)scanf("%d",A+i);
qsort(A,n,4,z);
for(i=0;i<n;i++)scanf("%d",B+i);
for(i=0;i<n;i++){for(j=0;j<n;j++)if(B[j])A[i]--,B[j]--;if(A[i])i=n;}
}exit(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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
A[10000],B[10000];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;i++)scanf("%d",A+i);
qsort(A,n,4,z);
for(i=0;i<n;i++)scanf("%d",B+i);
for(i=0;i<n;i++){for(j=0;j<n;j++)if(B[j])A[i]--,B[j]--;if(A[i])i=n;}
}exit(0);}```

Assembly Code:

```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	B(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L13
	movq	%r15, %r13
	movl	$0, %r14d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r14d, %esi
	jg	.L5
.L15:
	leaq	z(%rip), %rcx
	movl	$4, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L17
	leaq	B(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r14d, %r9d
	jg	.L7
	testl	%r9d, %r9d
	jle	.L17
	leal	-1(%r9), %eax
	leaq	4+B(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	(%rdi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%r14d, %rdi
	movq	%rbp, %rax
	movl	(%r15,%rdi,4), %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	.L8
	subl	$1, %ecx
	subl	$1, %edx
	movl	%ecx, (%r15,%rdi,4)
	movl	%edx, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L9
	testl	%ecx, %ecx
	jne	.L10
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r14d, %r9d
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r9), %r14d
	jmp	.L6
.L13:
	xorl	%edi, %edi
	call	exit@PLT
.L17:
	xorl	%r14d, %r14d
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 40000
B:
	.zero	40000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 40000
A:
	.zero	40000
	.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
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	B(%rip), %rbp
	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), %r12
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	je	.L13
	movq	%r15, %r13
	movl	$0, %r14d
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r14d, %esi
	jg	.L5
.L15:
	leaq	z(%rip), %rcx
	movl	$4, %edx
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	12(%rsp), %r9d
	testl	%r9d, %r9d
	jle	.L17
	leaq	B(%rip), %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	scanf@PLT
	movl	12(%rsp), %r9d
	addq	$4, %r13
	cmpl	%r14d, %r9d
	jg	.L7
	testl	%r9d, %r9d
	jle	.L17
	leal	-1(%r9), %eax
	leaq	4+B(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	(%rdi,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movslq	%r14d, %rdi
	movq	%rbp, %rax
	movl	(%r15,%rdi,4), %ecx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rax), %edx
	testl	%edx, %edx
	je	.L8
	subl	$1, %ecx
	subl	$1, %edx
	movl	%ecx, (%r15,%rdi,4)
	movl	%edx, (%rax)
.L8:
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	.L9
	testl	%ecx, %ecx
	jne	.L10
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	cmpl	%r14d, %r9d
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %rax
	cmovge	%rax, %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	leal	1(%r9), %r14d
	jmp	.L6
.L13:
	xorl	%edi, %edi
	call	exit@PLT
.L17:
	xorl	%r14d, %r14d
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 40000
B:
	.zero	40000
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 40000
A:
	.zero	40000
	.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:
```