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[H+1][W+1], Color[N+1];
    for (int i = 1; i <= N; ++i) {
        scanf("%d", &Color[i]);
    }
    int c = 1;
    for (int i = 1; i <= H; ++i) {
        if (i & 1) {
            for (int j = 1; j <= W; ++j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        } else {
            for (int j = W; j >= 1; --j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        }
    }
    for (int i = 1; i <= H; ++i) {
        for (int j = 1; j <= W; ++j) {
            printf("%d ", A[i][j]);
        }
        putchar('\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	-128(%rbp), %rcx
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	leal	1(%rax), %esi
	movl	-136(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %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), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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
.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, -80(%rbp)
	movl	-128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -124(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L9
	movl	$1, -120(%rbp)
	movl	$1, -116(%rbp)
	jmp	.L10
.L21:
	movl	-116(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	$1, -112(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L13
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L14
.L13:
	movl	-120(%rbp), %eax
.L14:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L12:
	movl	-132(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L15
	jmp	.L16
.L11:
	movl	-132(%rbp), %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L20:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L18
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L19
.L18:
	movl	-120(%rbp), %eax
.L19:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-108(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -108(%rbp)
.L17:
	cmpl	$0, -108(%rbp)
	jg	.L20
.L16:
	addl	$1, -116(%rbp)
.L10:
	movl	-136(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jle	.L21
	movl	$1, -104(%rbp)
	jmp	.L22
.L25:
	movl	$1, -100(%rbp)
	jmp	.L23
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-104(%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, -100(%rbp)
.L23:
	movl	-132(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jle	.L24
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -104(%rbp)
.L22:
	movl	-136(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jle	.L25
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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
	movl	-64(%rbp), %eax
	movl	-68(%rbp), %r11d
	movq	%rsp, %rcx
	addl	$1, %eax
	leal	1(%r11), %edx
	cltq
	movslq	%edx, %rdx
	leaq	0(,%rax,4), %r13
	imulq	%rdx, %rax
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L41:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L41
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L42
.L4:
	movl	-60(%rbp), %edx
	movq	%rsp, -88(%rbp)
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	andq	$-16, %rcx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L42:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L43
.L7:
	movq	%rsp, %rbx
	testl	%edx, %edx
	jle	.L12
	leaq	4(%rbx), %r14
	movl	$1, %r12d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r12d, -60(%rbp)
	jge	.L11
	movl	-68(%rbp), %r11d
.L12:
	testl	%r11d, %r11d
	jle	.L10
	movl	-64(%rbp), %r8d
	movq	-88(%rbp), %rdi
	movq	%r13, %rax
	addl	$1, %r11d
	shrq	$2, %rax
	movl	$1, %r10d
	leal	-1(%r8), %edx
	leaq	(%rdi,%r13), %r12
	addq	%rdx, %rax
	leaq	8(%rdi,%rax,4), %r9
	movq	%r12, %rdi
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	testb	$1, %r10b
	je	.L13
	testl	%r8d, %r8d
	jle	.L14
	movslq	%eax, %rcx
	leaq	4(%rdi), %rsi
	movl	(%rbx,%rcx,4), %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	addl	$1, %eax
	addq	$4, %rsi
	movslq	%eax, %rcx
	movl	%eax, -4(%rsi)
	movl	(%rbx,%rcx,4), %edx
	subl	$1, %edx
	movl	%edx, (%rbx,%rcx,4)
	cmpq	%r9, %rsi
	je	.L14
.L17:
	testl	%edx, %edx
	je	.L44
	movl	%eax, (%rsi)
	subl	$1, %edx
	addq	$4, %rsi
	movl	%edx, (%rbx,%rcx,4)
	cmpq	%r9, %rsi
	jne	.L17
.L14:
	addl	$1, %r10d
	addq	%r13, %rdi
	addq	%r13, %r9
	cmpl	%r11d, %r10d
	jne	.L21
	movl	$1, %r15d
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$1, %ebx
	testl	%r8d, %r8d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -64(%rbp)
	jge	.L23
.L24:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %r15d
	addq	%r13, %r12
	call	putc@PLT
	cmpl	%r15d, -68(%rbp)
	jl	.L10
	movl	-64(%rbp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%r8d, %r8d
	jle	.L14
	movslq	%eax, %rcx
	movslq	%r8d, %rsi
	movl	(%rbx,%rcx,4), %edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	%eax, (%rdi,%rsi,4)
	movl	(%rbx,%rcx,4), %edx
.L39:
	subl	$1, %edx
	subq	$1, %rsi
	movl	%edx, (%rbx,%rcx,4)
	testl	%esi, %esi
	jle	.L14
.L20:
	testl	%edx, %edx
	je	.L45
	movl	%eax, (%rdi,%rsi,4)
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	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
.L43:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L7
.L46:
	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
	movl	-64(%rbp), %eax
	movl	-68(%rbp), %r11d
	movq	%rsp, %rcx
	addl	$1, %eax
	leal	1(%r11), %edx
	cltq
	movslq	%edx, %rdx
	leaq	0(,%rax,4), %r13
	imulq	%rdx, %rax
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L41:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L41
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L42
.L4:
	movl	-60(%rbp), %edx
	movq	%rsp, -88(%rbp)
	movq	%rsp, %rsi
	leal	1(%rdx), %eax
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	andq	$-16, %rcx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L42:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L43
.L7:
	movq	%rsp, %rbx
	testl	%edx, %edx
	jle	.L12
	leaq	4(%rbx), %r14
	movl	$1, %r12d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	addq	$4, %r14
	cmpl	%r12d, -60(%rbp)
	jge	.L11
	movl	-68(%rbp), %r11d
.L12:
	testl	%r11d, %r11d
	jle	.L10
	movl	-64(%rbp), %r8d
	movq	-88(%rbp), %rdi
	movq	%r13, %rax
	addl	$1, %r11d
	shrq	$2, %rax
	movl	$1, %r10d
	leal	-1(%r8), %edx
	leaq	(%rdi,%r13), %r12
	addq	%rdx, %rax
	leaq	8(%rdi,%rax,4), %r9
	movq	%r12, %rdi
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	testb	$1, %r10b
	je	.L13
	testl	%r8d, %r8d
	jle	.L14
	movslq	%eax, %rcx
	leaq	4(%rdi), %rsi
	movl	(%rbx,%rcx,4), %edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L44:
	addl	$1, %eax
	addq	$4, %rsi
	movslq	%eax, %rcx
	movl	%eax, -4(%rsi)
	movl	(%rbx,%rcx,4), %edx
	subl	$1, %edx
	movl	%edx, (%rbx,%rcx,4)
	cmpq	%r9, %rsi
	je	.L14
.L17:
	testl	%edx, %edx
	je	.L44
	movl	%eax, (%rsi)
	subl	$1, %edx
	addq	$4, %rsi
	movl	%edx, (%rbx,%rcx,4)
	cmpq	%r9, %rsi
	jne	.L17
.L14:
	addl	$1, %r10d
	addq	%r13, %rdi
	addq	%r13, %r9
	cmpl	%r11d, %r10d
	jne	.L21
	movl	$1, %r15d
	leaq	.LC2(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L22:
	movl	$1, %ebx
	testl	%r8d, %r8d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L23:
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, -64(%rbp)
	jge	.L23
.L24:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %r15d
	addq	%r13, %r12
	call	putc@PLT
	cmpl	%r15d, -68(%rbp)
	jl	.L10
	movl	-64(%rbp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%r8d, %r8d
	jle	.L14
	movslq	%eax, %rcx
	movslq	%r8d, %rsi
	movl	(%rbx,%rcx,4), %edx
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %eax
	movslq	%eax, %rcx
	movl	%eax, (%rdi,%rsi,4)
	movl	(%rbx,%rcx,4), %edx
.L39:
	subl	$1, %edx
	subq	$1, %rsi
	movl	%edx, (%rbx,%rcx,4)
	testl	%esi, %esi
	jle	.L14
.L20:
	testl	%edx, %edx
	je	.L45
	movl	%eax, (%rdi,%rsi,4)
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	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
.L43:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L7
.L46:
	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[H+1][W+1], Color[N+1];
    for (int i = 1; i <= N; ++i) {
        scanf("%d", &Color[i]);
    }
    int c = 1;
    for (int i = 1; i <= H; ++i) {
        if (i & 1) {
            for (int j = 1; j <= W; ++j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        } else {
            for (int j = W; j >= 1; --j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        }
    }
    for (int i = 1; i <= H; ++i) {
        for (int j = 1; j <= W; ++j) {
            printf("%d ", A[i][j]);
        }
        putchar('\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[H+1][W+1], Color[N+1];
    for (int i = 1; i <= N; ++i) {
        scanf("%d", &Color[i]);
    }
    int c = 1;
    for (int i = 1; i <= H; ++i) {
        if (i & 1) {
            for (int j = 1; j <= W; ++j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        } else {
            for (int j = W; j >= 1; --j) {
                A[i][j] = (Color[c]) ? c : ++c;
                --Color[c];
            }
        }
    }
    for (int i = 1; i <= H; ++i) {
        for (int j = 1; j <= W; ++j) {
            printf("%d ", A[i][j]);
        }
        putchar('\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	-128(%rbp), %rcx
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	leal	1(%rax), %esi
	movl	-136(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %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), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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
.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, -80(%rbp)
	movl	-128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -124(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L9
	movl	$1, -120(%rbp)
	movl	$1, -116(%rbp)
	jmp	.L10
.L21:
	movl	-116(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	$1, -112(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L13
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L14
.L13:
	movl	-120(%rbp), %eax
.L14:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L12:
	movl	-132(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L15
	jmp	.L16
.L11:
	movl	-132(%rbp), %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L20:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L18
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L19
.L18:
	movl	-120(%rbp), %eax
.L19:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-108(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -108(%rbp)
.L17:
	cmpl	$0, -108(%rbp)
	jg	.L20
.L16:
	addl	$1, -116(%rbp)
.L10:
	movl	-136(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jle	.L21
	movl	$1, -104(%rbp)
	jmp	.L22
.L25:
	movl	$1, -100(%rbp)
	jmp	.L23
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-104(%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, -100(%rbp)
.L23:
	movl	-132(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jle	.L24
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -104(%rbp)
.L22:
	movl	-136(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jle	.L25
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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.
val
	.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	-128(%rbp), %rcx
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-132(%rbp), %eax
	leal	1(%rax), %esi
	movl	-136(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rbx
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -88(%rbp)
	movslq	%esi, %rax
	movq	%rax, -160(%rbp)
	movq	$0, -152(%rbp)
	movslq	%edi, %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), %rcx
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %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
.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, -80(%rbp)
	movl	-128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -124(%rbp)
	jmp	.L8
.L9:
	movl	-124(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -124(%rbp)
.L8:
	movl	-128(%rbp), %eax
	cmpl	%eax, -124(%rbp)
	jle	.L9
	movl	$1, -120(%rbp)
	movl	$1, -116(%rbp)
	jmp	.L10
.L21:
	movl	-116(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L11
	movl	$1, -112(%rbp)
	jmp	.L12
.L15:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L13
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L14
.L13:
	movl	-120(%rbp), %eax
.L14:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-112(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -112(%rbp)
.L12:
	movl	-132(%rbp), %eax
	cmpl	%eax, -112(%rbp)
	jle	.L15
	jmp	.L16
.L11:
	movl	-132(%rbp), %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L20:
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	jne	.L18
	addl	$1, -120(%rbp)
	movl	-120(%rbp), %eax
	jmp	.L19
.L18:
	movl	-120(%rbp), %eax
.L19:
	movq	%rbx, %rsi
	shrq	$2, %rsi
	movq	-80(%rbp), %rdx
	movl	-108(%rbp), %ecx
	movslq	%ecx, %rdi
	movl	-116(%rbp), %ecx
	movslq	%ecx, %rcx
	imulq	%rsi, %rcx
	addq	%rdi, %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	-1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	subl	$1, -108(%rbp)
.L17:
	cmpl	$0, -108(%rbp)
	jg	.L20
.L16:
	addl	$1, -116(%rbp)
.L10:
	movl	-136(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jle	.L21
	movl	$1, -104(%rbp)
	jmp	.L22
.L25:
	movl	$1, -100(%rbp)
	jmp	.L23
.L24:
	movq	%rbx, %rcx
	shrq	$2, %rcx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rsi
	movl	-104(%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, -100(%rbp)
.L23:
	movl	-132(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jle	.L24
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -104(%rbp)
.L22:
	movl	-136(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jle	.L25
	movl	$0, %eax
	movq	-232(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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:
