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>

int main() {
    int ball_num, i, j;
    scanf("%d", &ball_num);
    long x[ball_num], y[ball_num];
    for ( i = 0; i < ball_num; i++ ) {
        scanf("%ld%ld", &x[i], &y[i]);
    }

    typedef struct pq_set {
        long p;
        long q;
        int  cnt;
    } pq_set;
    int set_num = ball_num * ball_num;
    pq_set pq[set_num];
    for ( i = 0; i < set_num; i++ ) {
        pq[i].p = 0;
        pq[i].q = 0;
        pq[i].cnt = 0;
    }
    set_num = 0;

    for ( i = 0; i < ball_num; i++) {
        for ( j = 0; j < ball_num; j++ ) {
            if ( i != j ) {
                pq[set_num].p = x[i] - x[j];
                pq[set_num].q = y[i] - y[j];
//                printf("(p, q) = (%ld, %ld)\n", pq[set_num].p, pq[set_num].q);
                set_num += 1;
            }
        }
    }

    int score[set_num];
    for ( i = 0; i < set_num; i++ ) {
        score[i] = 1;
    }
    for ( i = 0; i < (set_num - 1); i++ ) {
        for ( j = (i + 1); j < set_num; j++ ) {
            if ( pq[i].p == 0 && pq[i].q == 0 ) {
                break;
            }
            if ( pq[i].p == pq[j].p && pq[i].q == pq[j].q ) {
                score[i] += 1;
            }
        }
    }

    int max_score = 0;
    for ( i = 0; i < set_num; i++ ) {
//        printf("score = %d\n", score[i]);
        if ( score[i] > max_score ) {
            max_score = score[i];
        }
    }

    printf("%d\n", ball_num - max_score);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	$200, %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	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L8
.L9:
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -136(%rbp)
.L8:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L9
	movl	-140(%rbp), %edx
	movl	-140(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -128(%rbp)
	movl	-128(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %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
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L13
.L14:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	addl	$1, -136(%rbp)
.L13:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L14
	movl	$0, -128(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L15
.L19:
	movl	$0, -132(%rbp)
	jmp	.L16
.L18:
	movl	-136(%rbp), %eax
	cmpl	-132(%rbp), %eax
	je	.L17
	movq	-112(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rcx, (%rax)
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -128(%rbp)
.L17:
	addl	$1, -132(%rbp)
.L16:
	movl	-140(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L18
	addl	$1, -136(%rbp)
.L15:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L23
.L24:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -136(%rbp)
.L23:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L24
	movl	$0, -136(%rbp)
	jmp	.L25
.L31:
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L26
.L30:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L37
.L27:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L29:
	addl	$1, -132(%rbp)
.L26:
	movl	-132(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L30
	jmp	.L28
.L37:
	nop
.L28:
	addl	$1, -136(%rbp)
.L25:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -136(%rbp)
	jl	.L31
	movl	$0, -124(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L32
.L34:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -124(%rbp)
	jge	.L33
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -124(%rbp)
.L33:
	addl	$1, -136(%rbp)
.L32:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L34
	movl	-140(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, %esi
	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	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$24, %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), %rax
	movq	%rsp, %rcx
	movq	%rax, %r8
	leaq	15(,%rax,8), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L97:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L97
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L98
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %rbx
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L98:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L99
.L7:
	movq	%rsp, %r12
	testl	%r8d, %r8d
	jle	.L8
	movq	%rbx, %r14
	movq	%r12, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	addl	$1, %r13d
	addq	$8, %r14
	addq	$8, %r15
	cmpl	%r13d, %r8d
	jg	.L9
	movl	%r8d, %ecx
	movq	%rsp, %rsi
	imull	%r8d, %ecx
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L12
	orq	$0, -8(%rsp,%rdx)
.L12:
	movq	%rsp, %r10
	testl	%ecx, %ecx
	je	.L13
.L48:
	movq	%r10, %rax
	xorl	%edx, %edx
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L14:
	addl	$1, %edx
	movl	$0, 16(%rax)
	addq	$24, %rax
	movups	%xmm0, -24(%rax)
	cmpl	%ecx, %edx
	jl	.L14
.L13:
	testl	%r8d, %r8d
	jle	.L15
	movslq	%r8d, %r9
	xorl	%esi, %esi
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%esi, %eax
	je	.L16
	movq	(%rbx,%rsi,8), %rdx
	movq	(%r12,%rsi,8), %rcx
	subq	(%rbx,%rax,8), %rdx
	subq	(%r12,%rax,8), %rcx
	movq	%rdx, %xmm0
	movq	%rcx, %xmm3
	movslq	%edi, %rdx
	addl	$1, %edi
	punpcklqdq	%xmm3, %xmm0
	leaq	(%rdx,%rdx,2), %rdx
	movups	%xmm0, (%r10,%rdx,8)
.L16:
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L17
	addq	$1, %rsi
	cmpq	%rax, %rsi
	jne	.L18
	movslq	%edi, %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L21:
	cmpq	%rcx, %rsp
	je	.L22
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L21
.L22:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L23
	orq	$0, -8(%rsp,%rdx)
.L23:
	movq	%rsp, %rbx
	leal	-1(%rdi), %r13d
	testl	%edi, %edi
	je	.L24
	cmpl	$2, %r13d
	jbe	.L52
	movl	%edi, %edx
	movdqa	.LC2(%rip), %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L26:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L26
	movl	%edi, %eax
	andl	$-4, %eax
	cmpl	%eax, %edi
	je	.L100
.L25:
	movslq	%eax, %rdx
	leal	1(%rax), %ecx
	leaq	(%rbx,%rdx,4), %rdx
	movl	$1, (%rdx)
	cmpl	%ecx, %edi
	jle	.L28
	addl	$2, %eax
	movl	$1, 4(%rdx)
	cmpl	%eax, %edi
	jle	.L28
	movl	$1, 8(%rdx)
.L28:
	testl	%r13d, %r13d
	jle	.L44
.L43:
	leaq	24(%r10), %rcx
	leal	-2(%rdi), %r12d
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	addq	$48, %r10
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %r11d
	cmpl	%r11d, %edi
	jle	.L36
	movl	%r12d, %eax
	movq	-24(%rcx), %rdx
	addq	%r9, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r10,%rax,8), %rsi
	testq	%rdx, %rdx
	je	.L32
	movq	%rcx, %rax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	addq	$24, %rax
	cmpq	%rsi, %rax
	je	.L36
.L34:
	cmpq	(%rax), %rdx
	jne	.L33
	movq	-16(%rcx), %r14
	cmpq	%r14, 8(%rax)
	jne	.L33
	addq	$24, %rax
	addl	$1, (%rbx,%r9,4)
	cmpq	%rsi, %rax
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %r9
	addq	$24, %rcx
	subl	$1, %r12d
	cmpl	%r13d, %r11d
	jl	.L30
	testl	%edi, %edi
	je	.L20
.L44:
	testl	%edi, %edi
	movl	$1, %ecx
	cmovg	%edi, %ecx
	cmpl	$3, %edi
	jle	.L53
.L49:
	movl	%ecx, %edx
	pxor	%xmm2, %xmm2
	movq	%rbx, %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L40
	movdqa	%xmm2, %xmm0
	movl	%ecx, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	cmpl	%edx, %ecx
	je	.L56
.L39:
	movslq	%edx, %rcx
	leaq	(%rbx,%rcx,4), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	cmovl	%esi, %eax
	leal	1(%rdx), %esi
	cmpl	%esi, %edi
	jle	.L56
	movl	4(%rcx), %esi
	cmpl	%esi, %eax
	cmovl	%esi, %eax
	addl	$2, %edx
	cmpl	%edx, %edi
	jle	.L56
	movl	8(%rcx), %edi
	cmpl	%edi, %eax
	cmovge	%eax, %edi
.L20:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	subl	%edi, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L101
	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
.L32:
	.cfi_restore_state
	movq	-16(%rcx), %rdx
	movq	%rcx, %rax
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L37:
	addq	$24, %rax
	cmpq	%rsi, %rax
	je	.L36
.L38:
	testq	%rdx, %rdx
	je	.L36
	cmpq	$0, (%rax)
	jne	.L37
	cmpq	8(%rax), %rdx
	jne	.L37
	addl	$1, (%rbx,%r9,4)
	jmp	.L37
.L56:
	movl	%eax, %edi
	jmp	.L20
.L100:
	testl	%r13d, %r13d
	jg	.L43
	testl	%edi, %edi
	movl	$1, %ecx
	cmovg	%edi, %ecx
	jmp	.L49
.L46:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L47
	orq	$0, -8(%rsp,%rax)
.L47:
	movq	%rsp, %r10
	testl	%ecx, %ecx
	jne	.L48
.L15:
	xorl	%edi, %edi
	jmp	.L20
.L8:
	movl	%r8d, %ecx
	movq	%rsp, %rsi
	imull	%r8d, %ecx
	movslq	%ecx, %rax
	imulq	$24, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L45:
	cmpq	%rsi, %rsp
	je	.L46
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L45
.L53:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L39
.L52:
	xorl	%eax, %eax
	jmp	.L25
.L99:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L24:
	testl	%r13d, %r13d
	jg	.L43
	jmp	.L20
.L101:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$24, %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), %rax
	movq	%rsp, %rcx
	movq	%rax, %r8
	leaq	15(,%rax,8), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L97:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L97
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L98
.L4:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %rbx
	andq	$-16, %rdx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L98:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L99
.L7:
	movq	%rsp, %r12
	testl	%r8d, %r8d
	jle	.L8
	movq	%rbx, %r14
	movq	%r12, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %r8d
	addl	$1, %r13d
	addq	$8, %r14
	addq	$8, %r15
	cmpl	%r13d, %r8d
	jg	.L9
	movl	%r8d, %ecx
	movq	%rsp, %rsi
	imull	%r8d, %ecx
	movslq	%ecx, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L12
	orq	$0, -8(%rsp,%rdx)
.L12:
	movq	%rsp, %r10
	testl	%ecx, %ecx
	je	.L13
.L48:
	movq	%r10, %rax
	xorl	%edx, %edx
	pxor	%xmm0, %xmm0
	.p2align 4,,10
	.p2align 3
.L14:
	addl	$1, %edx
	movl	$0, 16(%rax)
	addq	$24, %rax
	movups	%xmm0, -24(%rax)
	cmpl	%ecx, %edx
	jl	.L14
.L13:
	testl	%r8d, %r8d
	jle	.L15
	movslq	%r8d, %r9
	xorl	%esi, %esi
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%esi, %eax
	je	.L16
	movq	(%rbx,%rsi,8), %rdx
	movq	(%r12,%rsi,8), %rcx
	subq	(%rbx,%rax,8), %rdx
	subq	(%r12,%rax,8), %rcx
	movq	%rdx, %xmm0
	movq	%rcx, %xmm3
	movslq	%edi, %rdx
	addl	$1, %edi
	punpcklqdq	%xmm3, %xmm0
	leaq	(%rdx,%rdx,2), %rdx
	movups	%xmm0, (%r10,%rdx,8)
.L16:
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L17
	addq	$1, %rsi
	cmpq	%rax, %rsi
	jne	.L18
	movslq	%edi, %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L21:
	cmpq	%rcx, %rsp
	je	.L22
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L21
.L22:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L23
	orq	$0, -8(%rsp,%rdx)
.L23:
	movq	%rsp, %rbx
	leal	-1(%rdi), %r13d
	testl	%edi, %edi
	je	.L24
	cmpl	$2, %r13d
	jbe	.L52
	movl	%edi, %edx
	movdqa	.LC2(%rip), %xmm0
	movq	%rbx, %rax
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L26:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L26
	movl	%edi, %eax
	andl	$-4, %eax
	cmpl	%eax, %edi
	je	.L100
.L25:
	movslq	%eax, %rdx
	leal	1(%rax), %ecx
	leaq	(%rbx,%rdx,4), %rdx
	movl	$1, (%rdx)
	cmpl	%ecx, %edi
	jle	.L28
	addl	$2, %eax
	movl	$1, 4(%rdx)
	cmpl	%eax, %edi
	jle	.L28
	movl	$1, 8(%rdx)
.L28:
	testl	%r13d, %r13d
	jle	.L44
.L43:
	leaq	24(%r10), %rcx
	leal	-2(%rdi), %r12d
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	addq	$48, %r10
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %r11d
	cmpl	%r11d, %edi
	jle	.L36
	movl	%r12d, %eax
	movq	-24(%rcx), %rdx
	addq	%r9, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r10,%rax,8), %rsi
	testq	%rdx, %rdx
	je	.L32
	movq	%rcx, %rax
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	addq	$24, %rax
	cmpq	%rsi, %rax
	je	.L36
.L34:
	cmpq	(%rax), %rdx
	jne	.L33
	movq	-16(%rcx), %r14
	cmpq	%r14, 8(%rax)
	jne	.L33
	addq	$24, %rax
	addl	$1, (%rbx,%r9,4)
	cmpq	%rsi, %rax
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L36:
	addq	$1, %r9
	addq	$24, %rcx
	subl	$1, %r12d
	cmpl	%r13d, %r11d
	jl	.L30
	testl	%edi, %edi
	je	.L20
.L44:
	testl	%edi, %edi
	movl	$1, %ecx
	cmovg	%edi, %ecx
	cmpl	$3, %edi
	jle	.L53
.L49:
	movl	%ecx, %edx
	pxor	%xmm2, %xmm2
	movq	%rbx, %rax
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	16(%rbx,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	por	%xmm0, %xmm2
	cmpq	%rax, %rdx
	jne	.L40
	movdqa	%xmm2, %xmm0
	movl	%ecx, %edx
	psrldq	$8, %xmm0
	andl	$-4, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm2, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %eax
	cmpl	%edx, %ecx
	je	.L56
.L39:
	movslq	%edx, %rcx
	leaq	(%rbx,%rcx,4), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	cmovl	%esi, %eax
	leal	1(%rdx), %esi
	cmpl	%esi, %edi
	jle	.L56
	movl	4(%rcx), %esi
	cmpl	%esi, %eax
	cmovl	%esi, %eax
	addl	$2, %edx
	cmpl	%edx, %edi
	jle	.L56
	movl	8(%rcx), %edi
	cmpl	%edi, %eax
	cmovge	%eax, %edi
.L20:
	movl	%r8d, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	subl	%edi, %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L101
	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
.L32:
	.cfi_restore_state
	movq	-16(%rcx), %rdx
	movq	%rcx, %rax
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L37:
	addq	$24, %rax
	cmpq	%rsi, %rax
	je	.L36
.L38:
	testq	%rdx, %rdx
	je	.L36
	cmpq	$0, (%rax)
	jne	.L37
	cmpq	8(%rax), %rdx
	jne	.L37
	addl	$1, (%rbx,%r9,4)
	jmp	.L37
.L56:
	movl	%eax, %edi
	jmp	.L20
.L100:
	testl	%r13d, %r13d
	jg	.L43
	testl	%edi, %edi
	movl	$1, %ecx
	cmovg	%edi, %ecx
	jmp	.L49
.L46:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L47
	orq	$0, -8(%rsp,%rax)
.L47:
	movq	%rsp, %r10
	testl	%ecx, %ecx
	jne	.L48
.L15:
	xorl	%edi, %edi
	jmp	.L20
.L8:
	movl	%r8d, %ecx
	movq	%rsp, %rsi
	imull	%r8d, %ecx
	movslq	%ecx, %rax
	imulq	$24, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L45:
	cmpq	%rsi, %rsp
	je	.L46
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L45
.L53:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L39
.L52:
	xorl	%eax, %eax
	jmp	.L25
.L99:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L24:
	testl	%r13d, %r13d
	jg	.L43
	jmp	.L20
.L101:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>

int main() {
    int ball_num, i, j;
    scanf("%d", &ball_num);
    long x[ball_num], y[ball_num];
    for ( i = 0; i < ball_num; i++ ) {
        scanf("%ld%ld", &x[i], &y[i]);
    }

    typedef struct pq_set {
        long p;
        long q;
        int  cnt;
    } pq_set;
    int set_num = ball_num * ball_num;
    pq_set pq[set_num];
    for ( i = 0; i < set_num; i++ ) {
        pq[i].p = 0;
        pq[i].q = 0;
        pq[i].cnt = 0;
    }
    set_num = 0;

    for ( i = 0; i < ball_num; i++) {
        for ( j = 0; j < ball_num; j++ ) {
            if ( i != j ) {
                pq[set_num].p = x[i] - x[j];
                pq[set_num].q = y[i] - y[j];
//                printf("(p, q) = (%ld, %ld)\n", pq[set_num].p, pq[set_num].q);
                set_num += 1;
            }
        }
    }

    int score[set_num];
    for ( i = 0; i < set_num; i++ ) {
        score[i] = 1;
    }
    for ( i = 0; i < (set_num - 1); i++ ) {
        for ( j = (i + 1); j < set_num; j++ ) {
            if ( pq[i].p == 0 && pq[i].q == 0 ) {
                break;
            }
            if ( pq[i].p == pq[j].p && pq[i].q == pq[j].q ) {
                score[i] += 1;
            }
        }
    }

    int max_score = 0;
    for ( i = 0; i < set_num; i++ ) {
//        printf("score = %d\n", score[i]);
        if ( score[i] > max_score ) {
            max_score = score[i];
        }
    }

    printf("%d\n", ball_num - max_score);
    return 0;
}
3
1 4
4 6
11 8
 2
1 2
2 2
 4
1 1
1 4
2 1
2 2
 3
1 4
4 6
11 3
 3
0 4
4 6
11 3
 3
-1 4
4 6
11 3
 3
-2 4
4 6
11 3
 3
-2 4
5 6
11 3
 3
-2 4
5 6
11 4
 3
-1 4
5 6
11 4

2
 1
 3
 2
 2
 2
 2
 2
 2
 2

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>

int main() {
    int ball_num, i, j;
    scanf("%d", &ball_num);
    long x[ball_num], y[ball_num];
    for ( i = 0; i < ball_num; i++ ) {
        scanf("%ld%ld", &x[i], &y[i]);
    }

    typedef struct pq_set {
        long p;
        long q;
        int  cnt;
    } pq_set;
    int set_num = ball_num * ball_num;
    pq_set pq[set_num];
    for ( i = 0; i < set_num; i++ ) {
        pq[i].p = 0;
        pq[i].q = 0;
        pq[i].cnt = 0;
    }
    set_num = 0;

    for ( i = 0; i < ball_num; i++) {
        for ( j = 0; j < ball_num; j++ ) {
            if ( i != j ) {
                pq[set_num].p = x[i] - x[j];
                pq[set_num].q = y[i] - y[j];
//                printf("(p, q) = (%ld, %ld)\n", pq[set_num].p, pq[set_num].q);
                set_num += 1;
            }
        }
    }

    int score[set_num];
    for ( i = 0; i < set_num; i++ ) {
        score[i] = 1;
    }
    for ( i = 0; i < (set_num - 1); i++ ) {
        for ( j = (i + 1); j < set_num; j++ ) {
            if ( pq[i].p == 0 && pq[i].q == 0 ) {
                break;
            }
            if ( pq[i].p == pq[j].p && pq[i].q == pq[j].q ) {
                score[i] += 1;
            }
        }
    }

    int max_score = 0;
    for ( i = 0; i < set_num; i++ ) {
//        printf("score = %d\n", score[i]);
        if ( score[i] > max_score ) {
            max_score = score[i];
        }
    }

    printf("%d\n", ball_num - max_score);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	$200, %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	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L8
.L9:
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -136(%rbp)
.L8:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L9
	movl	-140(%rbp), %edx
	movl	-140(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -128(%rbp)
	movl	-128(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %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
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L13
.L14:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	addl	$1, -136(%rbp)
.L13:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L14
	movl	$0, -128(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L15
.L19:
	movl	$0, -132(%rbp)
	jmp	.L16
.L18:
	movl	-136(%rbp), %eax
	cmpl	-132(%rbp), %eax
	je	.L17
	movq	-112(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rcx, (%rax)
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -128(%rbp)
.L17:
	addl	$1, -132(%rbp)
.L16:
	movl	-140(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L18
	addl	$1, -136(%rbp)
.L15:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L23
.L24:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -136(%rbp)
.L23:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L24
	movl	$0, -136(%rbp)
	jmp	.L25
.L31:
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L26
.L30:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L37
.L27:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L29:
	addl	$1, -132(%rbp)
.L26:
	movl	-132(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L30
	jmp	.L28
.L37:
	nop
.L28:
	addl	$1, -136(%rbp)
.L25:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -136(%rbp)
	jl	.L31
	movl	$0, -124(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L32
.L34:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -124(%rbp)
	jge	.L33
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -124(%rbp)
.L33:
	addl	$1, -136(%rbp)
.L32:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L34
	movl	-140(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, %esi
	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	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	$200, %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	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%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, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	-140(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L8
.L9:
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-96(%rbp), %rax
	addq	%rax, %rdx
	movl	-136(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-112(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -136(%rbp)
.L8:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L9
	movl	-140(%rbp), %edx
	movl	-140(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -128(%rbp)
	movl	-128(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$192, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$192, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$192, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	movq	%rax, %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
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L13
.L14:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	$0, (%rax)
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$16, %rax
	movl	$0, (%rax)
	addl	$1, -136(%rbp)
.L13:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L14
	movl	$0, -128(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L15
.L19:
	movl	$0, -132(%rbp)
	jmp	.L16
.L18:
	movl	-136(%rbp), %eax
	cmpl	-132(%rbp), %eax
	je	.L17
	movq	-112(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-112(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rcx, (%rax)
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-96(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	subq	%rax, %rcx
	movq	-80(%rbp), %rsi
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	%rcx, (%rax)
	addl	$1, -128(%rbp)
.L17:
	addl	$1, -132(%rbp)
.L16:
	movl	-140(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L18
	addl	$1, -136(%rbp)
.L15:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L20:
	cmpq	%rdx, %rsp
	je	.L21
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L20
.L21:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L22
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L22:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L23
.L24:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -136(%rbp)
.L23:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L24
	movl	$0, -136(%rbp)
	jmp	.L25
.L31:
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -132(%rbp)
	jmp	.L26
.L30:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	.L27
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	.L37
.L27:
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-80(%rbp), %rcx
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	addq	$8, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rsi
	movl	-132(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	.L29
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
.L29:
	addl	$1, -132(%rbp)
.L26:
	movl	-132(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L30
	jmp	.L28
.L37:
	nop
.L28:
	addl	$1, -136(%rbp)
.L25:
	movl	-128(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -136(%rbp)
	jl	.L31
	movl	$0, -124(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L32
.L34:
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -124(%rbp)
	jge	.L33
	movq	-64(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -124(%rbp)
.L33:
	addl	$1, -136(%rbp)
.L32:
	movl	-136(%rbp), %eax
	cmpl	-128(%rbp), %eax
	jl	.L34
	movl	-140(%rbp), %eax
	subl	-124(%rbp), %eax
	movl	%eax, %esi
	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	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
