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>

int main()
{
	int H, W, N;
	scanf("%d%d%d", &H, &W, &N);
	int a[N];
	int i, j, k;
	for (i = 0; i < N; i++) {
		scanf("%d", &a[i]);
	}
	int s[H][W];
	
	int flag = 0;
	int tmp=0;
	i = 1;
	int l = 1;
	for (j = 0; j < H; j++) {
		if (flag == 0) {
			for (k = 0; k < W; k++) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 1;
		} else if (flag == 1) {
			for (k = W - 1; k >= 0; k--) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 0;
		}
	}
	for (i = 0; i < H; i++) {
		for (j = 0; j < W; j++) {
			printf("%d ", s[i][j]);
		}
		printf("\n");
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -232(%rbp)
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L5
.L6:
	movl	-120(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -120(%rbp)
.L5:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L6
	movl	-128(%rbp), %ecx
	movl	-132(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	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
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$1, -120(%rbp)
	movl	$1, -100(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L10
.L19:
	cmpl	$0, -108(%rbp)
	jne	.L11
	movl	$0, -112(%rbp)
	jmp	.L12
.L14:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L13
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L13:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	addl	$1, -112(%rbp)
.L12:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L14
	movl	$1, -108(%rbp)
	jmp	.L15
.L11:
	cmpl	$1, -108(%rbp)
	jne	.L15
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	jmp	.L16
.L18:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L17
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L17:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	subl	$1, -112(%rbp)
.L16:
	cmpl	$0, -112(%rbp)
	jns	.L18
	movl	$0, -108(%rbp)
.L15:
	addl	$1, -116(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L19
	movl	$0, -120(%rbp)
	jmp	.L20
.L23:
	movl	$0, -116(%rbp)
	jmp	.L21
.L22:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L21:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -120(%rbp)
.L20:
	movl	-132(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$56, %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, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L45:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L45
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L46
.L4:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	jle	.L12
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, -60(%rbp)
	jg	.L11
.L12:
	movslq	-64(%rbp), %rdx
	movslq	-68(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r15
	imulq	%rdx, %rax
	movq	%rdx, %r10
	leaq	0(,%rdx,4), %r12
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L47:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L47
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L48
.L8:
	movq	%rsp, %rbx
	testl	%r15d, %r15d
	jle	.L10
	leal	-1(%r10), %eax
	movq	%rbx, %r8
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
	movl	%eax, -84(%rbp)
	leaq	4(%rbx,%rax,4), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r14d, %r14d
	je	.L49
	movl	-84(%rbp), %ecx
	testl	%ecx, %ecx
	js	.L29
	movslq	%ecx, %rdi
.L43:
	leal	-1(%rdx), %ecx
.L20:
	movslq	%ecx, %r11
	cmpl	%eax, 0(%r13,%r11,4)
	je	.L18
	movl	%edx, (%r8,%rdi,4)
	subq	$1, %rdi
	addl	$1, %eax
	testl	%edi, %edi
	jns	.L20
.L29:
	xorl	%r14d, %r14d
.L14:
	addl	$1, %r9d
	addq	%r12, %r8
	addq	%r12, %rsi
	cmpl	%r9d, %r15d
	jne	.L21
	xorl	%r14d, %r14d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%r15d, %r15d
	testl	%r10d, %r10d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%rbx,%r15,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpl	%r15d, -64(%rbp)
	jg	.L23
.L24:
	movl	$10, %edi
	addl	$1, %r14d
	addq	%r12, %rbx
	call	putchar@PLT
	cmpl	%r14d, -68(%rbp)
	jle	.L10
	movl	-64(%rbp), %r10d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edx
	movl	%r14d, %eax
	movl	%edx, (%r8,%rdi,4)
	subq	$1, %rdi
	testl	%edi, %edi
	jns	.L43
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L49:
	testl	%r10d, %r10d
	jle	.L27
	movq	%r8, %rdi
.L42:
	leal	-1(%rdx), %ecx
.L17:
	movslq	%ecx, %r11
	cmpl	%eax, 0(%r13,%r11,4)
	je	.L15
	movl	%edx, (%rdi)
	addq	$4, %rdi
	addl	$1, %eax
	cmpq	%rsi, %rdi
	jne	.L17
.L27:
	movl	$1, %r14d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %edx
	addq	$4, %rdi
	movl	$1, %eax
	movl	%edx, -4(%rdi)
	cmpq	%rsi, %rdi
	jne	.L42
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L50
	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
.L48:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L46:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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), %rcx
	leaq	-64(%rbp), %rdx
	pushq	%r13
	leaq	-68(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$56, %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, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L45:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L45
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L46
.L4:
	movq	%rsp, %r13
	testl	%ecx, %ecx
	jle	.L12
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebx, -60(%rbp)
	jg	.L11
.L12:
	movslq	-64(%rbp), %rdx
	movslq	-68(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %r15
	imulq	%rdx, %rax
	movq	%rdx, %r10
	leaq	0(,%rdx,4), %r12
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L47:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L47
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L48
.L8:
	movq	%rsp, %rbx
	testl	%r15d, %r15d
	jle	.L10
	leal	-1(%r10), %eax
	movq	%rbx, %r8
	xorl	%r14d, %r14d
	xorl	%r9d, %r9d
	movl	%eax, -84(%rbp)
	leaq	4(%rbx,%rax,4), %rsi
	movl	$1, %edx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%r14d, %r14d
	je	.L49
	movl	-84(%rbp), %ecx
	testl	%ecx, %ecx
	js	.L29
	movslq	%ecx, %rdi
.L43:
	leal	-1(%rdx), %ecx
.L20:
	movslq	%ecx, %r11
	cmpl	%eax, 0(%r13,%r11,4)
	je	.L18
	movl	%edx, (%r8,%rdi,4)
	subq	$1, %rdi
	addl	$1, %eax
	testl	%edi, %edi
	jns	.L20
.L29:
	xorl	%r14d, %r14d
.L14:
	addl	$1, %r9d
	addq	%r12, %r8
	addq	%r12, %rsi
	cmpl	%r9d, %r15d
	jne	.L21
	xorl	%r14d, %r14d
	leaq	.LC2(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L22:
	xorl	%r15d, %r15d
	testl	%r10d, %r10d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%rbx,%r15,4), %edx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r15
	call	__printf_chk@PLT
	cmpl	%r15d, -64(%rbp)
	jg	.L23
.L24:
	movl	$10, %edi
	addl	$1, %r14d
	addq	%r12, %rbx
	call	putchar@PLT
	cmpl	%r14d, -68(%rbp)
	jle	.L10
	movl	-64(%rbp), %r10d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edx
	movl	%r14d, %eax
	movl	%edx, (%r8,%rdi,4)
	subq	$1, %rdi
	testl	%edi, %edi
	jns	.L43
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L49:
	testl	%r10d, %r10d
	jle	.L27
	movq	%r8, %rdi
.L42:
	leal	-1(%rdx), %ecx
.L17:
	movslq	%ecx, %r11
	cmpl	%eax, 0(%r13,%r11,4)
	je	.L15
	movl	%edx, (%rdi)
	addq	$4, %rdi
	addl	$1, %eax
	cmpq	%rsi, %rdi
	jne	.L17
.L27:
	movl	$1, %r14d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	addl	$1, %edx
	addq	$4, %rdi
	movl	$1, %eax
	movl	%edx, -4(%rdi)
	cmpq	%rsi, %rdi
	jne	.L42
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L50
	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
.L48:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L46:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main()
{
	int H, W, N;
	scanf("%d%d%d", &H, &W, &N);
	int a[N];
	int i, j, k;
	for (i = 0; i < N; i++) {
		scanf("%d", &a[i]);
	}
	int s[H][W];
	
	int flag = 0;
	int tmp=0;
	i = 1;
	int l = 1;
	for (j = 0; j < H; j++) {
		if (flag == 0) {
			for (k = 0; k < W; k++) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 1;
		} else if (flag == 1) {
			for (k = W - 1; k >= 0; k--) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 0;
		}
	}
	for (i = 0; i < H; i++) {
		for (j = 0; j < W; j++) {
			printf("%d ", s[i][j]);
		}
		printf("\n");
	}
	return 0;
}

2 2
3
2 1 1

1 1 
3 2 

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>

int main()
{
	int H, W, N;
	scanf("%d%d%d", &H, &W, &N);
	int a[N];
	int i, j, k;
	for (i = 0; i < N; i++) {
		scanf("%d", &a[i]);
	}
	int s[H][W];
	
	int flag = 0;
	int tmp=0;
	i = 1;
	int l = 1;
	for (j = 0; j < H; j++) {
		if (flag == 0) {
			for (k = 0; k < W; k++) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 1;
		} else if (flag == 1) {
			for (k = W - 1; k >= 0; k--) {
				if (tmp == a[i-1]) {
					i++;
					tmp = 0;
				}
				s[j][k] = i;
				tmp++;
			}
			flag = 0;
		}
	}
	for (i = 0; i < H; i++) {
		for (j = 0; j < W; j++) {
			printf("%d ", s[i][j]);
		}
		printf("\n");
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -232(%rbp)
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L5
.L6:
	movl	-120(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -120(%rbp)
.L5:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L6
	movl	-128(%rbp), %ecx
	movl	-132(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	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
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$1, -120(%rbp)
	movl	$1, -100(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L10
.L19:
	cmpl	$0, -108(%rbp)
	jne	.L11
	movl	$0, -112(%rbp)
	jmp	.L12
.L14:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L13
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L13:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	addl	$1, -112(%rbp)
.L12:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L14
	movl	$1, -108(%rbp)
	jmp	.L15
.L11:
	cmpl	$1, -108(%rbp)
	jne	.L15
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	jmp	.L16
.L18:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L17
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L17:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	subl	$1, -112(%rbp)
.L16:
	cmpl	$0, -112(%rbp)
	jns	.L18
	movl	$0, -108(%rbp)
.L15:
	addl	$1, -116(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L19
	movl	$0, -120(%rbp)
	jmp	.L20
.L23:
	movl	$0, -116(%rbp)
	jmp	.L21
.L22:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L21:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -120(%rbp)
.L20:
	movl	-132(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -232(%rbp)
	leaq	-124(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%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
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -88(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L5
.L6:
	movl	-120(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -120(%rbp)
.L5:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L6
	movl	-128(%rbp), %ecx
	movl	-132(%rbp), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%ecx, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%esi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-160(%rbp), %r8
	movq	-152(%rbp), %r9
	movq	%r9, %rdx
	movq	-176(%rbp), %r10
	movq	-168(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	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
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$1, -120(%rbp)
	movl	$1, -100(%rbp)
	movl	$0, -116(%rbp)
	jmp	.L10
.L19:
	cmpl	$0, -108(%rbp)
	jne	.L11
	movl	$0, -112(%rbp)
	jmp	.L12
.L14:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L13
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L13:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	addl	$1, -112(%rbp)
.L12:
	movl	-128(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L14
	movl	$1, -108(%rbp)
	jmp	.L15
.L11:
	cmpl	$1, -108(%rbp)
	jne	.L15
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -112(%rbp)
	jmp	.L16
.L18:
	movl	-120(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -104(%rbp)
	jne	.L17
	addl	$1, -120(%rbp)
	movl	$0, -104(%rbp)
.L17:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-112(%rbp), %edx
	movslq	%edx, %rsi
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	leaq	(%rsi,%rdx), %rcx
	movl	-120(%rbp), %edx
	movl	%edx, (%rax,%rcx,4)
	addl	$1, -104(%rbp)
	subl	$1, -112(%rbp)
.L16:
	cmpl	$0, -112(%rbp)
	jns	.L18
	movl	$0, -108(%rbp)
.L15:
	addl	$1, -116(%rbp)
.L10:
	movl	-132(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L19
	movl	$0, -120(%rbp)
	jmp	.L20
.L23:
	movl	$0, -116(%rbp)
	jmp	.L21
.L22:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rsi
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -116(%rbp)
.L21:
	movl	-128(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L22
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -120(%rbp)
.L20:
	movl	-132(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
