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(void)
{
int i, j, n, m;
int A[100][100];
int b[100], c[100];

scanf("%d %d", &n, &m);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{ 
 scanf("%d", &A[i][j]);
}
}

for(i = 0; i < m; i++)
scanf("%d", &b[i]);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{
 c[i] += A[i][j] * b[j];
}
}
for(i = 0; i < n; i++)
printf("%d\n", c[i]);

return 0;

}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40820(%rbp)
	jmp	.L3
.L4:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L4
	addl	$1, -40824(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L7:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%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, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L7
	movl	$0, -40824(%rbp)
	jmp	.L8
.L11:
	movl	$0, -40820(%rbp)
	jmp	.L9
.L10:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-40824(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L9:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L10
	addl	$1, -40824(%rbp)
.L8:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L11
	movl	$0, -40824(%rbp)
	jmp	.L12
.L13:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L12:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	12(%rsp), %edx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	816(%rsp,%r14,4), %rbp
	xorl	%ebx, %ebx
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L4
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jle	.L29
	addq	$100, %r14
	testl	%edx, %edx
	jg	.L8
.L11:
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L9
	movl	%edx, %eax
	leaq	416(%rsp), %rbx
	movl	%edx, %r11d
	xorl	%r10d, %r10d
	shrl	$2, %eax
	movq	%rbx, %r9
	leal	-1(%rdx), %r12d
	andl	$-4, %r11d
	leal	-1(%rax), %r8d
	leaq	816(%rsp), %rcx
	addq	$1, %r8
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	testl	%edx, %edx
	jle	.L18
	movl	(%r9), %edi
	cmpl	$2, %r12d
	jbe	.L20
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	(%rcx,%rax), %xmm1
	movdqa	(%rsi,%rax), %xmm2
	movdqa	(%rcx,%rax), %xmm0
	pmuludq	(%rsi,%rax), %xmm0
	pshufd	$8, %xmm0, %xmm0
	addq	$16, %rax
	psrlq	$32, %xmm1
	psrlq	$32, %xmm2
	pmuludq	%xmm2, %xmm1
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	paddd	%xmm0, %xmm3
	cmpq	%r8, %rax
	jne	.L14
	movdqa	%xmm3, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm3
	movd	%xmm3, %eax
	addl	%eax, %edi
	movl	%r11d, %eax
	cmpl	%edx, %r11d
	je	.L15
.L13:
	movslq	%r10d, %rsi
	movslq	%eax, %r13
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	salq	$2, %rsi
	leaq	(%rsi,%r13), %r14
	movl	816(%rsp,%r14,4), %r14d
	imull	16(%rsp,%r13,4), %r14d
	leal	1(%rax), %r13d
	addl	%r14d, %edi
	cmpl	%r13d, %edx
	jle	.L15
	movslq	%r13d, %r13
	addl	$2, %eax
	leaq	(%rsi,%r13), %r14
	movl	816(%rsp,%r14,4), %r14d
	imull	16(%rsp,%r13,4), %r14d
	addl	%r14d, %edi
	cmpl	%eax, %edx
	jle	.L15
	cltq
	addq	%rax, %rsi
	movl	816(%rsp,%rsi,4), %esi
	imull	16(%rsp,%rax,4), %esi
	addl	%esi, %edi
.L15:
	movl	%edi, (%r9)
.L18:
	addl	$1, %r10d
	addq	$4, %r9
	addq	$400, %rcx
	cmpl	%ebp, %r10d
	jne	.L12
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L16
.L9:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	testl	%edx, %edx
	jle	.L11
.L6:
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L10
	jmp	.L11
.L20:
	xorl	%eax, %eax
	jmp	.L13
.L2:
	cmpl	$0, 12(%rsp)
	jle	.L9
	leaq	.LC1(%rip), %r15
	jmp	.L6
.L30:
	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"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	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	-36864(%rsp), %r11
	.cfi_def_cfa 11, 36920
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3976, %rsp
	.cfi_def_cfa_offset 40896
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 40824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	movl	12(%rsp), %edx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	testl	%edx, %edx
	jle	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	816(%rsp,%r14,4), %rbp
	xorl	%ebx, %ebx
	movq	%r12, %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L4
	addl	$1, %r13d
	cmpl	%r13d, 8(%rsp)
	jle	.L29
	addq	$100, %r14
	testl	%edx, %edx
	jg	.L8
.L11:
	movl	8(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L9
	movl	%edx, %eax
	leaq	416(%rsp), %rbx
	movl	%edx, %r11d
	xorl	%r10d, %r10d
	shrl	$2, %eax
	movq	%rbx, %r9
	leal	-1(%rdx), %r12d
	andl	$-4, %r11d
	leal	-1(%rax), %r8d
	leaq	816(%rsp), %rcx
	addq	$1, %r8
	salq	$4, %r8
	.p2align 4,,10
	.p2align 3
.L12:
	testl	%edx, %edx
	jle	.L18
	movl	(%r9), %edi
	cmpl	$2, %r12d
	jbe	.L20
	xorl	%eax, %eax
	pxor	%xmm3, %xmm3
	leaq	16(%rsp), %rsi
	.p2align 4,,10
	.p2align 3
.L14:
	movdqa	(%rcx,%rax), %xmm1
	movdqa	(%rsi,%rax), %xmm2
	movdqa	(%rcx,%rax), %xmm0
	pmuludq	(%rsi,%rax), %xmm0
	pshufd	$8, %xmm0, %xmm0
	addq	$16, %rax
	psrlq	$32, %xmm1
	psrlq	$32, %xmm2
	pmuludq	%xmm2, %xmm1
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	paddd	%xmm0, %xmm3
	cmpq	%r8, %rax
	jne	.L14
	movdqa	%xmm3, %xmm0
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm3
	movdqa	%xmm3, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm3
	movd	%xmm3, %eax
	addl	%eax, %edi
	movl	%r11d, %eax
	cmpl	%edx, %r11d
	je	.L15
.L13:
	movslq	%r10d, %rsi
	movslq	%eax, %r13
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rsi,%rsi,4), %rsi
	salq	$2, %rsi
	leaq	(%rsi,%r13), %r14
	movl	816(%rsp,%r14,4), %r14d
	imull	16(%rsp,%r13,4), %r14d
	leal	1(%rax), %r13d
	addl	%r14d, %edi
	cmpl	%r13d, %edx
	jle	.L15
	movslq	%r13d, %r13
	addl	$2, %eax
	leaq	(%rsi,%r13), %r14
	movl	816(%rsp,%r14,4), %r14d
	imull	16(%rsp,%r13,4), %r14d
	addl	%r14d, %edi
	cmpl	%eax, %edx
	jle	.L15
	cltq
	addq	%rax, %rsi
	movl	816(%rsp,%rsi,4), %esi
	imull	16(%rsp,%rax,4), %esi
	addl	%esi, %edi
.L15:
	movl	%edi, (%r9)
.L18:
	addl	$1, %r10d
	addq	$4, %r9
	addq	$400, %rcx
	cmpl	%ebp, %r10d
	jne	.L12
	xorl	%ebp, %ebp
	leaq	.LC2(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L16:
	movl	(%rbx,%rbp,4), %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__printf_chk@PLT
	cmpl	%ebp, 8(%rsp)
	jg	.L16
.L9:
	movq	40824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L30
	addq	$40840, %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
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	testl	%edx, %edx
	jle	.L11
.L6:
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L10
	jmp	.L11
.L20:
	xorl	%eax, %eax
	jmp	.L13
.L2:
	cmpl	$0, 12(%rsp)
	jle	.L9
	leaq	.LC1(%rip), %r15
	jmp	.L6
.L30:
	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(void)
{
int i, j, n, m;
int A[100][100];
int b[100], c[100];

scanf("%d %d", &n, &m);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{ 
 scanf("%d", &A[i][j]);
}
}

for(i = 0; i < m; i++)
scanf("%d", &b[i]);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{
 c[i] += A[i][j] * b[j];
}
}
for(i = 0; i < n; i++)
printf("%d\n", c[i]);

return 0;

}



3 4
1 4 0 1
0 3 0 1
4 1 1 0
1
2
3
0
 3 4
1 2 0 1
0 3 0 1
4 1 2 0
1
2
3
0
 3 4
1 4 0 1
0 3 1 1
4 1 1 0
1
2
3
0
 3 4
1 4 0 1
0 3 1 1
4 1 1 0
1
2
0
0
 3 4
1 4 -1 1
0 3 0 1
4 1 1 0
1
2
3
0
 3 4
0 2 0 1
0 3 0 1
4 1 2 0
1
2
3
0
 3 4
1 7 0 1
0 3 1 1
4 1 1 0
1
2
3
0
 3 4
1 4 0 1
0 0 1 1
4 1 1 0
1
2
0
0
 3 4
1 4 -1 1
0 3 0 1
4 1 1 0
1
0
3
0
 3 4
1 7 -1 1
0 3 1 1
4 1 1 0
1
2
3
0

9
6
9
 5
6
12
 9
9
9
 9
6
6
 6
6
9
 4
6
12
 15
9
9
 9
0
6
 -2
0
7
 12
9
9

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(void)
{
int i, j, n, m;
int A[100][100];
int b[100], c[100];

scanf("%d %d", &n, &m);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{ 
 scanf("%d", &A[i][j]);
}
}

for(i = 0; i < m; i++)
scanf("%d", &b[i]);

for(i = 0; i < n; i++)
{
 for(j = 0; j < m; j++)
{
 c[i] += A[i][j] * b[j];
}
}
for(i = 0; i < n; i++)
printf("%d\n", c[i]);

return 0;

}


```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40820(%rbp)
	jmp	.L3
.L4:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L4
	addl	$1, -40824(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L7:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%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, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L7
	movl	$0, -40824(%rbp)
	jmp	.L8
.L11:
	movl	$0, -40820(%rbp)
	jmp	.L9
.L10:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-40824(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L9:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L10
	addl	$1, -40824(%rbp)
.L8:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L11
	movl	$0, -40824(%rbp)
	jmp	.L12
.L13:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L12:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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\n"
	.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	-36864(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3968, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40828(%rbp), %rdx
	leaq	-40832(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40824(%rbp)
	jmp	.L2
.L5:
	movl	$0, -40820(%rbp)
	jmp	.L3
.L4:
	leaq	-40016(%rbp), %rcx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40820(%rbp)
.L3:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L4
	addl	$1, -40824(%rbp)
.L2:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L5
	movl	$0, -40824(%rbp)
	jmp	.L6
.L7:
	leaq	-40816(%rbp), %rdx
	movl	-40824(%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, -40824(%rbp)
.L6:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L7
	movl	$0, -40824(%rbp)
	jmp	.L8
.L11:
	movl	$0, -40820(%rbp)
	jmp	.L9
.L10:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %ecx
	movl	-40820(%rbp), %eax
	movslq	%eax, %rsi
	movl	-40824(%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	%rsi, %rax
	movl	-40016(%rbp,%rax,4), %edx
	movl	-40820(%rbp), %eax
	cltq
	movl	-40816(%rbp,%rax,4), %eax
	imull	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-40824(%rbp), %eax
	cltq
	movl	%edx, -40416(%rbp,%rax,4)
	addl	$1, -40820(%rbp)
.L9:
	movl	-40828(%rbp), %eax
	cmpl	%eax, -40820(%rbp)
	jl	.L10
	addl	$1, -40824(%rbp)
.L8:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L11
	movl	$0, -40824(%rbp)
	jmp	.L12
.L13:
	movl	-40824(%rbp), %eax
	cltq
	movl	-40416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -40824(%rbp)
.L12:
	movl	-40832(%rbp), %eax
	cmpl	%eax, -40824(%rbp)
	jl	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	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:
