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

```c
#include <stdio.h>
int main(void) {
    int num,i,x1,x2,y1,y2,z1,z2,w1,w2;
    while (scanf("%d",&num)!=EOF&&num!=0) {
        for (i=0; i<num; i++) {
            scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&z1,&w1,&x2,&y2,&z2,&w2);
            printf("%d %d %d %d\n",x1*x2-y1*y2-z1*z2-w1*w2,x1*y2+y1*x2+z1*w2-w1*z2,x1*z2+z1*x2-y1*w2+w1*y2,x1*w2+w1*x2+y1*z2-z1*y2);
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d%d%d"
.LC1:
	.string	"%d %d %d %d\n"
.LC2:
	.string	"%d"
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L4
	movl	84(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	jle	.L2
	leaq	104(%rsp), %rax
	xorl	%ebx, %ebx
	movq	%rax, 48(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	116(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 200
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 208
	pushq	24(%rsp)
	.cfi_def_cfa_offset 216
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	88(%rsp), %r9
	movq	96(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	120(%rsp), %eax
	movl	124(%rsp), %edx
	movl	144(%rsp), %r11d
	movl	148(%rsp), %ecx
	movl	%eax, %r8d
	movl	140(%rsp), %ebp
	movl	%eax, %r10d
	movl	%edx, %r15d
	movl	%r11d, %r9d
	imull	%ecx, %r8d
	movl	128(%rsp), %r12d
	movl	136(%rsp), %esi
	imull	%edx, %r9d
	movl	132(%rsp), %edi
	movl	%r11d, %r13d
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	imull	%ebp, %r10d
	movl	%esi, %r14d
	imull	%r12d, %r15d
	addl	%r8d, %r9d
	imull	%edi, %r14d
	movl	%r12d, %r8d
	imull	%ebp, %r8d
	imull	%edi, %r13d
	addl	%r8d, %r9d
	movl	%edx, %r8d
	imull	%esi, %r8d
	subl	%r14d, %r9d
	addl	%r10d, %r8d
	movl	%ecx, %r10d
	imull	%r12d, %r10d
	subl	%r10d, %r8d
	movl	%eax, %r10d
	imull	%edi, %r10d
	addl	%r13d, %r8d
	imull	%edx, %eax
	imull	%r12d, %edi
	addl	%r10d, %r15d
	movl	%ecx, %r10d
	imull	%esi, %r10d
	imull	%ebp, %esi
	subl	%edi, %eax
	movl	$1, %edi
	imull	%r11d, %ecx
	addl	%r15d, %r10d
	movl	%r11d, %r15d
	imull	%ebp, %r15d
	subl	%esi, %eax
	leaq	.LC1(%rip), %rsi
	subl	%ecx, %eax
	movl	%eax, %edx
	subl	%r15d, %r10d
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	%r10d, %ecx
	call	__printf_chk@PLT
	cmpl	%ebx, 84(%rsp)
	jg	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	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
.L17:
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d%d%d"
.LC1:
	.string	"%d %d %d %d\n"
.LC2:
	.string	"%d"
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L4
	movl	84(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	jle	.L2
	leaq	104(%rsp), %rax
	xorl	%ebx, %ebx
	movq	%rax, 48(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	116(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 200
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 208
	pushq	24(%rsp)
	.cfi_def_cfa_offset 216
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	88(%rsp), %r9
	movq	96(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	120(%rsp), %eax
	movl	124(%rsp), %edx
	movl	144(%rsp), %r11d
	movl	148(%rsp), %ecx
	movl	%eax, %r8d
	movl	140(%rsp), %ebp
	movl	%eax, %r10d
	movl	%edx, %r15d
	movl	%r11d, %r9d
	imull	%ecx, %r8d
	movl	128(%rsp), %r12d
	movl	136(%rsp), %esi
	imull	%edx, %r9d
	movl	132(%rsp), %edi
	movl	%r11d, %r13d
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	imull	%ebp, %r10d
	movl	%esi, %r14d
	imull	%r12d, %r15d
	addl	%r8d, %r9d
	imull	%edi, %r14d
	movl	%r12d, %r8d
	imull	%ebp, %r8d
	imull	%edi, %r13d
	addl	%r8d, %r9d
	movl	%edx, %r8d
	imull	%esi, %r8d
	subl	%r14d, %r9d
	addl	%r10d, %r8d
	movl	%ecx, %r10d
	imull	%r12d, %r10d
	subl	%r10d, %r8d
	movl	%eax, %r10d
	imull	%edi, %r10d
	addl	%r13d, %r8d
	imull	%edx, %eax
	imull	%r12d, %edi
	addl	%r10d, %r15d
	movl	%ecx, %r10d
	imull	%esi, %r10d
	imull	%ebp, %esi
	subl	%edi, %eax
	movl	$1, %edi
	imull	%r11d, %ecx
	addl	%r15d, %r10d
	movl	%r11d, %r15d
	imull	%ebp, %r15d
	subl	%esi, %eax
	leaq	.LC1(%rip), %rsi
	subl	%ecx, %eax
	movl	%eax, %edx
	subl	%r15d, %r10d
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	%r10d, %ecx
	call	__printf_chk@PLT
	cmpl	%ebx, 84(%rsp)
	jg	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	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
.L17:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d%d%d"
.LC1:
	.string	"%d %d %d %d\n"
.LC2:
	.string	"%d"
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L4
	movl	84(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	jle	.L2
	leaq	104(%rsp), %rax
	xorl	%ebx, %ebx
	movq	%rax, 48(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	116(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 200
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 208
	pushq	24(%rsp)
	.cfi_def_cfa_offset 216
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	88(%rsp), %r9
	movq	96(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	120(%rsp), %eax
	movl	124(%rsp), %edx
	movl	144(%rsp), %r11d
	movl	148(%rsp), %ecx
	movl	%eax, %r8d
	movl	140(%rsp), %ebp
	movl	%eax, %r10d
	movl	%edx, %r15d
	movl	%r11d, %r9d
	imull	%ecx, %r8d
	movl	128(%rsp), %r12d
	movl	136(%rsp), %esi
	imull	%edx, %r9d
	movl	132(%rsp), %edi
	movl	%r11d, %r13d
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	imull	%ebp, %r10d
	movl	%esi, %r14d
	imull	%r12d, %r15d
	addl	%r8d, %r9d
	imull	%edi, %r14d
	movl	%r12d, %r8d
	imull	%ebp, %r8d
	imull	%edi, %r13d
	addl	%r8d, %r9d
	movl	%edx, %r8d
	imull	%esi, %r8d
	subl	%r14d, %r9d
	addl	%r10d, %r8d
	movl	%ecx, %r10d
	imull	%r12d, %r10d
	subl	%r10d, %r8d
	movl	%eax, %r10d
	imull	%edi, %r10d
	addl	%r13d, %r8d
	imull	%edx, %eax
	imull	%r12d, %edi
	addl	%r10d, %r15d
	movl	%ecx, %r10d
	imull	%esi, %r10d
	imull	%ebp, %esi
	subl	%edi, %eax
	movl	$1, %edi
	imull	%r11d, %ecx
	addl	%r15d, %r10d
	movl	%r11d, %r15d
	imull	%ebp, %r15d
	subl	%esi, %eax
	leaq	.LC1(%rip), %rsi
	subl	%ecx, %eax
	movl	%eax, %edx
	subl	%r15d, %r10d
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	%r10d, %ecx
	call	__printf_chk@PLT
	cmpl	%ebx, 84(%rsp)
	jg	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	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
.L17:
	.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:
```
```c
#include <stdio.h>
int main(void) {
    int num,i,x1,x2,y1,y2,z1,z2,w1,w2;
    while (scanf("%d",&num)!=EOF&&num!=0) {
        for (i=0; i<num; i++) {
            scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&z1,&w1,&x2,&y2,&z2,&w2);
            printf("%d %d %d %d\n",x1*x2-y1*y2-z1*z2-w1*w2,x1*y2+y1*x2+z1*w2-w1*z2,x1*z2+z1*x2-y1*w2+w1*y2,x1*w2+w1*x2+y1*z2-z1*y2);
        }
    }
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void) {
    int num,i,x1,x2,y1,y2,z1,z2,w1,w2;
    while (scanf("%d",&num)!=EOF&&num!=0) {
        for (i=0; i<num; i++) {
            scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&z1,&w1,&x2,&y2,&z2,&w2);
            printf("%d %d %d %d\n",x1*x2-y1*y2-z1*z2-w1*w2,x1*y2+y1*x2+z1*w2-w1*z2,x1*z2+z1*x2-y1*w2+w1*y2,x1*w2+w1*x2+y1*z2-z1*y2);
        }
    }
    return 0;
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void) {
    int num,i,x1,x2,y1,y2,z1,z2,w1,w2;
    while (scanf("%d",&num)!=EOF&&num!=0) {
        for (i=0; i<num; i++) {
            scanf("%d%d%d%d%d%d%d%d",&x1,&y1,&z1,&w1,&x2,&y2,&z2,&w2);
            printf("%d %d %d %d\n",x1*x2-y1*y2-z1*z2-w1*w2,x1*y2+y1*x2+z1*w2-w1*z2,x1*z2+z1*x2-y1*w2+w1*y2,x1*w2+w1*x2+y1*z2-z1*y2);
        }
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d%d%d"
.LC1:
	.string	"%d %d %d %d\n"
.LC2:
	.string	"%d"
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L4
	movl	84(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	jle	.L2
	leaq	104(%rsp), %rax
	xorl	%ebx, %ebx
	movq	%rax, 48(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	116(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 200
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 208
	pushq	24(%rsp)
	.cfi_def_cfa_offset 216
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	88(%rsp), %r9
	movq	96(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	120(%rsp), %eax
	movl	124(%rsp), %edx
	movl	144(%rsp), %r11d
	movl	148(%rsp), %ecx
	movl	%eax, %r8d
	movl	140(%rsp), %ebp
	movl	%eax, %r10d
	movl	%edx, %r15d
	movl	%r11d, %r9d
	imull	%ecx, %r8d
	movl	128(%rsp), %r12d
	movl	136(%rsp), %esi
	imull	%edx, %r9d
	movl	132(%rsp), %edi
	movl	%r11d, %r13d
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	imull	%ebp, %r10d
	movl	%esi, %r14d
	imull	%r12d, %r15d
	addl	%r8d, %r9d
	imull	%edi, %r14d
	movl	%r12d, %r8d
	imull	%ebp, %r8d
	imull	%edi, %r13d
	addl	%r8d, %r9d
	movl	%edx, %r8d
	imull	%esi, %r8d
	subl	%r14d, %r9d
	addl	%r10d, %r8d
	movl	%ecx, %r10d
	imull	%r12d, %r10d
	subl	%r10d, %r8d
	movl	%eax, %r10d
	imull	%edi, %r10d
	addl	%r13d, %r8d
	imull	%edx, %eax
	imull	%r12d, %edi
	addl	%r10d, %r15d
	movl	%ecx, %r10d
	imull	%esi, %r10d
	imull	%ebp, %esi
	subl	%edi, %eax
	movl	$1, %edi
	imull	%r11d, %ecx
	addl	%r15d, %r10d
	movl	%r11d, %r15d
	imull	%ebp, %r15d
	subl	%esi, %eax
	leaq	.LC1(%rip), %rsi
	subl	%ecx, %eax
	movl	%eax, %edx
	subl	%r15d, %r10d
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	%r10d, %ecx
	call	__printf_chk@PLT
	cmpl	%ebx, 84(%rsp)
	jg	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	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
.L17:
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d%d%d"
.LC1:
	.string	"%d %d %d %d\n"
.LC2:
	.string	"%d"
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	84(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	92(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rsi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L4
	movl	84(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	jle	.L2
	leaq	104(%rsp), %rax
	xorl	%ebx, %ebx
	movq	%rax, 48(%rsp)
	leaq	96(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	88(%rsp), %rax
	movq	%rax, 24(%rsp)
	leaq	116(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	100(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	subq	$8, %rsp
	.cfi_def_cfa_offset 200
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	24(%rsp)
	.cfi_def_cfa_offset 208
	pushq	24(%rsp)
	.cfi_def_cfa_offset 216
	pushq	64(%rsp)
	.cfi_def_cfa_offset 224
	movq	88(%rsp), %r9
	movq	96(%rsp), %r8
	movq	80(%rsp), %rcx
	movq	64(%rsp), %rdx
	movq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	120(%rsp), %eax
	movl	124(%rsp), %edx
	movl	144(%rsp), %r11d
	movl	148(%rsp), %ecx
	movl	%eax, %r8d
	movl	140(%rsp), %ebp
	movl	%eax, %r10d
	movl	%edx, %r15d
	movl	%r11d, %r9d
	imull	%ecx, %r8d
	movl	128(%rsp), %r12d
	movl	136(%rsp), %esi
	imull	%edx, %r9d
	movl	132(%rsp), %edi
	movl	%r11d, %r13d
	addq	$32, %rsp
	.cfi_def_cfa_offset 192
	imull	%ebp, %r10d
	movl	%esi, %r14d
	imull	%r12d, %r15d
	addl	%r8d, %r9d
	imull	%edi, %r14d
	movl	%r12d, %r8d
	imull	%ebp, %r8d
	imull	%edi, %r13d
	addl	%r8d, %r9d
	movl	%edx, %r8d
	imull	%esi, %r8d
	subl	%r14d, %r9d
	addl	%r10d, %r8d
	movl	%ecx, %r10d
	imull	%r12d, %r10d
	subl	%r10d, %r8d
	movl	%eax, %r10d
	imull	%edi, %r10d
	addl	%r13d, %r8d
	imull	%edx, %eax
	imull	%r12d, %edi
	addl	%r10d, %r15d
	movl	%ecx, %r10d
	imull	%esi, %r10d
	imull	%ebp, %esi
	subl	%edi, %eax
	movl	$1, %edi
	imull	%r11d, %ecx
	addl	%r15d, %r10d
	movl	%r11d, %r15d
	imull	%ebp, %r15d
	subl	%esi, %eax
	leaq	.LC1(%rip), %rsi
	subl	%ecx, %eax
	movl	%eax, %edx
	subl	%r15d, %r10d
	xorl	%eax, %eax
	addl	$1, %ebx
	movl	%r10d, %ecx
	call	__printf_chk@PLT
	cmpl	%ebx, 84(%rsp)
	jg	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	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
.L17:
	.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:
```