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>
void	ft_swap(long *a, long *b)
{
	long tmp;
	
	tmp = *a;
	*a = *b;
	*b = tmp;
}

/* 昇順 */
void	a_qsort(long *tab, long left, long right)
{
	long Left = left;
	long Right = right;
	long pivot = tab[(left + right) / 2];

	while (1)
	{
		while (tab[Left] < pivot)
			Left++;
		while (tab[Right] > pivot)
			Right--;
		if (Left >= Right)
			break ;
		ft_swap(&tab[Left], &tab[Right]);
		Left++;
		Right--;
	}

	if (Left - 1 > left)
		a_qsort(tab, left, Left - 1);
	if (Right + 1 < right)
		a_qsort(tab, Right + 1, right);
}

int		main()
{
	long A,B,M;
	scanf("%ld%ld%ld", &A,&B,&M);
	long a[A + 1],b[B + 1];
	long m[M + 1][4];
	long dis[M + 1];
	long i,j;
	for (i = 1; i <= A; i++)
		scanf("%ld", &a[i]);
	for (i = 1; i <= B; i++)
		scanf("%ld", &b[i]);
	for (i = 1; i <= M; i++)
	{
		for (j = 1;j <= 3; j++)
		{
			scanf("%ld", &m[i][j]);
		}
	}
	for (i = 1; i <= M; i++)
	{
		dis[i] = (a[m[i][1]] + b[m[i][2]]) - m[i][3];
	}
	a_qsort(a, 1, A);
	a_qsort(b, 1, B);
	long min = a[1] + b[1];
	for (i = 1; i <= M; i++)
	{
		if (dis[i] < min)
			min = dis[i];
	}
	printf("%ld\n", min);
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ft_swap
	.type	ft_swap, @function
ft_swap:
.LFB0:
	.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
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-32(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ft_swap, .-ft_swap
	.globl	a_qsort
	.type	a_qsort, @function
a_qsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L3
.L4:
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jg	.L4
	jmp	.L5
.L6:
	subq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jl	.L6
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	ft_swap
	addq	$1, -24(%rbp)
	subq	$1, -16(%rbp)
	jmp	.L3
.L13:
	nop
	movq	-24(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -48(%rbp)
	jge	.L10
	movq	-24(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L10:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L14
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	a_qsort, .-a_qsort
	.section	.rodata
.LC0:
	.string	"%ld%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$232, %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	-152(%rbp), %rcx
	leaq	-160(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L16:
	cmpq	%rcx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L18
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movq	-160(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	salq	$5, %rax
	movq	%rax, %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L25:
	cmpq	%rdx, %rsp
	je	.L26
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L25
.L26:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L27
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L27:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L28:
	movq	-168(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L29
	movq	$1, -144(%rbp)
	jmp	.L30
.L31:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L30:
	movq	-160(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L31
	movq	$1, -144(%rbp)
	jmp	.L32
.L35:
	movq	$1, -136(%rbp)
	jmp	.L33
.L34:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -136(%rbp)
.L33:
	cmpq	$3, -136(%rbp)
	jle	.L34
	addq	$1, -144(%rbp)
.L32:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L35
	movq	$1, -144(%rbp)
	jmp	.L36
.L37:
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$16, %rax
	movq	(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-80(%rbp), %rcx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	addq	$24, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	addq	$1, -144(%rbp)
.L36:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L37
	movq	-168(%rbp), %rdx
	movq	-112(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-160(%rbp), %rdx
	movq	-96(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-112(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, -128(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L38
.L40:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -128(%rbp)
	jle	.L39
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -128(%rbp)
.L39:
	addq	$1, -144(%rbp)
.L38:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L40
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%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	.L42
	call	__stack_chk_fail@PLT
.L42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	ft_swap
	.type	ft_swap, @function
ft_swap:
.LFB23:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	movq	(%rsi), %rdx
	movq	%rdx, (%rdi)
	movq	%rax, (%rsi)
	ret
	.cfi_endproc
.LFE23:
	.size	ft_swap, .-ft_swap
	.p2align 4
	.globl	a_qsort
	.type	a_qsort, @function
a_qsort:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r11
	movq	%rdi, %r10
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdx, 48(%rsp)
.L10:
	movq	48(%rsp), %rbx
	movq	%r11, %rdx
	movq	%r11, %rdi
	addq	%rbx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
.L4:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%rsi, %r9
	jl	.L5
	cmpq	%rcx, %rsi
	jge	.L6
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rsi, %rcx
	jg	.L7
.L6:
	cmpq	%rdx, %rdi
	jge	.L8
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L5:
	addq	$1, %rdi
	jmp	.L4
.L8:
	leaq	-1(%rdi), %rax
	movq	%rdx, 56(%rsp)
	movq	%rax, 24(%rsp)
	cmpq	%r11, %rax
	jg	.L9
.L18:
	movq	56(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	48(%rsp), %rax
	jl	.L10
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	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
	ret
.L16:
	.cfi_restore_state
	leaq	-1(%rdi), %rax
	movq	%rdx, 64(%rsp)
	movq	%rax, 32(%rsp)
	cmpq	%rax, %r11
	jl	.L17
.L25:
	movq	64(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	%rax, 24(%rsp)
	jle	.L18
.L9:
	movq	24(%rsp), %rbx
	movq	%r11, %rdi
	movq	%rbx, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%r9, %rsi
	jg	.L13
	cmpq	%rcx, %rsi
	jge	.L14
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rsi
	jl	.L15
.L14:
	cmpq	%rdx, %rdi
	jge	.L16
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L13:
	addq	$1, %rdi
	jmp	.L12
.L23:
	leaq	-1(%rdi), %rax
	movq	%rdx, 72(%rsp)
	movq	%rax, 40(%rsp)
	cmpq	%rax, %r11
	jl	.L24
.L32:
	movq	72(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	%rax, 32(%rsp)
	jle	.L25
.L17:
	movq	32(%rsp), %rbx
	movq	%r11, %rdi
	movq	%rbx, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L19:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%r9, %rsi
	jg	.L20
	cmpq	%rcx, %rsi
	jge	.L21
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rsi
	jl	.L22
.L21:
	cmpq	%rdx, %rdi
	jge	.L23
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L20:
	addq	$1, %rdi
	jmp	.L19
.L30:
	leaq	-1(%rdi), %rax
	movq	%rax, 16(%rsp)
	cmpq	%rax, %r11
	jl	.L98
.L39:
	leaq	1(%r9), %rax
	movq	%rax, %r11
	cmpq	%rax, 40(%rsp)
	jle	.L32
.L24:
	movq	40(%rsp), %r9
	movq	%r11, %rdi
	movq	%r9, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	0(,%r9,8), %rax
	movq	(%r10,%rdi,8), %r8
	leaq	(%r10,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r8, %rsi
	jg	.L27
	cmpq	%rdx, %rsi
	jge	.L28
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r9
	cmpq	%rdx, %rsi
	jl	.L29
.L28:
	cmpq	%r9, %rdi
	jge	.L30
	movq	%rdx, (%r10,%rdi,8)
	subq	$1, %r9
	movq	%r8, (%rcx)
.L27:
	addq	$1, %rdi
	jmp	.L26
.L98:
	movq	%r9, 80(%rsp)
	movq	%r10, %rbp
.L31:
	movq	16(%rsp), %r8
	movq	%r11, %rdi
	movq	%r8, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	0(,%r8,8), %rax
	movq	0(%rbp,%rdi,8), %r9
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r9, %rsi
	jg	.L34
	cmpq	%rdx, %rsi
	jge	.L35
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L36:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r8
	cmpq	%rdx, %rsi
	jl	.L36
.L35:
	cmpq	%r8, %rdi
	jge	.L37
	movq	%rdx, 0(%rbp,%rdi,8)
	subq	$1, %r8
	movq	%r9, (%rcx)
.L34:
	addq	$1, %rdi
	jmp	.L33
.L37:
	leaq	-1(%rdi), %rax
	movq	%rax, 8(%rsp)
	cmpq	%rax, %r11
	jl	.L99
.L46:
	leaq	1(%r8), %rax
	movq	%rax, %r11
	cmpq	%rax, 16(%rsp)
	jg	.L31
	movq	80(%rsp), %r9
	movq	%rbp, %r10
	jmp	.L39
.L99:
	movq	%r8, 88(%rsp)
	movq	%r11, %r10
.L38:
	movq	8(%rsp), %r14
	movq	%r10, %r9
	leaq	(%r14,%r10), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L40:
	leaq	0(,%r14,8), %rax
	movq	0(%rbp,%r9,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L41
	cmpq	%rdx, %rsi
	jge	.L42
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L43:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r14
	cmpq	%rdx, %rsi
	jl	.L43
.L42:
	cmpq	%r14, %r9
	jge	.L44
	movq	%rdx, 0(%rbp,%r9,8)
	subq	$1, %r14
	movq	%rdi, (%rcx)
.L41:
	addq	$1, %r9
	jmp	.L40
.L44:
	subq	$1, %r9
	cmpq	%r9, %r10
	jl	.L100
.L53:
	leaq	1(%r14), %r10
	cmpq	%r10, 8(%rsp)
	jg	.L38
	movq	88(%rsp), %r8
	jmp	.L46
.L100:
	movq	%r9, %r15
.L45:
	leaq	(%r15,%r10), %rdx
	movq	%r10, %r8
	movq	%r15, %r13
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	0(,%r13,8), %rax
	movq	0(%rbp,%r8,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L48
	cmpq	%rdx, %rsi
	jge	.L49
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r13
	cmpq	%rdx, %rsi
	jl	.L50
.L49:
	cmpq	%r13, %r8
	jge	.L51
	movq	%rdx, 0(%rbp,%r8,8)
	subq	$1, %r13
	movq	%rdi, (%rcx)
.L48:
	addq	$1, %r8
	jmp	.L47
.L51:
	subq	$1, %r8
	cmpq	%r8, %r10
	jl	.L101
.L60:
	leaq	1(%r13), %r10
	cmpq	%r10, %r15
	jg	.L45
	jmp	.L53
.L101:
	movq	%r13, %rax
	movq	%r8, %r13
	movq	%rax, %r8
.L52:
	leaq	0(%r13,%r10), %rdx
	movq	%r10, %r9
	movq	%r13, %r12
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L54:
	leaq	0(,%r12,8), %rax
	movq	0(%rbp,%r9,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L55
	cmpq	%rdx, %rsi
	jge	.L56
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r12
	cmpq	%rdx, %rsi
	jl	.L57
.L56:
	cmpq	%r12, %r9
	jge	.L58
	movq	%rdx, 0(%rbp,%r9,8)
	subq	$1, %r12
	movq	%rdi, (%rcx)
.L55:
	addq	$1, %r9
	jmp	.L54
.L58:
	subq	$1, %r9
	cmpq	%r9, %r10
	jl	.L59
.L67:
	leaq	1(%r12), %r10
	cmpq	%r10, %r13
	jg	.L52
	movq	%r8, %r13
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	-1(%rdi), %rdx
	cmpq	%rdx, %r10
	jl	.L104
.L66:
	leaq	1(%rbx), %r10
	cmpq	%r10, %r9
	jle	.L67
.L59:
	leaq	(%r9,%r10), %rdx
	movq	%r10, %rdi
	movq	%r9, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	0(,%rbx,8), %rax
	movq	0(%rbp,%rdi,8), %r11
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r11, %rsi
	jg	.L62
	cmpq	%rdx, %rsi
	jge	.L63
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %rbx
	cmpq	%rdx, %rsi
	jl	.L64
.L63:
	cmpq	%rbx, %rdi
	jge	.L65
	movq	%rdx, 0(%rbp,%rdi,8)
	subq	$1, %rbx
	movq	%r11, (%rcx)
.L62:
	addq	$1, %rdi
	jmp	.L61
.L104:
	movq	%r10, %rsi
	movq	%rbp, %rdi
	movq	%r9, 104(%rsp)
	movq	%r8, 96(%rsp)
	call	a_qsort
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	jmp	.L66
	.cfi_endproc
.LFE24:
	.size	a_qsort, .-a_qsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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), %rcx
	leaq	-72(%rbp), %rdx
	pushq	%r13
	leaq	-80(%rbp), %rsi
	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
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	23(,%rcx,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L107
.L156:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L156
.L107:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L157
.L108:
	leaq	7(%rsp), %r14
	movq	%rsp, %rsi
	movq	%r14, %rax
	andq	$-8, %r14
	shrq	$3, %rax
	movq	%r14, -88(%rbp)
	movq	%rax, -104(%rbp)
	movq	-72(%rbp), %rax
	leaq	23(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L109:
	cmpq	%rsi, %rsp
	je	.L110
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L109
.L157:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L108
.L110:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L158
.L111:
	leaq	7(%rsp), %r15
	movq	%rsp, %rsi
	movq	%r15, %rax
	andq	$-8, %r15
	shrq	$3, %rax
	movq	%r15, -96(%rbp)
	movq	%rax, -112(%rbp)
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	movq	%rdx, %rdi
	andq	$-4096, %rdi
	subq	%rdi, %rsi
.L112:
	cmpq	%rsi, %rsp
	je	.L113
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L112
.L158:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L111
.L113:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L114
	orq	$0, -8(%rsp,%rdx)
.L114:
	leaq	15(,%rax,8), %rdx
	movq	%rsp, %rsi
	movq	%rsp, %r15
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L115:
	cmpq	%rsi, %rsp
	je	.L116
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L115
.L116:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L117
	orq	$0, -8(%rsp,%rax)
.L117:
	movq	%rsp, %r13
	testq	%rcx, %rcx
	jle	.L122
	movq	-88(%rbp), %rax
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	leaq	8(%rax), %r14
	.p2align 4,,10
	.p2align 3
.L121:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r14
	cmpq	%r12, -80(%rbp)
	jge	.L121
.L122:
	movq	-96(%rbp), %rax
	cmpq	$0, -72(%rbp)
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	leaq	8(%rax), %r14
	jle	.L120
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r14
	cmpq	%r12, -72(%rbp)
	jge	.L125
.L120:
	cmpq	$0, -64(%rbp)
	jle	.L155
	addq	$40, %r15
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r15, %r12
	.p2align 4,,10
	.p2align 3
.L129:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__isoc99_scanf@PLT
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	16(%r12), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	addq	$32, %r12
	cmpq	%r14, %rax
	jge	.L129
	testq	%rax, %rax
	jle	.L155
	leaq	1(%rax), %rsi
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L131:
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	addq	$32, %r15
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rbx
	movq	(%rdx,%rax,8), %rax
	addq	(%rbx,%rdi,8), %rax
	subq	-16(%r15), %rax
	movq	%rax, 0(%r13,%rcx,8)
	addq	$1, %rcx
	cmpq	%rsi, %rcx
	jne	.L131
	movq	%rbx, %rdi
.L124:
	movq	-80(%rbp), %rdx
	movl	$1, %esi
	call	a_qsort
	movq	-72(%rbp), %rdx
	movq	-96(%rbp), %rdi
	movl	$1, %esi
	call	a_qsort
	movq	-112(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	8(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	leaq	1(%rcx), %rsi
	addq	8(,%rax,8), %rdx
	movl	$1, %eax
	testq	%rcx, %rcx
	jle	.L127
	.p2align 4,,10
	.p2align 3
.L132:
	movq	0(%r13,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L132
.L127:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L159
	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
.L155:
	.cfi_restore_state
	movq	-88(%rbp), %rdi
	jmp	.L124
.L159:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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	ft_swap
	.type	ft_swap, @function
ft_swap:
.LFB23:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	movq	(%rsi), %rdx
	movq	%rdx, (%rdi)
	movq	%rax, (%rsi)
	ret
	.cfi_endproc
.LFE23:
	.size	ft_swap, .-ft_swap
	.p2align 4
	.globl	a_qsort
	.type	a_qsort, @function
a_qsort:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %r11
	movq	%rdi, %r10
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%rdx, 48(%rsp)
.L10:
	movq	48(%rsp), %rbx
	movq	%r11, %rdx
	movq	%r11, %rdi
	addq	%rbx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
.L4:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%rsi, %r9
	jl	.L5
	cmpq	%rcx, %rsi
	jge	.L6
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rsi, %rcx
	jg	.L7
.L6:
	cmpq	%rdx, %rdi
	jge	.L8
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L5:
	addq	$1, %rdi
	jmp	.L4
.L8:
	leaq	-1(%rdi), %rax
	movq	%rdx, 56(%rsp)
	movq	%rax, 24(%rsp)
	cmpq	%r11, %rax
	jg	.L9
.L18:
	movq	56(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	48(%rsp), %rax
	jl	.L10
	addq	$120, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	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
	ret
.L16:
	.cfi_restore_state
	leaq	-1(%rdi), %rax
	movq	%rdx, 64(%rsp)
	movq	%rax, 32(%rsp)
	cmpq	%rax, %r11
	jl	.L17
.L25:
	movq	64(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	%rax, 24(%rsp)
	jle	.L18
.L9:
	movq	24(%rsp), %rbx
	movq	%r11, %rdi
	movq	%rbx, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%r9, %rsi
	jg	.L13
	cmpq	%rcx, %rsi
	jge	.L14
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rsi
	jl	.L15
.L14:
	cmpq	%rdx, %rdi
	jge	.L16
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L13:
	addq	$1, %rdi
	jmp	.L12
.L23:
	leaq	-1(%rdi), %rax
	movq	%rdx, 72(%rsp)
	movq	%rax, 40(%rsp)
	cmpq	%rax, %r11
	jl	.L24
.L32:
	movq	72(%rsp), %rax
	addq	$1, %rax
	movq	%rax, %r11
	cmpq	%rax, 32(%rsp)
	jle	.L25
.L17:
	movq	32(%rsp), %rbx
	movq	%r11, %rdi
	movq	%rbx, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	movq	%rbx, %rdx
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L19:
	leaq	0(,%rdx,8), %rax
	movq	(%r10,%rdi,8), %r9
	leaq	(%r10,%rax), %r8
	movq	(%r8), %rcx
	cmpq	%r9, %rsi
	jg	.L20
	cmpq	%rcx, %rsi
	jge	.L21
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%rax, %r8
	movq	(%rax), %rcx
	subq	$8, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rsi
	jl	.L22
.L21:
	cmpq	%rdx, %rdi
	jge	.L23
	movq	%rcx, (%r10,%rdi,8)
	subq	$1, %rdx
	movq	%r9, (%r8)
.L20:
	addq	$1, %rdi
	jmp	.L19
.L30:
	leaq	-1(%rdi), %rax
	movq	%rax, 16(%rsp)
	cmpq	%rax, %r11
	jl	.L98
.L39:
	leaq	1(%r9), %rax
	movq	%rax, %r11
	cmpq	%rax, 40(%rsp)
	jle	.L32
.L24:
	movq	40(%rsp), %r9
	movq	%r11, %rdi
	movq	%r9, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	(%r10,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L26:
	leaq	0(,%r9,8), %rax
	movq	(%r10,%rdi,8), %r8
	leaq	(%r10,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r8, %rsi
	jg	.L27
	cmpq	%rdx, %rsi
	jge	.L28
	leaq	-8(%r10,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r9
	cmpq	%rdx, %rsi
	jl	.L29
.L28:
	cmpq	%r9, %rdi
	jge	.L30
	movq	%rdx, (%r10,%rdi,8)
	subq	$1, %r9
	movq	%r8, (%rcx)
.L27:
	addq	$1, %rdi
	jmp	.L26
.L98:
	movq	%r9, 80(%rsp)
	movq	%r10, %rbp
.L31:
	movq	16(%rsp), %r8
	movq	%r11, %rdi
	movq	%r8, %rdx
	addq	%r11, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L33:
	leaq	0(,%r8,8), %rax
	movq	0(%rbp,%rdi,8), %r9
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r9, %rsi
	jg	.L34
	cmpq	%rdx, %rsi
	jge	.L35
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L36:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r8
	cmpq	%rdx, %rsi
	jl	.L36
.L35:
	cmpq	%r8, %rdi
	jge	.L37
	movq	%rdx, 0(%rbp,%rdi,8)
	subq	$1, %r8
	movq	%r9, (%rcx)
.L34:
	addq	$1, %rdi
	jmp	.L33
.L37:
	leaq	-1(%rdi), %rax
	movq	%rax, 8(%rsp)
	cmpq	%rax, %r11
	jl	.L99
.L46:
	leaq	1(%r8), %rax
	movq	%rax, %r11
	cmpq	%rax, 16(%rsp)
	jg	.L31
	movq	80(%rsp), %r9
	movq	%rbp, %r10
	jmp	.L39
.L99:
	movq	%r8, 88(%rsp)
	movq	%r11, %r10
.L38:
	movq	8(%rsp), %r14
	movq	%r10, %r9
	leaq	(%r14,%r10), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L40:
	leaq	0(,%r14,8), %rax
	movq	0(%rbp,%r9,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L41
	cmpq	%rdx, %rsi
	jge	.L42
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L43:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r14
	cmpq	%rdx, %rsi
	jl	.L43
.L42:
	cmpq	%r14, %r9
	jge	.L44
	movq	%rdx, 0(%rbp,%r9,8)
	subq	$1, %r14
	movq	%rdi, (%rcx)
.L41:
	addq	$1, %r9
	jmp	.L40
.L44:
	subq	$1, %r9
	cmpq	%r9, %r10
	jl	.L100
.L53:
	leaq	1(%r14), %r10
	cmpq	%r10, 8(%rsp)
	jg	.L38
	movq	88(%rsp), %r8
	jmp	.L46
.L100:
	movq	%r9, %r15
.L45:
	leaq	(%r15,%r10), %rdx
	movq	%r10, %r8
	movq	%r15, %r13
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	0(,%r13,8), %rax
	movq	0(%rbp,%r8,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L48
	cmpq	%rdx, %rsi
	jge	.L49
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r13
	cmpq	%rdx, %rsi
	jl	.L50
.L49:
	cmpq	%r13, %r8
	jge	.L51
	movq	%rdx, 0(%rbp,%r8,8)
	subq	$1, %r13
	movq	%rdi, (%rcx)
.L48:
	addq	$1, %r8
	jmp	.L47
.L51:
	subq	$1, %r8
	cmpq	%r8, %r10
	jl	.L101
.L60:
	leaq	1(%r13), %r10
	cmpq	%r10, %r15
	jg	.L45
	jmp	.L53
.L101:
	movq	%r13, %rax
	movq	%r8, %r13
	movq	%rax, %r8
.L52:
	leaq	0(%r13,%r10), %rdx
	movq	%r10, %r9
	movq	%r13, %r12
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L54:
	leaq	0(,%r12,8), %rax
	movq	0(%rbp,%r9,8), %rdi
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdi, %rsi
	jg	.L55
	cmpq	%rdx, %rsi
	jge	.L56
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L57:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %r12
	cmpq	%rdx, %rsi
	jl	.L57
.L56:
	cmpq	%r12, %r9
	jge	.L58
	movq	%rdx, 0(%rbp,%r9,8)
	subq	$1, %r12
	movq	%rdi, (%rcx)
.L55:
	addq	$1, %r9
	jmp	.L54
.L58:
	subq	$1, %r9
	cmpq	%r9, %r10
	jl	.L59
.L67:
	leaq	1(%r12), %r10
	cmpq	%r10, %r13
	jg	.L52
	movq	%r8, %r13
	jmp	.L60
	.p2align 4,,10
	.p2align 3
.L65:
	leaq	-1(%rdi), %rdx
	cmpq	%rdx, %r10
	jl	.L104
.L66:
	leaq	1(%rbx), %r10
	cmpq	%r10, %r9
	jle	.L67
.L59:
	leaq	(%r9,%r10), %rdx
	movq	%r10, %rdi
	movq	%r9, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	0(%rbp,%rax,8), %rsi
	.p2align 4,,10
	.p2align 3
.L61:
	leaq	0(,%rbx,8), %rax
	movq	0(%rbp,%rdi,8), %r11
	leaq	0(%rbp,%rax), %rcx
	movq	(%rcx), %rdx
	cmpq	%r11, %rsi
	jg	.L62
	cmpq	%rdx, %rsi
	jge	.L63
	leaq	-8(%rbp,%rax), %rax
	.p2align 4,,10
	.p2align 3
.L64:
	movq	%rax, %rcx
	movq	(%rax), %rdx
	subq	$8, %rax
	subq	$1, %rbx
	cmpq	%rdx, %rsi
	jl	.L64
.L63:
	cmpq	%rbx, %rdi
	jge	.L65
	movq	%rdx, 0(%rbp,%rdi,8)
	subq	$1, %rbx
	movq	%r11, (%rcx)
.L62:
	addq	$1, %rdi
	jmp	.L61
.L104:
	movq	%r10, %rsi
	movq	%rbp, %rdi
	movq	%r9, 104(%rsp)
	movq	%r8, 96(%rsp)
	call	a_qsort
	movq	104(%rsp), %r9
	movq	96(%rsp), %r8
	jmp	.L66
	.cfi_endproc
.LFE24:
	.size	a_qsort, .-a_qsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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), %rcx
	leaq	-72(%rbp), %rdx
	pushq	%r13
	leaq	-80(%rbp), %rsi
	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
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	23(,%rcx,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L107
.L156:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L156
.L107:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L157
.L108:
	leaq	7(%rsp), %r14
	movq	%rsp, %rsi
	movq	%r14, %rax
	andq	$-8, %r14
	shrq	$3, %rax
	movq	%r14, -88(%rbp)
	movq	%rax, -104(%rbp)
	movq	-72(%rbp), %rax
	leaq	23(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L109:
	cmpq	%rsi, %rsp
	je	.L110
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L109
.L157:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L108
.L110:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L158
.L111:
	leaq	7(%rsp), %r15
	movq	%rsp, %rsi
	movq	%r15, %rax
	andq	$-8, %r15
	shrq	$3, %rax
	movq	%r15, -96(%rbp)
	movq	%rax, -112(%rbp)
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdx
	salq	$5, %rdx
	movq	%rdx, %rdi
	andq	$-4096, %rdi
	subq	%rdi, %rsi
.L112:
	cmpq	%rsi, %rsp
	je	.L113
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L112
.L158:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L111
.L113:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L114
	orq	$0, -8(%rsp,%rdx)
.L114:
	leaq	15(,%rax,8), %rdx
	movq	%rsp, %rsi
	movq	%rsp, %r15
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L115:
	cmpq	%rsi, %rsp
	je	.L116
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L115
.L116:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L117
	orq	$0, -8(%rsp,%rax)
.L117:
	movq	%rsp, %r13
	testq	%rcx, %rcx
	jle	.L122
	movq	-88(%rbp), %rax
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	leaq	8(%rax), %r14
	.p2align 4,,10
	.p2align 3
.L121:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r14
	cmpq	%r12, -80(%rbp)
	jge	.L121
.L122:
	movq	-96(%rbp), %rax
	cmpq	$0, -72(%rbp)
	movl	$1, %r12d
	leaq	.LC1(%rip), %rbx
	leaq	8(%rax), %r14
	jle	.L120
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r14
	cmpq	%r12, -72(%rbp)
	jge	.L125
.L120:
	cmpq	$0, -64(%rbp)
	jle	.L155
	addq	$40, %r15
	movl	$1, %r14d
	leaq	.LC1(%rip), %rbx
	movq	%r15, %r12
	.p2align 4,,10
	.p2align 3
.L129:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__isoc99_scanf@PLT
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	leaq	16(%r12), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	addq	$32, %r12
	cmpq	%r14, %rax
	jge	.L129
	testq	%rax, %rax
	jle	.L155
	leaq	1(%rax), %rsi
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L131:
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	addq	$32, %r15
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rbx
	movq	(%rdx,%rax,8), %rax
	addq	(%rbx,%rdi,8), %rax
	subq	-16(%r15), %rax
	movq	%rax, 0(%r13,%rcx,8)
	addq	$1, %rcx
	cmpq	%rsi, %rcx
	jne	.L131
	movq	%rbx, %rdi
.L124:
	movq	-80(%rbp), %rdx
	movl	$1, %esi
	call	a_qsort
	movq	-72(%rbp), %rdx
	movq	-96(%rbp), %rdi
	movl	$1, %esi
	call	a_qsort
	movq	-112(%rbp), %rax
	movq	-64(%rbp), %rcx
	movq	8(,%rax,8), %rdx
	movq	-104(%rbp), %rax
	leaq	1(%rcx), %rsi
	addq	8(,%rax,8), %rdx
	movl	$1, %eax
	testq	%rcx, %rcx
	jle	.L127
	.p2align 4,,10
	.p2align 3
.L132:
	movq	0(%r13,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L132
.L127:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L159
	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
.L155:
	.cfi_restore_state
	movq	-88(%rbp), %rdi
	jmp	.L124
.L159:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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>
void	ft_swap(long *a, long *b)
{
	long tmp;
	
	tmp = *a;
	*a = *b;
	*b = tmp;
}

/* 昇順 */
void	a_qsort(long *tab, long left, long right)
{
	long Left = left;
	long Right = right;
	long pivot = tab[(left + right) / 2];

	while (1)
	{
		while (tab[Left] < pivot)
			Left++;
		while (tab[Right] > pivot)
			Right--;
		if (Left >= Right)
			break ;
		ft_swap(&tab[Left], &tab[Right]);
		Left++;
		Right--;
	}

	if (Left - 1 > left)
		a_qsort(tab, left, Left - 1);
	if (Right + 1 < right)
		a_qsort(tab, Right + 1, right);
}

int		main()
{
	long A,B,M;
	scanf("%ld%ld%ld", &A,&B,&M);
	long a[A + 1],b[B + 1];
	long m[M + 1][4];
	long dis[M + 1];
	long i,j;
	for (i = 1; i <= A; i++)
		scanf("%ld", &a[i]);
	for (i = 1; i <= B; i++)
		scanf("%ld", &b[i]);
	for (i = 1; i <= M; i++)
	{
		for (j = 1;j <= 3; j++)
		{
			scanf("%ld", &m[i][j]);
		}
	}
	for (i = 1; i <= M; i++)
	{
		dis[i] = (a[m[i][1]] + b[m[i][2]]) - m[i][3];
	}
	a_qsort(a, 1, A);
	a_qsort(b, 1, B);
	long min = a[1] + b[1];
	for (i = 1; i <= M; i++)
	{
		if (dis[i] < min)
			min = dis[i];
	}
	printf("%ld\n", min);
	return (0);
}
1 1 2
10
10
1 0 5
1 1 10
 2 2 1
3 1
3 5
2 2 2
 2 3 1
3 3
3 6 3
1 2 1
 2 2 1
3 2
3 8
2 2 2
 1 1 2
17
10
1 0 0
1 1 10
 1 1 0
10
6
1 0 0
1 1 10
 1 1 2
17
10
1 0 0
1 1 14
 2 4 0
3 5
3 6 0
0 2 1
 2 4 0
2 1
1 5
1 2 2
 2 4 0
2 1
0 5
1 2 2

5
 4
 6
 5
 17
 16
 13
 3
 2
 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>
void	ft_swap(long *a, long *b)
{
	long tmp;
	
	tmp = *a;
	*a = *b;
	*b = tmp;
}

/* 昇順 */
void	a_qsort(long *tab, long left, long right)
{
	long Left = left;
	long Right = right;
	long pivot = tab[(left + right) / 2];

	while (1)
	{
		while (tab[Left] < pivot)
			Left++;
		while (tab[Right] > pivot)
			Right--;
		if (Left >= Right)
			break ;
		ft_swap(&tab[Left], &tab[Right]);
		Left++;
		Right--;
	}

	if (Left - 1 > left)
		a_qsort(tab, left, Left - 1);
	if (Right + 1 < right)
		a_qsort(tab, Right + 1, right);
}

int		main()
{
	long A,B,M;
	scanf("%ld%ld%ld", &A,&B,&M);
	long a[A + 1],b[B + 1];
	long m[M + 1][4];
	long dis[M + 1];
	long i,j;
	for (i = 1; i <= A; i++)
		scanf("%ld", &a[i]);
	for (i = 1; i <= B; i++)
		scanf("%ld", &b[i]);
	for (i = 1; i <= M; i++)
	{
		for (j = 1;j <= 3; j++)
		{
			scanf("%ld", &m[i][j]);
		}
	}
	for (i = 1; i <= M; i++)
	{
		dis[i] = (a[m[i][1]] + b[m[i][2]]) - m[i][3];
	}
	a_qsort(a, 1, A);
	a_qsort(b, 1, B);
	long min = a[1] + b[1];
	for (i = 1; i <= M; i++)
	{
		if (dis[i] < min)
			min = dis[i];
	}
	printf("%ld\n", min);
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ft_swap
	.type	ft_swap, @function
ft_swap:
.LFB0:
	.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
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-32(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ft_swap, .-ft_swap
	.globl	a_qsort
	.type	a_qsort, @function
a_qsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L3
.L4:
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jg	.L4
	jmp	.L5
.L6:
	subq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jl	.L6
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	ft_swap
	addq	$1, -24(%rbp)
	subq	$1, -16(%rbp)
	jmp	.L3
.L13:
	nop
	movq	-24(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -48(%rbp)
	jge	.L10
	movq	-24(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L10:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L14
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	a_qsort, .-a_qsort
	.section	.rodata
.LC0:
	.string	"%ld%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$232, %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	-152(%rbp), %rcx
	leaq	-160(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L16:
	cmpq	%rcx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L18
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movq	-160(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	salq	$5, %rax
	movq	%rax, %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L25:
	cmpq	%rdx, %rsp
	je	.L26
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L25
.L26:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L27
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L27:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L28:
	movq	-168(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L29
	movq	$1, -144(%rbp)
	jmp	.L30
.L31:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L30:
	movq	-160(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L31
	movq	$1, -144(%rbp)
	jmp	.L32
.L35:
	movq	$1, -136(%rbp)
	jmp	.L33
.L34:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -136(%rbp)
.L33:
	cmpq	$3, -136(%rbp)
	jle	.L34
	addq	$1, -144(%rbp)
.L32:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L35
	movq	$1, -144(%rbp)
	jmp	.L36
.L37:
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$16, %rax
	movq	(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-80(%rbp), %rcx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	addq	$24, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	addq	$1, -144(%rbp)
.L36:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L37
	movq	-168(%rbp), %rdx
	movq	-112(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-160(%rbp), %rdx
	movq	-96(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-112(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, -128(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L38
.L40:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -128(%rbp)
	jle	.L39
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -128(%rbp)
.L39:
	addq	$1, -144(%rbp)
.L38:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L40
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%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	.L42
	call	__stack_chk_fail@PLT
.L42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	ft_swap
	.type	ft_swap, @function
ft_swap:
.LFB0:
	.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
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-24(%rbp), %rax
	movq	%rdx, (%rax)
	movq	-32(%rbp), %rax
	movq	-8(%rbp), %rdx
	movq	%rdx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ft_swap, .-ft_swap
	.globl	a_qsort
	.type	a_qsort, @function
a_qsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	jmp	.L3
.L4:
	addq	$1, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jg	.L4
	jmp	.L5
.L6:
	subq	$1, -16(%rbp)
.L5:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -8(%rbp)
	jl	.L6
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rax, %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	ft_swap
	addq	$1, -24(%rbp)
	subq	$1, -16(%rbp)
	jmp	.L3
.L13:
	nop
	movq	-24(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -48(%rbp)
	jge	.L10
	movq	-24(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	-48(%rbp), %rcx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L10:
	movq	-16(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L14
	movq	-16(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	a_qsort
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	a_qsort, .-a_qsort
	.section	.rodata
.LC0:
	.string	"%ld%ld%ld"
.LC1:
	.string	"%ld"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$232, %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	-152(%rbp), %rcx
	leaq	-160(%rbp), %rdx
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	1(%rax), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -120(%rbp)
	movq	%rdx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%rdx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L16:
	cmpq	%rcx, %rsp
	je	.L17
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L16
.L17:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L18
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L18:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movq	-160(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -104(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L19:
	cmpq	%rdx, %rsp
	je	.L20
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L19
.L20:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L21
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L21:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -88(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	salq	$5, %rax
	movq	%rax, %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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movq	-152(%rbp), %rax
	addq	$1, %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -72(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L25:
	cmpq	%rdx, %rsp
	je	.L26
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L25
.L26:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L27
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L27:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L28
.L29:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L28:
	movq	-168(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L29
	movq	$1, -144(%rbp)
	jmp	.L30
.L31:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -144(%rbp)
.L30:
	movq	-160(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L31
	movq	$1, -144(%rbp)
	jmp	.L32
.L35:
	movq	$1, -136(%rbp)
	jmp	.L33
.L34:
	movq	-144(%rbp), %rax
	leaq	0(,%rax,4), %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -136(%rbp)
.L33:
	cmpq	$3, -136(%rbp)
	jle	.L34
	addq	$1, -144(%rbp)
.L32:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L35
	movq	$1, -144(%rbp)
	jmp	.L36
.L37:
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	-80(%rbp), %rdx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rdx, %rax
	addq	$16, %rax
	movq	(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	(%rax,%rdx,8), %rax
	leaq	(%rcx,%rax), %rdx
	movq	-80(%rbp), %rcx
	movq	-144(%rbp), %rax
	salq	$5, %rax
	addq	%rcx, %rax
	addq	$24, %rax
	movq	(%rax), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	%rcx, (%rax,%rdx,8)
	addq	$1, -144(%rbp)
.L36:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L37
	movq	-168(%rbp), %rdx
	movq	-112(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-160(%rbp), %rdx
	movq	-96(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	a_qsort
	movq	-112(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-96(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rdx, %rax
	movq	%rax, -128(%rbp)
	movq	$1, -144(%rbp)
	jmp	.L38
.L40:
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -128(%rbp)
	jle	.L39
	movq	-64(%rbp), %rax
	movq	-144(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -128(%rbp)
.L39:
	addq	$1, -144(%rbp)
.L38:
	movq	-152(%rbp), %rax
	cmpq	%rax, -144(%rbp)
	jle	.L40
	movq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%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	.L42
	call	__stack_chk_fail@PLT
.L42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
