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 max(int a,int b){
  if(a>b){
    return a;
  }
  return b;
}
 
int main(void){
  int n,i,cy,cx,H,flag=0;
  scanf("%d",&n);
  int x[n],y[n],h[n];
  for(i=0;i<n;i++)scanf("%d %d %d",&x[i],&y[i],&h[i]);
  for(cx=0;cx<=100;cx++){
    for(cy=0;cy<=100;cy++){
      for(i=0;i<n;i++) if(h[i]) break;
      H = h[i] + abs(x[i]-cx) + abs(y[i]-cy);
      for(i=0;i<n;i++){
        if(h[i]!=max(H-abs(x[i]-cx)-abs(y[i]-cy),0))break;
      }
      if(i==n)flag=1;
      if(flag)break;
    }
    if(flag)break;
  }
  printf("%d %d %d\n",cx,cy,H);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	movl	$0, -92(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%edx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -80(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -176(%rbp)
	movq	$0, -168(%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
.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, -64(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -48(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L14
.L15:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-80(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L14:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L15
	movl	$0, -100(%rbp)
	jmp	.L16
.L32:
	movl	$0, -104(%rbp)
	jmp	.L17
.L29:
	movl	$0, -108(%rbp)
	jmp	.L18
.L21:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L35
	addl	$1, -108(%rbp)
.L18:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L21
	jmp	.L20
.L35:
	nop
.L20:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L22
.L25:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ebx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-96(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	$0, %esi
	movl	%eax, %edi
	call	max
	cmpl	%eax, %ebx
	jne	.L36
	addl	$1, -108(%rbp)
.L22:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L25
	jmp	.L24
.L36:
	nop
.L24:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L26
	movl	$1, -92(%rbp)
.L26:
	cmpl	$0, -92(%rbp)
	jne	.L37
	addl	$1, -104(%rbp)
.L17:
	cmpl	$100, -104(%rbp)
	jle	.L29
	jmp	.L28
.L37:
	nop
.L28:
	cmpl	$0, -92(%rbp)
	jne	.L38
	addl	$1, -100(%rbp)
.L16:
	cmpl	$100, -100(%rbp)
	jle	.L32
	jmp	.L31
.L38:
	nop
.L31:
	movl	-96(%rbp), %ecx
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	max
	.type	max, @function
max:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L49:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L49
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L50
.L6:
	leaq	3(%rsp), %r12
	movq	%rax, %rsi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%r12, %rbx
	andq	$-4096, %rsi
	andq	$-4, %r12
	andq	$-16, %rdx
	shrq	$2, %rbx
	subq	%rsi, %rcx
	movq	%rbx, -72(%rbp)
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L50:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L9:
	leaq	3(%rsp), %r13
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%r13, %rbx
	andq	$-16, %rdx
	andq	$-4, %r13
	subq	%rax, %rcx
	shrq	$2, %rbx
	movq	%rbx, -80(%rbp)
.L10:
	cmpq	%rcx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L11:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	leaq	3(%rsp), %rbx
	movq	%rbx, %rax
	andq	$-4, %rbx
	shrq	$2, %rax
	movq	%rax, -88(%rbp)
	testl	%edi, %edi
	jle	.L13
	movq	%rbx, -112(%rbp)
	movq	%r12, %rsi
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r14
	movq	%r12, -96(%rbp)
	movq	%r13, %r12
	movq	%r13, -104(%rbp)
	movq	%rsi, %r13
.L14:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	addq	$4, %r13
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %rbx
	cmpl	%r15d, %edi
	jg	.L14
	movq	-96(%rbp), %r12
	movq	-104(%rbp), %r13
	movq	-112(%rbp), %rbx
.L13:
	movq	-80(%rbp), %rax
	xorl	%r10d, %r10d
	leal	1(%rdi), %r11d
	movl	0(,%rax,4), %eax
	movl	%eax, -80(%rbp)
	movq	-72(%rbp), %rax
	movl	0(,%rax,4), %eax
	movl	%eax, -72(%rbp)
	movq	-88(%rbp), %rax
	movl	0(,%rax,4), %r15d
.L24:
	movl	-72(%rbp), %eax
	subl	%r10d, %eax
	movl	%eax, %r14d
	negl	%r14d
	cmovs	%eax, %r14d
	xorl	%r9d, %r9d
	addl	%r15d, %r14d
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L16
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%edi, %eax
	je	.L53
.L16:
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	je	.L42
	cltq
.L15:
	movl	(%r12,%rax,4), %edx
	movl	0(%r13,%rax,4), %eax
	subl	%r10d, %edx
	movl	%edx, %r8d
	negl	%r8d
	cmovs	%edx, %r8d
	subl	%r9d, %eax
	movl	%eax, %edx
	addl	%ecx, %r8d
	negl	%edx
	cmovns	%edx, %eax
	movl	$1, %edx
	addl	%eax, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%edx, %eax
	addq	$1, %rdx
	cmpq	%rdx, %r11
	je	.L25
.L18:
	movl	-4(%r12,%rdx,4), %eax
	subl	%r10d, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	movl	%r8d, %eax
	subl	%ecx, %eax
	movl	-4(%r13,%rdx,4), %ecx
	subl	%r9d, %ecx
	movl	%ecx, %esi
	negl	%esi
	cmovns	%esi, %ecx
	subl	%ecx, %eax
	movl	$0, %ecx
	cmovs	%ecx, %eax
	cmpl	%eax, -4(%rbx,%rdx,4)
	je	.L54
.L17:
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L23
	addl	$1, %r10d
	cmpl	$101, %r10d
	jne	.L24
.L19:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L55
	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
.L52:
	.cfi_restore_state
	movl	-80(%rbp), %eax
	subl	%r9d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	xorl	%eax, %eax
	addl	%r14d, %r8d
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%eax, %edi
	jne	.L17
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%edi, %rax
	movl	(%rbx,%rax,4), %ecx
	jmp	.L15
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB39:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovge	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L5
.L49:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L49
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L50
.L6:
	leaq	3(%rsp), %r12
	movq	%rax, %rsi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%r12, %rbx
	andq	$-4096, %rsi
	andq	$-4, %r12
	andq	$-16, %rdx
	shrq	$2, %rbx
	subq	%rsi, %rcx
	movq	%rbx, -72(%rbp)
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L50:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L9:
	leaq	3(%rsp), %r13
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%r13, %rbx
	andq	$-16, %rdx
	andq	$-4, %r13
	subq	%rax, %rcx
	shrq	$2, %rbx
	movq	%rbx, -80(%rbp)
.L10:
	cmpq	%rcx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L11:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	leaq	3(%rsp), %rbx
	movq	%rbx, %rax
	andq	$-4, %rbx
	shrq	$2, %rax
	movq	%rax, -88(%rbp)
	testl	%edi, %edi
	jle	.L13
	movq	%rbx, -112(%rbp)
	movq	%r12, %rsi
	xorl	%r15d, %r15d
	leaq	.LC1(%rip), %r14
	movq	%r12, -96(%rbp)
	movq	%r13, %r12
	movq	%r13, -104(%rbp)
	movq	%rsi, %r13
.L14:
	movq	%rbx, %rcx
	movq	%r12, %rdx
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	addq	$4, %r13
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %rbx
	cmpl	%r15d, %edi
	jg	.L14
	movq	-96(%rbp), %r12
	movq	-104(%rbp), %r13
	movq	-112(%rbp), %rbx
.L13:
	movq	-80(%rbp), %rax
	xorl	%r10d, %r10d
	leal	1(%rdi), %r11d
	movl	0(,%rax,4), %eax
	movl	%eax, -80(%rbp)
	movq	-72(%rbp), %rax
	movl	0(,%rax,4), %eax
	movl	%eax, -72(%rbp)
	movq	-88(%rbp), %rax
	movl	0(,%rax,4), %r15d
.L24:
	movl	-72(%rbp), %eax
	subl	%r10d, %eax
	movl	%eax, %r14d
	negl	%r14d
	cmovs	%eax, %r14d
	xorl	%r9d, %r9d
	addl	%r15d, %r14d
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%rbx, %rdx
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L16
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L42:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	%edi, %eax
	je	.L53
.L16:
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	je	.L42
	cltq
.L15:
	movl	(%r12,%rax,4), %edx
	movl	0(%r13,%rax,4), %eax
	subl	%r10d, %edx
	movl	%edx, %r8d
	negl	%r8d
	cmovs	%edx, %r8d
	subl	%r9d, %eax
	movl	%eax, %edx
	addl	%ecx, %r8d
	negl	%edx
	cmovns	%edx, %eax
	movl	$1, %edx
	addl	%eax, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L54:
	movl	%edx, %eax
	addq	$1, %rdx
	cmpq	%rdx, %r11
	je	.L25
.L18:
	movl	-4(%r12,%rdx,4), %eax
	subl	%r10d, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovs	%eax, %ecx
	movl	%r8d, %eax
	subl	%ecx, %eax
	movl	-4(%r13,%rdx,4), %ecx
	subl	%r9d, %ecx
	movl	%ecx, %esi
	negl	%esi
	cmovns	%esi, %ecx
	subl	%ecx, %eax
	movl	$0, %ecx
	cmovs	%ecx, %eax
	cmpl	%eax, -4(%rbx,%rdx,4)
	je	.L54
.L17:
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L23
	addl	$1, %r10d
	cmpl	$101, %r10d
	jne	.L24
.L19:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L55
	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
.L52:
	.cfi_restore_state
	movl	-80(%rbp), %eax
	subl	%r9d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	xorl	%eax, %eax
	addl	%r14d, %r8d
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%eax, %edi
	jne	.L17
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%edi, %rax
	movl	(%rbx,%rax,4), %ecx
	jmp	.L15
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<stdlib.h>
int max(int a,int b){
  if(a>b){
    return a;
  }
  return b;
}
 
int main(void){
  int n,i,cy,cx,H,flag=0;
  scanf("%d",&n);
  int x[n],y[n],h[n];
  for(i=0;i<n;i++)scanf("%d %d %d",&x[i],&y[i],&h[i]);
  for(cx=0;cx<=100;cx++){
    for(cy=0;cy<=100;cy++){
      for(i=0;i<n;i++) if(h[i]) break;
      H = h[i] + abs(x[i]-cx) + abs(y[i]-cy);
      for(i=0;i<n;i++){
        if(h[i]!=max(H-abs(x[i]-cx)-abs(y[i]-cy),0))break;
      }
      if(i==n)flag=1;
      if(flag)break;
    }
    if(flag)break;
  }
  printf("%d %d %d\n",cx,cy,H);
  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 max(int a,int b){
  if(a>b){
    return a;
  }
  return b;
}
 
int main(void){
  int n,i,cy,cx,H,flag=0;
  scanf("%d",&n);
  int x[n],y[n],h[n];
  for(i=0;i<n;i++)scanf("%d %d %d",&x[i],&y[i],&h[i]);
  for(cx=0;cx<=100;cx++){
    for(cy=0;cy<=100;cy++){
      for(i=0;i<n;i++) if(h[i]) break;
      H = h[i] + abs(x[i]-cx) + abs(y[i]-cy);
      for(i=0;i<n;i++){
        if(h[i]!=max(H-abs(x[i]-cx)-abs(y[i]-cy),0))break;
      }
      if(i==n)flag=1;
      if(flag)break;
    }
    if(flag)break;
  }
  printf("%d %d %d\n",cx,cy,H);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	movl	$0, -92(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%edx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -80(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -176(%rbp)
	movq	$0, -168(%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
.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, -64(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -48(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L14
.L15:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-80(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L14:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L15
	movl	$0, -100(%rbp)
	jmp	.L16
.L32:
	movl	$0, -104(%rbp)
	jmp	.L17
.L29:
	movl	$0, -108(%rbp)
	jmp	.L18
.L21:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L35
	addl	$1, -108(%rbp)
.L18:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L21
	jmp	.L20
.L35:
	nop
.L20:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L22
.L25:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ebx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-96(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	$0, %esi
	movl	%eax, %edi
	call	max
	cmpl	%eax, %ebx
	jne	.L36
	addl	$1, -108(%rbp)
.L22:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L25
	jmp	.L24
.L36:
	nop
.L24:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L26
	movl	$1, -92(%rbp)
.L26:
	cmpl	$0, -92(%rbp)
	jne	.L37
	addl	$1, -104(%rbp)
.L17:
	cmpl	$100, -104(%rbp)
	jle	.L29
	jmp	.L28
.L37:
	nop
.L28:
	cmpl	$0, -92(%rbp)
	jne	.L38
	addl	$1, -100(%rbp)
.L16:
	cmpl	$100, -100(%rbp)
	jle	.L32
	jmp	.L31
.L38:
	nop
.L31:
	movl	-96(%rbp), %ecx
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	max
	.type	max, @function
max:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d"
.LC2:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	%r12
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %r12
	movl	$0, -92(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-112(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%edx, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -80(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -176(%rbp)
	movq	$0, -168(%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
.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, -64(%rbp)
	movl	-112(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -56(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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, -48(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L14
.L15:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-80(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L14:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L15
	movl	$0, -100(%rbp)
	jmp	.L16
.L32:
	movl	$0, -104(%rbp)
	jmp	.L17
.L29:
	movl	$0, -108(%rbp)
	jmp	.L18
.L21:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L35
	addl	$1, -108(%rbp)
.L18:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L21
	jmp	.L20
.L35:
	nop
.L20:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -96(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L22
.L25:
	movq	-48(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ebx
	movq	-80(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-100(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-96(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movq	-64(%rbp), %rax
	movl	-108(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	subl	-104(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	$0, %esi
	movl	%eax, %edi
	call	max
	cmpl	%eax, %ebx
	jne	.L36
	addl	$1, -108(%rbp)
.L22:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L25
	jmp	.L24
.L36:
	nop
.L24:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L26
	movl	$1, -92(%rbp)
.L26:
	cmpl	$0, -92(%rbp)
	jne	.L37
	addl	$1, -104(%rbp)
.L17:
	cmpl	$100, -104(%rbp)
	jle	.L29
	jmp	.L28
.L37:
	nop
.L28:
	cmpl	$0, -92(%rbp)
	jne	.L38
	addl	$1, -100(%rbp)
.L16:
	cmpl	$100, -100(%rbp)
	jle	.L32
	jmp	.L31
.L38:
	nop
.L31:
	movl	-96(%rbp), %ecx
	movl	-104(%rbp), %edx
	movl	-100(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%r12, %rsp
	movq	-40(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
