Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int main() {
	/*
	int n, m;
	scanf("%d%d", &n, &m);
	printf("%d", (n - 1)*(m - 1));
	*/
	/*
	char s[200],o[10];
	int l,i;
	s[0] = '\0';
	o[0] = '\0';

	scanf("%s", s);

	l = strlen(s);
	sprintf(o, "%c%d%c", s[0], l-2,s[l-1]);

	printf("%s", o);
	*/
	/*
	unsigned int n,a[100000],x2=0,x4=0;
	unsigned int i;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		if (a[i] % 4==0)
			x4++;
		else if (a[i] % 2==0)
			x2++;
	}
	if (x2 != 0)x2--;
	if (x4 >= (n - x2)/2)
		printf("Yes");
	else
		printf("No");
		*/

	int h, w, n, a[10000],c[10000];
	int i,j,k=0;


	scanf("%d%d", &h, &w);
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);

	}

	for (i = 0; i < n; i++) {
		for (j = 0; j < a[i]; j++) {
			c[k] = i+1;
			k++;
		}
	}

	for (i = 0; i < h; i++) {
		if (i % 2 == 0) {
			for (j = 0; j < w; j++) {
				printf("%d ", c[i*w + j]);
			}
		}
		else {
			for (j = w-1; j >= 0; j--) {
				printf("%d ", c[i*w + j]);
			}
		}
		putchar('\n');
	}

	return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%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
	leaq	-77824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -80020(%rbp)
	leaq	-80036(%rbp), %rdx
	leaq	-80040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-80032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -80028(%rbp)
	jmp	.L2
.L3:
	leaq	-80016(%rbp), %rdx
	movl	-80028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80028(%rbp)
.L2:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L3
	movl	$0, -80028(%rbp)
	jmp	.L4
.L7:
	movl	$0, -80024(%rbp)
	jmp	.L5
.L6:
	movl	-80028(%rbp), %eax
	leal	1(%rax), %edx
	movl	-80020(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	addl	$1, -80020(%rbp)
	addl	$1, -80024(%rbp)
.L5:
	movl	-80028(%rbp), %eax
	cltq
	movl	-80016(%rbp,%rax,4), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L6
	addl	$1, -80028(%rbp)
.L4:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L7
	movl	$0, -80028(%rbp)
	jmp	.L8
.L15:
	movl	-80028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, -80024(%rbp)
	jmp	.L10
.L11:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -80024(%rbp)
.L10:
	movl	-80036(%rbp), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L11
	jmp	.L12
.L9:
	movl	-80036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80024(%rbp)
	jmp	.L13
.L14:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -80024(%rbp)
.L13:
	cmpl	$0, -80024(%rbp)
	jns	.L14
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -80028(%rbp)
.L8:
	movl	-80040(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-77824(%rsp), %r11
	.cfi_def_cfa 11, 77864
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2216, %rsp
	.cfi_def_cfa_offset 80080
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 80024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	1(%rax), %r10d
	movl	$1, %edi
	xorl	%r9d, %r9d
	leaq	40016(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L4:
	movl	-4(%rbx,%rdi,4), %esi
	movl	%edi, %r8d
	testl	%esi, %esi
	jle	.L9
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L17
	movslq	%r9d, %rax
	movd	%r8d, %xmm1
	leaq	(%r11,%rax,4), %rdx
	movl	%esi, %eax
	pshufd	$0, %xmm1, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$16, %rax
.L6:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rcx, %rax
	jne	.L31
	movl	%esi, %edx
	andl	$-4, %edx
	leal	(%rdx,%r9), %eax
	cmpl	%esi, %edx
	je	.L7
.L5:
	movslq	%eax, %rcx
	leal	1(%rdx), %ebp
	movl	%r8d, 40016(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%esi, %ebp
	jge	.L7
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	$2, %eax
	movl	%r8d, 40016(%rsp,%rcx,4)
	cmpl	%edx, %esi
	jle	.L7
	cltq
	movl	%r8d, 40016(%rsp,%rax,4)
.L7:
	addl	%esi, %r9d
.L9:
	addq	$1, %rdi
	cmpq	%r10, %rdi
	jne	.L4
.L2:
	movl	4(%rsp), %eax
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	testl	%eax, %eax
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	testb	$1, %bl
	jne	.L11
	testl	%eax, %eax
	jle	.L12
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L13:
	imull	%ebx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	%r12d, %eax
	addl	$1, %r12d
	cltq
	movl	40016(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L13
.L12:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebx
	call	putc@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L10
.L15:
	movq	80024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$80040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%eax, %r12d
	subl	$1, %r12d
	jns	.L14
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	movl	8(%rsp), %eax
.L14:
	imull	%ebx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	%r12d, %eax
	cltq
	movl	40016(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, %r12d
	jb	.L12
	jmp	.L33
.L17:
	movl	%r9d, %eax
	xorl	%edx, %edx
	jmp	.L5
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-77824(%rsp), %r11
	.cfi_def_cfa 11, 77864
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2216, %rsp
	.cfi_def_cfa_offset 80080
	leaq	.LC0(%rip), %rdi
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 80024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	12(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	1(%rax), %r10d
	movl	$1, %edi
	xorl	%r9d, %r9d
	leaq	40016(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L4:
	movl	-4(%rbx,%rdi,4), %esi
	movl	%edi, %r8d
	testl	%esi, %esi
	jle	.L9
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L17
	movslq	%r9d, %rax
	movd	%r8d, %xmm1
	leaq	(%r11,%rax,4), %rdx
	movl	%esi, %eax
	pshufd	$0, %xmm1, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$16, %rax
.L6:
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rcx, %rax
	jne	.L31
	movl	%esi, %edx
	andl	$-4, %edx
	leal	(%rdx,%r9), %eax
	cmpl	%esi, %edx
	je	.L7
.L5:
	movslq	%eax, %rcx
	leal	1(%rdx), %ebp
	movl	%r8d, 40016(%rsp,%rcx,4)
	leal	1(%rax), %ecx
	cmpl	%esi, %ebp
	jge	.L7
	movslq	%ecx, %rcx
	addl	$2, %edx
	addl	$2, %eax
	movl	%r8d, 40016(%rsp,%rcx,4)
	cmpl	%edx, %esi
	jle	.L7
	cltq
	movl	%r8d, 40016(%rsp,%rax,4)
.L7:
	addl	%esi, %r9d
.L9:
	addq	$1, %rdi
	cmpq	%r10, %rdi
	jne	.L4
.L2:
	movl	4(%rsp), %eax
	xorl	%ebx, %ebx
	leaq	.LC2(%rip), %rbp
	testl	%eax, %eax
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	movl	8(%rsp), %eax
	testb	$1, %bl
	jne	.L11
	testl	%eax, %eax
	jle	.L12
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L13:
	imull	%ebx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	%r12d, %eax
	addl	$1, %r12d
	cltq
	movl	40016(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jg	.L13
.L12:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	addl	$1, %ebx
	call	putc@PLT
	cmpl	%ebx, 4(%rsp)
	jg	.L10
.L15:
	movq	80024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$80040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%eax, %r12d
	subl	$1, %r12d
	jns	.L14
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	movl	8(%rsp), %eax
.L14:
	imull	%ebx, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	addl	%r12d, %eax
	cltq
	movl	40016(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	subl	$1, %r12d
	jb	.L12
	jmp	.L33
.L17:
	movl	%r9d, %eax
	xorl	%edx, %edx
	jmp	.L5
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int main() {
	/*
	int n, m;
	scanf("%d%d", &n, &m);
	printf("%d", (n - 1)*(m - 1));
	*/
	/*
	char s[200],o[10];
	int l,i;
	s[0] = '\0';
	o[0] = '\0';

	scanf("%s", s);

	l = strlen(s);
	sprintf(o, "%c%d%c", s[0], l-2,s[l-1]);

	printf("%s", o);
	*/
	/*
	unsigned int n,a[100000],x2=0,x4=0;
	unsigned int i;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		if (a[i] % 4==0)
			x4++;
		else if (a[i] % 2==0)
			x2++;
	}
	if (x2 != 0)x2--;
	if (x4 >= (n - x2)/2)
		printf("Yes");
	else
		printf("No");
		*/

	int h, w, n, a[10000],c[10000];
	int i,j,k=0;


	scanf("%d%d", &h, &w);
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);

	}

	for (i = 0; i < n; i++) {
		for (j = 0; j < a[i]; j++) {
			c[k] = i+1;
			k++;
		}
	}

	for (i = 0; i < h; i++) {
		if (i % 2 == 0) {
			for (j = 0; j < w; j++) {
				printf("%d ", c[i*w + j]);
			}
		}
		else {
			for (j = w-1; j >= 0; j--) {
				printf("%d ", c[i*w + 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
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int main() {
	/*
	int n, m;
	scanf("%d%d", &n, &m);
	printf("%d", (n - 1)*(m - 1));
	*/
	/*
	char s[200],o[10];
	int l,i;
	s[0] = '\0';
	o[0] = '\0';

	scanf("%s", s);

	l = strlen(s);
	sprintf(o, "%c%d%c", s[0], l-2,s[l-1]);

	printf("%s", o);
	*/
	/*
	unsigned int n,a[100000],x2=0,x4=0;
	unsigned int i;

	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);
		if (a[i] % 4==0)
			x4++;
		else if (a[i] % 2==0)
			x2++;
	}
	if (x2 != 0)x2--;
	if (x4 >= (n - x2)/2)
		printf("Yes");
	else
		printf("No");
		*/

	int h, w, n, a[10000],c[10000];
	int i,j,k=0;


	scanf("%d%d", &h, &w);
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &a[i]);

	}

	for (i = 0; i < n; i++) {
		for (j = 0; j < a[i]; j++) {
			c[k] = i+1;
			k++;
		}
	}

	for (i = 0; i < h; i++) {
		if (i % 2 == 0) {
			for (j = 0; j < w; j++) {
				printf("%d ", c[i*w + j]);
			}
		}
		else {
			for (j = w-1; j >= 0; j--) {
				printf("%d ", c[i*w + j]);
			}
		}
		putchar('\n');
	}

	return(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%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
	leaq	-77824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -80020(%rbp)
	leaq	-80036(%rbp), %rdx
	leaq	-80040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-80032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -80028(%rbp)
	jmp	.L2
.L3:
	leaq	-80016(%rbp), %rdx
	movl	-80028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80028(%rbp)
.L2:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L3
	movl	$0, -80028(%rbp)
	jmp	.L4
.L7:
	movl	$0, -80024(%rbp)
	jmp	.L5
.L6:
	movl	-80028(%rbp), %eax
	leal	1(%rax), %edx
	movl	-80020(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	addl	$1, -80020(%rbp)
	addl	$1, -80024(%rbp)
.L5:
	movl	-80028(%rbp), %eax
	cltq
	movl	-80016(%rbp,%rax,4), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L6
	addl	$1, -80028(%rbp)
.L4:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L7
	movl	$0, -80028(%rbp)
	jmp	.L8
.L15:
	movl	-80028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, -80024(%rbp)
	jmp	.L10
.L11:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -80024(%rbp)
.L10:
	movl	-80036(%rbp), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L11
	jmp	.L12
.L9:
	movl	-80036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80024(%rbp)
	jmp	.L13
.L14:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -80024(%rbp)
.L13:
	cmpl	$0, -80024(%rbp)
	jns	.L14
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -80028(%rbp)
.L8:
	movl	-80040(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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
	.section	.rodata
.LC0:
	.string	"%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
	leaq	-77824(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -80020(%rbp)
	leaq	-80036(%rbp), %rdx
	leaq	-80040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-80032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -80028(%rbp)
	jmp	.L2
.L3:
	leaq	-80016(%rbp), %rdx
	movl	-80028(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -80028(%rbp)
.L2:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L3
	movl	$0, -80028(%rbp)
	jmp	.L4
.L7:
	movl	$0, -80024(%rbp)
	jmp	.L5
.L6:
	movl	-80028(%rbp), %eax
	leal	1(%rax), %edx
	movl	-80020(%rbp), %eax
	cltq
	movl	%edx, -40016(%rbp,%rax,4)
	addl	$1, -80020(%rbp)
	addl	$1, -80024(%rbp)
.L5:
	movl	-80028(%rbp), %eax
	cltq
	movl	-80016(%rbp,%rax,4), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L6
	addl	$1, -80028(%rbp)
.L4:
	movl	-80032(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L7
	movl	$0, -80028(%rbp)
	jmp	.L8
.L15:
	movl	-80028(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L9
	movl	$0, -80024(%rbp)
	jmp	.L10
.L11:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -80024(%rbp)
.L10:
	movl	-80036(%rbp), %eax
	cmpl	%eax, -80024(%rbp)
	jl	.L11
	jmp	.L12
.L9:
	movl	-80036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -80024(%rbp)
	jmp	.L13
.L14:
	movl	-80036(%rbp), %eax
	imull	-80028(%rbp), %eax
	movl	%eax, %edx
	movl	-80024(%rbp), %eax
	addl	%edx, %eax
	cltq
	movl	-40016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	subl	$1, -80024(%rbp)
.L13:
	cmpl	$0, -80024(%rbp)
	jns	.L14
.L12:
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -80028(%rbp)
.L8:
	movl	-80040(%rbp), %eax
	cmpl	%eax, -80028(%rbp)
	jl	.L15
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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:
