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

```c
#include <stdio.h>
#include <stdlib.h>

int asc(const void *a, const void *b) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,d[200000],m,t[200000],i,j = 0;

    scanf("%d",&n);
    for (i = 0; i < n; i++)
    {
        scanf("%d",&d[i]);
    }
    scanf("%d",&m);
    for (i = 0; i < m; i++)
    {
        scanf("%d",&t[i]);
    }

    qsort(d,n,sizeof(int),asc);
    qsort(t,m,sizeof(int),asc);

    for (i = 0; i < n; i++)
    {
        if(d[i] == t[j])
        {
            j++;
            if(j == m)break;
        }
    }

    printf("%s\n",i == n ? "NO" : "YES");
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2592, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1600020(%rbp)
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L4:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L5
	leaq	-1600028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L6
.L7:
	leaq	-800016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L6:
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L7
	movl	-1600032(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L8
.L11:
	movl	-1600024(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %edx
	movl	-1600020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L9
	addl	$1, -1600020(%rbp)
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600020(%rbp)
	je	.L16
.L9:
	addl	$1, -1600024(%rbp)
.L8:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L11
	jmp	.L10
.L16:
	nop
.L10:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2592, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC2(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L4:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	800016(%rsp), %r14
	movq	%r14, %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 12(%rsp)
	jg	.L7
.L6:
	movslq	8(%rsp), %rsi
	leaq	asc(%rip), %r13
	movl	$4, %edx
	movq	%r12, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	12(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L13
	movl	12(%rsp), %edi
	leal	1(%r8), %esi
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %ecx
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L8
.L11:
	movslq	%edx, %rcx
	movl	800016(%rsp,%rcx,4), %ebx
	cmpl	%ebx, -4(%r12,%rax,4)
	jne	.L9
	addl	$1, %edx
	cmpl	%edx, %edi
	jne	.L9
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L13:
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%ecx, %r8d
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L10:
	call	puts@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$1600032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597488
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2592, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC2(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L5
.L4:
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leaq	800016(%rsp), %r14
	movq	%r14, %rbp
	testl	%eax, %eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 12(%rsp)
	jg	.L7
.L6:
	movslq	8(%rsp), %rsi
	leaq	asc(%rip), %r13
	movl	$4, %edx
	movq	%r12, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	12(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r14, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L13
	movl	12(%rsp), %edi
	leal	1(%r8), %esi
	movl	$1, %eax
	xorl	%edx, %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %ecx
	addq	$1, %rax
	cmpq	%rax, %rsi
	je	.L8
.L11:
	movslq	%edx, %rcx
	movl	800016(%rsp,%rcx,4), %ebx
	cmpl	%ebx, -4(%r12,%rax,4)
	jne	.L9
	addl	$1, %edx
	cmpl	%edx, %edi
	jne	.L9
	leaq	.LC1(%rip), %rdi
	jmp	.L10
.L13:
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%ecx, %r8d
	leaq	.LC1(%rip), %rdi
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
.L10:
	call	puts@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$1600032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:

#include <stdio.h>
#include <stdlib.h>

int asc(const void *a, const void *b) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,d[200000],m,t[200000],i,j = 0;

    scanf("%d",&n);
    for (i = 0; i < n; i++)
    {
        scanf("%d",&d[i]);
    }
    scanf("%d",&m);
    for (i = 0; i < m; i++)
    {
        scanf("%d",&t[i]);
    }

    qsort(d,n,sizeof(int),asc);
    qsort(t,m,sizeof(int),asc);

    for (i = 0; i < n; i++)
    {
        if(d[i] == t[j])
        {
            j++;
            if(j == m)break;
        }
    }

    printf("%s\n",i == n ? "NO" : "YES");
}
1
13
5
100 100 100 100 100
 15
1 2 2 3 4 3 4 4 8 6 5 3 5 5 7
9
7 4 3 2 1 2 3 8 5
 15
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
9
7 4 3 2 1 2 3 4 5
 7
100 200 500 700 238 1600 2000
6
100 200 500 700 1600 1600
 1
13
5
100 000 100 100 100
 15
1 2 2 3 3 3 4 4 4 4 5 3 5 5 5
9
7 4 3 2 1 2 3 4 5
 7
100 200 500 700 238 1600 2000
6
100 200 500 337 1600 1600
 1
18
5
100 000 100 100 100
 15
1 2 2 3 4 3 4 4 4 4 5 3 5 5 5
9
7 4 3 2 1 2 3 4 5
 7
100 200 500 700 238 1600 2000
6
100 200 500 337 499 1600

NO
 YES
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO

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

```c
#include <stdio.h>
#include <stdlib.h>

int asc(const void *a, const void *b) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,d[200000],m,t[200000],i,j = 0;

    scanf("%d",&n);
    for (i = 0; i < n; i++)
    {
        scanf("%d",&d[i]);
    }
    scanf("%d",&m);
    for (i = 0; i < m; i++)
    {
        scanf("%d",&t[i]);
    }

    qsort(d,n,sizeof(int),asc);
    qsort(t,m,sizeof(int),asc);

    for (i = 0; i < n; i++)
    {
        if(d[i] == t[j])
        {
            j++;
            if(j == m)break;
        }
    }

    printf("%s\n",i == n ? "NO" : "YES");
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2592, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1600020(%rbp)
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L4:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L5
	leaq	-1600028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L6
.L7:
	leaq	-800016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L6:
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L7
	movl	-1600032(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L8
.L11:
	movl	-1600024(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %edx
	movl	-1600020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L9
	addl	$1, -1600020(%rbp)
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600020(%rbp)
	je	.L16
.L9:
	addl	$1, -1600024(%rbp)
.L8:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L11
	jmp	.L10
.L16:
	nop
.L10:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	asc
	.type	asc, @function
asc:
.LFB6:
	.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2592, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1600020(%rbp)
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L4:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L5
	leaq	-1600028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L6
.L7:
	leaq	-800016(%rbp), %rdx
	movl	-1600024(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600024(%rbp)
.L6:
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L7
	movl	-1600032(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1600028(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1600024(%rbp)
	jmp	.L8
.L11:
	movl	-1600024(%rbp), %eax
	cltq
	movl	-1600016(%rbp,%rax,4), %edx
	movl	-1600020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L9
	addl	$1, -1600020(%rbp)
	movl	-1600028(%rbp), %eax
	cmpl	%eax, -1600020(%rbp)
	je	.L16
.L9:
	addl	$1, -1600024(%rbp)
.L8:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jl	.L11
	jmp	.L10
.L16:
	nop
.L10:
	movl	-1600032(%rbp), %eax
	cmpl	%eax, -1600024(%rbp)
	jne	.L12
	leaq	.LC1(%rip), %rax
	jmp	.L13
.L12:
	leaq	.LC2(%rip), %rax
.L13:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
