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 acs(const void *a, const void *b){
    return *(int*)a - *(int*)b;
}

int main(){
    int N, a[110000];
    int tmp=0, sum=0, ans=0;

    scanf("%d", &N);
    for(int i=0; i<N; i++){
        scanf("%d", &a[i]);
    }

    qsort(a, N, sizeof(int), acs);
    a[N]=1000000001;
    ans = N;
    for(int i=0; i<=N; i++){
        if(tmp == a[i]){
            sum++;
        }else{
            if(tmp>sum){
                ans = ans-sum;
            }else if(tmp<sum){
                ans = ans-(sum-tmp);
            }
            tmp = a[i];
            sum = 1;
        }
    }
    printf("%d", N-ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.section	.rodata
.LC0:
	.string	"%d"
	.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	-438272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -440036(%rbp)
	movl	$0, -440032(%rbp)
	movl	$0, -440028(%rbp)
	leaq	-440040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -440024(%rbp)
	jmp	.L4
.L5:
	leaq	-440016(%rbp), %rdx
	movl	-440024(%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, -440024(%rbp)
.L4:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440024(%rbp)
	jl	.L5
	movl	-440040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-440016(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-440040(%rbp), %eax
	cltq
	movl	$1000000001, -440016(%rbp,%rax,4)
	movl	-440040(%rbp), %eax
	movl	%eax, -440028(%rbp)
	movl	$0, -440020(%rbp)
	jmp	.L6
.L11:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	cmpl	%eax, -440036(%rbp)
	jne	.L7
	addl	$1, -440032(%rbp)
	jmp	.L8
.L7:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jle	.L9
	movl	-440032(%rbp), %eax
	subl	%eax, -440028(%rbp)
	jmp	.L10
.L9:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jge	.L10
	movl	-440032(%rbp), %eax
	subl	-440036(%rbp), %eax
	subl	%eax, -440028(%rbp)
.L10:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	movl	%eax, -440036(%rbp)
	movl	$1, -440032(%rbp)
.L8:
	addl	$1, -440020(%rbp)
.L6:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440020(%rbp)
	jle	.L11
	movl	-440040(%rbp), %eax
	subl	-440028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	acs
	.type	acs, @function
acs:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	acs, .-acs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-438272(%rsp), %r11
	.cfi_def_cfa 11, 438312
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1768, %rsp
	.cfi_def_cfa_offset 440080
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 440024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$4, %r12
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	acs(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rcx
	movl	$1000000001, 16(%rsp,%rcx,4)
	movq	%rcx, %rdx
	testl	%ecx, %ecx
	js	.L12
	leaq	20(%rsp,%rcx,4), %r9
	movl	%ecx, %r8d
	movq	%rbx, %rax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%esi, %edi
	jg	.L19
	jge	.L13
	subl	%edi, %esi
.L19:
	subl	%esi, %r8d
	movl	$1, %esi
.L8:
	addq	$4, %rax
	cmpq	%rax, %r9
	je	.L6
.L10:
	movl	%ecx, %edi
	movl	(%rax), %ecx
	cmpl	%ecx, %edi
	jne	.L7
	addq	$4, %rax
	addl	$1, %esi
	cmpq	%rax, %r9
	jne	.L10
.L6:
	subl	%r8d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	440024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$440040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$1, %esi
	jmp	.L8
.L12:
	movl	%ecx, %r8d
	jmp	.L6
.L20:
	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	acs
	.type	acs, @function
acs:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	acs, .-acs
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-438272(%rsp), %r11
	.cfi_def_cfa 11, 438312
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1768, %rsp
	.cfi_def_cfa_offset 440080
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 440024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$4, %r12
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	acs(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rcx
	movl	$1000000001, 16(%rsp,%rcx,4)
	movq	%rcx, %rdx
	testl	%ecx, %ecx
	js	.L12
	leaq	20(%rsp,%rcx,4), %r9
	movl	%ecx, %r8d
	movq	%rbx, %rax
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%esi, %edi
	jg	.L19
	jge	.L13
	subl	%edi, %esi
.L19:
	subl	%esi, %r8d
	movl	$1, %esi
.L8:
	addq	$4, %rax
	cmpq	%rax, %r9
	je	.L6
.L10:
	movl	%ecx, %edi
	movl	(%rax), %ecx
	cmpl	%ecx, %edi
	jne	.L7
	addq	$4, %rax
	addl	$1, %esi
	cmpq	%rax, %r9
	jne	.L10
.L6:
	subl	%r8d, %edx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	440024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$440040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$1, %esi
	jmp	.L8
.L12:
	movl	%ecx, %r8d
	jmp	.L6
.L20:
	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 acs(const void *a, const void *b){
    return *(int*)a - *(int*)b;
}

int main(){
    int N, a[110000];
    int tmp=0, sum=0, ans=0;

    scanf("%d", &N);
    for(int i=0; i<N; i++){
        scanf("%d", &a[i]);
    }

    qsort(a, N, sizeof(int), acs);
    a[N]=1000000001;
    ans = N;
    for(int i=0; i<=N; i++){
        if(tmp == a[i]){
            sum++;
        }else{
            if(tmp>sum){
                ans = ans-sum;
            }else if(tmp<sum){
                ans = ans-(sum-tmp);
            }
            tmp = a[i];
            sum = 1;
        }
    }
    printf("%d", N-ans);

    return 0;
}
4
3 3 3 3

1
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 acs(const void *a, const void *b){
    return *(int*)a - *(int*)b;
}

int main(){
    int N, a[110000];
    int tmp=0, sum=0, ans=0;

    scanf("%d", &N);
    for(int i=0; i<N; i++){
        scanf("%d", &a[i]);
    }

    qsort(a, N, sizeof(int), acs);
    a[N]=1000000001;
    ans = N;
    for(int i=0; i<=N; i++){
        if(tmp == a[i]){
            sum++;
        }else{
            if(tmp>sum){
                ans = ans-sum;
            }else if(tmp<sum){
                ans = ans-(sum-tmp);
            }
            tmp = a[i];
            sum = 1;
        }
    }
    printf("%d", N-ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.section	.rodata
.LC0:
	.string	"%d"
	.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	-438272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -440036(%rbp)
	movl	$0, -440032(%rbp)
	movl	$0, -440028(%rbp)
	leaq	-440040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -440024(%rbp)
	jmp	.L4
.L5:
	leaq	-440016(%rbp), %rdx
	movl	-440024(%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, -440024(%rbp)
.L4:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440024(%rbp)
	jl	.L5
	movl	-440040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-440016(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-440040(%rbp), %eax
	cltq
	movl	$1000000001, -440016(%rbp,%rax,4)
	movl	-440040(%rbp), %eax
	movl	%eax, -440028(%rbp)
	movl	$0, -440020(%rbp)
	jmp	.L6
.L11:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	cmpl	%eax, -440036(%rbp)
	jne	.L7
	addl	$1, -440032(%rbp)
	jmp	.L8
.L7:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jle	.L9
	movl	-440032(%rbp), %eax
	subl	%eax, -440028(%rbp)
	jmp	.L10
.L9:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jge	.L10
	movl	-440032(%rbp), %eax
	subl	-440036(%rbp), %eax
	subl	%eax, -440028(%rbp)
.L10:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	movl	%eax, -440036(%rbp)
	movl	$1, -440032(%rbp)
.L8:
	addl	$1, -440020(%rbp)
.L6:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440020(%rbp)
	jle	.L11
	movl	-440040(%rbp), %eax
	subl	-440028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.section	.rodata
.LC0:
	.string	"%d"
	.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	-438272(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -440036(%rbp)
	movl	$0, -440032(%rbp)
	movl	$0, -440028(%rbp)
	leaq	-440040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -440024(%rbp)
	jmp	.L4
.L5:
	leaq	-440016(%rbp), %rdx
	movl	-440024(%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, -440024(%rbp)
.L4:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440024(%rbp)
	jl	.L5
	movl	-440040(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-440016(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-440040(%rbp), %eax
	cltq
	movl	$1000000001, -440016(%rbp,%rax,4)
	movl	-440040(%rbp), %eax
	movl	%eax, -440028(%rbp)
	movl	$0, -440020(%rbp)
	jmp	.L6
.L11:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	cmpl	%eax, -440036(%rbp)
	jne	.L7
	addl	$1, -440032(%rbp)
	jmp	.L8
.L7:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jle	.L9
	movl	-440032(%rbp), %eax
	subl	%eax, -440028(%rbp)
	jmp	.L10
.L9:
	movl	-440036(%rbp), %eax
	cmpl	-440032(%rbp), %eax
	jge	.L10
	movl	-440032(%rbp), %eax
	subl	-440036(%rbp), %eax
	subl	%eax, -440028(%rbp)
.L10:
	movl	-440020(%rbp), %eax
	cltq
	movl	-440016(%rbp,%rax,4), %eax
	movl	%eax, -440036(%rbp)
	movl	$1, -440032(%rbp)
.L8:
	addl	$1, -440020(%rbp)
.L6:
	movl	-440040(%rbp), %eax
	cmpl	%eax, -440020(%rbp)
	jle	.L11
	movl	-440040(%rbp), %eax
	subl	-440028(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
