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){
	while(1){
		int n, i, j;
		int a[4], b[4];
		long c[4];
		
		scanf(" %d", &n);
		if(n==0) break;

		for(i=0; i<n; i++){
			for(j=0; j<4; j++)
				scanf(" %d", &a[j]);
			for(j=0; j<4; j++)
				scanf(" %d", &b[j]);
			
			c[0] = a[0]*b[0] - a[1]*b[1] - a[2]*b[2] - a[3]*b[3];
			c[1] = a[0]*b[1] + a[1]*b[0] + a[2]*b[3] - a[3]*b[2];
			c[2] = a[0]*b[2] - a[1]*b[3] + a[2]*b[0] + a[3]*b[1];
			c[3] = a[0]*b[3] + a[1]*b[2] - a[2]*b[1] +a[3]*b[0];
				
			for(j=0; j<4; j++) {
				printf("%ld", c[j]);
				if(j<3) printf(" ");	
			}
			printf("\n");
		
		}

	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	" %d"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -88(%rbp)
	jmp	.L4
.L12:
	movl	$0, -84(%rbp)
	jmp	.L5
.L6:
	leaq	-80(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L5:
	cmpl	$3, -84(%rbp)
	jle	.L6
	movl	$0, -84(%rbp)
	jmp	.L7
.L8:
	leaq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L7:
	cmpl	$3, -84(%rbp)
	jle	.L8
	movl	-80(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -48(%rbp)
	movl	-80(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -40(%rbp)
	movl	-80(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-52(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-80(%rbp), %edx
	movl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	movq	-48(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$2, -84(%rbp)
	jg	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	addl	$1, -84(%rbp)
.L9:
	cmpl	$3, -84(%rbp)
	jle	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L4:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L12
	jmp	.L13
.L15:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" %d"
.LC1:
	.string	"%ld"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L4
	leaq	48(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	64(%rsp), %rbp
	movq	%rax, 16(%rsp)
	leaq	104(%rsp), %rax
	leaq	80(%rsp), %rbx
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %r15
.L5:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r15
	jne	.L5
	movq	%rbp, %r15
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r15
	jne	.L6
	movl	48(%rsp), %eax
	movl	64(%rsp), %r11d
	movl	52(%rsp), %edi
	movl	68(%rsp), %r10d
	movl	%eax, %edx
	movl	%r11d, %r15d
	movl	56(%rsp), %esi
	movl	76(%rsp), %r8d
	imull	%r10d, %edx
	movl	72(%rsp), %r9d
	movl	60(%rsp), %ecx
	imull	%edi, %r15d
	addl	%edx, %r15d
	movl	%esi, %edx
	imull	%r8d, %edx
	addl	%r15d, %edx
	movl	%r9d, %r15d
	imull	%ecx, %r15d
	subl	%r15d, %edx
	movl	%edi, %r15d
	movslq	%edx, %rdx
	imull	%r8d, %r15d
	movq	%rdx, %xmm0
	movl	%eax, %edx
	imull	%r9d, %edx
	subl	%r15d, %edx
	movl	%r11d, %r15d
	imull	%esi, %r15d
	addl	%r15d, %edx
	movl	%r10d, %r15d
	imull	%ecx, %r15d
	addl	%edx, %r15d
	movl	%edi, %edx
	movslq	%r15d, %r15
	imull	%r9d, %edx
	movq	%r15, %xmm1
	imull	%r10d, %edi
	movl	%eax, %r15d
	imull	%r8d, %r15d
	punpcklqdq	%xmm1, %xmm0
	imull	%r11d, %eax
	movups	%xmm0, 88(%rsp)
	addl	%r15d, %edx
	movl	%r10d, %r15d
	imull	%esi, %r15d
	imull	%r9d, %esi
	subl	%r15d, %edx
	movl	%r11d, %r15d
	imull	%ecx, %r15d
	imull	%r8d, %ecx
	addl	%r15d, %edx
	movq	%rbx, %r15
	movslq	%edx, %rdx
	movq	%rdx, 104(%rsp)
	movl	%eax, %edx
	xorl	%eax, %eax
	subl	%edi, %edx
	movl	$1, %edi
	subl	%esi, %edx
	movq	%r14, %rsi
	subl	%ecx, %edx
	movslq	%edx, %rdx
	call	__printf_chk@PLT
.L7:
	movl	$32, %edi
	addq	$8, %r15
	call	putchar@PLT
	movq	(%r15), %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpq	%r15, 8(%rsp)
	jne	.L7
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 44(%rsp)
	jg	.L3
	jmp	.L4
.L2:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$136, %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
.L19:
	.cfi_restore_state
	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"
.LC1:
	.string	"%ld"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	24(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L4
	leaq	48(%rsp), %rax
	xorl	%r12d, %r12d
	leaq	64(%rsp), %rbp
	movq	%rax, 16(%rsp)
	leaq	104(%rsp), %rax
	leaq	80(%rsp), %rbx
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	16(%rsp), %r15
.L5:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbp, %r15
	jne	.L5
	movq	%rbp, %r15
.L6:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r15
	jne	.L6
	movl	48(%rsp), %eax
	movl	64(%rsp), %r11d
	movl	52(%rsp), %edi
	movl	68(%rsp), %r10d
	movl	%eax, %edx
	movl	%r11d, %r15d
	movl	56(%rsp), %esi
	movl	76(%rsp), %r8d
	imull	%r10d, %edx
	movl	72(%rsp), %r9d
	movl	60(%rsp), %ecx
	imull	%edi, %r15d
	addl	%edx, %r15d
	movl	%esi, %edx
	imull	%r8d, %edx
	addl	%r15d, %edx
	movl	%r9d, %r15d
	imull	%ecx, %r15d
	subl	%r15d, %edx
	movl	%edi, %r15d
	movslq	%edx, %rdx
	imull	%r8d, %r15d
	movq	%rdx, %xmm0
	movl	%eax, %edx
	imull	%r9d, %edx
	subl	%r15d, %edx
	movl	%r11d, %r15d
	imull	%esi, %r15d
	addl	%r15d, %edx
	movl	%r10d, %r15d
	imull	%ecx, %r15d
	addl	%edx, %r15d
	movl	%edi, %edx
	movslq	%r15d, %r15
	imull	%r9d, %edx
	movq	%r15, %xmm1
	imull	%r10d, %edi
	movl	%eax, %r15d
	imull	%r8d, %r15d
	punpcklqdq	%xmm1, %xmm0
	imull	%r11d, %eax
	movups	%xmm0, 88(%rsp)
	addl	%r15d, %edx
	movl	%r10d, %r15d
	imull	%esi, %r15d
	imull	%r9d, %esi
	subl	%r15d, %edx
	movl	%r11d, %r15d
	imull	%ecx, %r15d
	imull	%r8d, %ecx
	addl	%r15d, %edx
	movq	%rbx, %r15
	movslq	%edx, %rdx
	movq	%rdx, 104(%rsp)
	movl	%eax, %edx
	xorl	%eax, %eax
	subl	%edi, %edx
	movl	$1, %edi
	subl	%esi, %edx
	movq	%r14, %rsi
	subl	%ecx, %edx
	movslq	%edx, %rdx
	call	__printf_chk@PLT
.L7:
	movl	$32, %edi
	addq	$8, %r15
	call	putchar@PLT
	movq	(%r15), %rdx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	cmpq	%r15, 8(%rsp)
	jne	.L7
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 44(%rsp)
	jg	.L3
	jmp	.L4
.L2:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$136, %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
.L19:
	.cfi_restore_state
	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){
	while(1){
		int n, i, j;
		int a[4], b[4];
		long c[4];
		
		scanf(" %d", &n);
		if(n==0) break;

		for(i=0; i<n; i++){
			for(j=0; j<4; j++)
				scanf(" %d", &a[j]);
			for(j=0; j<4; j++)
				scanf(" %d", &b[j]);
			
			c[0] = a[0]*b[0] - a[1]*b[1] - a[2]*b[2] - a[3]*b[3];
			c[1] = a[0]*b[1] + a[1]*b[0] + a[2]*b[3] - a[3]*b[2];
			c[2] = a[0]*b[2] - a[1]*b[3] + a[2]*b[0] + a[3]*b[1];
			c[3] = a[0]*b[3] + a[1]*b[2] - a[2]*b[1] +a[3]*b[0];
				
			for(j=0; j<4; j++) {
				printf("%ld", c[j]);
				if(j<3) printf(" ");	
			}
			printf("\n");
		
		}

	}

	return 0;
}
2
1 2 3 4 7 6 7 8
5 6 4 8 3 2 3 4
0
 2
1 2 3 4 7 6 14 8
5 6 4 8 3 2 3 4
0
 2
1 3 3 4 7 6 14 8
5 6 4 8 3 2 3 4
0
 2
1 3 3 4 7 6 14 8
5 11 4 8 3 2 3 4
0
 2
1 3 3 7 7 6 14 8
5 11 4 8 3 2 3 4
0
 2
1 3 3 7 7 6 14 8
5 11 4 5 3 2 3 4
0
 2
1 3 3 7 7 6 14 8
5 11 7 5 3 2 3 4
0
 2
1 3 3 7 7 6 14 8
5 11 7 5 3 2 3 6
0
 2
1 1 3 7 7 6 14 8
5 11 7 5 3 2 3 6
0
 2
1 1 3 7 7 6 14 8
5 4 7 5 3 2 3 6
0

-58 16 36 32
-41 20 19 54
 -79 -12 43 46
-41 20 19 54
 -85 -5 35 60
-41 20 19 54
 -85 -5 35 60
-51 35 -1 69
 -109 -47 53 81
-51 35 -1 69
 -109 -47 53 81
-39 44 -7 60
 -109 -47 53 81
-48 56 2 54
 -109 -47 53 81
-58 70 -20 64
 -97 -61 69 53
-58 70 -20 64
 -97 -61 69 53
-44 49 22 43

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){
	while(1){
		int n, i, j;
		int a[4], b[4];
		long c[4];
		
		scanf(" %d", &n);
		if(n==0) break;

		for(i=0; i<n; i++){
			for(j=0; j<4; j++)
				scanf(" %d", &a[j]);
			for(j=0; j<4; j++)
				scanf(" %d", &b[j]);
			
			c[0] = a[0]*b[0] - a[1]*b[1] - a[2]*b[2] - a[3]*b[3];
			c[1] = a[0]*b[1] + a[1]*b[0] + a[2]*b[3] - a[3]*b[2];
			c[2] = a[0]*b[2] - a[1]*b[3] + a[2]*b[0] + a[3]*b[1];
			c[3] = a[0]*b[3] + a[1]*b[2] - a[2]*b[1] +a[3]*b[0];
				
			for(j=0; j<4; j++) {
				printf("%ld", c[j]);
				if(j<3) printf(" ");	
			}
			printf("\n");
		
		}

	}

	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	" %d"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -88(%rbp)
	jmp	.L4
.L12:
	movl	$0, -84(%rbp)
	jmp	.L5
.L6:
	leaq	-80(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L5:
	cmpl	$3, -84(%rbp)
	jle	.L6
	movl	$0, -84(%rbp)
	jmp	.L7
.L8:
	leaq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L7:
	cmpl	$3, -84(%rbp)
	jle	.L8
	movl	-80(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -48(%rbp)
	movl	-80(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -40(%rbp)
	movl	-80(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-52(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-80(%rbp), %edx
	movl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	movq	-48(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$2, -84(%rbp)
	jg	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	addl	$1, -84(%rbp)
.L9:
	cmpl	$3, -84(%rbp)
	jle	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L4:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L12
	jmp	.L13
.L15:
	call	__stack_chk_fail@PLT
.L14:
	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"
.LC1:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	leaq	-92(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	testl	%eax, %eax
	jne	.L2
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L15
.L2:
	movl	$0, -88(%rbp)
	jmp	.L4
.L12:
	movl	$0, -84(%rbp)
	jmp	.L5
.L6:
	leaq	-80(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L5:
	cmpl	$3, -84(%rbp)
	jle	.L6
	movl	$0, -84(%rbp)
	jmp	.L7
.L8:
	leaq	-64(%rbp), %rdx
	movl	-84(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L7:
	cmpl	$3, -84(%rbp)
	jle	.L8
	movl	-80(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-60(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -48(%rbp)
	movl	-80(%rbp), %edx
	movl	-60(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-52(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%eax, %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, -40(%rbp)
	movl	-80(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	movl	-76(%rbp), %ecx
	movl	-52(%rbp), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -32(%rbp)
	movl	-80(%rbp), %edx
	movl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-76(%rbp), %edx
	movl	-56(%rbp), %eax
	imull	%edx, %eax
	addl	%eax, %ecx
	movl	-72(%rbp), %edx
	movl	-60(%rbp), %eax
	imull	%edx, %eax
	subl	%eax, %ecx
	movl	-68(%rbp), %edx
	movl	-64(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L9
.L11:
	movl	-84(%rbp), %eax
	cltq
	movq	-48(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$2, -84(%rbp)
	jg	.L10
	movl	$32, %edi
	call	putchar@PLT
.L10:
	addl	$1, -84(%rbp)
.L9:
	cmpl	$3, -84(%rbp)
	jle	.L11
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L4:
	movl	-92(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jl	.L12
	jmp	.L13
.L15:
	call	__stack_chk_fail@PLT
.L14:
	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:
