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>

int main (){

    int N,M;
    scanf("%d %d",&N,&M );

    int pos_aluno_x[N],pos_aluno_y[N];
    int pos_check_x[M],pos_check_y[M];

    for(int i = 0; i < N; ++i){
        scanf("%d %d",&pos_aluno_x[i],&pos_aluno_y[i]);
    }
    for(int j = 0; j < M ; ++j){
        scanf("%d %d",&pos_check_x[j],&pos_check_y[j] );
    }
    for(int w = 0 ; w < N; ++w){
        int coord[50] = {};
        int menor = 0;
        for (int z = 0; z < M; ++z){
            coord[z] = abs(pos_aluno_x[w] - pos_check_x[z]) + abs(pos_aluno_y[w] - pos_check_y[z]) ;
            }
        for (int u = 1; u < M; ++u){
            if (coord[u] < coord[menor]){
                menor = u;
                }
        }

        printf("%d\n",menor+1   );
        }

return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	$408, %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	-348(%rbp), %rdx
	leaq	-352(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -320(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -312(%rbp)
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -304(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	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
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -296(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -288(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -416(%rbp)
	movq	$0, -408(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -280(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%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
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -344(%rbp)
	jmp	.L14
.L15:
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-296(%rbp), %rax
	addq	%rax, %rdx
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-312(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -344(%rbp)
.L14:
	movl	-352(%rbp), %eax
	cmpl	%eax, -344(%rbp)
	jl	.L15
	movl	$0, -340(%rbp)
	jmp	.L16
.L17:
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-264(%rbp), %rax
	addq	%rax, %rdx
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-280(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -340(%rbp)
.L16:
	movl	-348(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L17
	movl	$0, -336(%rbp)
	jmp	.L18
.L24:
	leaq	-256(%rbp), %rdx
	movl	$0, %eax
	movl	$25, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -332(%rbp)
	movl	$0, -328(%rbp)
	jmp	.L19
.L20:
	movq	-312(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-280(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	movq	-296(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-264(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-328(%rbp), %eax
	cltq
	movl	%edx, -256(%rbp,%rax,4)
	addl	$1, -328(%rbp)
.L19:
	movl	-348(%rbp), %eax
	cmpl	%eax, -328(%rbp)
	jl	.L20
	movl	$1, -324(%rbp)
	jmp	.L21
.L23:
	movl	-324(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-332(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L22
	movl	-324(%rbp), %eax
	movl	%eax, -332(%rbp)
.L22:
	addl	$1, -324(%rbp)
.L21:
	movl	-348(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L23
	movl	-332(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -336(%rbp)
.L18:
	movl	-352(%rbp), %eax
	cmpl	%eax, -336(%rbp)
	jl	.L24
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	-260(%rbp), %rdx
	leaq	-264(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-264(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L84:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L84
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L85
.L4:
	movq	%rsp, -280(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L85:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L86
.L7:
	movslq	-260(%rbp), %rax
	movq	%rsp, -288(%rbp)
	movq	%rsp, %rdi
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %r8
	movq	%rax, %rdx
	andq	$-4096, %r8
	andq	$-16, %rdx
	subq	%r8, %rdi
.L8:
	cmpq	%rdi, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L86:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L10
	orq	$0, -8(%rsp,%rdx)
.L10:
	movq	%rax, %rdx
	movq	%rsp, %rdi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rdi
.L11:
	cmpq	%rdi, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L13
	orq	$0, -8(%rsp,%rax)
.L13:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	jle	.L14
	movq	-288(%rbp), %r15
	movq	-280(%rbp), %rcx
	movq	%r12, -296(%rbp)
	xorl	%r14d, %r14d
	movq	%r15, %r12
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r15
	addq	$4, %r12
	cmpl	%r14d, -264(%rbp)
	jg	.L15
	movl	-260(%rbp), %edx
	movq	-296(%rbp), %r12
	testl	%edx, %edx
	jle	.L16
.L28:
	movq	%r12, %rcx
	movq	%r12, -296(%rbp)
	xorl	%r14d, %r14d
	movq	%r13, %r12
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r15
	addq	$4, %r12
	movl	-260(%rbp), %edx
	cmpl	%r14d, %edx
	jg	.L17
	movq	-296(%rbp), %r12
.L16:
	movl	-264(%rbp), %eax
	testl	%eax, %eax
	jle	.L18
	xorl	%r14d, %r14d
	leaq	-256(%rbp), %rbx
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$25, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L30
	movq	-280(%rbp), %rax
	movl	(%rax,%r14,4), %ecx
	movq	-288(%rbp), %rax
	movl	(%rax,%r14,4), %esi
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L31
	movd	%ecx, %xmm5
	movdqu	(%r12), %xmm7
	movd	%esi, %xmm6
	movl	%edx, %eax
	pshufd	$0, %xmm5, %xmm1
	pshufd	$0, %xmm6, %xmm2
	movdqu	0(%r13), %xmm5
	shrl	$2, %eax
	movdqa	%xmm1, %xmm0
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -256(%rbp)
	cmpl	$1, %eax
	je	.L21
	movdqu	16(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	16(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -240(%rbp)
	cmpl	$2, %eax
	je	.L21
	movdqu	32(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	32(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -224(%rbp)
	cmpl	$3, %eax
	je	.L21
	movdqu	48(%r12), %xmm5
	movdqa	%xmm1, %xmm0
	movdqu	48(%r13), %xmm6
	psubd	%xmm5, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm6, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -208(%rbp)
	cmpl	$4, %eax
	je	.L21
	movdqu	64(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	movdqu	64(%r13), %xmm5
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -192(%rbp)
	cmpl	$5, %eax
	je	.L21
	movdqu	80(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	movdqu	80(%r13), %xmm5
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -176(%rbp)
	cmpl	$6, %eax
	je	.L21
	movdqu	96(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	96(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -160(%rbp)
	cmpl	$7, %eax
	je	.L21
	movdqu	112(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	112(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -144(%rbp)
	cmpl	$8, %eax
	je	.L21
	movdqu	128(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	128(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -128(%rbp)
	cmpl	$9, %eax
	je	.L21
	movdqu	144(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	psubd	%xmm7, %xmm0
	movdqu	144(%r13), %xmm7
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -112(%rbp)
	cmpl	$10, %eax
	je	.L21
	movdqu	160(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	160(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -96(%rbp)
	cmpl	$11, %eax
	je	.L21
	movdqu	176(%r12), %xmm6
	movdqu	176(%r13), %xmm5
	psubd	%xmm6, %xmm1
	psubd	%xmm5, %xmm2
	movdqa	%xmm1, %xmm0
	psrad	$31, %xmm0
	pxor	%xmm0, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	psrad	$31, %xmm0
	pxor	%xmm0, %xmm2
	psubd	%xmm0, %xmm2
	paddd	%xmm2, %xmm1
	movaps	%xmm1, -80(%rbp)
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L22
.L20:
	movslq	%eax, %r15
	movl	%ecx, %r9d
	movl	%esi, %r11d
	leaq	0(,%r15,4), %rdi
	leaq	(%r12,%rdi), %r10
	addq	%r13, %rdi
	subl	(%r10), %r9d
	movl	%r9d, %r8d
	negl	%r8d
	cmovs	%r9d, %r8d
	subl	(%rdi), %r11d
	movl	%r11d, %r9d
	negl	%r9d
	cmovs	%r11d, %r9d
	addl	%r9d, %r8d
	leal	1(%rax), %r9d
	movl	%r8d, -256(%rbp,%r15,4)
	cmpl	%edx, %r9d
	jge	.L24
	movl	%ecx, %r11d
	subl	4(%r10), %r11d
	movl	%esi, %r15d
	movslq	%r9d, %r9
	movl	%r11d, %r8d
	negl	%r8d
	cmovs	%r11d, %r8d
	subl	4(%rdi), %r15d
	movl	%r15d, %r11d
	negl	%r11d
	cmovs	%r15d, %r11d
	addl	$2, %eax
	addl	%r11d, %r8d
	movl	%r8d, -256(%rbp,%r9,4)
	cmpl	%eax, %edx
	jle	.L22
	subl	8(%rdi), %esi
	cltq
	movl	%esi, %edi
	negl	%edi
	cmovns	%edi, %esi
	subl	8(%r10), %ecx
	movl	%ecx, %edi
	negl	%edi
	cmovns	%edi, %ecx
	addl	%esi, %ecx
	movl	%ecx, -256(%rbp,%rax,4)
.L22:
	movl	-256(%rbp), %esi
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%esi, %ecx
	jge	.L25
	movl	%ecx, %esi
	movl	%eax, %edi
.L25:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L26
	leal	1(%rdi), %edx
.L19:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpl	%r14d, -264(%rbp)
	jle	.L18
	movl	-260(%rbp), %edx
	jmp	.L27
.L14:
	testl	%esi, %esi
	jg	.L28
	.p2align 4,,10
	.p2align 3
.L18:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L87
	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
.L24:
	.cfi_restore_state
	cmpl	$1, %edx
	jg	.L22
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edx
	jmp	.L19
.L31:
	xorl	%eax, %eax
	jmp	.L20
.L87:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	-260(%rbp), %rdx
	leaq	-264(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$264, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-264(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L3
.L84:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L84
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L85
.L4:
	movq	%rsp, -280(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L85:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L86
.L7:
	movslq	-260(%rbp), %rax
	movq	%rsp, -288(%rbp)
	movq	%rsp, %rdi
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %r8
	movq	%rax, %rdx
	andq	$-4096, %r8
	andq	$-16, %rdx
	subq	%r8, %rdi
.L8:
	cmpq	%rdi, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L86:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L10
	orq	$0, -8(%rsp,%rdx)
.L10:
	movq	%rax, %rdx
	movq	%rsp, %rdi
	andq	$-4096, %rax
	movq	%rsp, %r12
	andq	$-16, %rdx
	subq	%rax, %rdi
.L11:
	cmpq	%rdi, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L13
	orq	$0, -8(%rsp,%rax)
.L13:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	jle	.L14
	movq	-288(%rbp), %r15
	movq	-280(%rbp), %rcx
	movq	%r12, -296(%rbp)
	xorl	%r14d, %r14d
	movq	%r15, %r12
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r15
	addq	$4, %r12
	cmpl	%r14d, -264(%rbp)
	jg	.L15
	movl	-260(%rbp), %edx
	movq	-296(%rbp), %r12
	testl	%edx, %edx
	jle	.L16
.L28:
	movq	%r12, %rcx
	movq	%r12, -296(%rbp)
	xorl	%r14d, %r14d
	movq	%r13, %r12
	movq	%rcx, %r15
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%r12, %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r14d
	addq	$4, %r15
	addq	$4, %r12
	movl	-260(%rbp), %edx
	cmpl	%r14d, %edx
	jg	.L17
	movq	-296(%rbp), %r12
.L16:
	movl	-264(%rbp), %eax
	testl	%eax, %eax
	jle	.L18
	xorl	%r14d, %r14d
	leaq	-256(%rbp), %rbx
	.p2align 4,,10
	.p2align 3
.L27:
	movl	$25, %ecx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	rep stosq
	testl	%edx, %edx
	jle	.L30
	movq	-280(%rbp), %rax
	movl	(%rax,%r14,4), %ecx
	movq	-288(%rbp), %rax
	movl	(%rax,%r14,4), %esi
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L31
	movd	%ecx, %xmm5
	movdqu	(%r12), %xmm7
	movd	%esi, %xmm6
	movl	%edx, %eax
	pshufd	$0, %xmm5, %xmm1
	pshufd	$0, %xmm6, %xmm2
	movdqu	0(%r13), %xmm5
	shrl	$2, %eax
	movdqa	%xmm1, %xmm0
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -256(%rbp)
	cmpl	$1, %eax
	je	.L21
	movdqu	16(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	16(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -240(%rbp)
	cmpl	$2, %eax
	je	.L21
	movdqu	32(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	32(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -224(%rbp)
	cmpl	$3, %eax
	je	.L21
	movdqu	48(%r12), %xmm5
	movdqa	%xmm1, %xmm0
	movdqu	48(%r13), %xmm6
	psubd	%xmm5, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm6, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -208(%rbp)
	cmpl	$4, %eax
	je	.L21
	movdqu	64(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	movdqu	64(%r13), %xmm5
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -192(%rbp)
	cmpl	$5, %eax
	je	.L21
	movdqu	80(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	movdqu	80(%r13), %xmm5
	psubd	%xmm7, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -176(%rbp)
	cmpl	$6, %eax
	je	.L21
	movdqu	96(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	96(%r13), %xmm7
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -160(%rbp)
	cmpl	$7, %eax
	je	.L21
	movdqu	112(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	112(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -144(%rbp)
	cmpl	$8, %eax
	je	.L21
	movdqu	128(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	128(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -128(%rbp)
	cmpl	$9, %eax
	je	.L21
	movdqu	144(%r12), %xmm7
	movdqa	%xmm1, %xmm0
	psubd	%xmm7, %xmm0
	movdqu	144(%r13), %xmm7
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm7, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -112(%rbp)
	cmpl	$10, %eax
	je	.L21
	movdqu	160(%r12), %xmm6
	movdqa	%xmm1, %xmm0
	movdqu	160(%r13), %xmm5
	psubd	%xmm6, %xmm0
	movdqa	%xmm0, %xmm3
	psrad	$31, %xmm3
	pxor	%xmm3, %xmm0
	psubd	%xmm3, %xmm0
	movdqa	%xmm2, %xmm3
	psubd	%xmm5, %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$31, %xmm4
	pxor	%xmm4, %xmm3
	psubd	%xmm4, %xmm3
	paddd	%xmm3, %xmm0
	movaps	%xmm0, -96(%rbp)
	cmpl	$11, %eax
	je	.L21
	movdqu	176(%r12), %xmm6
	movdqu	176(%r13), %xmm5
	psubd	%xmm6, %xmm1
	psubd	%xmm5, %xmm2
	movdqa	%xmm1, %xmm0
	psrad	$31, %xmm0
	pxor	%xmm0, %xmm1
	psubd	%xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	psrad	$31, %xmm0
	pxor	%xmm0, %xmm2
	psubd	%xmm0, %xmm2
	paddd	%xmm2, %xmm1
	movaps	%xmm1, -80(%rbp)
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%edx, %eax
	andl	$-4, %eax
	testb	$3, %dl
	je	.L22
.L20:
	movslq	%eax, %r15
	movl	%ecx, %r9d
	movl	%esi, %r11d
	leaq	0(,%r15,4), %rdi
	leaq	(%r12,%rdi), %r10
	addq	%r13, %rdi
	subl	(%r10), %r9d
	movl	%r9d, %r8d
	negl	%r8d
	cmovs	%r9d, %r8d
	subl	(%rdi), %r11d
	movl	%r11d, %r9d
	negl	%r9d
	cmovs	%r11d, %r9d
	addl	%r9d, %r8d
	leal	1(%rax), %r9d
	movl	%r8d, -256(%rbp,%r15,4)
	cmpl	%edx, %r9d
	jge	.L24
	movl	%ecx, %r11d
	subl	4(%r10), %r11d
	movl	%esi, %r15d
	movslq	%r9d, %r9
	movl	%r11d, %r8d
	negl	%r8d
	cmovs	%r11d, %r8d
	subl	4(%rdi), %r15d
	movl	%r15d, %r11d
	negl	%r11d
	cmovs	%r15d, %r11d
	addl	$2, %eax
	addl	%r11d, %r8d
	movl	%r8d, -256(%rbp,%r9,4)
	cmpl	%eax, %edx
	jle	.L22
	subl	8(%rdi), %esi
	cltq
	movl	%esi, %edi
	negl	%edi
	cmovns	%edi, %esi
	subl	8(%r10), %ecx
	movl	%ecx, %edi
	negl	%edi
	cmovns	%edi, %ecx
	addl	%esi, %ecx
	movl	%ecx, -256(%rbp,%rax,4)
.L22:
	movl	-256(%rbp), %esi
	movl	$1, %eax
	xorl	%edi, %edi
	.p2align 4,,10
	.p2align 3
.L26:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%esi, %ecx
	jge	.L25
	movl	%ecx, %esi
	movl	%eax, %edi
.L25:
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L26
	leal	1(%rdi), %edx
.L19:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	cmpl	%r14d, -264(%rbp)
	jle	.L18
	movl	-260(%rbp), %edx
	jmp	.L27
.L14:
	testl	%esi, %esi
	jg	.L28
	.p2align 4,,10
	.p2align 3
.L18:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L87
	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
.L24:
	.cfi_restore_state
	cmpl	$1, %edx
	jg	.L22
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$1, %edx
	jmp	.L19
.L31:
	xorl	%eax, %eax
	jmp	.L20
.L87:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>

int main (){

    int N,M;
    scanf("%d %d",&N,&M );

    int pos_aluno_x[N],pos_aluno_y[N];
    int pos_check_x[M],pos_check_y[M];

    for(int i = 0; i < N; ++i){
        scanf("%d %d",&pos_aluno_x[i],&pos_aluno_y[i]);
    }
    for(int j = 0; j < M ; ++j){
        scanf("%d %d",&pos_check_x[j],&pos_check_y[j] );
    }
    for(int w = 0 ; w < N; ++w){
        int coord[50] = {};
        int menor = 0;
        for (int z = 0; z < M; ++z){
            coord[z] = abs(pos_aluno_x[w] - pos_check_x[z]) + abs(pos_aluno_y[w] - pos_check_y[z]) ;
            }
        for (int u = 1; u < M; ++u){
            if (coord[u] < coord[menor]){
                menor = u;
                }
        }

        printf("%d\n",menor+1   );
        }

return 0;
}

3 4
10 10
-10 -10
3 3
1 2
2 3
3 5
3 10
 2 2
2 0
0 0
-1 -1
1 0
 3 4
10 10
-10 -10
3 3
1 4
2 3
3 5
3 5
 2 2
2 0
0 -1
-1 0
1 0
 5 5
-100000000 -100000000
-100000000 100000000
100000000 -100000000
100000000 100000000
0 0
0 0
100000000 100000000
100000000 -100000000
-100000000 100000000
-100000000 -20979428
 2 2
2 0
0 -1
0 0
1 1
 3 4
10 10
-10 -10
3 4
0 4
2 3
3 9
3 5
 3 1
10 10
-10 -10
5 6
0 4
2 3
3 9
3 5
 5 5
-136146578 -100000000
-100000000 100000000
100010000 -44291970
000001000 100010000
0 3
0 0
100000000 100000000
100000001 -100000000
-8995723 100000000
-100000000 -9510226
 5 5
-78895993 -100000000
-100000000 100000000
100010000 -44291970
000001000 000010000
0 3
0 0
100000000 100000000
100000001 -110988549
-8995723 100000000
-100000000 -15120325

4
1
2
 2
2
 3
1
2
 2
1
 5
4
3
2
1
 1
1
 3
1
4
 1
1
1
 5
4
3
4
1
 5
4
3
1
1

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

```c
#include <stdio.h>
#include <stdlib.h>

int main (){

    int N,M;
    scanf("%d %d",&N,&M );

    int pos_aluno_x[N],pos_aluno_y[N];
    int pos_check_x[M],pos_check_y[M];

    for(int i = 0; i < N; ++i){
        scanf("%d %d",&pos_aluno_x[i],&pos_aluno_y[i]);
    }
    for(int j = 0; j < M ; ++j){
        scanf("%d %d",&pos_check_x[j],&pos_check_y[j] );
    }
    for(int w = 0 ; w < N; ++w){
        int coord[50] = {};
        int menor = 0;
        for (int z = 0; z < M; ++z){
            coord[z] = abs(pos_aluno_x[w] - pos_check_x[z]) + abs(pos_aluno_y[w] - pos_check_y[z]) ;
            }
        for (int u = 1; u < M; ++u){
            if (coord[u] < coord[menor]){
                menor = u;
                }
        }

        printf("%d\n",menor+1   );
        }

return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	$408, %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	-348(%rbp), %rdx
	leaq	-352(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -320(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -312(%rbp)
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -304(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	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
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -296(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -288(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -416(%rbp)
	movq	$0, -408(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -280(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%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
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -344(%rbp)
	jmp	.L14
.L15:
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-296(%rbp), %rax
	addq	%rax, %rdx
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-312(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -344(%rbp)
.L14:
	movl	-352(%rbp), %eax
	cmpl	%eax, -344(%rbp)
	jl	.L15
	movl	$0, -340(%rbp)
	jmp	.L16
.L17:
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-264(%rbp), %rax
	addq	%rax, %rdx
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-280(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -340(%rbp)
.L16:
	movl	-348(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L17
	movl	$0, -336(%rbp)
	jmp	.L18
.L24:
	leaq	-256(%rbp), %rdx
	movl	$0, %eax
	movl	$25, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -332(%rbp)
	movl	$0, -328(%rbp)
	jmp	.L19
.L20:
	movq	-312(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-280(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	movq	-296(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-264(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-328(%rbp), %eax
	cltq
	movl	%edx, -256(%rbp,%rax,4)
	addl	$1, -328(%rbp)
.L19:
	movl	-348(%rbp), %eax
	cmpl	%eax, -328(%rbp)
	jl	.L20
	movl	$1, -324(%rbp)
	jmp	.L21
.L23:
	movl	-324(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-332(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L22
	movl	-324(%rbp), %eax
	movl	%eax, -332(%rbp)
.L22:
	addl	$1, -324(%rbp)
.L21:
	movl	-348(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L23
	movl	-332(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -336(%rbp)
.L18:
	movl	-352(%rbp), %eax
	cmpl	%eax, -336(%rbp)
	jl	.L24
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	$408, %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	-348(%rbp), %rdx
	leaq	-352(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -320(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -312(%rbp)
	movl	-352(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -304(%rbp)
	movslq	%edx, %rax
	movq	%rax, -368(%rbp)
	movq	$0, -360(%rbp)
	movslq	%edx, %rax
	movq	%rax, -384(%rbp)
	movq	$0, -376(%rbp)
	movslq	%edx, %rax
	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
.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	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -296(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -288(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -400(%rbp)
	movq	$0, -392(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -416(%rbp)
	movq	$0, -408(%rbp)
	cltq
	leaq	0(,%rax,4), %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
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -280(%rbp)
	movl	-348(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -272(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -432(%rbp)
	movq	$0, -424(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -448(%rbp)
	movq	$0, -440(%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
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -264(%rbp)
	movl	$0, -344(%rbp)
	jmp	.L14
.L15:
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-296(%rbp), %rax
	addq	%rax, %rdx
	movl	-344(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-312(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -344(%rbp)
.L14:
	movl	-352(%rbp), %eax
	cmpl	%eax, -344(%rbp)
	jl	.L15
	movl	$0, -340(%rbp)
	jmp	.L16
.L17:
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-264(%rbp), %rax
	addq	%rax, %rdx
	movl	-340(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-280(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -340(%rbp)
.L16:
	movl	-348(%rbp), %eax
	cmpl	%eax, -340(%rbp)
	jl	.L17
	movl	$0, -336(%rbp)
	jmp	.L18
.L24:
	leaq	-256(%rbp), %rdx
	movl	$0, %eax
	movl	$25, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -332(%rbp)
	movl	$0, -328(%rbp)
	jmp	.L19
.L20:
	movq	-312(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-280(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	movq	-296(%rbp), %rax
	movl	-336(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-264(%rbp), %rax
	movl	-328(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-328(%rbp), %eax
	cltq
	movl	%edx, -256(%rbp,%rax,4)
	addl	$1, -328(%rbp)
.L19:
	movl	-348(%rbp), %eax
	cmpl	%eax, -328(%rbp)
	jl	.L20
	movl	$1, -324(%rbp)
	jmp	.L21
.L23:
	movl	-324(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %edx
	movl	-332(%rbp), %eax
	cltq
	movl	-256(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L22
	movl	-324(%rbp), %eax
	movl	%eax, -332(%rbp)
.L22:
	addl	$1, -324(%rbp)
.L21:
	movl	-348(%rbp), %eax
	cmpl	%eax, -324(%rbp)
	jl	.L23
	movl	-332(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -336(%rbp)
.L18:
	movl	-352(%rbp), %eax
	cmpl	%eax, -336(%rbp)
	jl	.L24
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
