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>
//10:50
int absl(long n){
  if(n>0){
    return n;
  }else if(n<0){
    return -n;
  }else{
    return 0;
  }
}

int main(){
  int n = 0;
  int m = 0;
  long a[100] = {};
  long b[100] = {};
  long c[100] = {};
  long d[100] = {};
  int nearpoint[100] = {};//最後に必ず１を足すこと
  int i = 0;
  int j = 0;
  long mindst = 0;
  int nindex = 0;
  
  scanf("%d %d",&n,&m);
  for(i=0;i<n;i++){
    scanf("%lu %lu",&a[i],&b[i]);
  }
  for(i=0;i<m;i++){
    scanf("%lu %lu",&c[i],&d[i]);
  }
  
  for(i=0;i<n;i++){
    mindst = absl(c[0]-a[i])+absl(d[0]-b[i]);
    nindex = 0;
    for(j=1;j<m;j++){
      if(mindst > absl(c[j]-a[i])+absl(d[j]-b[i])){
        mindst = absl(c[j]-a[i])+absl(d[j]-b[i]);
        nindex = j;
      }
    }
    nearpoint[i] = nindex;
  }
  
  for(i=0;i<n;i++){
    printf("%lu\n",nearpoint[i]+1);
  }
  return 0;
}
 
          
        
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	absl
	.type	absl, @function
absl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jns	.L4
	movq	-8(%rbp), %rax
	negl	%eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	absl, .-absl
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$3656, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -3660(%rbp)
	movl	$0, -3656(%rbp)
	leaq	-3232(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2432(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1632(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3632(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3652(%rbp)
	movl	$0, -3648(%rbp)
	movq	$0, -3640(%rbp)
	movl	$0, -3644(%rbp)
	leaq	-3656(%rbp), %rdx
	leaq	-3660(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3652(%rbp)
	jmp	.L6
.L7:
	leaq	-2432(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-3232(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L6:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L7
	movl	$0, -3652(%rbp)
	jmp	.L8
.L9:
	leaq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1632(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L8:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L9
	movl	$0, -3652(%rbp)
	jmp	.L10
.L14:
	movq	-1632(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	$0, -3644(%rbp)
	movl	$1, -3648(%rbp)
	jmp	.L11
.L13:
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	cmpq	%rax, -3640(%rbp)
	jle	.L12
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	-3648(%rbp), %eax
	movl	%eax, -3644(%rbp)
.L12:
	addl	$1, -3648(%rbp)
.L11:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3648(%rbp)
	jl	.L13
	movl	-3652(%rbp), %eax
	cltq
	movl	-3644(%rbp), %edx
	movl	%edx, -3632(%rbp,%rax,4)
	addl	$1, -3652(%rbp)
.L10:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L14
	movl	$0, -3652(%rbp)
	jmp	.L15
.L16:
	movl	-3652(%rbp), %eax
	cltq
	movl	-3632(%rbp,%rax,4), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3652(%rbp)
.L15:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	absl
	.type	absl, @function
absl:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	testq	%rdi, %rdi
	jg	.L6
	negl	%eax
	testq	%rdi, %rdi
	movl	$0, %edi
	cmove	%edi, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	ret
	.cfi_endproc
.LFE23:
	.size	absl, .-absl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$3704, %rsp
	.cfi_def_cfa_offset 3760
	movq	%fs:40, %rax
	movq	%rax, 3688(%rsp)
	xorl	%eax, %eax
	leaq	480(%rsp), %rdi
	leaq	2080(%rsp), %rbp
	movl	$0, 72(%rsp)
	movq	%rdi, 32(%rsp)
	movq	%rdi, %r14
	leaq	76(%rsp), %rdx
	movl	$0, 76(%rsp)
	rep stosq
	leaq	1280(%rsp), %rcx
	movq	%rcx, %rbx
	movq	%rcx, 24(%rsp)
	movl	$100, %ecx
	movq	%rbx, %rdi
	leaq	2880(%rsp), %rbx
	rep stosq
	movl	$100, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	80(%rsp), %rcx
	movq	%rcx, %rsi
	movq	%rcx, 16(%rsp)
	movl	$50, %ecx
	movq	%rsi, %rdi
	leaq	72(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	72(%rsp), %eax
	movq	24(%rsp), %r15
	testl	%eax, %eax
	jle	.L57
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	(%r15,%r13,8), %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %r13
	addq	$8, %r14
	cmpl	%r13d, 72(%rsp)
	jg	.L12
	movl	76(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L11
.L10:
	movq	%rbp, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%rbx,%r13,8), %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %eax
	addq	$1, %r13
	addq	$8, %r14
	cmpl	%r13d, %eax
	jg	.L14
	movl	%eax, 12(%rsp)
.L11:
	movslq	72(%rsp), %rax
	testl	%eax, %eax
	jle	.L33
	movq	%rax, 56(%rsp)
	movslq	12(%rsp), %r12
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	2080(%rsp), %rcx
	movq	%rcx, 40(%rsp)
	movq	2880(%rsp), %rcx
	movq	%rcx, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	32(%rsp), %rax
	movq	40(%rsp), %rdi
	movq	(%rax,%r14,8), %r9
	subq	%r9, %rdi
	testq	%rdi, %rdi
	jg	.L17
	movl	%edi, %eax
	negl	%eax
	testq	%rdi, %rdi
	cmove	%r13d, %eax
	movl	%eax, %edi
.L17:
	movq	24(%rsp), %rax
	movq	(%rax,%r14,8), %r10
	movq	48(%rsp), %rax
	subq	%r10, %rax
	testq	%rax, %rax
	jg	.L58
	movl	%edi, %edx
	subl	%eax, %edx
	testq	%rax, %rax
	cmovne	%edx, %edi
.L19:
	cmpl	$1, 12(%rsp)
	movslq	%edi, %rdi
	jle	.L36
	movl	$1, %esi
	xorl	%r15d, %r15d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%edx, %r11d
	subl	%r8d, %r11d
	testq	%r8, %r8
	cmovne	%r11d, %edx
.L24:
	movslq	%edx, %rdx
	cmpq	%rdi, %rdx
	jge	.L25
	testq	%rax, %rax
	jg	.L27
	movl	%eax, %edx
	negl	%edx
	testq	%rax, %rax
	movl	%edx, %eax
	cmove	%r13d, %eax
.L27:
	testq	%r8, %r8
	jg	.L59
	movl	%eax, %edx
	subl	%r8d, %edx
	testq	%r8, %r8
	cmovne	%edx, %eax
.L29:
	movslq	%eax, %rdi
	movl	%ecx, %r15d
.L25:
	addq	$1, %rsi
	cmpq	%r12, %rsi
	je	.L20
.L30:
	movq	0(%rbp,%rsi,8), %rax
	movl	%esi, %ecx
	subq	%r9, %rax
	movl	%eax, %edx
	testq	%rax, %rax
	jg	.L22
	negl	%edx
	testq	%rax, %rax
	cmove	%r13d, %edx
.L22:
	movq	(%rbx,%rsi,8), %r8
	subq	%r10, %r8
	testq	%r8, %r8
	jle	.L23
	addl	%r8d, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%r8d, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L36:
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L20:
	movq	16(%rsp), %rax
	movl	%r15d, (%rax,%r14,4)
	addq	$1, %r14
	cmpq	56(%rsp), %r14
	jne	.L31
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L32:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 72(%rsp)
	jg	.L32
.L33:
	movq	3688(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$3704, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	addl	%eax, %edi
	jmp	.L19
.L57:
	cmpl	$0, 76(%rsp)
	jg	.L10
	jmp	.L33
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	absl
	.type	absl, @function
absl:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	testq	%rdi, %rdi
	jg	.L6
	negl	%eax
	testq	%rdi, %rdi
	movl	$0, %edi
	cmove	%edi, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	ret
	.cfi_endproc
.LFE23:
	.size	absl, .-absl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$100, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$3704, %rsp
	.cfi_def_cfa_offset 3760
	movq	%fs:40, %rax
	movq	%rax, 3688(%rsp)
	xorl	%eax, %eax
	leaq	480(%rsp), %rdi
	leaq	2080(%rsp), %rbp
	movl	$0, 72(%rsp)
	movq	%rdi, 32(%rsp)
	movq	%rdi, %r14
	leaq	76(%rsp), %rdx
	movl	$0, 76(%rsp)
	rep stosq
	leaq	1280(%rsp), %rcx
	movq	%rcx, %rbx
	movq	%rcx, 24(%rsp)
	movl	$100, %ecx
	movq	%rbx, %rdi
	leaq	2880(%rsp), %rbx
	rep stosq
	movl	$100, %ecx
	movq	%rbp, %rdi
	rep stosq
	movl	$100, %ecx
	movq	%rbx, %rdi
	rep stosq
	leaq	80(%rsp), %rcx
	movq	%rcx, %rsi
	movq	%rcx, 16(%rsp)
	movl	$50, %ecx
	movq	%rsi, %rdi
	leaq	72(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	72(%rsp), %eax
	movq	24(%rsp), %r15
	testl	%eax, %eax
	jle	.L57
	.p2align 4,,10
	.p2align 3
.L12:
	leaq	(%r15,%r13,8), %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addq	$1, %r13
	addq	$8, %r14
	cmpl	%r13d, 72(%rsp)
	jg	.L12
	movl	76(%rsp), %eax
	movl	%eax, 12(%rsp)
	testl	%eax, %eax
	jle	.L11
.L10:
	movq	%rbp, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%rbx,%r13,8), %rdx
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %eax
	addq	$1, %r13
	addq	$8, %r14
	cmpl	%r13d, %eax
	jg	.L14
	movl	%eax, 12(%rsp)
.L11:
	movslq	72(%rsp), %rax
	testl	%eax, %eax
	jle	.L33
	movq	%rax, 56(%rsp)
	movslq	12(%rsp), %r12
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	2080(%rsp), %rcx
	movq	%rcx, 40(%rsp)
	movq	2880(%rsp), %rcx
	movq	%rcx, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	32(%rsp), %rax
	movq	40(%rsp), %rdi
	movq	(%rax,%r14,8), %r9
	subq	%r9, %rdi
	testq	%rdi, %rdi
	jg	.L17
	movl	%edi, %eax
	negl	%eax
	testq	%rdi, %rdi
	cmove	%r13d, %eax
	movl	%eax, %edi
.L17:
	movq	24(%rsp), %rax
	movq	(%rax,%r14,8), %r10
	movq	48(%rsp), %rax
	subq	%r10, %rax
	testq	%rax, %rax
	jg	.L58
	movl	%edi, %edx
	subl	%eax, %edx
	testq	%rax, %rax
	cmovne	%edx, %edi
.L19:
	cmpl	$1, 12(%rsp)
	movslq	%edi, %rdi
	jle	.L36
	movl	$1, %esi
	xorl	%r15d, %r15d
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%edx, %r11d
	subl	%r8d, %r11d
	testq	%r8, %r8
	cmovne	%r11d, %edx
.L24:
	movslq	%edx, %rdx
	cmpq	%rdi, %rdx
	jge	.L25
	testq	%rax, %rax
	jg	.L27
	movl	%eax, %edx
	negl	%edx
	testq	%rax, %rax
	movl	%edx, %eax
	cmove	%r13d, %eax
.L27:
	testq	%r8, %r8
	jg	.L59
	movl	%eax, %edx
	subl	%r8d, %edx
	testq	%r8, %r8
	cmovne	%edx, %eax
.L29:
	movslq	%eax, %rdi
	movl	%ecx, %r15d
.L25:
	addq	$1, %rsi
	cmpq	%r12, %rsi
	je	.L20
.L30:
	movq	0(%rbp,%rsi,8), %rax
	movl	%esi, %ecx
	subq	%r9, %rax
	movl	%eax, %edx
	testq	%rax, %rax
	jg	.L22
	negl	%edx
	testq	%rax, %rax
	cmove	%r13d, %edx
.L22:
	movq	(%rbx,%rsi,8), %r8
	subq	%r10, %r8
	testq	%r8, %r8
	jle	.L23
	addl	%r8d, %edx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%r8d, %eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L36:
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L20:
	movq	16(%rsp), %rax
	movl	%r15d, (%rax,%r14,4)
	addq	$1, %r14
	cmpq	56(%rsp), %r14
	jne	.L31
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	movq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L32:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	leal	1(%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpl	%ebx, 72(%rsp)
	jg	.L32
.L33:
	movq	3688(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$3704, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	addl	%eax, %edi
	jmp	.L19
.L57:
	cmpl	$0, 76(%rsp)
	jg	.L10
	jmp	.L33
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>
//10:50
int absl(long n){
  if(n>0){
    return n;
  }else if(n<0){
    return -n;
  }else{
    return 0;
  }
}

int main(){
  int n = 0;
  int m = 0;
  long a[100] = {};
  long b[100] = {};
  long c[100] = {};
  long d[100] = {};
  int nearpoint[100] = {};//最後に必ず１を足すこと
  int i = 0;
  int j = 0;
  long mindst = 0;
  int nindex = 0;
  
  scanf("%d %d",&n,&m);
  for(i=0;i<n;i++){
    scanf("%lu %lu",&a[i],&b[i]);
  }
  for(i=0;i<m;i++){
    scanf("%lu %lu",&c[i],&d[i]);
  }
  
  for(i=0;i<n;i++){
    mindst = absl(c[0]-a[i])+absl(d[0]-b[i]);
    nindex = 0;
    for(j=1;j<m;j++){
      if(mindst > absl(c[j]-a[i])+absl(d[j]-b[i])){
        mindst = absl(c[j]-a[i])+absl(d[j]-b[i]);
        nindex = j;
      }
    }
    nearpoint[i] = nindex;
  }
  
  for(i=0;i<n;i++){
    printf("%lu\n",nearpoint[i]+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>
//10:50
int absl(long n){
  if(n>0){
    return n;
  }else if(n<0){
    return -n;
  }else{
    return 0;
  }
}

int main(){
  int n = 0;
  int m = 0;
  long a[100] = {};
  long b[100] = {};
  long c[100] = {};
  long d[100] = {};
  int nearpoint[100] = {};//最後に必ず１を足すこと
  int i = 0;
  int j = 0;
  long mindst = 0;
  int nindex = 0;
  
  scanf("%d %d",&n,&m);
  for(i=0;i<n;i++){
    scanf("%lu %lu",&a[i],&b[i]);
  }
  for(i=0;i<m;i++){
    scanf("%lu %lu",&c[i],&d[i]);
  }
  
  for(i=0;i<n;i++){
    mindst = absl(c[0]-a[i])+absl(d[0]-b[i]);
    nindex = 0;
    for(j=1;j<m;j++){
      if(mindst > absl(c[j]-a[i])+absl(d[j]-b[i])){
        mindst = absl(c[j]-a[i])+absl(d[j]-b[i]);
        nindex = j;
      }
    }
    nearpoint[i] = nindex;
  }
  
  for(i=0;i<n;i++){
    printf("%lu\n",nearpoint[i]+1);
  }
  return 0;
}
 
          
        
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	absl
	.type	absl, @function
absl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jns	.L4
	movq	-8(%rbp), %rax
	negl	%eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	absl, .-absl
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$3656, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -3660(%rbp)
	movl	$0, -3656(%rbp)
	leaq	-3232(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2432(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1632(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3632(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3652(%rbp)
	movl	$0, -3648(%rbp)
	movq	$0, -3640(%rbp)
	movl	$0, -3644(%rbp)
	leaq	-3656(%rbp), %rdx
	leaq	-3660(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3652(%rbp)
	jmp	.L6
.L7:
	leaq	-2432(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-3232(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L6:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L7
	movl	$0, -3652(%rbp)
	jmp	.L8
.L9:
	leaq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1632(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L8:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L9
	movl	$0, -3652(%rbp)
	jmp	.L10
.L14:
	movq	-1632(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	$0, -3644(%rbp)
	movl	$1, -3648(%rbp)
	jmp	.L11
.L13:
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	cmpq	%rax, -3640(%rbp)
	jle	.L12
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	-3648(%rbp), %eax
	movl	%eax, -3644(%rbp)
.L12:
	addl	$1, -3648(%rbp)
.L11:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3648(%rbp)
	jl	.L13
	movl	-3652(%rbp), %eax
	cltq
	movl	-3644(%rbp), %edx
	movl	%edx, -3632(%rbp,%rax,4)
	addl	$1, -3652(%rbp)
.L10:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L14
	movl	$0, -3652(%rbp)
	jmp	.L15
.L16:
	movl	-3652(%rbp), %eax
	cltq
	movl	-3632(%rbp,%rax,4), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3652(%rbp)
.L15:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	absl
	.type	absl, @function
absl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movq	-8(%rbp), %rax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jns	.L4
	movq	-8(%rbp), %rax
	negl	%eax
	jmp	.L3
.L4:
	movl	$0, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	absl, .-absl
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$3656, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	$0, -3660(%rbp)
	movl	$0, -3656(%rbp)
	leaq	-3232(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2432(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1632(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-832(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-3632(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$0, -3652(%rbp)
	movl	$0, -3648(%rbp)
	movq	$0, -3640(%rbp)
	movl	$0, -3644(%rbp)
	leaq	-3656(%rbp), %rdx
	leaq	-3660(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -3652(%rbp)
	jmp	.L6
.L7:
	leaq	-2432(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-3232(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L6:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L7
	movl	$0, -3652(%rbp)
	jmp	.L8
.L9:
	leaq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1632(%rbp), %rcx
	movl	-3652(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -3652(%rbp)
.L8:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L9
	movl	$0, -3652(%rbp)
	jmp	.L10
.L14:
	movq	-1632(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movq	-832(%rbp), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	$0, -3644(%rbp)
	movl	$1, -3648(%rbp)
	jmp	.L11
.L13:
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	cmpq	%rax, -3640(%rbp)
	jle	.L12
	movl	-3648(%rbp), %eax
	cltq
	movq	-1632(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-3232(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	movl	%eax, %ebx
	movl	-3648(%rbp), %eax
	cltq
	movq	-832(%rbp,%rax,8), %rdx
	movl	-3652(%rbp), %eax
	cltq
	movq	-2432(%rbp,%rax,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, %rdi
	call	absl
	addl	%ebx, %eax
	cltq
	movq	%rax, -3640(%rbp)
	movl	-3648(%rbp), %eax
	movl	%eax, -3644(%rbp)
.L12:
	addl	$1, -3648(%rbp)
.L11:
	movl	-3656(%rbp), %eax
	cmpl	%eax, -3648(%rbp)
	jl	.L13
	movl	-3652(%rbp), %eax
	cltq
	movl	-3644(%rbp), %edx
	movl	%edx, -3632(%rbp,%rax,4)
	addl	$1, -3652(%rbp)
.L10:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L14
	movl	$0, -3652(%rbp)
	jmp	.L15
.L16:
	movl	-3652(%rbp), %eax
	cltq
	movl	-3632(%rbp,%rax,4), %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -3652(%rbp)
.L15:
	movl	-3660(%rbp), %eax
	cmpl	%eax, -3652(%rbp)
	jl	.L16
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
