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>
int main()
{
    int n,k,j,i=0,sum=0;
    int ara[1000];
    scanf("%d %d",&n,&k);
    for(i=0; i<n; i++)
    {
        scanf("%d",&ara[i]);
    }
    int temp;
    for(i=0; i<n-1; i++)
    {
        for(j=i+1; j<n; j++)
        {
            if(ara[i]>ara[j])
            {
                temp=ara[i];
                ara[i]=ara[j];
                ara[j]=temp;
            }
        }
    }
    for(i=0; i<k; i++)
    {
        sum=sum+ara[i];
    }
    printf("%d\n",sum);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4028(%rbp)
	movl	$0, -4024(%rbp)
	leaq	-4036(%rbp), %rdx
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L2
.L3:
	leaq	-4016(%rbp), %rdx
	movl	-4028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L2:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L3
	movl	$0, -4028(%rbp)
	jmp	.L4
.L8:
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4032(%rbp)
	jmp	.L5
.L7:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, -4020(%rbp)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4028(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4020(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
.L6:
	addl	$1, -4032(%rbp)
.L5:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4032(%rbp)
	jl	.L7
	addl	$1, -4028(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	$0, -4028(%rbp)
	jmp	.L9
.L10:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	addl	%eax, -4024(%rbp)
	addl	$1, -4028(%rbp)
.L9:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L10
	movl	-4024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r9d
	addq	$4, %r12
	cmpl	%ebp, %r9d
	jg	.L3
	cmpl	$1, %r9d
	jle	.L2
	leal	-2(%r9), %r10d
	movq	%rbx, %rsi
	movl	$1, %r8d
	addq	$2, %r10
	leal	-1(%r9), %ebx
	leaq	20(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r9d
	jle	.L4
	movl	%ebx, %eax
	subl	%r8d, %eax
	leaq	-1(%r8,%rax), %rax
	leaq	(%r11,%rax,4), %rdi
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rsi), %edx
	movl	4(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L5
	movl	%ecx, (%rsi)
	movl	%edx, 4(%rax)
.L5:
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L6
.L4:
	addq	$1, %r8
	addq	$4, %rsi
	cmpq	%r10, %r8
	jne	.L7
.L2:
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L13
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L14
	movl	%ecx, %edx
	leaq	16(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L8
.L9:
	movslq	%eax, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L8
	movslq	%esi, %rsi
	addl	$2, %eax
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%eax, %ecx
	jle	.L8
	cltq
	addl	16(%rsp,%rax,4), %edx
.L8:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$4040, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L8
.L14:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$4040, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %r9d
	addq	$4, %r12
	cmpl	%ebp, %r9d
	jg	.L3
	cmpl	$1, %r9d
	jle	.L2
	leal	-2(%r9), %r10d
	movq	%rbx, %rsi
	movl	$1, %r8d
	addq	$2, %r10
	leal	-1(%r9), %ebx
	leaq	20(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r9d
	jle	.L4
	movl	%ebx, %eax
	subl	%r8d, %eax
	leaq	-1(%r8,%rax), %rax
	leaq	(%r11,%rax,4), %rdi
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rsi), %edx
	movl	4(%rax), %ecx
	cmpl	%ecx, %edx
	jle	.L5
	movl	%ecx, (%rsi)
	movl	%edx, 4(%rax)
.L5:
	addq	$4, %rax
	cmpq	%rdi, %rax
	jne	.L6
.L4:
	addq	$1, %r8
	addq	$4, %rsi
	cmpq	%r10, %r8
	jne	.L7
.L2:
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L13
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L14
	movl	%ecx, %edx
	leaq	16(%rsp), %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	paddd	(%rax), %xmm0
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L10
	movdqa	%xmm0, %xmm1
	movl	%ecx, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %cl
	je	.L8
.L9:
	movslq	%eax, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rax), %esi
	cmpl	%ecx, %esi
	jge	.L8
	movslq	%esi, %rsi
	addl	$2, %eax
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%eax, %ecx
	jle	.L8
	cltq
	addl	16(%rsp,%rax,4), %edx
.L8:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$4040, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L8
.L14:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
int main()
{
    int n,k,j,i=0,sum=0;
    int ara[1000];
    scanf("%d %d",&n,&k);
    for(i=0; i<n; i++)
    {
        scanf("%d",&ara[i]);
    }
    int temp;
    for(i=0; i<n-1; i++)
    {
        for(j=i+1; j<n; j++)
        {
            if(ara[i]>ara[j])
            {
                temp=ara[i];
                ara[i]=ara[j];
                ara[j]=temp;
            }
        }
    }
    for(i=0; i<k; i++)
    {
        sum=sum+ara[i];
    }
    printf("%d\n",sum);
    return 0;
}

5 3
50 000 80 120 80
 5 3
83 000 80 120 80
 5 3
83 010 80 120 80
 5 3
83 000 80 120 99
 5 3
83 000 16 120 99
 2 3
83 001 16 120 99
 1 0
1000
 5 3
50 100 80 120 150
 5 3
28 000 80 120 80
 5 3
68 000 80 120 80

130
 160
 170
 163
 99
 84
 0
 230
 108
 148

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>
int main()
{
    int n,k,j,i=0,sum=0;
    int ara[1000];
    scanf("%d %d",&n,&k);
    for(i=0; i<n; i++)
    {
        scanf("%d",&ara[i]);
    }
    int temp;
    for(i=0; i<n-1; i++)
    {
        for(j=i+1; j<n; j++)
        {
            if(ara[i]>ara[j])
            {
                temp=ara[i];
                ara[i]=ara[j];
                ara[j]=temp;
            }
        }
    }
    for(i=0; i<k; i++)
    {
        sum=sum+ara[i];
    }
    printf("%d\n",sum);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4028(%rbp)
	movl	$0, -4024(%rbp)
	leaq	-4036(%rbp), %rdx
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L2
.L3:
	leaq	-4016(%rbp), %rdx
	movl	-4028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L2:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L3
	movl	$0, -4028(%rbp)
	jmp	.L4
.L8:
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4032(%rbp)
	jmp	.L5
.L7:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, -4020(%rbp)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4028(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4020(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
.L6:
	addl	$1, -4032(%rbp)
.L5:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4032(%rbp)
	jl	.L7
	addl	$1, -4028(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	$0, -4028(%rbp)
	jmp	.L9
.L10:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	addl	%eax, -4024(%rbp)
	addl	$1, -4028(%rbp)
.L9:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L10
	movl	-4024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4048, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -4028(%rbp)
	movl	$0, -4024(%rbp)
	leaq	-4036(%rbp), %rdx
	leaq	-4040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4028(%rbp)
	jmp	.L2
.L3:
	leaq	-4016(%rbp), %rdx
	movl	-4028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4028(%rbp)
.L2:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L3
	movl	$0, -4028(%rbp)
	jmp	.L4
.L8:
	movl	-4028(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -4032(%rbp)
	jmp	.L5
.L7:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	movl	%eax, -4020(%rbp)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %edx
	movl	-4028(%rbp), %eax
	cltq
	movl	%edx, -4016(%rbp,%rax,4)
	movl	-4032(%rbp), %eax
	cltq
	movl	-4020(%rbp), %edx
	movl	%edx, -4016(%rbp,%rax,4)
.L6:
	addl	$1, -4032(%rbp)
.L5:
	movl	-4040(%rbp), %eax
	cmpl	%eax, -4032(%rbp)
	jl	.L7
	addl	$1, -4028(%rbp)
.L4:
	movl	-4040(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L8
	movl	$0, -4028(%rbp)
	jmp	.L9
.L10:
	movl	-4028(%rbp), %eax
	cltq
	movl	-4016(%rbp,%rax,4), %eax
	addl	%eax, -4024(%rbp)
	addl	$1, -4028(%rbp)
.L9:
	movl	-4036(%rbp), %eax
	cmpl	%eax, -4028(%rbp)
	jl	.L10
	movl	-4024(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
