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(void) {

  long n;
  scanf("%ld", &n);
  long x[n],y[n],h[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld %ld %ld", &x[i], &y[i], &h[i]);
  }
  long height;
  long distance;
  int flag;
  for (long cx = 0; cx <= 100; cx++) {
    for (long cy = 0; cy <= 100; cy++) {
      flag = 0;
      for (long i = 0; i < n; i++) {
        if (h[i] != 0) {
          height = h[i]+labs(cx-x[i])+labs(cy-y[i]);
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        printf("%ld %ld 1\n", cx, cy);
        return 0;
      }
      flag = 1;
      for (long i = 0; i < n; i++) {
        distance = labs(cx-x[i])+labs(cy-y[i]);
        if (height-distance > 0 && h[i] != height-distance) {
          flag = 0;
          break;
        } else if (height-distance <= 0 && h[i] != 0) {
          flag = 0;
          break;
        }
      }
      if (flag == 1) {
        printf("%ld %ld %ld\n", cx, cy, height);
        return 0;
      }
    }
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld %ld %ld"
.LC2:
	.string	"%ld %ld 1\n"
.LC3:
	.string	"%ld %ld %ld\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	$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	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -112(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	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, -104(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -96(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.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, -88(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -160(%rbp)
	jmp	.L11
.L12:
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-104(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -160(%rbp)
.L11:
	movq	-168(%rbp), %rax
	cmpq	%rax, -160(%rbp)
	jl	.L12
	movq	$0, -144(%rbp)
	jmp	.L13
.L28:
	movq	$0, -136(%rbp)
	jmp	.L14
.L27:
	movl	$0, -172(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L15
.L18:
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L16
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-104(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -152(%rbp)
	movl	$1, -172(%rbp)
	jmp	.L17
.L16:
	addq	$1, -128(%rbp)
.L15:
	movq	-168(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
.L17:
	cmpl	$0, -172(%rbp)
	jne	.L19
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L19:
	movl	$1, -172(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L21
.L25:
	movq	-104(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L22
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	je	.L22
	movl	$0, -172(%rbp)
	jmp	.L23
.L22:
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jg	.L24
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L24
	movl	$0, -172(%rbp)
	jmp	.L23
.L24:
	addq	$1, -120(%rbp)
.L21:
	movq	-168(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L25
.L23:
	cmpl	$1, -172(%rbp)
	jne	.L26
	movq	-152(%rbp), %rcx
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L26:
	addq	$1, -136(%rbp)
.L14:
	cmpq	$100, -136(%rbp)
	jle	.L27
	addq	$1, -144(%rbp)
.L13:
	cmpq	$100, -144(%rbp)
	jle	.L28
	movl	$0, %eax
.L20:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	"%ld"
.LC1:
	.string	"%ld %ld %ld"
.LC2:
	.string	"%ld %ld 1\n"
.LC3:
	.string	"%ld %ld %ld\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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdi
	movq	%rsp, %rcx
	leaq	15(,%rdi,8), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L48:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L48
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L49
.L4:
	movq	%rax, %rsi
	movq	%rsp, -72(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L49:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L50
.L7:
	movq	%rsp, -80(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L50:
	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	%rsp, %r13
	testq	%rdi, %rdi
	jle	.L11
	movq	-72(%rbp), %r14
	movq	-80(%rbp), %rbx
	movq	%r13, %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$1, %r15
	addq	$8, %r14
	addq	$8, %rbx
	addq	$8, %r12
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdi
	cmpq	%r15, %rdi
	jg	.L12
.L11:
	xorl	%r9d, %r9d
.L13:
	xorl	%r10d, %r10d
.L23:
	testq	%rdi, %rdi
	jle	.L22
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %rdi
	je	.L22
.L16:
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	je	.L14
	movq	-72(%rbp), %rbx
	movq	%r9, %rcx
	subq	(%rbx,%rax,8), %rcx
	movq	-80(%rbp), %rbx
	movq	%rcx, %r8
	negq	%r8
	cmovs	%rcx, %r8
	addq	%rdx, %r8
	movq	%r10, %rdx
	subq	(%rbx,%rax,8), %rdx
	movq	%rdx, %rax
	negq	%rax
	cmovs	%rdx, %rax
	xorl	%edx, %edx
	addq	%rax, %r8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L52:
	cmpq	%rax, %rcx
	jne	.L19
.L20:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	je	.L51
.L15:
	movq	-72(%rbp), %rax
	movq	%r9, %rcx
	movq	-80(%rbp), %rbx
	movq	%r10, %rsi
	subq	(%rax,%rdx,8), %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	subq	(%rbx,%rdx,8), %rsi
	movq	%rsi, %rcx
	negq	%rcx
	cmovs	%rsi, %rcx
	addq	%rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	0(%r13,%rdx,8), %rax
	testq	%rcx, %rcx
	jg	.L52
	testq	%rax, %rax
	je	.L20
.L19:
	addq	$1, %r10
	cmpq	$101, %r10
	jne	.L23
	addq	$1, %r9
	cmpq	$101, %r9
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	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
.L22:
	.cfi_restore_state
	movq	%r10, %rcx
	movq	%r9, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L51:
	movq	%r10, %rcx
	movq	%r9, %rdx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L53:
	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	"%ld"
.LC1:
	.string	"%ld %ld %ld"
.LC2:
	.string	"%ld %ld 1\n"
.LC3:
	.string	"%ld %ld %ld\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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdi
	movq	%rsp, %rcx
	leaq	15(,%rdi,8), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L48:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L48
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L49
.L4:
	movq	%rax, %rsi
	movq	%rsp, -72(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L49:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L50
.L7:
	movq	%rsp, -80(%rbp)
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L50:
	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	%rsp, %r13
	testq	%rdi, %rdi
	jle	.L11
	movq	-72(%rbp), %r14
	movq	-80(%rbp), %rbx
	movq	%r13, %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r12, %rcx
	movq	%rbx, %rdx
	movq	%r14, %rsi
	xorl	%eax, %eax
	addq	$1, %r15
	addq	$8, %r14
	addq	$8, %rbx
	addq	$8, %r12
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdi
	cmpq	%r15, %rdi
	jg	.L12
.L11:
	xorl	%r9d, %r9d
.L13:
	xorl	%r10d, %r10d
.L23:
	testq	%rdi, %rdi
	jle	.L22
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpq	%rax, %rdi
	je	.L22
.L16:
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	je	.L14
	movq	-72(%rbp), %rbx
	movq	%r9, %rcx
	subq	(%rbx,%rax,8), %rcx
	movq	-80(%rbp), %rbx
	movq	%rcx, %r8
	negq	%r8
	cmovs	%rcx, %r8
	addq	%rdx, %r8
	movq	%r10, %rdx
	subq	(%rbx,%rax,8), %rdx
	movq	%rdx, %rax
	negq	%rax
	cmovs	%rdx, %rax
	xorl	%edx, %edx
	addq	%rax, %r8
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L52:
	cmpq	%rax, %rcx
	jne	.L19
.L20:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	je	.L51
.L15:
	movq	-72(%rbp), %rax
	movq	%r9, %rcx
	movq	-80(%rbp), %rbx
	movq	%r10, %rsi
	subq	(%rax,%rdx,8), %rcx
	movq	%rcx, %rax
	negq	%rax
	cmovs	%rcx, %rax
	subq	(%rbx,%rdx,8), %rsi
	movq	%rsi, %rcx
	negq	%rcx
	cmovs	%rsi, %rcx
	addq	%rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	0(%r13,%rdx,8), %rax
	testq	%rcx, %rcx
	jg	.L52
	testq	%rax, %rax
	je	.L20
.L19:
	addq	$1, %r10
	cmpq	$101, %r10
	jne	.L23
	addq	$1, %r9
	cmpq	$101, %r9
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	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
.L22:
	.cfi_restore_state
	movq	%r10, %rcx
	movq	%r9, %rdx
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L51:
	movq	%r10, %rcx
	movq	%r9, %rdx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L17
.L53:
	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(void) {

  long n;
  scanf("%ld", &n);
  long x[n],y[n],h[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld %ld %ld", &x[i], &y[i], &h[i]);
  }
  long height;
  long distance;
  int flag;
  for (long cx = 0; cx <= 100; cx++) {
    for (long cy = 0; cy <= 100; cy++) {
      flag = 0;
      for (long i = 0; i < n; i++) {
        if (h[i] != 0) {
          height = h[i]+labs(cx-x[i])+labs(cy-y[i]);
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        printf("%ld %ld 1\n", cx, cy);
        return 0;
      }
      flag = 1;
      for (long i = 0; i < n; i++) {
        distance = labs(cx-x[i])+labs(cy-y[i]);
        if (height-distance > 0 && h[i] != height-distance) {
          flag = 0;
          break;
        } else if (height-distance <= 0 && h[i] != 0) {
          flag = 0;
          break;
        }
      }
      if (flag == 1) {
        printf("%ld %ld %ld\n", cx, cy, height);
        return 0;
      }
    }
  }

  return 0;
}
2
-1 0 100
2 1 98
 3
99 1 191
000 1 192
99 0 192
 2
-2 0 100
2 2 98
 3
99 1 191
000 1 154
99 0 192
 3
99 1 191
000 1 210
99 0 192
 2
-1 -1 101
2 3 98
 3
99 1 191
000 1 180
99 0 192
 3
99 1 191
010 1 154
99 0 192
 3
99 1 191
000 1 236
99 0 192
 3
99 1 191
010 1 236
99 0 192

0 0 101
 49 0 242
 0 0 102
 68 0 223
 40 0 251
 0 0 103
 55 0 236
 73 0 218
 27 0 264
 32 0 259

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(void) {

  long n;
  scanf("%ld", &n);
  long x[n],y[n],h[n];
  for (long i = 0; i < n; i++) {
    scanf("%ld %ld %ld", &x[i], &y[i], &h[i]);
  }
  long height;
  long distance;
  int flag;
  for (long cx = 0; cx <= 100; cx++) {
    for (long cy = 0; cy <= 100; cy++) {
      flag = 0;
      for (long i = 0; i < n; i++) {
        if (h[i] != 0) {
          height = h[i]+labs(cx-x[i])+labs(cy-y[i]);
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        printf("%ld %ld 1\n", cx, cy);
        return 0;
      }
      flag = 1;
      for (long i = 0; i < n; i++) {
        distance = labs(cx-x[i])+labs(cy-y[i]);
        if (height-distance > 0 && h[i] != height-distance) {
          flag = 0;
          break;
        } else if (height-distance <= 0 && h[i] != 0) {
          flag = 0;
          break;
        }
      }
      if (flag == 1) {
        printf("%ld %ld %ld\n", cx, cy, height);
        return 0;
      }
    }
  }

  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld %ld %ld"
.LC2:
	.string	"%ld %ld 1\n"
.LC3:
	.string	"%ld %ld %ld\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	$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	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -112(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	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, -104(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -96(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.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, -88(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -160(%rbp)
	jmp	.L11
.L12:
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-104(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -160(%rbp)
.L11:
	movq	-168(%rbp), %rax
	cmpq	%rax, -160(%rbp)
	jl	.L12
	movq	$0, -144(%rbp)
	jmp	.L13
.L28:
	movq	$0, -136(%rbp)
	jmp	.L14
.L27:
	movl	$0, -172(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L15
.L18:
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L16
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-104(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -152(%rbp)
	movl	$1, -172(%rbp)
	jmp	.L17
.L16:
	addq	$1, -128(%rbp)
.L15:
	movq	-168(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
.L17:
	cmpl	$0, -172(%rbp)
	jne	.L19
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L19:
	movl	$1, -172(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L21
.L25:
	movq	-104(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L22
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	je	.L22
	movl	$0, -172(%rbp)
	jmp	.L23
.L22:
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jg	.L24
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L24
	movl	$0, -172(%rbp)
	jmp	.L23
.L24:
	addq	$1, -120(%rbp)
.L21:
	movq	-168(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L25
.L23:
	cmpl	$1, -172(%rbp)
	jne	.L26
	movq	-152(%rbp), %rcx
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L26:
	addq	$1, -136(%rbp)
.L14:
	cmpq	$100, -136(%rbp)
	jle	.L27
	addq	$1, -144(%rbp)
.L13:
	cmpq	$100, -144(%rbp)
	jle	.L28
	movl	$0, %eax
.L20:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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	"%ld"
.LC1:
	.string	"%ld %ld %ld"
.LC2:
	.string	"%ld %ld 1\n"
.LC3:
	.string	"%ld %ld %ld\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	$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	-168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -112(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	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, -104(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -96(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rax, %rdx
	movq	%rdx, -240(%rbp)
	movq	$0, -232(%rbp)
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.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, -88(%rbp)
	movq	-168(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	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
.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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -160(%rbp)
	jmp	.L11
.L12:
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rax, %rdx
	movq	-160(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-104(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -160(%rbp)
.L11:
	movq	-168(%rbp), %rax
	cmpq	%rax, -160(%rbp)
	jl	.L12
	movq	$0, -144(%rbp)
	jmp	.L13
.L28:
	movq	$0, -136(%rbp)
	jmp	.L14
.L27:
	movl	$0, -172(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L15
.L18:
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L16
	movq	-72(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-104(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-128(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -152(%rbp)
	movl	$1, -172(%rbp)
	jmp	.L17
.L16:
	addq	$1, -128(%rbp)
.L15:
	movq	-168(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
.L17:
	cmpl	$0, -172(%rbp)
	jne	.L19
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L19:
	movl	$1, -172(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L21
.L25:
	movq	-104(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-144(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	movq	%rax, %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-136(%rbp), %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jle	.L22
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	cmpq	%rax, %rdx
	je	.L22
	movl	$0, -172(%rbp)
	jmp	.L23
.L22:
	movq	-152(%rbp), %rax
	subq	-64(%rbp), %rax
	testq	%rax, %rax
	jg	.L24
	movq	-72(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	je	.L24
	movl	$0, -172(%rbp)
	jmp	.L23
.L24:
	addq	$1, -120(%rbp)
.L21:
	movq	-168(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L25
.L23:
	cmpl	$1, -172(%rbp)
	jne	.L26
	movq	-152(%rbp), %rcx
	movq	-136(%rbp), %rdx
	movq	-144(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L20
.L26:
	addq	$1, -136(%rbp)
.L14:
	cmpq	$100, -136(%rbp)
	jle	.L27
	addq	$1, -144(%rbp)
.L13:
	cmpq	$100, -144(%rbp)
	jle	.L28
	movl	$0, %eax
.L20:
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	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:
