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>

int size;
char hand_up[100][100];
int map[100][100];

int main(void) {
	int i,j;
	int ctarget,cpos;
	int found;
	while(1) {
		scanf("%d",&size);
		if(size==0)break;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++)scanf("%d",&map[i][j]);
		}
		memset(hand_up,0,sizeof(hand_up));
		for(i=0;i<size;i++) {
			ctarget=0x7fffffff;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[i][j]<=ctarget) {
					ctarget=map[i][j];
					cpos=j;
				}
			}
			hand_up[i][cpos]|=1;
		}
		for(i=0;i<size;i++) {
			ctarget=0;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[j][i]>=ctarget) {
					ctarget=map[j][i];
					cpos=j;
				}
			}
			hand_up[cpos][i]|=2;
		}
		found=0;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++) {
				if(hand_up[i][j]==3) {
					printf("%d\n",map[i][j]);
					found=1;
				}
			}
		}
		if(!found)puts("0");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	hand_up
	.align 32
	.type	hand_up, @object
	.size	hand_up, 10000
hand_up:
	.zero	10000
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 40000
map:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
.L24:
	leaq	size(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	size(%rip), %eax
	testl	%eax, %eax
	je	.L27
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L5:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	movl	$10000, %edx
	movl	$0, %esi
	leaq	hand_up(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L8
.L12:
	movl	$2147483647, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L9
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	addl	$1, -16(%rbp)
.L9:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$1, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movl	$0, -20(%rbp)
	jmp	.L13
.L17:
	movl	$0, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L16:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L15
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L15:
	addl	$1, -16(%rbp)
.L14:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$2, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L18
.L22:
	movl	$0, -16(%rbp)
	jmp	.L19
.L21:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$3, %al
	jne	.L20
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
.L20:
	addl	$1, -16(%rbp)
.L19:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	addl	$1, -20(%rbp)
.L18:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L22
	cmpl	$0, -4(%rbp)
	jne	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L24:
	leaq	size(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	size(%rip), %eax
	testl	%eax, %eax
	je	.L37
	jle	.L49
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	map(%rip), %rax
	xorl	%r13d, %r13d
	leaq	(%rax,%rbp,4), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	size(%rip), %r8d
	addq	$4, %r15
	cmpl	%r13d, %r8d
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, %r8d
	jle	.L50
	addq	$100, %rbp
	jmp	.L3
.L49:
	movl	$10000, %edx
	xorl	%esi, %esi
	leaq	hand_up(%rip), %rdi
	call	memset@PLT
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
.L37:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L50:
	.cfi_restore_state
	movl	$10000, %edx
	xorl	%esi, %esi
	movl	%r8d, 12(%rsp)
	leaq	hand_up(%rip), %rdi
	call	memset@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L23
	leaq	map(%rip), %r9
	xorl	%edi, %edi
	movslq	%r8d, %r11
	movq	%r9, %r10
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r10), %ecx
	movl	$1, %eax
	xorl	%esi, %esi
	cmpl	$1, %r8d
	je	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rax,4), %edx
	cmpl	%ecx, %edx
	jg	.L9
	movslq	%eax, %rsi
	movl	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	%r11, %rax
	jne	.L10
.L14:
	movslq	%edi, %rax
	leaq	hand_up(%rip), %rdx
	addq	$400, %r10
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	orb	$1, (%rax,%rsi)
	leal	1(%rdi), %esi
	cmpl	%esi, %r8d
	je	.L51
	movl	%esi, %edi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r9, %rdx
	movq	$-1, %r10
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%ecx, %eax
.L16:
	movl	(%rdx), %ecx
	cmpl	%ecx, %r8d
	jg	.L15
	movslq	%eax, %r10
	movl	%ecx, %r8d
.L15:
	leal	1(%rax), %ecx
	addq	$400, %rdx
	cmpl	%eax, %edi
	jne	.L32
	leaq	(%r10,%r10,4), %rdx
	leaq	hand_up(%rip), %rcx
	movslq	%r11d, %rax
	addq	$4, %r9
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rcx,%rdx,4), %rdx
	orb	$2, (%rdx,%rax)
	leal	1(%r11), %eax
	cmpl	%edi, %r11d
	je	.L52
	movl	%eax, %r11d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L52:
	leaq	hand_up(%rip), %r13
	leaq	map(%rip), %r15
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	testl	%esi, %esi
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$3, 0(%r13,%r12)
	je	.L53
	addq	$1, %r12
	cmpl	%r12d, %esi
	jg	.L22
.L21:
	addl	$1, %ebp
	cmpl	%esi, %ebp
	jge	.L27
	addq	$100, %r13
	addq	$400, %r15
	testl	%esi, %esi
	jg	.L35
.L27:
	testl	%eax, %eax
	jne	.L24
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L53:
	movl	(%r15,%r12,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movl	size(%rip), %esi
	movl	$1, %eax
	cmpl	%r12d, %esi
	jg	.L22
	jmp	.L21
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 40000
map:
	.zero	40000
	.globl	hand_up
	.align 32
	.type	hand_up, @object
	.size	hand_up, 10000
hand_up:
	.zero	10000
	.globl	size
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.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	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC2(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L24:
	leaq	size(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	size(%rip), %eax
	testl	%eax, %eax
	je	.L37
	jle	.L49
	xorl	%ebp, %ebp
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	leaq	map(%rip), %rax
	xorl	%r13d, %r13d
	leaq	(%rax,%rbp,4), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	size(%rip), %r8d
	addq	$4, %r15
	cmpl	%r13d, %r8d
	jg	.L5
	addl	$1, %r12d
	cmpl	%r12d, %r8d
	jle	.L50
	addq	$100, %rbp
	jmp	.L3
.L49:
	movl	$10000, %edx
	xorl	%esi, %esi
	leaq	hand_up(%rip), %rdi
	call	memset@PLT
.L23:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
.L37:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L50:
	.cfi_restore_state
	movl	$10000, %edx
	xorl	%esi, %esi
	movl	%r8d, 12(%rsp)
	leaq	hand_up(%rip), %rdi
	call	memset@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L23
	leaq	map(%rip), %r9
	xorl	%edi, %edi
	movslq	%r8d, %r11
	movq	%r9, %r10
	.p2align 4,,10
	.p2align 3
.L11:
	movl	(%r10), %ecx
	movl	$1, %eax
	xorl	%esi, %esi
	cmpl	$1, %r8d
	je	.L14
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%r10,%rax,4), %edx
	cmpl	%ecx, %edx
	jg	.L9
	movslq	%eax, %rsi
	movl	%edx, %ecx
.L9:
	addq	$1, %rax
	cmpq	%r11, %rax
	jne	.L10
.L14:
	movslq	%edi, %rax
	leaq	hand_up(%rip), %rdx
	addq	$400, %r10
	leaq	(%rax,%rax,4), %rax
	leaq	(%rax,%rax,4), %rax
	leaq	(%rdx,%rax,4), %rax
	orb	$1, (%rax,%rsi)
	leal	1(%rdi), %esi
	cmpl	%esi, %r8d
	je	.L51
	movl	%esi, %edi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r9, %rdx
	movq	$-1, %r10
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%ecx, %eax
.L16:
	movl	(%rdx), %ecx
	cmpl	%ecx, %r8d
	jg	.L15
	movslq	%eax, %r10
	movl	%ecx, %r8d
.L15:
	leal	1(%rax), %ecx
	addq	$400, %rdx
	cmpl	%eax, %edi
	jne	.L32
	leaq	(%r10,%r10,4), %rdx
	leaq	hand_up(%rip), %rcx
	movslq	%r11d, %rax
	addq	$4, %r9
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rcx,%rdx,4), %rdx
	orb	$2, (%rdx,%rax)
	leal	1(%r11), %eax
	cmpl	%edi, %r11d
	je	.L52
	movl	%eax, %r11d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L52:
	leaq	hand_up(%rip), %r13
	leaq	map(%rip), %r15
	xorl	%eax, %eax
	xorl	%ebp, %ebp
	testl	%esi, %esi
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L35:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L22:
	cmpb	$3, 0(%r13,%r12)
	je	.L53
	addq	$1, %r12
	cmpl	%r12d, %esi
	jg	.L22
.L21:
	addl	$1, %ebp
	cmpl	%esi, %ebp
	jge	.L27
	addq	$100, %r13
	addq	$400, %r15
	testl	%esi, %esi
	jg	.L35
.L27:
	testl	%eax, %eax
	jne	.L24
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L53:
	movl	(%r15,%r12,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__printf_chk@PLT
	movl	size(%rip), %esi
	movl	$1, %eax
	cmpl	%r12d, %esi
	jg	.L22
	jmp	.L21
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	map
	.bss
	.align 32
	.type	map, @object
	.size	map, 40000
map:
	.zero	40000
	.globl	hand_up
	.align 32
	.type	hand_up, @object
	.size	hand_up, 10000
hand_up:
	.zero	10000
	.globl	size
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.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>

int size;
char hand_up[100][100];
int map[100][100];

int main(void) {
	int i,j;
	int ctarget,cpos;
	int found;
	while(1) {
		scanf("%d",&size);
		if(size==0)break;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++)scanf("%d",&map[i][j]);
		}
		memset(hand_up,0,sizeof(hand_up));
		for(i=0;i<size;i++) {
			ctarget=0x7fffffff;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[i][j]<=ctarget) {
					ctarget=map[i][j];
					cpos=j;
				}
			}
			hand_up[i][cpos]|=1;
		}
		for(i=0;i<size;i++) {
			ctarget=0;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[j][i]>=ctarget) {
					ctarget=map[j][i];
					cpos=j;
				}
			}
			hand_up[cpos][i]|=2;
		}
		found=0;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++) {
				if(hand_up[i][j]==3) {
					printf("%d\n",map[i][j]);
					found=1;
				}
			}
		}
		if(!found)puts("0");
	}
	return 0;
}
3
1 2 3
4 5 6
7 10 9
3
1 2 3
7 8 9
4 5 6
0
 3
1 2 3
4 5 6
7 10 9
3
1 2 3
7 8 6
4 5 6
0
 3
1 2 3
4 5 6
7 10 9
3
1 2 3
2 8 9
4 5 6
0
 3
1 2 3
4 5 6
7 10 9
3
1 2 3
7 8 6
4 5 7
0
 3
1 2 3
4 5 6
12 10 9
3
1 4 3
7 8 9
4 8 6
0
 3
1 2 3
4 5 6
2 15 9
3
1 4 3
7 8 9
4 8 6
0
 3
1 2 3
4 5 5
7 1 9
3
1 2 3
7 8 10
4 5 6
0
 3
1 4 3
4 5 6
2 15 9
3
1 4 3
1 8 9
4 8 6
0
 3
1 1 3
4 2 11
7 0 4
3
1 4 6
7 8 9
4 8 6
0
 3
1 2 3
2 10 6
13 10 9
3
1 2 3
7 0 7
4 5 6
0

7
7
 7
0
 7
4
 7
0
 9
7
 4
7
 0
7
 4
4
 2
7
 9
0

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>

int size;
char hand_up[100][100];
int map[100][100];

int main(void) {
	int i,j;
	int ctarget,cpos;
	int found;
	while(1) {
		scanf("%d",&size);
		if(size==0)break;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++)scanf("%d",&map[i][j]);
		}
		memset(hand_up,0,sizeof(hand_up));
		for(i=0;i<size;i++) {
			ctarget=0x7fffffff;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[i][j]<=ctarget) {
					ctarget=map[i][j];
					cpos=j;
				}
			}
			hand_up[i][cpos]|=1;
		}
		for(i=0;i<size;i++) {
			ctarget=0;
			cpos=-1;
			for(j=0;j<size;j++) {
				if(map[j][i]>=ctarget) {
					ctarget=map[j][i];
					cpos=j;
				}
			}
			hand_up[cpos][i]|=2;
		}
		found=0;
		for(i=0;i<size;i++) {
			for(j=0;j<size;j++) {
				if(hand_up[i][j]==3) {
					printf("%d\n",map[i][j]);
					found=1;
				}
			}
		}
		if(!found)puts("0");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	hand_up
	.align 32
	.type	hand_up, @object
	.size	hand_up, 10000
hand_up:
	.zero	10000
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 40000
map:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
.L24:
	leaq	size(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	size(%rip), %eax
	testl	%eax, %eax
	je	.L27
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L5:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	movl	$10000, %edx
	movl	$0, %esi
	leaq	hand_up(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L8
.L12:
	movl	$2147483647, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L9
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	addl	$1, -16(%rbp)
.L9:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$1, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movl	$0, -20(%rbp)
	jmp	.L13
.L17:
	movl	$0, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L16:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L15
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L15:
	addl	$1, -16(%rbp)
.L14:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$2, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L18
.L22:
	movl	$0, -16(%rbp)
	jmp	.L19
.L21:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$3, %al
	jne	.L20
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
.L20:
	addl	$1, -16(%rbp)
.L19:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	addl	$1, -20(%rbp)
.L18:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L22
	cmpl	$0, -4(%rbp)
	jne	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.globl	hand_up
	.align 32
	.type	hand_up, @object
	.size	hand_up, 10000
hand_up:
	.zero	10000
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 40000
map:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
.L24:
	leaq	size(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	size(%rip), %eax
	testl	%eax, %eax
	je	.L27
	movl	$0, -20(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16(%rbp)
	jmp	.L5
.L6:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L5:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	addl	$1, -20(%rbp)
.L4:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L7
	movl	$10000, %edx
	movl	$0, %esi
	leaq	hand_up(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -20(%rbp)
	jmp	.L8
.L12:
	movl	$2147483647, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L9
.L11:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L10
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L10:
	addl	$1, -16(%rbp)
.L9:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$1, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L8:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movl	$0, -20(%rbp)
	jmp	.L13
.L17:
	movl	$0, -12(%rbp)
	movl	$-1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L16:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L15
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -12(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -8(%rbp)
.L15:
	addl	$1, -16(%rbp)
.L14:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L16
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	orl	$2, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	movslq	%eax, %rsi
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rsi), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movb	%cl, (%rax)
	addl	$1, -20(%rbp)
.L13:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L17
	movl	$0, -4(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L18
.L22:
	movl	$0, -16(%rbp)
	jmp	.L19
.L21:
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	(%rax,%rcx), %rdx
	leaq	hand_up(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$3, %al
	jne	.L20
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	map(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -4(%rbp)
.L20:
	addl	$1, -16(%rbp)
.L19:
	movl	size(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L21
	addl	$1, -20(%rbp)
.L18:
	movl	size(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L22
	cmpl	$0, -4(%rbp)
	jne	.L24
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
