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

```c
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int cmpAsc(const void* a, const void* b){
    int x = *(int*)a, y = *(int*)b;
    if(x > y){
        return 1;
    }
    if(x < y){
        return -1;
    }
    return 0;
}

int main(){
    int n, ans = 0;
    scanf("%d", &n);
    int a[n];
    rep(i, 0, n){
        scanf("%d", &a[i]);
    }
    qsort(a, n, sizeof(int), cmpAsc);
    int x=0;
    while(x<n){
        int y=x+1;
        while(y<n){
            if(a[y] != a[x]){
                break;
            }
            y++;
        }
        if((y - x) % 2){
            ans++;
        }
        x = y;
    }
    printf("%d", ans);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L7
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L30
.L7:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L8:
	movq	%rsp, %rbx
	testl	%eax, %eax
	jle	.L9
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L10
	movslq	%eax, %rsi
.L9:
	leaq	cmpAsc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L19
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	leal	1(%rdi), %eax
	cmpl	%eax, %ecx
	jle	.L12
	movslq	%edi, %rdx
	movl	(%rbx,%rdx,4), %esi
	leaq	(%rbx,%rdx,4), %rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%eax, %ecx
	je	.L12
.L14:
	cmpl	%esi, 4(%rdx)
	je	.L32
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%eax, %edi
	andl	$1, %edx
	jne	.L17
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%eax, %edx
	subl	%edi, %edx
	andl	$1, %edx
	je	.L11
.L17:
	addl	$1, %r8d
	movl	%eax, %edi
	jmp	.L15
.L31:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L8
.L19:
	xorl	%r8d, %r8d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L7
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L30
.L7:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L8:
	movq	%rsp, %rbx
	testl	%eax, %eax
	jle	.L9
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L10
	movslq	%eax, %rsi
.L9:
	leaq	cmpAsc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L19
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	leal	1(%rdi), %eax
	cmpl	%eax, %ecx
	jle	.L12
	movslq	%edi, %rdx
	movl	(%rbx,%rdx,4), %esi
	leaq	(%rbx,%rdx,4), %rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%eax, %ecx
	je	.L12
.L14:
	cmpl	%esi, 4(%rdx)
	je	.L32
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%eax, %edi
	andl	$1, %edx
	jne	.L17
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%eax, %edx
	subl	%edi, %edx
	andl	$1, %edx
	je	.L11
.L17:
	addl	$1, %r8d
	movl	%eax, %edi
	jmp	.L15
.L31:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L8
.L19:
	xorl	%r8d, %r8d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L7
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L30
.L7:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L8:
	movq	%rsp, %rbx
	testl	%eax, %eax
	jle	.L9
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L10
	movslq	%eax, %rsi
.L9:
	leaq	cmpAsc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L19
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	leal	1(%rdi), %eax
	cmpl	%eax, %ecx
	jle	.L12
	movslq	%edi, %rdx
	movl	(%rbx,%rdx,4), %esi
	leaq	(%rbx,%rdx,4), %rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%eax, %ecx
	je	.L12
.L14:
	cmpl	%esi, 4(%rdx)
	je	.L32
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%eax, %edi
	andl	$1, %edx
	jne	.L17
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%eax, %edx
	subl	%edi, %edx
	andl	$1, %edx
	je	.L11
.L17:
	addl	$1, %r8d
	movl	%eax, %edi
	jmp	.L15
.L31:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L8
.L19:
	xorl	%r8d, %r8d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:
```
```c
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int cmpAsc(const void* a, const void* b){
    int x = *(int*)a, y = *(int*)b;
    if(x > y){
        return 1;
    }
    if(x < y){
        return -1;
    }
    return 0;
}

int main(){
    int n, ans = 0;
    scanf("%d", &n);
    int a[n];
    rep(i, 0, n){
        scanf("%d", &a[i]);
    }
    qsort(a, n, sizeof(int), cmpAsc);
    int x=0;
    while(x<n){
        int y=x+1;
        while(y<n){
            if(a[y] != a[x]){
                break;
            }
            y++;
        }
        if((y - x) % 2){
            ans++;
        }
        x = y;
    }
    printf("%d", ans);

    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int cmpAsc(const void* a, const void* b){
    int x = *(int*)a, y = *(int*)b;
    if(x > y){
        return 1;
    }
    if(x < y){
        return -1;
    }
    return 0;
}

int main(){
    int n, ans = 0;
    scanf("%d", &n);
    int a[n];
    rep(i, 0, n){
        scanf("%d", &a[i]);
    }
    qsort(a, n, sizeof(int), cmpAsc);
    int x=0;
    while(x<n){
        int y=x+1;
        while(y<n){
            if(a[y] != a[x]){
                break;
            }
            y++;
        }
        if((y - x) % 2){
            ans++;
        }
        x = y;
    }
    printf("%d", ans);

    return 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:

3
6
2
7
 4
3
5
5
2
 6
12
22
18
22
18
12
 4
3
5
9
1
 6
4
47
28
35
18
12
 3
0
0
10
 3
6
2
8
 4
3
5
5
1
 6
12
22
18
35
18
12
 3
3
2
8

3 2 0 4 6 1 3 2 2 3
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int cmpAsc(const void* a, const void* b){
    int x = *(int*)a, y = *(int*)b;
    if(x > y){
        return 1;
    }
    if(x < y){
        return -1;
    }
    return 0;
}

int main(){
    int n, ans = 0;
    scanf("%d", &n);
    int a[n];
    rep(i, 0, n){
        scanf("%d", &a[i]);
    }
    qsort(a, n, sizeof(int), cmpAsc);
    int x=0;
    while(x<n){
        int y=x+1;
        while(y<n){
            if(a[y] != a[x]){
                break;
            }
            y++;
        }
        if((y - x) % 2){
            ans++;
        }
        x = y;
    }
    printf("%d", ans);

    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L7
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L30
.L7:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L8:
	movq	%rsp, %rbx
	testl	%eax, %eax
	jle	.L9
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L10
	movslq	%eax, %rsi
.L9:
	leaq	cmpAsc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L19
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	leal	1(%rdi), %eax
	cmpl	%eax, %ecx
	jle	.L12
	movslq	%edi, %rdx
	movl	(%rbx,%rdx,4), %esi
	leaq	(%rbx,%rdx,4), %rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%eax, %ecx
	je	.L12
.L14:
	cmpl	%esi, 4(%rdx)
	je	.L32
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%eax, %edi
	andl	$1, %edx
	jne	.L17
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%eax, %edx
	subl	%edi, %edx
	andl	$1, %edx
	je	.L11
.L17:
	addl	$1, %r8d
	movl	%eax, %edi
	jmp	.L15
.L31:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L8
.L19:
	xorl	%r8d, %r8d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jg	.L1
	setl	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE51:
	.size	cmpAsc, .-cmpAsc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	.cfi_offset 14, -24
	leaq	.LC0(%rip), %r14
	pushq	%r13
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-44(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L7
.L30:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L30
.L7:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L31
.L8:
	movq	%rsp, %rbx
	testl	%eax, %eax
	jle	.L9
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L10
	movslq	%eax, %rsi
.L9:
	leaq	cmpAsc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	.L19
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L16:
	leal	1(%rdi), %eax
	cmpl	%eax, %ecx
	jle	.L12
	movslq	%edi, %rdx
	movl	(%rbx,%rdx,4), %esi
	leaq	(%rbx,%rdx,4), %rdx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L32:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%eax, %ecx
	je	.L12
.L14:
	cmpl	%esi, 4(%rdx)
	je	.L32
	movl	%eax, %edx
	subl	%edi, %edx
	movl	%eax, %edi
	andl	$1, %edx
	jne	.L17
.L15:
	cmpl	%eax, %ecx
	jg	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L33
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%eax, %edx
	subl	%edi, %edx
	andl	$1, %edx
	je	.L11
.L17:
	addl	$1, %r8d
	movl	%eax, %edi
	jmp	.L15
.L31:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L8
.L19:
	xorl	%r8d, %r8d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:
```