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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

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

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

struct cond {
    int x;
    int y;
    int height;
};
#define NUM_MAX 100
#define POS_MAX 100

int func(int x, int y, int top, int cx, int cy) {
    int dist1 = abs(cx-x)+abs(cy-y);
    return max(0, top-dist1);
}

int main(void) {
    int num = get_int();
    struct cond conds[NUM_MAX];

    int i;
    int pivot = 0;
    for(i = 0; i < num; i++) {
        get_int3(&conds[i].x, &conds[i].y, &conds[i].height);
        if(conds[i].height) pivot = i;
    }

    int cx, cy;
    int top = 0;
    for(cx = 0; cx <= POS_MAX; cx++) {
        for(cy = 0; cy <= POS_MAX; cy++) {
            int flag = 1;
            // calc height for pivot
            top = conds[pivot].height + abs(conds[pivot].x-cx) + abs(conds[pivot].y-cy);
            for(i = 0; i < num; i++) {
                if(func(conds[i].x, conds[i].y, top, cx, cy) != conds[i].height) {
                    flag = 0; break;
                }
            }
            if(flag) {
                goto finish;
            }
        }
    }
finish:
    printf("%d %d %d\n", cx, cy, top);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.globl	func
	.type	func, @function
func:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	func, .-func
	.section	.rodata
.LC3:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	get_int
	movl	%eax, -1220(%rbp)
	movl	$0, -1240(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L11
.L13:
	leaq	-1216(%rbp), %rcx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rdx
	leaq	-1216(%rbp), %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rcx
	leaq	-1216(%rbp), %rdi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L12
	movl	-1244(%rbp), %eax
	movl	%eax, -1240(%rbp)
.L12:
	addl	$1, -1244(%rbp)
.L11:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L13
	movl	$0, -1228(%rbp)
	movl	$0, -1236(%rbp)
	jmp	.L14
.L23:
	movl	$0, -1232(%rbp)
	jmp	.L15
.L22:
	movl	$1, -1224(%rbp)
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	subl	-1236(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %eax
	subl	-1232(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -1228(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L16
.L19:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %esi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	movl	-1232(%rbp), %edi
	movl	-1236(%rbp), %ecx
	movl	-1228(%rbp), %edx
	movl	%edi, %r8d
	movl	%eax, %edi
	call	func
	movl	%eax, %edx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	je	.L17
	movl	$0, -1224(%rbp)
	jmp	.L18
.L17:
	addl	$1, -1244(%rbp)
.L16:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L19
.L18:
	cmpl	$0, -1224(%rbp)
	jne	.L26
	addl	$1, -1232(%rbp)
.L15:
	cmpl	$100, -1232(%rbp)
	jle	.L22
	addl	$1, -1236(%rbp)
.L14:
	cmpl	$100, -1236(%rbp)
	jle	.L23
	jmp	.L21
.L26:
	nop
.L21:
	movl	-1228(%rbp), %ecx
	movl	-1232(%rbp), %edx
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L5
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdx, %rcx
	xorl	%eax, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	get_int3, .-get_int3
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB54:
	.cfi_startproc
	endbr64
	subl	%edi, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovns	%eax, %ecx
	subl	%esi, %r8d
	movl	%r8d, %eax
	negl	%eax
	cmovs	%r8d, %eax
	addl	%eax, %ecx
	movl	%edx, %eax
	movl	$0, %edx
	subl	%ecx, %eax
	cmovs	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	func, .-func
	.section	.rodata.str1.1
.LC3:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1232, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L22
	leaq	24(%rsp), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	-4(%rbp), %rdx
	leaq	-8(%rbp), %rsi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	cmovne	%r12d, %r13d
	addl	$1, %r12d
	addq	$12, %rbp
	cmpl	%ebx, %r12d
	jne	.L14
.L12:
	movslq	%r13d, %r13
	leaq	16(%rsp), %rbp
	xorl	%r10d, %r10d
	leaq	0(%r13,%r13,2), %rax
	salq	$2, %rax
	movl	24(%rsp,%rax), %r13d
	movl	16(%rsp,%rax), %r12d
	movl	20(%rsp,%rax), %r11d
	leal	-1(%rbx), %eax
	leaq	(%rax,%rax,2), %rax
	leaq	28(%rsp,%rax,4), %rsi
.L15:
	movl	%r12d, %eax
	subl	%r10d, %eax
	movl	%eax, %edi
	negl	%edi
	cmovs	%eax, %edi
	xorl	%r9d, %r9d
	addl	%r13d, %edi
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r11d, %eax
	subl	%r9d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	addl	%edi, %r8d
	testl	%ebx, %ebx
	jle	.L16
	movq	%rbp, %rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	je	.L16
.L18:
	movl	%r10d, %ecx
	subl	(%rdx), %ecx
	movl	%r9d, %r14d
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	subl	4(%rdx), %r14d
	movl	%r14d, %ecx
	negl	%ecx
	cmovs	%r14d, %ecx
	addl	%ecx, %eax
	movl	%r8d, %ecx
	subl	%eax, %ecx
	movl	$0, %eax
	cmovs	%eax, %ecx
	cmpl	%ecx, 8(%rdx)
	je	.L30
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L19
	leal	1(%r10), %r9d
	cmpl	$100, %r10d
	je	.L23
	movl	%r9d, %r10d
	jmp	.L15
.L23:
	movl	$101, %r10d
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$1232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L12
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.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"
	.text
	.p2align 4
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L5
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	get_int, .-get_int
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB52:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC2:
	.string	"%d %d %d"
	.text
	.p2align 4
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB53:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rdx, %rcx
	xorl	%eax, %eax
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	get_int3, .-get_int3
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB54:
	.cfi_startproc
	endbr64
	subl	%edi, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovns	%eax, %ecx
	subl	%esi, %r8d
	movl	%r8d, %eax
	negl	%eax
	cmovs	%r8d, %eax
	addl	%eax, %ecx
	movl	%edx, %eax
	movl	$0, %edx
	subl	%ecx, %eax
	cmovs	%edx, %eax
	ret
	.cfi_endproc
.LFE54:
	.size	func, .-func
	.section	.rodata.str1.1
.LC3:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1232, %rsp
	.cfi_def_cfa_offset 1280
	movq	%fs:40, %rax
	movq	%rax, 1224(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebx
	testl	%ebx, %ebx
	jle	.L22
	leaq	24(%rsp), %rbp
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	-4(%rbp), %rdx
	leaq	-8(%rbp), %rsi
	movq	%rbp, %rcx
	xorl	%eax, %eax
	movq	%r14, %rdi
	call	__isoc99_scanf@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	cmovne	%r12d, %r13d
	addl	$1, %r12d
	addq	$12, %rbp
	cmpl	%ebx, %r12d
	jne	.L14
.L12:
	movslq	%r13d, %r13
	leaq	16(%rsp), %rbp
	xorl	%r10d, %r10d
	leaq	0(%r13,%r13,2), %rax
	salq	$2, %rax
	movl	24(%rsp,%rax), %r13d
	movl	16(%rsp,%rax), %r12d
	movl	20(%rsp,%rax), %r11d
	leal	-1(%rbx), %eax
	leaq	(%rax,%rax,2), %rax
	leaq	28(%rsp,%rax,4), %rsi
.L15:
	movl	%r12d, %eax
	subl	%r10d, %eax
	movl	%eax, %edi
	negl	%edi
	cmovs	%eax, %edi
	xorl	%r9d, %r9d
	addl	%r13d, %edi
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r11d, %eax
	subl	%r9d, %eax
	movl	%eax, %r8d
	negl	%r8d
	cmovs	%eax, %r8d
	addl	%edi, %r8d
	testl	%ebx, %ebx
	jle	.L16
	movq	%rbp, %rdx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L30:
	addq	$12, %rdx
	cmpq	%rdx, %rsi
	je	.L16
.L18:
	movl	%r10d, %ecx
	subl	(%rdx), %ecx
	movl	%r9d, %r14d
	movl	%ecx, %eax
	negl	%eax
	cmovs	%ecx, %eax
	subl	4(%rdx), %r14d
	movl	%r14d, %ecx
	negl	%ecx
	cmovs	%r14d, %ecx
	addl	%ecx, %eax
	movl	%r8d, %ecx
	subl	%eax, %ecx
	movl	$0, %eax
	cmovs	%eax, %ecx
	cmpl	%ecx, 8(%rdx)
	je	.L30
	addl	$1, %r9d
	cmpl	$101, %r9d
	jne	.L19
	leal	1(%r10), %r9d
	cmpl	$100, %r10d
	je	.L23
	movl	%r9d, %r10d
	jmp	.L15
.L23:
	movl	$101, %r10d
	.p2align 4,,10
	.p2align 3
.L16:
	xorl	%eax, %eax
	movl	%r9d, %ecx
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	1224(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$1232, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L12
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

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

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

struct cond {
    int x;
    int y;
    int height;
};
#define NUM_MAX 100
#define POS_MAX 100

int func(int x, int y, int top, int cx, int cy) {
    int dist1 = abs(cx-x)+abs(cy-y);
    return max(0, top-dist1);
}

int main(void) {
    int num = get_int();
    struct cond conds[NUM_MAX];

    int i;
    int pivot = 0;
    for(i = 0; i < num; i++) {
        get_int3(&conds[i].x, &conds[i].y, &conds[i].height);
        if(conds[i].height) pivot = i;
    }

    int cx, cy;
    int top = 0;
    for(cx = 0; cx <= POS_MAX; cx++) {
        for(cy = 0; cy <= POS_MAX; cy++) {
            int flag = 1;
            // calc height for pivot
            top = conds[pivot].height + abs(conds[pivot].x-cx) + abs(conds[pivot].y-cy);
            for(i = 0; i < num; i++) {
                if(func(conds[i].x, conds[i].y, top, cx, cy) != conds[i].height) {
                    flag = 0; break;
                }
            }
            if(flag) {
                goto finish;
            }
        }
    }
finish:
    printf("%d %d %d\n", cx, cy, top);
    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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

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

int get_int(void) {
  int num;
  scanf("%d", &num);
  return num;
}

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

int get_int3(int *a1, int *a2, int *a3) {
  scanf("%d %d %d", a1, a2, a3);
  return 0;
}

struct cond {
    int x;
    int y;
    int height;
};
#define NUM_MAX 100
#define POS_MAX 100

int func(int x, int y, int top, int cx, int cy) {
    int dist1 = abs(cx-x)+abs(cy-y);
    return max(0, top-dist1);
}

int main(void) {
    int num = get_int();
    struct cond conds[NUM_MAX];

    int i;
    int pivot = 0;
    for(i = 0; i < num; i++) {
        get_int3(&conds[i].x, &conds[i].y, &conds[i].height);
        if(conds[i].height) pivot = i;
    }

    int cx, cy;
    int top = 0;
    for(cx = 0; cx <= POS_MAX; cx++) {
        for(cy = 0; cy <= POS_MAX; cy++) {
            int flag = 1;
            // calc height for pivot
            top = conds[pivot].height + abs(conds[pivot].x-cx) + abs(conds[pivot].y-cy);
            for(i = 0; i < num; i++) {
                if(func(conds[i].x, conds[i].y, top, cx, cy) != conds[i].height) {
                    flag = 0; break;
                }
            }
            if(flag) {
                goto finish;
            }
        }
    }
finish:
    printf("%d %d %d\n", cx, cy, top);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.globl	func
	.type	func, @function
func:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	func, .-func
	.section	.rodata
.LC3:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	get_int
	movl	%eax, -1220(%rbp)
	movl	$0, -1240(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L11
.L13:
	leaq	-1216(%rbp), %rcx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rdx
	leaq	-1216(%rbp), %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rcx
	leaq	-1216(%rbp), %rdi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L12
	movl	-1244(%rbp), %eax
	movl	%eax, -1240(%rbp)
.L12:
	addl	$1, -1244(%rbp)
.L11:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L13
	movl	$0, -1228(%rbp)
	movl	$0, -1236(%rbp)
	jmp	.L14
.L23:
	movl	$0, -1232(%rbp)
	jmp	.L15
.L22:
	movl	$1, -1224(%rbp)
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	subl	-1236(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %eax
	subl	-1232(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -1228(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L16
.L19:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %esi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	movl	-1232(%rbp), %edi
	movl	-1236(%rbp), %ecx
	movl	-1228(%rbp), %edx
	movl	%edi, %r8d
	movl	%eax, %edi
	call	func
	movl	%eax, %edx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	je	.L17
	movl	$0, -1224(%rbp)
	jmp	.L18
.L17:
	addl	$1, -1244(%rbp)
.L16:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L19
.L18:
	cmpl	$0, -1224(%rbp)
	jne	.L26
	addl	$1, -1232(%rbp)
.L15:
	cmpl	$100, -1232(%rbp)
	jle	.L22
	addl	$1, -1236(%rbp)
.L14:
	cmpl	$100, -1236(%rbp)
	jle	.L23
	jmp	.L21
.L26:
	nop
.L21:
	movl	-1228(%rbp), %ecx
	movl	-1232(%rbp), %edx
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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"
	.text
	.globl	get_int
	.type	get_int, @function
get_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_int, .-get_int
	.section	.rodata
.LC1:
	.string	"%d %d"
	.text
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_int2, .-get_int2
	.section	.rodata
.LC2:
	.string	"%d %d %d"
	.text
	.globl	get_int3
	.type	get_int3, @function
get_int3:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-24(%rbp), %rcx
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_int3, .-get_int3
	.globl	func
	.type	func, @function
func:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	%r8d, -36(%rbp)
	movl	-32(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %ecx
	movl	-36(%rbp), %eax
	subl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -4(%rbp)
	movl	-28(%rbp), %eax
	subl	-4(%rbp), %eax
	movl	$0, %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	func, .-func
	.section	.rodata
.LC3:
	.string	"%d %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$1248, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	call	get_int
	movl	%eax, -1220(%rbp)
	movl	$0, -1240(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L11
.L13:
	leaq	-1216(%rbp), %rcx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	8(%rax), %rdx
	leaq	-1216(%rbp), %rsi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	leaq	4(%rax), %rcx
	leaq	-1216(%rbp), %rdi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rsi
	movq	%rsi, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdi, %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	get_int3
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	.L12
	movl	-1244(%rbp), %eax
	movl	%eax, -1240(%rbp)
.L12:
	addl	$1, -1244(%rbp)
.L11:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L13
	movl	$0, -1228(%rbp)
	movl	$0, -1236(%rbp)
	jmp	.L14
.L23:
	movl	$0, -1232(%rbp)
	jmp	.L15
.L22:
	movl	$1, -1224(%rbp)
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	subl	-1236(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-1240(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %eax
	subl	-1232(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, -1228(%rbp)
	movl	$0, -1244(%rbp)
	jmp	.L16
.L19:
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1212, %rax
	movl	(%rax), %esi
	movl	-1244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1216, %rax
	movl	(%rax), %eax
	movl	-1232(%rbp), %edi
	movl	-1236(%rbp), %ecx
	movl	-1228(%rbp), %edx
	movl	%edi, %r8d
	movl	%eax, %edi
	call	func
	movl	%eax, %edx
	movl	-1244(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$1208, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	je	.L17
	movl	$0, -1224(%rbp)
	jmp	.L18
.L17:
	addl	$1, -1244(%rbp)
.L16:
	movl	-1244(%rbp), %eax
	cmpl	-1220(%rbp), %eax
	jl	.L19
.L18:
	cmpl	$0, -1224(%rbp)
	jne	.L26
	addl	$1, -1232(%rbp)
.L15:
	cmpl	$100, -1232(%rbp)
	jle	.L22
	addl	$1, -1236(%rbp)
.L14:
	cmpl	$100, -1236(%rbp)
	jle	.L23
	jmp	.L21
.L26:
	nop
.L21:
	movl	-1228(%rbp), %ecx
	movl	-1232(%rbp), %edx
	movl	-1236(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
