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

typedef long long int ll;

int MAX(int a, int b){return a>b?a:b;}
int MIN(int a, int b){return a>b?b:a;}
int compare(const void* a, const void* b){return *(int*)a - *(int*)b;}
int llcompare(const void* a, const void* b){return (int)(*(ll*)a - *(ll*)b);}
ll llMAX(ll a, ll b){return a>b?a:b;}
ll llMIN(ll a, ll b){return a>b?b:a;}
ll digits(ll a){ll tmp=a; ll cnt=0; while(tmp>0){tmp/=10; cnt+=1;} return cnt;}

int main(void){
    int n;
    scanf("%d", &n);
    ll a[n];
    for(int i=0; i<n; i++){scanf("%lld", &a[i]);}
  
    qsort(a, n, sizeof(ll), llcompare);

    int b_idx = 0;
    ll b[n];//本数が2本以上4本未満の長さ(長方形用)
    int c_idx = 0;
    ll c[n];//本数が4本以上の長さ(正方形用)
    for(int i=0; i<n; i++){b[i]=0; c[i]=0;}

    int cnt = 0;
    ll tmp = a[n-1];
    for(int i=n-1; i>=0; i--){
        if(tmp == a[i]){
            cnt += 1;
        }else{
            if(cnt > 3){
                c[c_idx] = tmp;
                c_idx += 1;
                b[b_idx] = tmp;
                b_idx += 1;
            }else if(cnt > 1){
                b[b_idx] = tmp;
                b_idx += 1;
            }
            tmp = a[i];
            cnt = 1;
        }
    }

    if(cnt > 3){
        c[c_idx] = tmp;
        c_idx += 1;

    }
    else if(cnt > 1){
        b[b_idx] = tmp;
        b_idx += 1;
    }

    ll ans = 0;

    for(int i=0; i<c_idx; i++){
        ans = llMAX(c[i]*c[i], ans);
    }

    for(int i=0; i<b_idx; i++){
        ans = llMAX(b[i]*b[i+1], ans);
    }

    printf("%lld\n", ans);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MIN, .-MIN
	.globl	compare
	.type	compare, @function
compare:
.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, .-compare
	.globl	llcompare
	.type	llcompare, @function
llcompare:
.LFB9:
	.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
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	llcompare, .-llcompare
	.globl	llMAX
	.type	llMAX, @function
llMAX:
.LFB10:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	llMAX, .-llMAX
	.globl	llMIN
	.type	llMIN, @function
llMIN:
.LFB11:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	llMIN, .-llMIN
	.globl	digits
	.type	digits, @function
digits:
.LFB12:
	.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	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L14
.L15:
	movq	-16(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	cmpq	$0, -16(%rbp)
	jg	.L15
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	digits, .-digits
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	$184, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	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
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L21
.L22:
	movl	-152(%rbp), %eax
	cltq
	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
	addl	$1, -152(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L22
	movl	-156(%rbp), %eax
	movslq	%eax, %rsi
	movq	-96(%rbp), %rax
	leaq	llcompare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -148(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	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, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L23:
	cmpq	%rdx, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L24:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L25
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L25:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -144(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,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
.L26:
	cmpq	%rdx, %rsp
	je	.L27
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L26
.L27:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L28
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L28:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L29
.L30:
	movq	-80(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	addl	$1, -140(%rbp)
.L29:
	movl	-156(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L31
.L36:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -120(%rbp)
	jne	.L32
	addl	$1, -136(%rbp)
	jmp	.L33
.L32:
	cmpl	$3, -136(%rbp)
	jle	.L34
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
	jmp	.L35
.L34:
	cmpl	$1, -136(%rbp)
	jle	.L35
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L35:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -136(%rbp)
.L33:
	subl	$1, -132(%rbp)
.L31:
	cmpl	$0, -132(%rbp)
	jns	.L36
	cmpl	$3, -136(%rbp)
	jle	.L37
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	jmp	.L38
.L37:
	cmpl	$1, -136(%rbp)
	jle	.L38
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L38:
	movq	$0, -112(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L39
.L40:
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -128(%rbp)
.L39:
	movl	-128(%rbp), %eax
	cmpl	-144(%rbp), %eax
	jl	.L40
	movl	$0, -124(%rbp)
	jmp	.L41
.L42:
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -124(%rbp)
.L41:
	movl	-124(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L42
	movq	-112(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	llcompare
	.type	llcompare, @function
llcompare:
.LFB54:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE54:
	.size	llcompare, .-llcompare
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	MAX, .-MAX
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	MIN, .-MIN
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB53:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare, .-compare
	.p2align 4
	.globl	llMAX
	.type	llMAX, @function
llMAX:
.LFB55:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	llMAX, .-llMAX
	.p2align 4
	.globl	llMIN
	.type	llMIN, @function
llMIN:
.LFB56:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE56:
	.size	llMIN, .-llMIN
	.p2align 4
	.globl	digits
	.type	digits, @function
digits:
.LFB57:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	jle	.L8
	movabsq	$-3689348814741910323, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addq	$1, %r8
	mulq	%rsi
	shrq	$3, %rdx
	cmpq	$9, %rcx
	jg	.L10
.L8:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE57:
	.size	digits, .-digits
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB58:
	.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	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,8), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L15
.L60:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L60
.L15:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L61
.L16:
	movq	%rsp, %r13
	testl	%eax, %eax
	jle	.L17
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r12
	cmpl	%ebx, %eax
	jg	.L18
	movslq	%eax, %rsi
.L17:
	leaq	llcompare(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,8), %rax
	movq	%rdx, %r12
	movq	%rax, %rdi
	movq	%rax, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L20
.L62:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L62
.L20:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L63
.L21:
	leaq	7(%rsp), %r14
	movq	%rax, %rcx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%r14, %rbx
	andq	$-16, %rcx
	andq	$-8, %r14
	subq	%rax, %rsi
	shrq	$3, %rbx
.L22:
	cmpq	%rsi, %rsp
	je	.L23
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L22
.L63:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L21
.L61:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L16
.L23:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L64
.L24:
	movq	%rsp, %r15
	testl	%r12d, %r12d
	jle	.L39
	salq	$3, %rdx
	xorl	%esi, %esi
	movq	%r14, %rdi
	movq	%rdx, -72(%rbp)
	call	memset@PLT
	movq	-72(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	memset@PLT
	leal	-1(%r12), %eax
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	cltq
	xorl	%edi, %edi
	movq	0(%r13,%rax,8), %rdx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	$3, %esi
	jle	.L28
	movslq	%r8d, %rsi
	addl	$1, %r8d
	movq	%rdx, (%r15,%rsi,8)
.L59:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, (%r14,%rsi,8)
	movq	%rcx, %rdx
	movl	$1, %esi
.L27:
	subq	$1, %rax
	testl	%eax, %eax
	js	.L65
.L29:
	movq	0(%r13,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	subq	$1, %rax
	addl	$1, %esi
	testl	%eax, %eax
	jns	.L29
.L65:
	cmpl	$3, %esi
	jle	.L30
	movslq	%r8d, %rax
	addl	$1, %r8d
	movq	%rdx, (%r15,%rax,8)
.L31:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L36:
	movq	(%r15,%rcx,8), %rax
	imulq	%rax, %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	addq	$1, %rcx
	cmpl	%ecx, %r8d
	jg	.L36
.L35:
	testl	%edi, %edi
	je	.L25
.L34:
	movq	0(,%rbx,8), %rsi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L37:
	movq	%rsi, %rax
	movq	8(%r14,%rcx,8), %rsi
	imulq	%rsi, %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	addq	$1, %rcx
	cmpl	%ecx, %edi
	jg	.L37
.L25:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L66
	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
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	cmpl	$1, %esi
	jg	.L59
	movq	%rcx, %rdx
	movl	$1, %esi
	jmp	.L27
.L30:
	subl	$1, %esi
	je	.L32
	movslq	%edi, %rax
	addl	$1, %edi
	movq	%rdx, (%r14,%rax,8)
	xorl	%edx, %edx
	testl	%r8d, %r8d
	jne	.L31
	jmp	.L34
.L39:
	xorl	%edx, %edx
	jmp	.L25
.L32:
	testl	%r8d, %r8d
	jne	.L31
	xorl	%edx, %edx
	jmp	.L35
.L64:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L24
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE58:
	.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	llcompare
	.type	llcompare, @function
llcompare:
.LFB54:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE54:
	.size	llcompare, .-llcompare
	.p2align 4
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	MAX, .-MAX
	.p2align 4
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	MIN, .-MIN
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB53:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare, .-compare
	.p2align 4
	.globl	llMAX
	.type	llMAX, @function
llMAX:
.LFB55:
	.cfi_startproc
	endbr64
	cmpq	%rdi, %rsi
	movq	%rdi, %rax
	cmovge	%rsi, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	llMAX, .-llMAX
	.p2align 4
	.globl	llMIN
	.type	llMIN, @function
llMIN:
.LFB56:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE56:
	.size	llMIN, .-llMIN
	.p2align 4
	.globl	digits
	.type	digits, @function
digits:
.LFB57:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	xorl	%r8d, %r8d
	testq	%rdi, %rdi
	jle	.L8
	movabsq	$-3689348814741910323, %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addq	$1, %r8
	mulq	%rsi
	shrq	$3, %rdx
	cmpq	$9, %rcx
	jg	.L10
.L8:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE57:
	.size	digits, .-digits
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB58:
	.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	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,8), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L15
.L60:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L60
.L15:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L61
.L16:
	movq	%rsp, %r13
	testl	%eax, %eax
	jle	.L17
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r12
	cmpl	%ebx, %eax
	jg	.L18
	movslq	%eax, %rsi
.L17:
	leaq	llcompare(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	-60(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,8), %rax
	movq	%rdx, %r12
	movq	%rax, %rdi
	movq	%rax, %rcx
	andq	$-4096, %rdi
	andq	$-16, %rcx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L20
.L62:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L62
.L20:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L63
.L21:
	leaq	7(%rsp), %r14
	movq	%rax, %rcx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%r14, %rbx
	andq	$-16, %rcx
	andq	$-8, %r14
	subq	%rax, %rsi
	shrq	$3, %rbx
.L22:
	cmpq	%rsi, %rsp
	je	.L23
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L22
.L63:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L21
.L61:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L16
.L23:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L64
.L24:
	movq	%rsp, %r15
	testl	%r12d, %r12d
	jle	.L39
	salq	$3, %rdx
	xorl	%esi, %esi
	movq	%r14, %rdi
	movq	%rdx, -72(%rbp)
	call	memset@PLT
	movq	-72(%rbp), %rdx
	xorl	%esi, %esi
	movq	%r15, %rdi
	call	memset@PLT
	leal	-1(%r12), %eax
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	cltq
	xorl	%edi, %edi
	movq	0(%r13,%rax,8), %rdx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	$3, %esi
	jle	.L28
	movslq	%r8d, %rsi
	addl	$1, %r8d
	movq	%rdx, (%r15,%rsi,8)
.L59:
	movslq	%edi, %rsi
	addl	$1, %edi
	movq	%rdx, (%r14,%rsi,8)
	movq	%rcx, %rdx
	movl	$1, %esi
.L27:
	subq	$1, %rax
	testl	%eax, %eax
	js	.L65
.L29:
	movq	0(%r13,%rax,8), %rcx
	cmpq	%rdx, %rcx
	jne	.L26
	subq	$1, %rax
	addl	$1, %esi
	testl	%eax, %eax
	jns	.L29
.L65:
	cmpl	$3, %esi
	jle	.L30
	movslq	%r8d, %rax
	addl	$1, %r8d
	movq	%rdx, (%r15,%rax,8)
.L31:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L36:
	movq	(%r15,%rcx,8), %rax
	imulq	%rax, %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	addq	$1, %rcx
	cmpl	%ecx, %r8d
	jg	.L36
.L35:
	testl	%edi, %edi
	je	.L25
.L34:
	movq	0(,%rbx,8), %rsi
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L37:
	movq	%rsi, %rax
	movq	8(%r14,%rcx,8), %rsi
	imulq	%rsi, %rax
	cmpq	%rax, %rdx
	cmovl	%rax, %rdx
	addq	$1, %rcx
	cmpl	%ecx, %edi
	jg	.L37
.L25:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L66
	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
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	cmpl	$1, %esi
	jg	.L59
	movq	%rcx, %rdx
	movl	$1, %esi
	jmp	.L27
.L30:
	subl	$1, %esi
	je	.L32
	movslq	%edi, %rax
	addl	$1, %edi
	movq	%rdx, (%r14,%rax,8)
	xorl	%edx, %edx
	testl	%r8d, %r8d
	jne	.L31
	jmp	.L34
.L39:
	xorl	%edx, %edx
	jmp	.L25
.L32:
	testl	%r8d, %r8d
	jne	.L31
	xorl	%edx, %edx
	jmp	.L35
.L64:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L24
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE58:
	.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>
#include<math.h>

typedef long long int ll;

int MAX(int a, int b){return a>b?a:b;}
int MIN(int a, int b){return a>b?b:a;}
int compare(const void* a, const void* b){return *(int*)a - *(int*)b;}
int llcompare(const void* a, const void* b){return (int)(*(ll*)a - *(ll*)b);}
ll llMAX(ll a, ll b){return a>b?a:b;}
ll llMIN(ll a, ll b){return a>b?b:a;}
ll digits(ll a){ll tmp=a; ll cnt=0; while(tmp>0){tmp/=10; cnt+=1;} return cnt;}

int main(void){
    int n;
    scanf("%d", &n);
    ll a[n];
    for(int i=0; i<n; i++){scanf("%lld", &a[i]);}
  
    qsort(a, n, sizeof(ll), llcompare);

    int b_idx = 0;
    ll b[n];//本数が2本以上4本未満の長さ(長方形用)
    int c_idx = 0;
    ll c[n];//本数が4本以上の長さ(正方形用)
    for(int i=0; i<n; i++){b[i]=0; c[i]=0;}

    int cnt = 0;
    ll tmp = a[n-1];
    for(int i=n-1; i>=0; i--){
        if(tmp == a[i]){
            cnt += 1;
        }else{
            if(cnt > 3){
                c[c_idx] = tmp;
                c_idx += 1;
                b[b_idx] = tmp;
                b_idx += 1;
            }else if(cnt > 1){
                b[b_idx] = tmp;
                b_idx += 1;
            }
            tmp = a[i];
            cnt = 1;
        }
    }

    if(cnt > 3){
        c[c_idx] = tmp;
        c_idx += 1;

    }
    else if(cnt > 1){
        b[b_idx] = tmp;
        b_idx += 1;
    }

    ll ans = 0;

    for(int i=0; i<c_idx; i++){
        ans = llMAX(c[i]*c[i], ans);
    }

    for(int i=0; i<b_idx; i++){
        ans = llMAX(b[i]*b[i+1], ans);
    }

    printf("%lld\n", ans);

    return 0;
}

10
3 3 3 3 4 4 2 5 5 5
 6
3 1 2 4 2 2
 6
3 2 2 4 2 2
 6
3 2 2 4 3 2
 10
3 3 6 3 4 4 1 6 5 5
 10
3 3 6 3 4 3 1 6 5 6
 6
3 4 2 3 4 3
 10
3 3 6 6 4 3 1 6 3 6
 10
3 2 8 6 4 0 1 8 3 10
 6
1 -1 1 7 8 7

20
 0
 4
 6
 30
 18
 12
 36
 24
 7

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

typedef long long int ll;

int MAX(int a, int b){return a>b?a:b;}
int MIN(int a, int b){return a>b?b:a;}
int compare(const void* a, const void* b){return *(int*)a - *(int*)b;}
int llcompare(const void* a, const void* b){return (int)(*(ll*)a - *(ll*)b);}
ll llMAX(ll a, ll b){return a>b?a:b;}
ll llMIN(ll a, ll b){return a>b?b:a;}
ll digits(ll a){ll tmp=a; ll cnt=0; while(tmp>0){tmp/=10; cnt+=1;} return cnt;}

int main(void){
    int n;
    scanf("%d", &n);
    ll a[n];
    for(int i=0; i<n; i++){scanf("%lld", &a[i]);}
  
    qsort(a, n, sizeof(ll), llcompare);

    int b_idx = 0;
    ll b[n];//本数が2本以上4本未満の長さ(長方形用)
    int c_idx = 0;
    ll c[n];//本数が4本以上の長さ(正方形用)
    for(int i=0; i<n; i++){b[i]=0; c[i]=0;}

    int cnt = 0;
    ll tmp = a[n-1];
    for(int i=n-1; i>=0; i--){
        if(tmp == a[i]){
            cnt += 1;
        }else{
            if(cnt > 3){
                c[c_idx] = tmp;
                c_idx += 1;
                b[b_idx] = tmp;
                b_idx += 1;
            }else if(cnt > 1){
                b[b_idx] = tmp;
                b_idx += 1;
            }
            tmp = a[i];
            cnt = 1;
        }
    }

    if(cnt > 3){
        c[c_idx] = tmp;
        c_idx += 1;

    }
    else if(cnt > 1){
        b[b_idx] = tmp;
        b_idx += 1;
    }

    ll ans = 0;

    for(int i=0; i<c_idx; i++){
        ans = llMAX(c[i]*c[i], ans);
    }

    for(int i=0; i<b_idx; i++){
        ans = llMAX(b[i]*b[i+1], ans);
    }

    printf("%lld\n", ans);

    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MIN, .-MIN
	.globl	compare
	.type	compare, @function
compare:
.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, .-compare
	.globl	llcompare
	.type	llcompare, @function
llcompare:
.LFB9:
	.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
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	llcompare, .-llcompare
	.globl	llMAX
	.type	llMAX, @function
llMAX:
.LFB10:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	llMAX, .-llMAX
	.globl	llMIN
	.type	llMIN, @function
llMIN:
.LFB11:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	llMIN, .-llMIN
	.globl	digits
	.type	digits, @function
digits:
.LFB12:
	.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	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L14
.L15:
	movq	-16(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	cmpq	$0, -16(%rbp)
	jg	.L15
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	digits, .-digits
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	$184, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	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
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L21
.L22:
	movl	-152(%rbp), %eax
	cltq
	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
	addl	$1, -152(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L22
	movl	-156(%rbp), %eax
	movslq	%eax, %rsi
	movq	-96(%rbp), %rax
	leaq	llcompare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -148(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	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, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L23:
	cmpq	%rdx, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L24:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L25
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L25:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -144(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,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
.L26:
	cmpq	%rdx, %rsp
	je	.L27
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L26
.L27:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L28
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L28:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L29
.L30:
	movq	-80(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	addl	$1, -140(%rbp)
.L29:
	movl	-156(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L31
.L36:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -120(%rbp)
	jne	.L32
	addl	$1, -136(%rbp)
	jmp	.L33
.L32:
	cmpl	$3, -136(%rbp)
	jle	.L34
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
	jmp	.L35
.L34:
	cmpl	$1, -136(%rbp)
	jle	.L35
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L35:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -136(%rbp)
.L33:
	subl	$1, -132(%rbp)
.L31:
	cmpl	$0, -132(%rbp)
	jns	.L36
	cmpl	$3, -136(%rbp)
	jle	.L37
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	jmp	.L38
.L37:
	cmpl	$1, -136(%rbp)
	jle	.L38
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L38:
	movq	$0, -112(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L39
.L40:
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -128(%rbp)
.L39:
	movl	-128(%rbp), %eax
	cmpl	-144(%rbp), %eax
	jl	.L40
	movl	$0, -124(%rbp)
	jmp	.L41
.L42:
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -124(%rbp)
.L41:
	movl	-124(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L42
	movq	-112(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	MAX
	.type	MAX, @function
MAX:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MAX, .-MAX
	.globl	MIN
	.type	MIN, @function
MIN:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MIN, .-MIN
	.globl	compare
	.type	compare, @function
compare:
.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, .-compare
	.globl	llcompare
	.type	llcompare, @function
llcompare:
.LFB9:
	.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
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	llcompare, .-llcompare
	.globl	llMAX
	.type	llMAX, @function
llMAX:
.LFB10:
	.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	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	llMAX, .-llMAX
	.globl	llMIN
	.type	llMIN, @function
llMIN:
.LFB11:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	llMIN, .-llMIN
	.globl	digits
	.type	digits, @function
digits:
.LFB12:
	.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	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L14
.L15:
	movq	-16(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addq	$1, -8(%rbp)
.L14:
	cmpq	$0, -16(%rbp)
	jg	.L15
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	digits, .-digits
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	$184, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	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
.L18:
	cmpq	%rdx, %rsp
	je	.L19
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L18
.L19:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L20
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L20:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L21
.L22:
	movl	-152(%rbp), %eax
	cltq
	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
	addl	$1, -152(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L22
	movl	-156(%rbp), %eax
	movslq	%eax, %rsi
	movq	-96(%rbp), %rax
	leaq	llcompare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -148(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	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, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L23:
	cmpq	%rdx, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L24:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L25
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L25:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -144(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,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
.L26:
	cmpq	%rdx, %rsp
	je	.L27
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L26
.L27:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L28
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L28:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L29
.L30:
	movq	-80(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	addl	$1, -140(%rbp)
.L29:
	movl	-156(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jl	.L30
	movl	$0, -136(%rbp)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L31
.L36:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	%rax, -120(%rbp)
	jne	.L32
	addl	$1, -136(%rbp)
	jmp	.L33
.L32:
	cmpl	$3, -136(%rbp)
	jle	.L34
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
	jmp	.L35
.L34:
	cmpl	$1, -136(%rbp)
	jle	.L35
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L35:
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -120(%rbp)
	movl	$1, -136(%rbp)
.L33:
	subl	$1, -132(%rbp)
.L31:
	cmpl	$0, -132(%rbp)
	jns	.L36
	cmpl	$3, -136(%rbp)
	jle	.L37
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -144(%rbp)
	jmp	.L38
.L37:
	cmpl	$1, -136(%rbp)
	jle	.L38
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movq	-120(%rbp), %rcx
	movq	%rcx, (%rax,%rdx,8)
	addl	$1, -148(%rbp)
.L38:
	movq	$0, -112(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L39
.L40:
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-64(%rbp), %rax
	movl	-128(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -128(%rbp)
.L39:
	movl	-128(%rbp), %eax
	cmpl	-144(%rbp), %eax
	jl	.L40
	movl	$0, -124(%rbp)
	jmp	.L41
.L42:
	movq	-80(%rbp), %rax
	movl	-124(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	movq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	llMAX
	movq	%rax, -112(%rbp)
	addl	$1, -124(%rbp)
.L41:
	movl	-124(%rbp), %eax
	cmpl	-148(%rbp), %eax
	jl	.L42
	movq	-112(%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	.L44
	call	__stack_chk_fail@PLT
.L44:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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:
