Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int compar(const int *val1,const int *val2){
    return *val1-*val2;
}

int main(void){
    int len[3],sign,num,hole;
    for(;scanf("%d %d %d",&len[0],&len[1],&len[2]),len[2];){
        qsort(len,3,sizeof(int),(int (*)(const void *,const void *))compar);
        sign=len[0]*len[0]+len[1]*len[1];
        scanf("%d",&num);
        while(num--){
            scanf("%d",&hole);
            hole*=2;
            printf("%s",sign>=hole*hole?"NA\n":"OK\n");
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compar
	.type	compar, @function
compar:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compar, .-compar
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"NA"
.LC2:
	.string	"OK"
.LC3:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rcx
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	movl	$4, %edx
	leaq	compar(%rip), %rcx
	movl	$3, %esi
	movq	%r15, %rdi
	call	qsort@PLT
	movl	28(%rsp), %ebx
	movl	32(%rsp), %eax
	movq	%rbp, %rdi
	leaq	20(%rsp), %rsi
	imull	%eax, %eax
	imull	%ebx, %ebx
	addl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movq	%r13, %rdi
	addl	%eax, %eax
	movl	%eax, 24(%rsp)
	imull	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L18
	movq	%r14, %rdi
.L18:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$56, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compar
	.type	compar, @function
compar:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compar, .-compar
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"NA"
.LC2:
	.string	"OK"
.LC3:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rcx
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	movl	$4, %edx
	leaq	compar(%rip), %rcx
	movl	$3, %esi
	movq	%r15, %rdi
	call	qsort@PLT
	movl	28(%rsp), %ebx
	movl	32(%rsp), %eax
	movq	%rbp, %rdi
	leaq	20(%rsp), %rsi
	imull	%eax, %eax
	imull	%ebx, %ebx
	addl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movq	%r13, %rdi
	addl	%eax, %eax
	movl	%eax, 24(%rsp)
	imull	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L18
	movq	%r14, %rdi
.L18:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$56, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compar
	.type	compar, @function
compar:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compar, .-compar
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"NA"
.LC2:
	.string	"OK"
.LC3:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rcx
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	movl	$4, %edx
	leaq	compar(%rip), %rcx
	movl	$3, %esi
	movq	%r15, %rdi
	call	qsort@PLT
	movl	28(%rsp), %ebx
	movl	32(%rsp), %eax
	movq	%rbp, %rdi
	leaq	20(%rsp), %rsi
	imull	%eax, %eax
	imull	%ebx, %ebx
	addl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movq	%r13, %rdi
	addl	%eax, %eax
	movl	%eax, 24(%rsp)
	imull	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L18
	movq	%r14, %rdi
.L18:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$56, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
int compar(const int *val1,const int *val2){
    return *val1-*val2;
}

int main(void){
    int len[3],sign,num,hole;
    for(;scanf("%d %d %d",&len[0],&len[1],&len[2]),len[2];){
        qsort(len,3,sizeof(int),(int (*)(const void *,const void *))compar);
        sign=len[0]*len[0]+len[1]*len[1];
        scanf("%d",&num);
        while(num--){
            scanf("%d",&hole);
            hole*=2;
            printf("%s",sign>=hole*hole?"NA\n":"OK\n");
        }
    }
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int compar(const int *val1,const int *val2){
    return *val1-*val2;
}

int main(void){
    int len[3],sign,num,hole;
    for(;scanf("%d %d %d",&len[0],&len[1],&len[2]),len[2];){
        qsort(len,3,sizeof(int),(int (*)(const void *,const void *))compar);
        sign=len[0]*len[0]+len[1]*len[1];
        scanf("%d",&num);
        while(num--){
            scanf("%d",&hole);
            hole*=2;
            printf("%s",sign>=hole*hole?"NA\n":"OK\n");
        }
    }
    return 0;
}```

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.
Optimized Assembly Code:

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

NA
NA
OK
NA
NA
 NA
NA
NA
NA
NA
 NA
NA
NA
NA
OK
 NA
OK
OK
NA
NA
 OK
NA
NA
NA
OK
 OK
NA
NA
OK
OK
 NA
NA
OK
NA
OK
 NA
OK
NA
NA
NA
 NA
OK
OK
NA
OK
 NA
NA
NA
OK
OK

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int compar(const int *val1,const int *val2){
    return *val1-*val2;
}

int main(void){
    int len[3],sign,num,hole;
    for(;scanf("%d %d %d",&len[0],&len[1],&len[2]),len[2];){
        qsort(len,3,sizeof(int),(int (*)(const void *,const void *))compar);
        sign=len[0]*len[0]+len[1]*len[1];
        scanf("%d",&num);
        while(num--){
            scanf("%d",&hole);
            hole*=2;
            printf("%s",sign>=hole*hole?"NA\n":"OK\n");
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compar
	.type	compar, @function
compar:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compar, .-compar
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"NA"
.LC2:
	.string	"OK"
.LC3:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rcx
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	movl	$4, %edx
	leaq	compar(%rip), %rcx
	movl	$3, %esi
	movq	%r15, %rdi
	call	qsort@PLT
	movl	28(%rsp), %ebx
	movl	32(%rsp), %eax
	movq	%rbp, %rdi
	leaq	20(%rsp), %rsi
	imull	%eax, %eax
	imull	%ebx, %ebx
	addl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movq	%r13, %rdi
	addl	%eax, %eax
	movl	%eax, 24(%rsp)
	imull	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L18
	movq	%r14, %rdi
.L18:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$56, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compar
	.type	compar, @function
compar:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compar, .-compar
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"NA"
.LC2:
	.string	"OK"
.LC3:
	.string	"%d %d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	32(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	8(%rsp), %rcx
	movq	(%rsp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	movl	$4, %edx
	leaq	compar(%rip), %rcx
	movl	$3, %esi
	movq	%r15, %rdi
	call	qsort@PLT
	movl	28(%rsp), %ebx
	movl	32(%rsp), %eax
	movq	%rbp, %rdi
	leaq	20(%rsp), %rsi
	imull	%eax, %eax
	imull	%ebx, %ebx
	addl	%eax, %ebx
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	je	.L4
	leaq	24(%rsp), %r12
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbp, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	movq	%r13, %rdi
	addl	%eax, %eax
	movl	%eax, 24(%rsp)
	imull	%eax, %eax
	cmpl	%ebx, %eax
	jle	.L18
	movq	%r14, %rdi
.L18:
	call	puts@PLT
	movl	20(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 20(%rsp)
	testl	%eax, %eax
	jne	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$56, %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
.L20:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```