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>

#define max(a,b) ((a)>(b)?(a):(b))

int main(){
		int n,i,j,k,h;
		long xyz[100][3],ans[3],highest=0;
		scanf("%d",&n);
		for(i=0;i<n;i++){
				scanf("%ld%ld%ld",&xyz[i][0],&xyz[i][1],&xyz[i][2]);
				highest=max(highest,xyz[i][2]);
		}
		for(k=highest;;k++){
				for(i=0;i<=100;i++){
						for(j=0;j<=100;j++){
						int f=0;
								for(h=0;h<n;h++){
										if(xyz[h][2]!=max(k-abs(xyz[h][0]-i)-abs(xyz[h][1]-j),0)){
												f=1;
												break;
										}
								}
								if(f==0){
										printf("%ld %ld %ld\n",i,j,k);
										return 0;
								}
						}
				}
		}
		return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld%ld"
.LC2:
	.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
	subq	$2448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2424(%rbp)
	leaq	-2448(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2444(%rbp)
	jmp	.L2
.L3:
	leaq	-2416(%rbp), %rcx
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-2416(%rbp), %rsi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$8, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-2416(%rbp), %rdi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rax
	movq	-2424(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -2424(%rbp)
	addl	$1, -2444(%rbp)
.L2:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2444(%rbp)
	jl	.L3
	movq	-2424(%rbp), %rax
	movl	%eax, -2436(%rbp)
.L14:
	movl	$0, -2444(%rbp)
	jmp	.L4
.L13:
	movl	$0, -2440(%rbp)
	jmp	.L5
.L12:
	movl	$0, -2428(%rbp)
	movl	$0, -2432(%rbp)
	jmp	.L6
.L9:
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rcx
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2416, %rax
	movq	(%rax), %rax
	movl	-2444(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-2436(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2408, %rax
	movq	(%rax), %rax
	movl	-2440(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	cltq
	cmpq	%rax, %rcx
	je	.L7
	movl	$1, -2428(%rbp)
	jmp	.L8
.L7:
	addl	$1, -2432(%rbp)
.L6:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2432(%rbp)
	jl	.L9
.L8:
	cmpl	$0, -2428(%rbp)
	jne	.L10
	movl	-2436(%rbp), %ecx
	movl	-2440(%rbp), %edx
	movl	-2444(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	jmp	.L16
.L10:
	addl	$1, -2440(%rbp)
.L5:
	cmpl	$100, -2440(%rbp)
	jle	.L12
	addl	$1, -2444(%rbp)
.L4:
	cmpl	$100, -2444(%rbp)
	jle	.L13
	addl	$1, -2436(%rbp)
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
.L15:
	leave
	.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"
.LC1:
	.string	"%ld%ld%ld"
.LC2:
	.string	"%ld %ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2440, %rsp
	.cfi_def_cfa_offset 2480
	movq	%fs:40, %rax
	movq	%rax, 2424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L14
	leaq	32(%rsp), %rbx
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-8(%rbx), %rdx
	leaq	-16(%rbx), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movl	12(%rsp), %r11d
	cmpq	%rax, %rbp
	cmovl	%rax, %rbp
	addl	$1, %r12d
	addq	$24, %rbx
	cmpl	%r12d, %r11d
	jg	.L3
.L2:
	leal	-1(%r11), %eax
	movl	%ebp, %r8d
	leaq	16(%rsp), %rbx
	leaq	(%rax,%rax,2), %rax
	leaq	40(%rsp,%rax,8), %rdi
.L11:
	xorl	%r10d, %r10d
.L4:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%r11d, %r11d
	jle	.L7
	movq	%rbx, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$24, %rcx
	cmpq	%rcx, %rdi
	je	.L7
.L6:
	movl	(%rcx), %eax
	subl	%r10d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%r8d, %eax
	subl	%edx, %eax
	movl	8(%rcx), %edx
	subl	%r9d, %edx
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	subl	%edx, %eax
	movl	$0, %edx
	cmovs	%edx, %eax
	cltq
	cmpq	%rax, 16(%rcx)
	je	.L22
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L10
	addl	$1, %r10d
	cmpl	$101, %r10d
	jne	.L4
	addl	$1, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	2424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$2440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	xorl	%ebp, %ebp
	jmp	.L2
.L23:
	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"
.LC1:
	.string	"%ld%ld%ld"
.LC2:
	.string	"%ld %ld %ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$2440, %rsp
	.cfi_def_cfa_offset 2480
	movq	%fs:40, %rax
	movq	%rax, 2424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L14
	leaq	32(%rsp), %rbx
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	-8(%rbx), %rdx
	leaq	-16(%rbx), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movq	(%rbx), %rax
	movl	12(%rsp), %r11d
	cmpq	%rax, %rbp
	cmovl	%rax, %rbp
	addl	$1, %r12d
	addq	$24, %rbx
	cmpl	%r12d, %r11d
	jg	.L3
.L2:
	leal	-1(%r11), %eax
	movl	%ebp, %r8d
	leaq	16(%rsp), %rbx
	leaq	(%rax,%rax,2), %rax
	leaq	40(%rsp,%rax,8), %rdi
.L11:
	xorl	%r10d, %r10d
.L4:
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L10:
	testl	%r11d, %r11d
	jle	.L7
	movq	%rbx, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$24, %rcx
	cmpq	%rcx, %rdi
	je	.L7
.L6:
	movl	(%rcx), %eax
	subl	%r10d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%r8d, %eax
	subl	%edx, %eax
	movl	8(%rcx), %edx
	subl	%r9d, %edx
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	subl	%edx, %eax
	movl	$0, %edx
	cmovs	%edx, %eax
	cltq
	cmpq	%rax, 16(%rcx)
	je	.L22
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L10
	addl	$1, %r10d
	cmpl	$101, %r10d
	jne	.L4
	addl	$1, %r8d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	2424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$2440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	xorl	%ebp, %ebp
	jmp	.L2
.L23:
	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>

#define max(a,b) ((a)>(b)?(a):(b))

int main(){
		int n,i,j,k,h;
		long xyz[100][3],ans[3],highest=0;
		scanf("%d",&n);
		for(i=0;i<n;i++){
				scanf("%ld%ld%ld",&xyz[i][0],&xyz[i][1],&xyz[i][2]);
				highest=max(highest,xyz[i][2]);
		}
		for(k=highest;;k++){
				for(i=0;i<=100;i++){
						for(j=0;j<=100;j++){
						int f=0;
								for(h=0;h<n;h++){
										if(xyz[h][2]!=max(k-abs(xyz[h][0]-i)-abs(xyz[h][1]-j),0)){
												f=1;
												break;
										}
								}
								if(f==0){
										printf("%ld %ld %ld\n",i,j,k);
										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>

#define max(a,b) ((a)>(b)?(a):(b))

int main(){
		int n,i,j,k,h;
		long xyz[100][3],ans[3],highest=0;
		scanf("%d",&n);
		for(i=0;i<n;i++){
				scanf("%ld%ld%ld",&xyz[i][0],&xyz[i][1],&xyz[i][2]);
				highest=max(highest,xyz[i][2]);
		}
		for(k=highest;;k++){
				for(i=0;i<=100;i++){
						for(j=0;j<=100;j++){
						int f=0;
								for(h=0;h<n;h++){
										if(xyz[h][2]!=max(k-abs(xyz[h][0]-i)-abs(xyz[h][1]-j),0)){
												f=1;
												break;
										}
								}
								if(f==0){
										printf("%ld %ld %ld\n",i,j,k);
										return 0;
								}
						}
				}
		}
		return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%ld%ld%ld"
.LC2:
	.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
	subq	$2448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2424(%rbp)
	leaq	-2448(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2444(%rbp)
	jmp	.L2
.L3:
	leaq	-2416(%rbp), %rcx
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-2416(%rbp), %rsi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$8, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-2416(%rbp), %rdi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rax
	movq	-2424(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -2424(%rbp)
	addl	$1, -2444(%rbp)
.L2:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2444(%rbp)
	jl	.L3
	movq	-2424(%rbp), %rax
	movl	%eax, -2436(%rbp)
.L14:
	movl	$0, -2444(%rbp)
	jmp	.L4
.L13:
	movl	$0, -2440(%rbp)
	jmp	.L5
.L12:
	movl	$0, -2428(%rbp)
	movl	$0, -2432(%rbp)
	jmp	.L6
.L9:
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rcx
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2416, %rax
	movq	(%rax), %rax
	movl	-2444(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-2436(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2408, %rax
	movq	(%rax), %rax
	movl	-2440(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	cltq
	cmpq	%rax, %rcx
	je	.L7
	movl	$1, -2428(%rbp)
	jmp	.L8
.L7:
	addl	$1, -2432(%rbp)
.L6:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2432(%rbp)
	jl	.L9
.L8:
	cmpl	$0, -2428(%rbp)
	jne	.L10
	movl	-2436(%rbp), %ecx
	movl	-2440(%rbp), %edx
	movl	-2444(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	jmp	.L16
.L10:
	addl	$1, -2440(%rbp)
.L5:
	cmpl	$100, -2440(%rbp)
	jle	.L12
	addl	$1, -2444(%rbp)
.L4:
	cmpl	$100, -2444(%rbp)
	jle	.L13
	addl	$1, -2436(%rbp)
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
.L15:
	leave
	.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"
.LC1:
	.string	"%ld%ld%ld"
.LC2:
	.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
	subq	$2448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2424(%rbp)
	leaq	-2448(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2444(%rbp)
	jmp	.L2
.L3:
	leaq	-2416(%rbp), %rcx
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$16, %rax
	addq	%rax, %rcx
	leaq	-2416(%rbp), %rsi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	$8, %rax
	leaq	(%rsi,%rax), %rdx
	leaq	-2416(%rbp), %rdi
	movl	-2444(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$3, %rax
	addq	%rdi, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-2444(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rax
	movq	-2424(%rbp), %rdx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	movq	%rax, -2424(%rbp)
	addl	$1, -2444(%rbp)
.L2:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2444(%rbp)
	jl	.L3
	movq	-2424(%rbp), %rax
	movl	%eax, -2436(%rbp)
.L14:
	movl	$0, -2444(%rbp)
	jmp	.L4
.L13:
	movl	$0, -2440(%rbp)
	jmp	.L5
.L12:
	movl	$0, -2428(%rbp)
	movl	$0, -2432(%rbp)
	jmp	.L6
.L9:
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2400, %rax
	movq	(%rax), %rcx
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2416, %rax
	movq	(%rax), %rax
	movl	-2444(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	-2436(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %esi
	movl	-2432(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rbp, %rax
	subq	$2408, %rax
	movq	(%rax), %rax
	movl	-2440(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movl	%esi, %eax
	subl	%edx, %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	cltq
	cmpq	%rax, %rcx
	je	.L7
	movl	$1, -2428(%rbp)
	jmp	.L8
.L7:
	addl	$1, -2432(%rbp)
.L6:
	movl	-2448(%rbp), %eax
	cmpl	%eax, -2432(%rbp)
	jl	.L9
.L8:
	cmpl	$0, -2428(%rbp)
	jne	.L10
	movl	-2436(%rbp), %ecx
	movl	-2440(%rbp), %edx
	movl	-2444(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	jmp	.L16
.L10:
	addl	$1, -2440(%rbp)
.L5:
	cmpl	$100, -2440(%rbp)
	jle	.L12
	addl	$1, -2444(%rbp)
.L4:
	cmpl	$100, -2444(%rbp)
	jle	.L13
	addl	$1, -2436(%rbp)
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
.L15:
	leave
	.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:
