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

void proc(int n, int m);
int compare_int(const void *p1, const void *p2);

int main ()
{
	while (1) {
		int n, m;
		scanf("%d %d", &n, &m);
		if (n == 0 && m == 0) {
			break;
		}
		proc(n, m);
	}
	return 0;
}

void proc(int n, int m)
{
	int i, j;
	int mp;
	int *ps, *ps2;

	ps = calloc(n, sizeof(int));
	for (i=0; i<n; i++) {
		scanf("%d", &ps[i]);
	}

	ps2 = calloc(1+n+n*n, sizeof(int));
	ps2[0] = 0;
	for (i=0; i<n; i++) {
		ps2[1+i] = ps[i];
	}
	for (i=0; i<n; i++) {
		for (j=0; j<n; j++) {
			ps2[1+n+(n*i)+j] = ps[i]+ps[j];
		}
	}
	qsort(ps2, 1+n+n*n, sizeof(int), compare_int);

	i = 0;
	j = n*n+n;
	mp = 0;
	while (i <= j) {
		int cp;
		cp = ps2[i] + ps2[j];
		if (cp <= m) {
			if (cp > mp) {
				mp = cp;
			}
			i++;
		} else {
			j--;
		}
	}

	free(ps);
	free(ps2);

	printf("%d\n", mp);
}

int compare_int(const void *p1, const void *p2)
{
	return *(const int*)p1 - *(const int*)p2;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	jmp	.L6
.L2:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	proc
	jmp	.L4
.L6:
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	proc
	.type	proc, @function
proc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	$0, (%rax)
	movl	$0, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	addl	$1, -32(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L11
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	imull	-32(%rbp), %eax
	addl	%eax, %esi
	movl	-28(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-8(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -28(%rbp)
.L13:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L15
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L17
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L18
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L18:
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	subl	$1, -28(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L19
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	proc, .-proc
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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
.LFE8:
	.size	compare_int, .-compare_int
	.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB53:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	proc
	.type	proc, @function
proc:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rax, %rdi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rax, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%r12d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	imull	%r12d, %ebp
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%esi, 12(%rsp)
	movl	$4, %esi
	movq	%rax, (%rsp)
	call	calloc@PLT
	movq	%rax, %r14
	leal	1(%r12), %eax
	movl	%eax, 28(%rsp)
	addl	%ebp, %eax
	addl	%r12d, %ebp
	cltq
	movq	%rax, 16(%rsp)
	testl	%r12d, %r12d
	jle	.L4
	leal	-1(%r12), %eax
	movl	%ebp, 40(%rsp)
	movq	%r14, %r15
	leaq	.LC0(%rip), %r13
	movl	%eax, 24(%rsp)
	movl	%r12d, %eax
	movq	%r14, %rbp
	movq	%rax, 32(%rsp)
	leaq	(%r14,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %rbp
	jne	.L5
	movq	16(%rsp), %rdi
	movl	$4, %esi
	movl	40(%rsp), %ebp
	movq	%r15, 40(%rsp)
	call	calloc@PLT
	movq	32(%rsp), %r15
	movq	%r14, %rsi
	movl	$0, (%rax)
	leaq	4(%rax), %rdi
	movq	%rax, %r13
	salq	$2, %r15
	movq	%r15, %rdx
	call	memcpy@PLT
	movl	%r12d, %eax
	movq	(%rsp), %r8
	movl	28(%rsp), %ebx
	shrl	$2, %eax
	movq	40(%rsp), %r9
	movl	%ebp, 28(%rsp)
	leaq	(%r14,%r15), %rcx
	leal	-1(%rax), %esi
	movl	%r12d, %eax
	salq	$2, %r8
	addq	$1, %rsi
	andl	$-4, %eax
	leaq	4(%r13,%r8), %rdx
	salq	$4, %rsi
	movl	%eax, %ebp
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$2, 24(%rsp)
	movl	(%r9), %edi
	jbe	.L18
	movd	%edi, %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm2, %xmm1
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%r14,%rax), %xmm0
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rax, %rsi
	jne	.L8
	movl	%ebp, %eax
	cmpl	%r12d, %ebp
	je	.L7
.L11:
	leal	(%rbx,%rax), %r10d
	movslq	%eax, %r15
	movslq	%r10d, %r10
	leaq	0(,%r15,4), %r11
	movq	%r10, (%rsp)
	movl	(%r14,%r15,4), %r10d
	addl	%edi, %r10d
	movl	%r10d, %r15d
	movq	(%rsp), %r10
	movl	%r15d, 0(%r13,%r10,4)
	leal	1(%rax), %r10d
	cmpl	%r10d, %r12d
	jle	.L7
	movl	4(%r14,%r11), %r15d
	addl	%ebx, %r10d
	addl	$2, %eax
	movslq	%r10d, %r10
	addl	%edi, %r15d
	movl	%r15d, 0(%r13,%r10,4)
	cmpl	%eax, %r12d
	jle	.L7
	addl	%ebx, %eax
	addl	8(%r14,%r11), %edi
	cltq
	movl	%edi, 0(%r13,%rax,4)
.L7:
	addq	$4, %r9
	addl	%r12d, %ebx
	addq	%r8, %rdx
	cmpq	%rcx, %r9
	jne	.L17
	movq	16(%rsp), %rsi
	movl	$4, %edx
	movq	%r13, %rdi
	movl	28(%rsp), %ebp
	leaq	compare_int(%rip), %rcx
	call	qsort@PLT
.L16:
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%ebp, %rcx
	movl	0(%r13,%rcx,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%eax, 12(%rsp)
	jl	.L12
.L28:
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	addl	$1, %edx
	cmpl	%edx, %ebp
	jl	.L14
	movslq	%edx, %rsi
	movl	0(%r13,%rcx,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%eax, 12(%rsp)
	jge	.L28
.L12:
	subl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L27
.L14:
	movq	%r14, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	movl	$1, %edi
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movl	$4, %esi
	movq	%rax, %rdi
	movq	%rax, %rbx
	call	calloc@PLT
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rsi
	movl	$0, (%rax)
	movq	%rax, %rdi
	movq	%rax, %r13
	call	qsort@PLT
	testl	%ebp, %ebp
	jns	.L16
	xorl	%r12d, %r12d
	jmp	.L14
	.cfi_endproc
.LFE52:
	.size	proc, .-proc
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC2(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	call	proc
.L31:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%r12, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	movl	4(%rsp), %esi
	movl	%edi, %eax
	orl	%esi, %eax
	jne	.L34
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB53:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	proc
	.type	proc, @function
proc:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rax, %rdi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%rax, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%r12d, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	imull	%r12d, %ebp
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%esi, 12(%rsp)
	movl	$4, %esi
	movq	%rax, (%rsp)
	call	calloc@PLT
	movq	%rax, %r14
	leal	1(%r12), %eax
	movl	%eax, 28(%rsp)
	addl	%ebp, %eax
	addl	%r12d, %ebp
	cltq
	movq	%rax, 16(%rsp)
	testl	%r12d, %r12d
	jle	.L4
	leal	-1(%r12), %eax
	movl	%ebp, 40(%rsp)
	movq	%r14, %r15
	leaq	.LC0(%rip), %r13
	movl	%eax, 24(%rsp)
	movl	%r12d, %eax
	movq	%r14, %rbp
	movq	%rax, 32(%rsp)
	leaq	(%r14,%rax,4), %rbx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %rbp
	jne	.L5
	movq	16(%rsp), %rdi
	movl	$4, %esi
	movl	40(%rsp), %ebp
	movq	%r15, 40(%rsp)
	call	calloc@PLT
	movq	32(%rsp), %r15
	movq	%r14, %rsi
	movl	$0, (%rax)
	leaq	4(%rax), %rdi
	movq	%rax, %r13
	salq	$2, %r15
	movq	%r15, %rdx
	call	memcpy@PLT
	movl	%r12d, %eax
	movq	(%rsp), %r8
	movl	28(%rsp), %ebx
	shrl	$2, %eax
	movq	40(%rsp), %r9
	movl	%ebp, 28(%rsp)
	leaq	(%r14,%r15), %rcx
	leal	-1(%rax), %esi
	movl	%r12d, %eax
	salq	$2, %r8
	addq	$1, %rsi
	andl	$-4, %eax
	leaq	4(%r13,%r8), %rdx
	salq	$4, %rsi
	movl	%eax, %ebp
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	$2, 24(%rsp)
	movl	(%r9), %edi
	jbe	.L18
	movd	%edi, %xmm2
	xorl	%eax, %eax
	pshufd	$0, %xmm2, %xmm1
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%r14,%rax), %xmm0
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$16, %rax
	cmpq	%rax, %rsi
	jne	.L8
	movl	%ebp, %eax
	cmpl	%r12d, %ebp
	je	.L7
.L11:
	leal	(%rbx,%rax), %r10d
	movslq	%eax, %r15
	movslq	%r10d, %r10
	leaq	0(,%r15,4), %r11
	movq	%r10, (%rsp)
	movl	(%r14,%r15,4), %r10d
	addl	%edi, %r10d
	movl	%r10d, %r15d
	movq	(%rsp), %r10
	movl	%r15d, 0(%r13,%r10,4)
	leal	1(%rax), %r10d
	cmpl	%r10d, %r12d
	jle	.L7
	movl	4(%r14,%r11), %r15d
	addl	%ebx, %r10d
	addl	$2, %eax
	movslq	%r10d, %r10
	addl	%edi, %r15d
	movl	%r15d, 0(%r13,%r10,4)
	cmpl	%eax, %r12d
	jle	.L7
	addl	%ebx, %eax
	addl	8(%r14,%r11), %edi
	cltq
	movl	%edi, 0(%r13,%rax,4)
.L7:
	addq	$4, %r9
	addl	%r12d, %ebx
	addq	%r8, %rdx
	cmpq	%rcx, %r9
	jne	.L17
	movq	16(%rsp), %rsi
	movl	$4, %edx
	movq	%r13, %rdi
	movl	28(%rsp), %ebp
	leaq	compare_int(%rip), %rcx
	call	qsort@PLT
.L16:
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%ebp, %rcx
	movl	0(%r13,%rcx,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%eax, 12(%rsp)
	jl	.L12
.L28:
	cmpl	%eax, %r12d
	cmovl	%eax, %r12d
	addl	$1, %edx
	cmpl	%edx, %ebp
	jl	.L14
	movslq	%edx, %rsi
	movl	0(%r13,%rcx,4), %eax
	addl	0(%r13,%rsi,4), %eax
	cmpl	%eax, 12(%rsp)
	jge	.L28
.L12:
	subl	$1, %ebp
	cmpl	%ebp, %edx
	jle	.L27
.L14:
	movq	%r14, %rdi
	call	free@PLT
	movq	%r13, %rdi
	call	free@PLT
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r12d, %edx
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	movl	$1, %edi
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	jmp	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L11
.L4:
	movl	$4, %esi
	movq	%rax, %rdi
	movq	%rax, %rbx
	call	calloc@PLT
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rsi
	movl	$0, (%rax)
	movq	%rax, %rdi
	movq	%rax, %r13
	call	qsort@PLT
	testl	%ebp, %ebp
	jns	.L16
	xorl	%r12d, %r12d
	jmp	.L14
	.cfi_endproc
.LFE52:
	.size	proc, .-proc
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC2(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	call	proc
.L31:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%r12, %rdx
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edi
	movl	4(%rsp), %esi
	movl	%edi, %eax
	orl	%esi, %eax
	jne	.L34
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <string.h>

void proc(int n, int m);
int compare_int(const void *p1, const void *p2);

int main ()
{
	while (1) {
		int n, m;
		scanf("%d %d", &n, &m);
		if (n == 0 && m == 0) {
			break;
		}
		proc(n, m);
	}
	return 0;
}

void proc(int n, int m)
{
	int i, j;
	int mp;
	int *ps, *ps2;

	ps = calloc(n, sizeof(int));
	for (i=0; i<n; i++) {
		scanf("%d", &ps[i]);
	}

	ps2 = calloc(1+n+n*n, sizeof(int));
	ps2[0] = 0;
	for (i=0; i<n; i++) {
		ps2[1+i] = ps[i];
	}
	for (i=0; i<n; i++) {
		for (j=0; j<n; j++) {
			ps2[1+n+(n*i)+j] = ps[i]+ps[j];
		}
	}
	qsort(ps2, 1+n+n*n, sizeof(int), compare_int);

	i = 0;
	j = n*n+n;
	mp = 0;
	while (i <= j) {
		int cp;
		cp = ps2[i] + ps2[j];
		if (cp <= m) {
			if (cp > mp) {
				mp = cp;
			}
			i++;
		} else {
			j--;
		}
	}

	free(ps);
	free(ps2);

	printf("%d\n", mp);
}

int compare_int(const void *p1, const void *p2)
{
	return *(const int*)p1 - *(const int*)p2;
}
4 58
3
14
15
9
3 21
16
11
2
0 0
 4 50
3
14
27
9
3 21
16
11
2
0 0
 4 58
6
14
15
6
3 21
5
11
2
0 0
 4 50
3
14
20
9
3 21
16
11
2
0 0
 4 58
3
14
25
9
3 21
16
11
2
0 0
 4 58
6
14
28
6
3 21
16
11
2
0 0
 4 10
3
14
20
9
3 21
16
11
2
0 0
 4 80
3
14
27
9
3 21
16
11
3
0 0
 4 52
3
14
30
9
3 21
16
11
3
0 0
 4 52
3
14
20
9
3 21
16
11
3
0 0

58
20
 50
20
 58
21
 49
20
 57
20
 56
20
 9
20
 77
20
 51
20
 52
20

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

void proc(int n, int m);
int compare_int(const void *p1, const void *p2);

int main ()
{
	while (1) {
		int n, m;
		scanf("%d %d", &n, &m);
		if (n == 0 && m == 0) {
			break;
		}
		proc(n, m);
	}
	return 0;
}

void proc(int n, int m)
{
	int i, j;
	int mp;
	int *ps, *ps2;

	ps = calloc(n, sizeof(int));
	for (i=0; i<n; i++) {
		scanf("%d", &ps[i]);
	}

	ps2 = calloc(1+n+n*n, sizeof(int));
	ps2[0] = 0;
	for (i=0; i<n; i++) {
		ps2[1+i] = ps[i];
	}
	for (i=0; i<n; i++) {
		for (j=0; j<n; j++) {
			ps2[1+n+(n*i)+j] = ps[i]+ps[j];
		}
	}
	qsort(ps2, 1+n+n*n, sizeof(int), compare_int);

	i = 0;
	j = n*n+n;
	mp = 0;
	while (i <= j) {
		int cp;
		cp = ps2[i] + ps2[j];
		if (cp <= m) {
			if (cp > mp) {
				mp = cp;
			}
			i++;
		} else {
			j--;
		}
	}

	free(ps);
	free(ps2);

	printf("%d\n", mp);
}

int compare_int(const void *p1, const void *p2)
{
	return *(const int*)p1 - *(const int*)p2;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	jmp	.L6
.L2:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	proc
	jmp	.L4
.L6:
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	proc
	.type	proc, @function
proc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	$0, (%rax)
	movl	$0, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	addl	$1, -32(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L11
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	imull	-32(%rbp), %eax
	addl	%eax, %esi
	movl	-28(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-8(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -28(%rbp)
.L13:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L15
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L17
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L18
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L18:
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	subl	$1, -28(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L19
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	proc, .-proc
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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
.LFE8:
	.size	compare_int, .-compare_int
	.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"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L4:
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-12(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L5
	jmp	.L6
.L2:
	movl	-12(%rbp), %edx
	movl	-16(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	proc
	jmp	.L4
.L6:
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	proc
	.type	proc, @function
proc:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movl	$0, -32(%rbp)
	jmp	.L8
.L9:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -32(%rbp)
.L8:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L9
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	cltq
	movl	$4, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movl	$0, (%rax)
	movl	$0, -32(%rbp)
	jmp	.L10
.L11:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	-32(%rbp), %edx
	addl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-8(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	addl	$1, -32(%rbp)
.L10:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L11
	movl	$0, -32(%rbp)
	jmp	.L12
.L15:
	movl	$0, -28(%rbp)
	jmp	.L13
.L14:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-36(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	imull	-32(%rbp), %eax
	addl	%eax, %esi
	movl	-28(%rbp), %eax
	addl	%esi, %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-8(%rbp), %rax
	addq	%rsi, %rax
	addl	%ecx, %edx
	movl	%edx, (%rax)
	addl	$1, -28(%rbp)
.L13:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L14
	addl	$1, -32(%rbp)
.L12:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L15
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -32(%rbp)
	movl	-36(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-36(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	$0, -24(%rbp)
	jmp	.L16
.L19:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jg	.L17
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L18
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L18:
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	subl	$1, -28(%rbp)
.L16:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L19
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	free@PLT
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	proc, .-proc
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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
.LFE8:
	.size	compare_int, .-compare_int
	.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:
