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<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(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 mid(int a, int b, int c){
    if((b<=a&&a<=c) || (c<=a&&a<=b)){
        return a;
    }
    if((a<=b&&b<=c) || (c<=b&&b<=a)){
        return b;
    }
    return c;
}

int max(int a, int b, int c){
    if(b<=a&&c<=a){
        return a;
    }
    if(a<=b&&c<=b){
        return b;
    }
    return c;
}

int min(int a, int b, int c){
    if(a<=b&&a<=c){
        return a;
    }
    if(b<=a&&b<=c){
        return b;
    }
    return c;
}

int main(){
    int n;
    scanf("%d", &n);
    int a[n], t[100001] = {0};
    rep(i, 0, n){
        scanf("%d", &a[i]);
        t[a[i]]++;
    }
    int buf = 0;
    rep(i, 1, 100001){
        if(t[i] > 1){
            buf += t[i] - 1;
        }
    }
    buf += buf%2;
    printf("%d", n-buf);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.globl	mid
	.type	mid, @function
mid:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L7
.L6:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L8
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L8
.L7:
	movl	-4(%rbp), %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L10
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L11
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L12
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L12
.L11:
	movl	-8(%rbp), %eax
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mid, .-mid
	.globl	max
	.type	max, @function
max:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-4(%rbp), %eax
	jmp	.L15
.L14:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-8(%rbp), %eax
	jmp	.L15
.L16:
	movl	-12(%rbp), %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	jmp	.L19
.L18:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2744, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400096(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L22:
	cmpq	%rdx, %rsp
	je	.L23
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L22
.L23:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L24
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L24:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400092(%rbp)
	jmp	.L25
.L26:
	movl	-400092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-400072(%rbp), %rax
	movl	-400092(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rdx
	movl	-400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400064(%rbp,%rax,4)
	addl	$1, -400092(%rbp)
.L25:
	movl	-400096(%rbp), %eax
	cmpl	%eax, -400092(%rbp)
	jl	.L26
	movl	$0, -400088(%rbp)
	movl	$1, -400084(%rbp)
	jmp	.L27
.L29:
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L28
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	subl	$1, %eax
	addl	%eax, -400088(%rbp)
.L28:
	addl	$1, -400084(%rbp)
.L27:
	cmpl	$100000, -400084(%rbp)
	jle	.L29
	movl	-400088(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -400088(%rbp)
	movl	-400096(%rbp), %eax
	subl	-400088(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	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
	.p2align 4
	.globl	mid
	.type	mid, @function
mid:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	setle	%cl
	cmpl	%edx, %edi
	jg	.L13
	testb	%cl, %cl
	je	.L13
.L6:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%eax, %esi
	setge	%dil
	cmpl	%edx, %eax
	jl	.L14
	testb	%dil, %dil
	jne	.L6
.L14:
	cmpl	%edx, %esi
	jg	.L29
	movl	%esi, %eax
	testb	%dil, %dil
	jne	.L6
	cmpl	%edx, %esi
	jge	.L29
.L16:
	movl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%esi, %eax
	testb	%cl, %cl
	je	.L16
	ret
	.cfi_endproc
.LFE52:
	.size	mid, .-mid
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB53:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	movl	%edx, %ecx
	movl	%edi, %eax
	cmovge	%esi, %ecx
	cmpl	%ecx, %edi
	jge	.L31
	cmpl	%edx, %edi
	cmovl	%edx, %eax
	cmpl	%eax, %esi
	movl	%esi, %eax
	cmovl	%edx, %eax
.L31:
	ret
	.cfi_endproc
.LFE53:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB54:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	movl	%edx, %ecx
	movl	%edi, %eax
	cmovle	%esi, %ecx
	cmpl	%ecx, %edi
	jle	.L35
	cmpl	%edx, %edi
	cmovg	%edx, %eax
	cmpl	%eax, %esi
	movl	%esi, %eax
	cmovg	%edx, %eax
.L35:
	ret
	.cfi_endproc
.LFE54:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2720, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	leaq	-400052(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-400052(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r14
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L41
.L53:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L53
.L41:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L54
.L42:
	xorl	%esi, %esi
	leaq	-400048(%rbp), %rdi
	movl	$400004, %edx
	movq	%rsp, %rbx
	call	memset@PLT
	testl	%r14d, %r14d
	jle	.L43
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	-400052(%rbp), %r14d
	addq	$4, %rbx
	addl	$1, -400048(%rbp,%rax,4)
	cmpl	%r12d, %r14d
	jg	.L44
.L43:
	movdqa	.LC1(%rip), %xmm4
	leaq	-44(%rbp), %rdx
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm3, %xmm3
	leaq	-400044(%rbp), %rax
	.p2align 4,,10
	.p2align 3
.L45:
	movdqu	(%rax), %xmm0
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm0
	paddd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L45
	movdqa	%xmm1, %xmm0
	movl	%r14d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	$1, %eax
	andl	$-2, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L55
	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
.L54:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L42
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	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
	.p2align 4
	.globl	mid
	.type	mid, @function
mid:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	setle	%cl
	cmpl	%edx, %edi
	jg	.L13
	testb	%cl, %cl
	je	.L13
.L6:
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%eax, %esi
	setge	%dil
	cmpl	%edx, %eax
	jl	.L14
	testb	%dil, %dil
	jne	.L6
.L14:
	cmpl	%edx, %esi
	jg	.L29
	movl	%esi, %eax
	testb	%dil, %dil
	jne	.L6
	cmpl	%edx, %esi
	jge	.L29
.L16:
	movl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	movl	%esi, %eax
	testb	%cl, %cl
	je	.L16
	ret
	.cfi_endproc
.LFE52:
	.size	mid, .-mid
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB53:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	movl	%edx, %ecx
	movl	%edi, %eax
	cmovge	%esi, %ecx
	cmpl	%ecx, %edi
	jge	.L31
	cmpl	%edx, %edi
	cmovl	%edx, %eax
	cmpl	%eax, %esi
	movl	%esi, %eax
	cmovl	%edx, %eax
.L31:
	ret
	.cfi_endproc
.LFE53:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB54:
	.cfi_startproc
	endbr64
	cmpl	%edx, %esi
	movl	%edx, %ecx
	movl	%edi, %eax
	cmovle	%esi, %ecx
	cmpl	%ecx, %edi
	jle	.L35
	cmpl	%edx, %edi
	cmovg	%edx, %eax
	cmpl	%eax, %esi
	movl	%esi, %eax
	cmovg	%edx, %eax
.L35:
	ret
	.cfi_endproc
.LFE54:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2720, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	leaq	-400052(%rbp), %rsi
	call	__isoc99_scanf@PLT
	movslq	-400052(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r14
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L41
.L53:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L53
.L41:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L54
.L42:
	xorl	%esi, %esi
	leaq	-400048(%rbp), %rdi
	movl	$400004, %edx
	movq	%rsp, %rbx
	call	memset@PLT
	testl	%r14d, %r14d
	jle	.L43
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	movl	-400052(%rbp), %r14d
	addq	$4, %rbx
	addl	$1, -400048(%rbp,%rax,4)
	cmpl	%r12d, %r14d
	jg	.L44
.L43:
	movdqa	.LC1(%rip), %xmm4
	leaq	-44(%rbp), %rdx
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm3, %xmm3
	leaq	-400044(%rbp), %rax
	.p2align 4,,10
	.p2align 3
.L45:
	movdqu	(%rax), %xmm0
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm0
	paddd	%xmm3, %xmm2
	pand	%xmm2, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L45
	movdqa	%xmm1, %xmm0
	movl	%r14d, %edx
	movq	%r13, %rsi
	movl	$1, %edi
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	addl	$1, %eax
	andl	$-2, %eax
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L55
	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
.L54:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L42
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(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 mid(int a, int b, int c){
    if((b<=a&&a<=c) || (c<=a&&a<=b)){
        return a;
    }
    if((a<=b&&b<=c) || (c<=b&&b<=a)){
        return b;
    }
    return c;
}

int max(int a, int b, int c){
    if(b<=a&&c<=a){
        return a;
    }
    if(a<=b&&c<=b){
        return b;
    }
    return c;
}

int min(int a, int b, int c){
    if(a<=b&&a<=c){
        return a;
    }
    if(b<=a&&b<=c){
        return b;
    }
    return c;
}

int main(){
    int n;
    scanf("%d", &n);
    int a[n], t[100001] = {0};
    rep(i, 0, n){
        scanf("%d", &a[i]);
        t[a[i]]++;
    }
    int buf = 0;
    rep(i, 1, 100001){
        if(t[i] > 1){
            buf += t[i] - 1;
        }
    }
    buf += buf%2;
    printf("%d", n-buf);

    return 0;
}
5
1 2 0 3 7
 15
1 3 5 2 1 3 2 0 8 6 2 6 11 1 1

5 7
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<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(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 mid(int a, int b, int c){
    if((b<=a&&a<=c) || (c<=a&&a<=b)){
        return a;
    }
    if((a<=b&&b<=c) || (c<=b&&b<=a)){
        return b;
    }
    return c;
}

int max(int a, int b, int c){
    if(b<=a&&c<=a){
        return a;
    }
    if(a<=b&&c<=b){
        return b;
    }
    return c;
}

int min(int a, int b, int c){
    if(a<=b&&a<=c){
        return a;
    }
    if(b<=a&&b<=c){
        return b;
    }
    return c;
}

int main(){
    int n;
    scanf("%d", &n);
    int a[n], t[100001] = {0};
    rep(i, 0, n){
        scanf("%d", &a[i]);
        t[a[i]]++;
    }
    int buf = 0;
    rep(i, 1, 100001){
        if(t[i] > 1){
            buf += t[i] - 1;
        }
    }
    buf += buf%2;
    printf("%d", n-buf);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.globl	mid
	.type	mid, @function
mid:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L7
.L6:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L8
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L8
.L7:
	movl	-4(%rbp), %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L10
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L11
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L12
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L12
.L11:
	movl	-8(%rbp), %eax
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mid, .-mid
	.globl	max
	.type	max, @function
max:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-4(%rbp), %eax
	jmp	.L15
.L14:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-8(%rbp), %eax
	jmp	.L15
.L16:
	movl	-12(%rbp), %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	jmp	.L19
.L18:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2744, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400096(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L22:
	cmpq	%rdx, %rsp
	je	.L23
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L22
.L23:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L24
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L24:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400092(%rbp)
	jmp	.L25
.L26:
	movl	-400092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-400072(%rbp), %rax
	movl	-400092(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rdx
	movl	-400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400064(%rbp,%rax,4)
	addl	$1, -400092(%rbp)
.L25:
	movl	-400096(%rbp), %eax
	cmpl	%eax, -400092(%rbp)
	jl	.L26
	movl	$0, -400088(%rbp)
	movl	$1, -400084(%rbp)
	jmp	.L27
.L29:
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L28
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	subl	$1, %eax
	addl	%eax, -400088(%rbp)
.L28:
	addl	$1, -400084(%rbp)
.L27:
	cmpl	$100000, -400084(%rbp)
	jle	.L29
	movl	-400088(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -400088(%rbp)
	movl	-400096(%rbp), %eax
	subl	-400088(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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.
val
	.file	"temp.c"
	.text
	.globl	cmpAsc
	.type	cmpAsc, @function
cmpAsc:
.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, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jge	.L4
	movl	$-1, %eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpAsc, .-cmpAsc
	.globl	mid
	.type	mid, @function
mid:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L6
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L7
.L6:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L8
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L8
.L7:
	movl	-4(%rbp), %eax
	jmp	.L9
.L8:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L10
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jle	.L11
.L10:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L12
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L12
.L11:
	movl	-8(%rbp), %eax
	jmp	.L9
.L12:
	movl	-12(%rbp), %eax
.L9:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mid, .-mid
	.globl	max
	.type	max, @function
max:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L14
	movl	-4(%rbp), %eax
	jmp	.L15
.L14:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L16
	movl	-8(%rbp), %eax
	jmp	.L15
.L16:
	movl	-12(%rbp), %eax
.L15:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L18
	movl	-4(%rbp), %eax
	jmp	.L19
.L18:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jg	.L20
	movl	-8(%rbp), %eax
	jmp	.L19
.L20:
	movl	-12(%rbp), %eax
.L19:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2744, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-400096(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400096(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -400080(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L22:
	cmpq	%rdx, %rsp
	je	.L23
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L22
.L23:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L24
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L24:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -400072(%rbp)
	leaq	-400064(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400092(%rbp)
	jmp	.L25
.L26:
	movl	-400092(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-400072(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-400072(%rbp), %rax
	movl	-400092(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movslq	%eax, %rdx
	movl	-400064(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400064(%rbp,%rax,4)
	addl	$1, -400092(%rbp)
.L25:
	movl	-400096(%rbp), %eax
	cmpl	%eax, -400092(%rbp)
	jl	.L26
	movl	$0, -400088(%rbp)
	movl	$1, -400084(%rbp)
	jmp	.L27
.L29:
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jle	.L28
	movl	-400084(%rbp), %eax
	cltq
	movl	-400064(%rbp,%rax,4), %eax
	subl	$1, %eax
	addl	%eax, -400088(%rbp)
.L28:
	addl	$1, -400084(%rbp)
.L27:
	cmpl	$100000, -400084(%rbp)
	jle	.L29
	movl	-400088(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	addl	%eax, -400088(%rbp)
	movl	-400096(%rbp), %eax
	subl	-400088(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
