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>

#define For(i,N) for(int i=0;i<N;i++)

void QuickSort(int left, int right, int array[]) {
	int left0 = left, right0 = right;
	int buff;
	int pivot;
	if (left >= right)return;
	pivot = (array[left] + array[right] + array[(right + left) / 2]) / 3;
	while (1) {
		while (array[left] < pivot)left++;
		while (array[right] > pivot)right--;
		if (left >= right)break;
		buff = array[left];
		array[left] = array[right];
		array[right] = buff;
		left++;
		right--;
	}
	QuickSort(left0, left - 1, array);
	QuickSort(right + 1, right0, array);
}

int main() {
	int N;
	char top4[4][6] = { "9997","9998","9999","10000" };
	int madeNum[16];
	char read[6];
	char s[15];
	scanf("%d", &N);
	For(i, N) {
		scanf("%s", &read);
		For(i, 4) {
			if (atoi(top4[i]) > atoi(read)) {
				for (int k = 3; k != i; k--) {
					strcpy(top4[k], top4[k - 1]);
				}
				strcpy(top4[i], read);
				break;
			}
		}
	}
	For(i, 4) {
		For(j, 4) {
			if (i == j) { madeNum[i + 4 * j] = 0; continue; }
			strcpy(s, top4[i]);
			strcat(s, top4[j]);
			madeNum[i + 4 * j] = atoi(s);
		}
	}
	QuickSort(0, 15, madeNum);
	printf("%d\n", madeNum[6]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	QuickSort
	.type	QuickSort, @function
QuickSort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L5
	jmp	.L6
.L7:
	subl	$1, -24(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -20(%rbp)
	subl	$1, -24(%rbp)
	jmp	.L4
.L13:
	nop
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	QuickSort
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	QuickSort
	jmp	.L1
.L12:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	QuickSort, .-QuickSort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$926497081, -144(%rbp)
	movw	$0, -140(%rbp)
	movl	$943274297, -138(%rbp)
	movw	$0, -134(%rbp)
	movl	$960051513, -132(%rbp)
	movw	$0, -128(%rbp)
	movl	$808464433, -126(%rbp)
	movw	$48, -122(%rbp)
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -164(%rbp)
	jmp	.L15
.L22:
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -160(%rbp)
	jmp	.L16
.L21:
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	leaq	-45(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	cmpl	%eax, %ebx
	jle	.L17
	movl	$3, -156(%rbp)
	jmp	.L18
.L19:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	leaq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-144(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -156(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jne	.L19
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L20
.L17:
	addl	$1, -160(%rbp)
.L16:
	cmpl	$3, -160(%rbp)
	jle	.L21
.L20:
	addl	$1, -164(%rbp)
.L15:
	movl	-168(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L28:
	movl	$0, -148(%rbp)
	jmp	.L24
.L27:
	movl	-152(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jne	.L25
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	jmp	.L26
.L25:
	leaq	-144(%rbp), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-144(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcat@PLT
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	leal	(%rdx,%rax), %ebx
	leaq	-39(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movslq	%ebx, %rdx
	movl	%eax, -112(%rbp,%rdx,4)
.L26:
	addl	$1, -148(%rbp)
.L24:
	cmpl	$3, -148(%rbp)
	jle	.L27
	addl	$1, -152(%rbp)
.L23:
	cmpl	$3, -152(%rbp)
	jle	.L28
	leaq	-112(%rbp), %rax
	movq	%rax, %rdx
	movl	$15, %esi
	movl	$0, %edi
	call	QuickSort
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	QuickSort
	.type	QuickSort, @function
QuickSort:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jge	.L13
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r9d
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%esi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	(%rdx,%rbp,4), %r12
.L10:
	leal	(%r14,%r9), %ecx
	movslq	%r9d, %rax
	movl	(%r12), %edx
	movl	%r9d, %r8d
	leaq	0(%r13,%rax,4), %rdi
	movl	%ecx, %eax
	movl	%r14d, %ebx
	shrl	$31, %eax
	addl	%ecx, %eax
	movl	(%rdi), %ecx
	sarl	%eax
	cltq
	addl	%edx, %ecx
	addl	0(%r13,%rax,4), %ecx
	movl	%ecx, %eax
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx
	sarl	$31, %eax
	shrq	$32, %rcx
	subl	%eax, %ecx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%rdi), %r10d
	cmpl	%ecx, %r10d
	jl	.L4
	cmpl	%edx, %ecx
	jge	.L5
	leaq	-4(%r13,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %rsi
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebx
	cmpl	%ecx, %edx
	jg	.L6
	cmpl	%ebx, %r8d
	jge	.L8
.L17:
	subl	$1, %ebx
	movl	%edx, (%rdi)
	movslq	%ebx, %rax
	movl	%r10d, (%rsi)
	movl	0(%r13,%rax,4), %edx
.L4:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rax,4), %rsi
	cmpl	%ebx, %r8d
	jl	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r9d, %edi
	leal	-1(%r8), %esi
	movq	%r13, %rdx
	call	QuickSort
	leal	1(%rbx), %r9d
	cmpl	%r14d, %r9d
	jl	.L10
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE51:
	.size	QuickSort, .-QuickSort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movdqa	.LC3(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	movabsq	$13563782407192576, %rax
	movq	%rax, 48(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L40
	leaq	32(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	131(%rsp), %rbp
	movq	%rax, (%rsp)
	leaq	44(%rsp), %rax
	leaq	.LC1(%rip), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r13
.L26:
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%r13, %rdi
	call	strtol@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strtol@PLT
	cmpl	%ebx, %eax
	jl	.L41
	addl	$1, %r15d
	addq	$6, %r13
	cmpl	$4, %r15d
	jne	.L26
	addl	$1, %r12d
	cmpl	%r12d, 28(%rsp)
	jg	.L19
.L27:
	leaq	64(%rsp), %rax
	movq	(%rsp), %r13
	xorl	%r12d, %r12d
	leaq	137(%rsp), %rbp
	movq	%rax, 8(%rsp)
.L20:
	movq	8(%rsp), %rax
	movq	(%rsp), %r15
	xorl	%ebx, %ebx
	leaq	(%rax,%r12,4), %r14
.L32:
	cmpl	%r12d, %ebx
	je	.L28
	movl	$15, %edx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdx
	movq	%r15, %rsi
	subq	%rax, %rdx
	movq	%rax, %rdi
	addq	$15, %rdx
	call	__strcpy_chk@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	strtol@PLT
	movl	%eax, (%r14)
.L39:
	addl	$1, %ebx
	addq	$16, %r14
	addq	$6, %r15
	cmpl	$4, %ebx
	jne	.L32
	addq	$1, %r12
	addq	$6, %r13
	cmpq	$4, %r12
	jne	.L20
	movq	8(%rsp), %rdx
	xorl	%edi, %edi
	movl	$15, %esi
	call	QuickSort
	movl	88(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movl	$0, (%r14)
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L41:
	cmpl	$3, %r15d
	je	.L25
	movl	$2, %eax
	leaq	50(%rsp), %rbx
	subl	%r15d, %eax
	movq	8(%rsp), %r15
	leaq	(%rax,%rax,2), %rax
	addq	%rax, %rax
	subq	%rax, %r15
.L24:
	movq	%rbx, %rdi
	subq	$6, %rbx
	movq	%rbx, %rsi
	call	strcpy@PLT
	cmpq	%r15, %rbx
	jne	.L24
.L25:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	addl	$1, %r12d
	call	strcpy@PLT
	cmpl	%r12d, 28(%rsp)
	jg	.L19
	jmp	.L27
.L40:
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	4123326934760896825
	.quad	4123389850810333241
	.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	QuickSort
	.type	QuickSort, @function
QuickSort:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	jge	.L13
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	%edi, %r9d
	movl	%esi, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%rdx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movslq	%esi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	(%rdx,%rbp,4), %r12
.L10:
	leal	(%r14,%r9), %ecx
	movslq	%r9d, %rax
	movl	(%r12), %edx
	movl	%r9d, %r8d
	leaq	0(%r13,%rax,4), %rdi
	movl	%ecx, %eax
	movl	%r14d, %ebx
	shrl	$31, %eax
	addl	%ecx, %eax
	movl	(%rdi), %ecx
	sarl	%eax
	cltq
	addl	%edx, %ecx
	addl	0(%r13,%rax,4), %ecx
	movl	%ecx, %eax
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rcx
	sarl	$31, %eax
	shrq	$32, %rcx
	subl	%eax, %ecx
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%rdi), %r10d
	cmpl	%ecx, %r10d
	jl	.L4
	cmpl	%edx, %ecx
	jge	.L5
	leaq	-4(%r13,%rax,4), %rax
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %rsi
	movl	(%rax), %edx
	subq	$4, %rax
	subl	$1, %ebx
	cmpl	%ecx, %edx
	jg	.L6
	cmpl	%ebx, %r8d
	jge	.L8
.L17:
	subl	$1, %ebx
	movl	%edx, (%rdi)
	movslq	%ebx, %rax
	movl	%r10d, (%rsi)
	movl	0(%r13,%rax,4), %edx
.L4:
	addq	$4, %rdi
	addl	$1, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	0(%r13,%rax,4), %rsi
	cmpl	%ebx, %r8d
	jl	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r9d, %edi
	leal	-1(%r8), %esi
	movq	%r13, %rdx
	call	QuickSort
	leal	1(%rbx), %r9d
	cmpl	%r14d, %r9d
	jl	.L10
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE51:
	.size	QuickSort, .-QuickSort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movdqa	.LC3(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	movabsq	$13563782407192576, %rax
	movq	%rax, 48(%rsp)
	xorl	%eax, %eax
	movaps	%xmm0, 32(%rsp)
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	testl	%eax, %eax
	jle	.L40
	leaq	32(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	131(%rsp), %rbp
	movq	%rax, (%rsp)
	leaq	44(%rsp), %rax
	leaq	.LC1(%rip), %r14
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r13
.L26:
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%r13, %rdi
	call	strtol@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rbp, %rdi
	movq	%rax, %rbx
	call	strtol@PLT
	cmpl	%ebx, %eax
	jl	.L41
	addl	$1, %r15d
	addq	$6, %r13
	cmpl	$4, %r15d
	jne	.L26
	addl	$1, %r12d
	cmpl	%r12d, 28(%rsp)
	jg	.L19
.L27:
	leaq	64(%rsp), %rax
	movq	(%rsp), %r13
	xorl	%r12d, %r12d
	leaq	137(%rsp), %rbp
	movq	%rax, 8(%rsp)
.L20:
	movq	8(%rsp), %rax
	movq	(%rsp), %r15
	xorl	%ebx, %ebx
	leaq	(%rax,%r12,4), %r14
.L32:
	cmpl	%r12d, %ebx
	je	.L28
	movl	$15, %edx
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__stpcpy_chk@PLT
	movq	%rbp, %rdx
	movq	%r15, %rsi
	subq	%rax, %rdx
	movq	%rax, %rdi
	addq	$15, %rdx
	call	__strcpy_chk@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	strtol@PLT
	movl	%eax, (%r14)
.L39:
	addl	$1, %ebx
	addq	$16, %r14
	addq	$6, %r15
	cmpl	$4, %ebx
	jne	.L32
	addq	$1, %r12
	addq	$6, %r13
	cmpq	$4, %r12
	jne	.L20
	movq	8(%rsp), %rdx
	xorl	%edi, %edi
	movl	$15, %esi
	call	QuickSort
	movl	88(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$168, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	movl	$0, (%r14)
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L41:
	cmpl	$3, %r15d
	je	.L25
	movl	$2, %eax
	leaq	50(%rsp), %rbx
	subl	%r15d, %eax
	movq	8(%rsp), %r15
	leaq	(%rax,%rax,2), %rax
	addq	%rax, %rax
	subq	%rax, %r15
.L24:
	movq	%rbx, %rdi
	subq	$6, %rbx
	movq	%rbx, %rsi
	call	strcpy@PLT
	cmpq	%r15, %rbx
	jne	.L24
.L25:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	addl	$1, %r12d
	call	strcpy@PLT
	cmpl	%r12d, 28(%rsp)
	jg	.L19
	jmp	.L27
.L40:
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC3:
	.quad	4123326934760896825
	.quad	4123389850810333241
	.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>

#define For(i,N) for(int i=0;i<N;i++)

void QuickSort(int left, int right, int array[]) {
	int left0 = left, right0 = right;
	int buff;
	int pivot;
	if (left >= right)return;
	pivot = (array[left] + array[right] + array[(right + left) / 2]) / 3;
	while (1) {
		while (array[left] < pivot)left++;
		while (array[right] > pivot)right--;
		if (left >= right)break;
		buff = array[left];
		array[left] = array[right];
		array[right] = buff;
		left++;
		right--;
	}
	QuickSort(left0, left - 1, array);
	QuickSort(right + 1, right0, array);
}

int main() {
	int N;
	char top4[4][6] = { "9997","9998","9999","10000" };
	int madeNum[16];
	char read[6];
	char s[15];
	scanf("%d", &N);
	For(i, N) {
		scanf("%s", &read);
		For(i, 4) {
			if (atoi(top4[i]) > atoi(read)) {
				for (int k = 3; k != i; k--) {
					strcpy(top4[k], top4[k - 1]);
				}
				strcpy(top4[i], read);
				break;
			}
		}
	}
	For(i, 4) {
		For(j, 4) {
			if (i == j) { madeNum[i + 4 * j] = 0; continue; }
			strcpy(s, top4[i]);
			strcat(s, top4[j]);
			madeNum[i + 4 * j] = atoi(s);
		}
	}
	QuickSort(0, 15, madeNum);
	printf("%d\n", madeNum[6]);
	return 0;
}

3
2
7
5

52

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>

#define For(i,N) for(int i=0;i<N;i++)

void QuickSort(int left, int right, int array[]) {
	int left0 = left, right0 = right;
	int buff;
	int pivot;
	if (left >= right)return;
	pivot = (array[left] + array[right] + array[(right + left) / 2]) / 3;
	while (1) {
		while (array[left] < pivot)left++;
		while (array[right] > pivot)right--;
		if (left >= right)break;
		buff = array[left];
		array[left] = array[right];
		array[right] = buff;
		left++;
		right--;
	}
	QuickSort(left0, left - 1, array);
	QuickSort(right + 1, right0, array);
}

int main() {
	int N;
	char top4[4][6] = { "9997","9998","9999","10000" };
	int madeNum[16];
	char read[6];
	char s[15];
	scanf("%d", &N);
	For(i, N) {
		scanf("%s", &read);
		For(i, 4) {
			if (atoi(top4[i]) > atoi(read)) {
				for (int k = 3; k != i; k--) {
					strcpy(top4[k], top4[k - 1]);
				}
				strcpy(top4[i], read);
				break;
			}
		}
	}
	For(i, 4) {
		For(j, 4) {
			if (i == j) { madeNum[i + 4 * j] = 0; continue; }
			strcpy(s, top4[i]);
			strcat(s, top4[j]);
			madeNum[i + 4 * j] = atoi(s);
		}
	}
	QuickSort(0, 15, madeNum);
	printf("%d\n", madeNum[6]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	QuickSort
	.type	QuickSort, @function
QuickSort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L5
	jmp	.L6
.L7:
	subl	$1, -24(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -20(%rbp)
	subl	$1, -24(%rbp)
	jmp	.L4
.L13:
	nop
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	QuickSort
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	QuickSort
	jmp	.L1
.L12:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	QuickSort, .-QuickSort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$926497081, -144(%rbp)
	movw	$0, -140(%rbp)
	movl	$943274297, -138(%rbp)
	movw	$0, -134(%rbp)
	movl	$960051513, -132(%rbp)
	movw	$0, -128(%rbp)
	movl	$808464433, -126(%rbp)
	movw	$48, -122(%rbp)
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -164(%rbp)
	jmp	.L15
.L22:
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -160(%rbp)
	jmp	.L16
.L21:
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	leaq	-45(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	cmpl	%eax, %ebx
	jle	.L17
	movl	$3, -156(%rbp)
	jmp	.L18
.L19:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	leaq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-144(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -156(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jne	.L19
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L20
.L17:
	addl	$1, -160(%rbp)
.L16:
	cmpl	$3, -160(%rbp)
	jle	.L21
.L20:
	addl	$1, -164(%rbp)
.L15:
	movl	-168(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L28:
	movl	$0, -148(%rbp)
	jmp	.L24
.L27:
	movl	-152(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jne	.L25
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	jmp	.L26
.L25:
	leaq	-144(%rbp), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-144(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcat@PLT
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	leal	(%rdx,%rax), %ebx
	leaq	-39(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movslq	%ebx, %rdx
	movl	%eax, -112(%rbp,%rdx,4)
.L26:
	addl	$1, -148(%rbp)
.L24:
	cmpl	$3, -148(%rbp)
	jle	.L27
	addl	$1, -152(%rbp)
.L23:
	cmpl	$3, -152(%rbp)
	jle	.L28
	leaq	-112(%rbp), %rax
	movq	%rax, %rdx
	movl	$15, %esi
	movl	$0, %edi
	call	QuickSort
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	QuickSort
	.type	QuickSort, @function
QuickSort:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	%rdx, -32(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L12
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	leal	(%rdx,%rax), %ecx
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -20(%rbp)
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jg	.L5
	jmp	.L6
.L7:
	subl	$1, -24(%rbp)
.L6:
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L7
	movl	-20(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L13
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -20(%rbp)
	subl	$1, -24(%rbp)
	jmp	.L4
.L13:
	nop
	movl	-20(%rbp), %eax
	leal	-1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-16(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	QuickSort
	movl	-24(%rbp), %eax
	leal	1(%rax), %ecx
	movq	-32(%rbp), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	QuickSort
	jmp	.L1
.L12:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	QuickSort, .-QuickSort
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$168, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$926497081, -144(%rbp)
	movw	$0, -140(%rbp)
	movl	$943274297, -138(%rbp)
	movw	$0, -134(%rbp)
	movl	$960051513, -132(%rbp)
	movw	$0, -128(%rbp)
	movl	$808464433, -126(%rbp)
	movw	$48, -122(%rbp)
	leaq	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -164(%rbp)
	jmp	.L15
.L22:
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -160(%rbp)
	jmp	.L16
.L21:
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, %ebx
	leaq	-45(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	cmpl	%eax, %ebx
	jle	.L17
	movl	$3, -156(%rbp)
	jmp	.L18
.L19:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	leaq	-144(%rbp), %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-144(%rbp), %rsi
	movl	-156(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	subl	$1, -156(%rbp)
.L18:
	movl	-156(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jne	.L19
	leaq	-144(%rbp), %rcx
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-45(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rdi
	call	strcpy@PLT
	jmp	.L20
.L17:
	addl	$1, -160(%rbp)
.L16:
	cmpl	$3, -160(%rbp)
	jle	.L21
.L20:
	addl	$1, -164(%rbp)
.L15:
	movl	-168(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L22
	movl	$0, -152(%rbp)
	jmp	.L23
.L28:
	movl	$0, -148(%rbp)
	jmp	.L24
.L27:
	movl	-152(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jne	.L25
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	$0, -112(%rbp,%rax,4)
	jmp	.L26
.L25:
	leaq	-144(%rbp), %rcx
	movl	-152(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	leaq	-144(%rbp), %rcx
	movl	-148(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-39(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcat@PLT
	movl	-148(%rbp), %eax
	leal	0(,%rax,4), %edx
	movl	-152(%rbp), %eax
	leal	(%rdx,%rax), %ebx
	leaq	-39(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movslq	%ebx, %rdx
	movl	%eax, -112(%rbp,%rdx,4)
.L26:
	addl	$1, -148(%rbp)
.L24:
	cmpl	$3, -148(%rbp)
	jle	.L27
	addl	$1, -152(%rbp)
.L23:
	cmpl	$3, -152(%rbp)
	jle	.L28
	leaq	-112(%rbp), %rax
	movq	%rax, %rdx
	movl	$15, %esi
	movl	$0, %edi
	call	QuickSort
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
