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,m;
    scanf("%d %d",&n,&k);
    int arr[k];
    
    for ( int i=0 ; i<k ; i++ ) {
        scanf("%d",arr+i);
    }
    
    for ( int i=0 ; i<(k-1) ; i++) {
        for ( int j=i+1 ; j<=(k-1) ; j++) {
            if ( arr[i] < arr[j]) {
                arr[i] = arr[i]^arr[j];
                arr[j] = arr[i]^arr[j];
                arr[i] = arr[i]^arr[j];
            }
        }
    }
    
    for ( int i=0 ; i<(n-k) ; i++ ) {
        scanf("%d",&m);
        if ( arr[0] > m)
            arr[0] = m;
        for ( int p=0 ; p<(k-1) ; p++) {
        for ( int q=p+1 ; q<=(k-1) ; q++) {
            if ( arr[p] < arr[q]) {
                arr[p] = arr[p]^arr[q];
                arr[q] = arr[p]^arr[q];
                arr[p] = arr[p]^arr[q];
            }
        }
    }
    }
    /*for( int i=0 ; i<k ; i++ ) {
        printf("%d\t",arr[i]);
    }*/
    m = 0;
    for (int i=0 ; i<k ; i++ ) {
        m += arr[i];
    }
    
    printf("%d",m);
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %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	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L5:
	movl	-108(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L11:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L8
.L10:
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L9
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L9:
	addl	$1, -92(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	addl	$1, -96(%rbp)
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -88(%rbp)
	jmp	.L12
.L19:
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	(%rax), %edx
	movl	-104(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-104(%rbp), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
.L13:
	movl	$0, -84(%rbp)
	jmp	.L14
.L18:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L15
.L17:
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L16
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L16:
	addl	$1, -80(%rbp)
.L15:
	movl	-108(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L17
	addl	$1, -84(%rbp)
.L14:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	jl	.L18
	addl	$1, -88(%rbp)
.L12:
	movl	-112(%rbp), %eax
	movl	-108(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -88(%rbp)
	jl	.L19
	movl	$0, -104(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L20
.L21:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-104(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -104(%rbp)
	addl	$1, -76(%rbp)
.L20:
	movl	-108(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L21
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %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
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L45:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L45
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L46
.L4:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r15
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
	cmpl	$1, %r8d
	jle	.L5
	leal	-2(%r8), %r10d
	movq	%rbx, %rsi
	movl	$1, %r9d
	addq	$2, %r10
	leal	-1(%r8), %r12d
	leaq	4(%rbx), %r11
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%r9d, %r8d
	jle	.L14
	movl	%r12d, %eax
	movl	(%rsi), %ecx
	movq	%rsi, %rdx
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%r11,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	4(%rdx), %eax
	cmpl	%ecx, %eax
	jle	.L12
	xorl	%ecx, %eax
	movl	%eax, (%rsi)
	xorl	4(%rdx), %eax
	movl	%eax, 4(%rdx)
	xorl	(%rsi), %eax
	movl	%eax, (%rsi)
	movl	%eax, %ecx
.L12:
	addq	$4, %rdx
	cmpq	%rdi, %rdx
	jne	.L13
.L14:
	addq	$1, %r9
	addq	$4, %rsi
	cmpq	%r10, %r9
	jne	.L11
.L5:
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %r12
	leaq	4(%rbx), %r13
	cmpl	%r8d, -68(%rbp)
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%eax, (%rbx)
	jle	.L15
	movl	%eax, (%rbx)
.L15:
	movl	-64(%rbp), %r8d
	cmpl	$1, %r8d
	jle	.L18
	leal	-2(%r8), %r9d
	movq	%rbx, %rcx
	leal	-1(%r8), %r10d
	movl	$1, %edi
	addq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, %r8d
	jle	.L21
	movl	%r10d, %eax
	movl	(%rcx), %r11d
	movq	%rcx, %rdx
	subl	%edi, %eax
	leaq	-1(%rdi,%rax), %rax
	leaq	0(%r13,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	4(%rdx), %eax
	cmpl	%r11d, %eax
	jle	.L19
	xorl	%r11d, %eax
	movl	%eax, (%rcx)
	xorl	4(%rdx), %eax
	movl	%eax, 4(%rdx)
	xorl	(%rcx), %eax
	movl	%eax, (%rcx)
	movl	%eax, %r11d
.L19:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L20
.L21:
	addq	$1, %rdi
	addq	$4, %rcx
	cmpq	%r9, %rdi
	jne	.L17
.L18:
	movl	-68(%rbp), %eax
	addl	$1, %r14d
	subl	%r8d, %eax
	cmpl	%r14d, %eax
	jg	.L8
.L9:
	movl	$0, -60(%rbp)
	testl	%r8d, %r8d
	jle	.L29
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L30
	movl	%r8d, %edx
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
.L25:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L25
	movdqa	%xmm0, %xmm1
	movl	%r8d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %r8b
	je	.L26
.L24:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	addl	(%rcx), %edx
	cmpl	%r8d, %esi
	jge	.L26
	addl	$2, %eax
	addl	4(%rcx), %edx
	cmpl	%eax, %r8d
	jle	.L26
	addl	8(%rcx), %edx
.L26:
	movl	%edx, -60(%rbp)
.L23:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L47
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L46:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L29:
	xorl	%edx, %edx
	jmp	.L23
.L30:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L24
.L47:
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-68(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %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
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rdx
	movq	%rax, %r8
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L45:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L45
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L46
.L4:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r15
	testl	%r8d, %r8d
	jle	.L5
	movq	%rbx, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %r8d
	addq	$4, %r13
	cmpl	%r12d, %r8d
	jg	.L6
	cmpl	$1, %r8d
	jle	.L5
	leal	-2(%r8), %r10d
	movq	%rbx, %rsi
	movl	$1, %r9d
	addq	$2, %r10
	leal	-1(%r8), %r12d
	leaq	4(%rbx), %r11
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%r9d, %r8d
	jle	.L14
	movl	%r12d, %eax
	movl	(%rsi), %ecx
	movq	%rsi, %rdx
	subl	%r9d, %eax
	leaq	-1(%r9,%rax), %rax
	leaq	(%r11,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	movl	4(%rdx), %eax
	cmpl	%ecx, %eax
	jle	.L12
	xorl	%ecx, %eax
	movl	%eax, (%rsi)
	xorl	4(%rdx), %eax
	movl	%eax, 4(%rdx)
	xorl	(%rsi), %eax
	movl	%eax, (%rsi)
	movl	%eax, %ecx
.L12:
	addq	$4, %rdx
	cmpq	%rdi, %rdx
	jne	.L13
.L14:
	addq	$1, %r9
	addq	$4, %rsi
	cmpq	%r10, %r9
	jne	.L11
.L5:
	xorl	%r14d, %r14d
	leaq	-60(%rbp), %r12
	leaq	4(%rbx), %r13
	cmpl	%r8d, -68(%rbp)
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	cmpl	%eax, (%rbx)
	jle	.L15
	movl	%eax, (%rbx)
.L15:
	movl	-64(%rbp), %r8d
	cmpl	$1, %r8d
	jle	.L18
	leal	-2(%r8), %r9d
	movq	%rbx, %rcx
	leal	-1(%r8), %r10d
	movl	$1, %edi
	addq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%edi, %r8d
	jle	.L21
	movl	%r10d, %eax
	movl	(%rcx), %r11d
	movq	%rcx, %rdx
	subl	%edi, %eax
	leaq	-1(%rdi,%rax), %rax
	leaq	0(%r13,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L20:
	movl	4(%rdx), %eax
	cmpl	%r11d, %eax
	jle	.L19
	xorl	%r11d, %eax
	movl	%eax, (%rcx)
	xorl	4(%rdx), %eax
	movl	%eax, 4(%rdx)
	xorl	(%rcx), %eax
	movl	%eax, (%rcx)
	movl	%eax, %r11d
.L19:
	addq	$4, %rdx
	cmpq	%rsi, %rdx
	jne	.L20
.L21:
	addq	$1, %rdi
	addq	$4, %rcx
	cmpq	%r9, %rdi
	jne	.L17
.L18:
	movl	-68(%rbp), %eax
	addl	$1, %r14d
	subl	%r8d, %eax
	cmpl	%r14d, %eax
	jg	.L8
.L9:
	movl	$0, -60(%rbp)
	testl	%r8d, %r8d
	jle	.L29
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	jbe	.L30
	movl	%r8d, %edx
	movq	%rbx, %rax
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
.L25:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L25
	movdqa	%xmm0, %xmm1
	movl	%r8d, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %r8b
	je	.L26
.L24:
	movslq	%eax, %rcx
	leal	1(%rax), %esi
	leaq	(%rbx,%rcx,4), %rcx
	addl	(%rcx), %edx
	cmpl	%r8d, %esi
	jge	.L26
	addl	$2, %eax
	addl	4(%rcx), %edx
	cmpl	%eax, %r8d
	jle	.L26
	addl	8(%rcx), %edx
.L26:
	movl	%edx, -60(%rbp)
.L23:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L47
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L46:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L29:
	xorl	%edx, %edx
	jmp	.L23
.L30:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L24
.L47:
	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,m;
    scanf("%d %d",&n,&k);
    int arr[k];
    
    for ( int i=0 ; i<k ; i++ ) {
        scanf("%d",arr+i);
    }
    
    for ( int i=0 ; i<(k-1) ; i++) {
        for ( int j=i+1 ; j<=(k-1) ; j++) {
            if ( arr[i] < arr[j]) {
                arr[i] = arr[i]^arr[j];
                arr[j] = arr[i]^arr[j];
                arr[i] = arr[i]^arr[j];
            }
        }
    }
    
    for ( int i=0 ; i<(n-k) ; i++ ) {
        scanf("%d",&m);
        if ( arr[0] > m)
            arr[0] = m;
        for ( int p=0 ; p<(k-1) ; p++) {
        for ( int q=p+1 ; q<=(k-1) ; q++) {
            if ( arr[p] < arr[q]) {
                arr[p] = arr[p]^arr[q];
                arr[q] = arr[p]^arr[q];
                arr[p] = arr[p]^arr[q];
            }
        }
    }
    }
    /*for( int i=0 ; i<k ; i++ ) {
        printf("%d\t",arr[i]);
    }*/
    m = 0;
    for (int i=0 ; i<k ; i++ ) {
        m += arr[i];
    }
    
    printf("%d",m);
    
    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 100 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,m;
    scanf("%d %d",&n,&k);
    int arr[k];
    
    for ( int i=0 ; i<k ; i++ ) {
        scanf("%d",arr+i);
    }
    
    for ( int i=0 ; i<(k-1) ; i++) {
        for ( int j=i+1 ; j<=(k-1) ; j++) {
            if ( arr[i] < arr[j]) {
                arr[i] = arr[i]^arr[j];
                arr[j] = arr[i]^arr[j];
                arr[i] = arr[i]^arr[j];
            }
        }
    }
    
    for ( int i=0 ; i<(n-k) ; i++ ) {
        scanf("%d",&m);
        if ( arr[0] > m)
            arr[0] = m;
        for ( int p=0 ; p<(k-1) ; p++) {
        for ( int q=p+1 ; q<=(k-1) ; q++) {
            if ( arr[p] < arr[q]) {
                arr[p] = arr[p]^arr[q];
                arr[q] = arr[p]^arr[q];
                arr[p] = arr[p]^arr[q];
            }
        }
    }
    }
    /*for( int i=0 ; i<k ; i++ ) {
        printf("%d\t",arr[i]);
    }*/
    m = 0;
    for (int i=0 ; i<k ; i++ ) {
        m += arr[i];
    }
    
    printf("%d",m);
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %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	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L5:
	movl	-108(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L11:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L8
.L10:
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L9
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L9:
	addl	$1, -92(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	addl	$1, -96(%rbp)
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -88(%rbp)
	jmp	.L12
.L19:
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	(%rax), %edx
	movl	-104(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-104(%rbp), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
.L13:
	movl	$0, -84(%rbp)
	jmp	.L14
.L18:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L15
.L17:
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L16
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L16:
	addl	$1, -80(%rbp)
.L15:
	movl	-108(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L17
	addl	$1, -84(%rbp)
.L14:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	jl	.L18
	addl	$1, -88(%rbp)
.L12:
	movl	-112(%rbp), %eax
	movl	-108(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -88(%rbp)
	jl	.L19
	movl	$0, -104(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L20
.L21:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-104(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -104(%rbp)
	addl	$1, -76(%rbp)
.L20:
	movl	-108(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L21
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %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	-108(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L5
.L6:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L5:
	movl	-108(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L6
	movl	$0, -96(%rbp)
	jmp	.L7
.L11:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -92(%rbp)
	jmp	.L8
.L10:
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L9
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L9:
	addl	$1, -92(%rbp)
.L8:
	movl	-108(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	addl	$1, -96(%rbp)
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -88(%rbp)
	jmp	.L12
.L19:
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	movl	(%rax), %edx
	movl	-104(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L13
	movl	-104(%rbp), %edx
	movq	-64(%rbp), %rax
	movl	%edx, (%rax)
.L13:
	movl	$0, -84(%rbp)
	jmp	.L14
.L18:
	movl	-84(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -80(%rbp)
	jmp	.L15
.L17:
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L16
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-80(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	xorl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-84(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L16:
	addl	$1, -80(%rbp)
.L15:
	movl	-108(%rbp), %eax
	cmpl	%eax, -80(%rbp)
	jl	.L17
	addl	$1, -84(%rbp)
.L14:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -84(%rbp)
	jl	.L18
	addl	$1, -88(%rbp)
.L12:
	movl	-112(%rbp), %eax
	movl	-108(%rbp), %edx
	subl	%edx, %eax
	cmpl	%eax, -88(%rbp)
	jl	.L19
	movl	$0, -104(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L20
.L21:
	movq	-64(%rbp), %rax
	movl	-76(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	-104(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -104(%rbp)
	addl	$1, -76(%rbp)
.L20:
	movl	-108(%rbp), %eax
	cmpl	%eax, -76(%rbp)
	jl	.L21
	movl	-104(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
