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 n,a[4],b[4],i,j;
  const int k[4][4]={
    { 1, 2, 3, 4},
    { 2,-1, 4,-3},
    { 3,-4,-1, 2},
    { 4, 3,-2,-1}
  };
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    for(i=0;i<n;i++){
      int c[4]={0};
      for(j=0;j<4;j++)scanf("%d",&a[j]); 
      for(j=0;j<4;j++)scanf("%d",&b[j]);
      for(j=0;j<16;j++){
	if(k[j/4][j%4]>0)c[k[j/4][j%4]-1]+=a[j/4]*b[j%4];
	else        c[-1*(k[j/4][j%4]+1)]-=a[j/4]*b[j%4];
      }
      printf("%d %d %d %d\n",c[0],c[1],c[2],c[3]);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -80(%rbp)
	movl	$2, -76(%rbp)
	movl	$3, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$2, -64(%rbp)
	movl	$-1, -60(%rbp)
	movl	$4, -56(%rbp)
	movl	$-3, -52(%rbp)
	movl	$3, -48(%rbp)
	movl	$-4, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$2, -36(%rbp)
	movl	$4, -32(%rbp)
	movl	$3, -28(%rbp)
	movl	$-2, -24(%rbp)
	movl	$-1, -20(%rbp)
.L14:
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -136(%rbp)
	jmp	.L4
.L13:
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L5
.L6:
	leaq	-128(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L5:
	cmpl	$3, -132(%rbp)
	jle	.L6
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	leaq	-112(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L7:
	cmpl	$3, -132(%rbp)
	jle	.L8
	movl	$0, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L10
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	leal	(%rsi,%rcx), %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %ecx
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$30, %esi
	addl	%esi, %eax
	andl	$3, %eax
	subl	%esi, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	subl	%esi, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
.L11:
	addl	$1, -132(%rbp)
.L9:
	cmpl	$15, -132(%rbp)
	jle	.L12
	movl	-84(%rbp), %esi
	movl	-88(%rbp), %ecx
	movl	-92(%rbp), %edx
	movl	-96(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -136(%rbp)
.L4:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L13
	jmp	.L14
.L18:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%d %d %d %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
	leaq	.LC0(%rip), %r14
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L7:
	movq	24(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L7
	leaq	48(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	64(%rsp), %r13
	movq	%rax, 16(%rsp)
	leaq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rbx
.L4:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L4
	movq	%r13, %rbx
.L5:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L5
	movl	48(%rsp), %eax
	movl	72(%rsp), %ecx
	addl	$1, %ebp
	movl	76(%rsp), %ebx
	movl	52(%rsp), %edx
	movl	%eax, %r10d
	movl	%ecx, %esi
	movl	68(%rsp), %r8d
	movl	56(%rsp), %edi
	imull	%edx, %esi
	movl	64(%rsp), %r9d
	movl	60(%rsp), %r11d
	movl	%ebx, %r15d
	imull	%ebx, %r10d
	imull	%edx, %r15d
	addl	%esi, %r10d
	movl	%r8d, %esi
	imull	%edi, %esi
	subl	%esi, %r10d
	movl	%r9d, %esi
	imull	%r11d, %esi
	movl	%r10d, 4(%rsp)
	movl	%eax, %r10d
	imull	%r8d, %r10d
	movl	%esi, 8(%rsp)
	movl	%eax, %esi
	imull	%r9d, %eax
	imull	%ecx, %esi
	subl	%r15d, %esi
	movl	%r9d, %r15d
	imull	%edi, %r15d
	addl	%r15d, %esi
	movl	%r8d, %r15d
	imull	%r11d, %r15d
	movl	%r15d, 12(%rsp)
	movl	%r9d, %r15d
	imull	%edx, %r15d
	imull	%r8d, %edx
	addl	%r10d, %r15d
	movl	%ebx, %r10d
	imull	%edi, %r10d
	subl	%edx, %eax
	imull	%r11d, %ebx
	addl	%r15d, %r10d
	movl	%ecx, %r15d
	imull	%edi, %ecx
	movl	$1, %edi
	imull	%r11d, %r15d
	subl	%ecx, %eax
	movl	8(%rsp), %ecx
	subl	%r15d, %r10d
	movl	%eax, %edx
	movl	12(%rsp), %r15d
	movl	4(%rsp), %eax
	subl	%ebx, %edx
	leal	(%rax,%rcx), %r9d
	leal	(%rsi,%r15), %r8d
	movl	%r10d, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	%ebp, 44(%rsp)
	jg	.L6
	jmp	.L7
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$104, %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
.L14:
	.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	"%d %d %d %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
	leaq	.LC0(%rip), %r14
	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	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rax
	movq	%rax, 24(%rsp)
.L7:
	movq	24(%rsp), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	jle	.L7
	leaq	48(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	64(%rsp), %r13
	movq	%rax, 16(%rsp)
	leaq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	16(%rsp), %rbx
.L4:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r13, %rbx
	jne	.L4
	movq	%r13, %rbx
.L5:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r12
	jne	.L5
	movl	48(%rsp), %eax
	movl	72(%rsp), %ecx
	addl	$1, %ebp
	movl	76(%rsp), %ebx
	movl	52(%rsp), %edx
	movl	%eax, %r10d
	movl	%ecx, %esi
	movl	68(%rsp), %r8d
	movl	56(%rsp), %edi
	imull	%edx, %esi
	movl	64(%rsp), %r9d
	movl	60(%rsp), %r11d
	movl	%ebx, %r15d
	imull	%ebx, %r10d
	imull	%edx, %r15d
	addl	%esi, %r10d
	movl	%r8d, %esi
	imull	%edi, %esi
	subl	%esi, %r10d
	movl	%r9d, %esi
	imull	%r11d, %esi
	movl	%r10d, 4(%rsp)
	movl	%eax, %r10d
	imull	%r8d, %r10d
	movl	%esi, 8(%rsp)
	movl	%eax, %esi
	imull	%r9d, %eax
	imull	%ecx, %esi
	subl	%r15d, %esi
	movl	%r9d, %r15d
	imull	%edi, %r15d
	addl	%r15d, %esi
	movl	%r8d, %r15d
	imull	%r11d, %r15d
	movl	%r15d, 12(%rsp)
	movl	%r9d, %r15d
	imull	%edx, %r15d
	imull	%r8d, %edx
	addl	%r10d, %r15d
	movl	%ebx, %r10d
	imull	%edi, %r10d
	subl	%edx, %eax
	imull	%r11d, %ebx
	addl	%r15d, %r10d
	movl	%ecx, %r15d
	imull	%edi, %ecx
	movl	$1, %edi
	imull	%r11d, %r15d
	subl	%ecx, %eax
	movl	8(%rsp), %ecx
	subl	%r15d, %r10d
	movl	%eax, %edx
	movl	12(%rsp), %r15d
	movl	4(%rsp), %eax
	subl	%ebx, %edx
	leal	(%rax,%rcx), %r9d
	leal	(%rsi,%r15), %r8d
	movl	%r10d, %ecx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	cmpl	%ebp, 44(%rsp)
	jg	.L6
	jmp	.L7
.L2:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$104, %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
.L14:
	.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(){
  int n,a[4],b[4],i,j;
  const int k[4][4]={
    { 1, 2, 3, 4},
    { 2,-1, 4,-3},
    { 3,-4,-1, 2},
    { 4, 3,-2,-1}
  };
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    for(i=0;i<n;i++){
      int c[4]={0};
      for(j=0;j<4;j++)scanf("%d",&a[j]); 
      for(j=0;j<4;j++)scanf("%d",&b[j]);
      for(j=0;j<16;j++){
	if(k[j/4][j%4]>0)c[k[j/4][j%4]-1]+=a[j/4]*b[j%4];
	else        c[-1*(k[j/4][j%4]+1)]-=a[j/4]*b[j%4];
      }
      printf("%d %d %d %d\n",c[0],c[1],c[2],c[3]);
    }
  }
  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(){
  int n,a[4],b[4],i,j;
  const int k[4][4]={
    { 1, 2, 3, 4},
    { 2,-1, 4,-3},
    { 3,-4,-1, 2},
    { 4, 3,-2,-1}
  };
  while(1){
    scanf("%d",&n);
    if(n==0)break;
    for(i=0;i<n;i++){
      int c[4]={0};
      for(j=0;j<4;j++)scanf("%d",&a[j]); 
      for(j=0;j<4;j++)scanf("%d",&b[j]);
      for(j=0;j<16;j++){
	if(k[j/4][j%4]>0)c[k[j/4][j%4]-1]+=a[j/4]*b[j%4];
	else        c[-1*(k[j/4][j%4]+1)]-=a[j/4]*b[j%4];
      }
      printf("%d %d %d %d\n",c[0],c[1],c[2],c[3]);
    }
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d %d %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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -80(%rbp)
	movl	$2, -76(%rbp)
	movl	$3, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$2, -64(%rbp)
	movl	$-1, -60(%rbp)
	movl	$4, -56(%rbp)
	movl	$-3, -52(%rbp)
	movl	$3, -48(%rbp)
	movl	$-4, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$2, -36(%rbp)
	movl	$4, -32(%rbp)
	movl	$3, -28(%rbp)
	movl	$-2, -24(%rbp)
	movl	$-1, -20(%rbp)
.L14:
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -136(%rbp)
	jmp	.L4
.L13:
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L5
.L6:
	leaq	-128(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L5:
	cmpl	$3, -132(%rbp)
	jle	.L6
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	leaq	-112(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L7:
	cmpl	$3, -132(%rbp)
	jle	.L8
	movl	$0, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L10
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	leal	(%rsi,%rcx), %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %ecx
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$30, %esi
	addl	%esi, %eax
	andl	$3, %eax
	subl	%esi, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	subl	%esi, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
.L11:
	addl	$1, -132(%rbp)
.L9:
	cmpl	$15, -132(%rbp)
	jle	.L12
	movl	-84(%rbp), %esi
	movl	-88(%rbp), %ecx
	movl	-92(%rbp), %edx
	movl	-96(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -136(%rbp)
.L4:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L13
	jmp	.L14
.L18:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%d %d %d %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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -80(%rbp)
	movl	$2, -76(%rbp)
	movl	$3, -72(%rbp)
	movl	$4, -68(%rbp)
	movl	$2, -64(%rbp)
	movl	$-1, -60(%rbp)
	movl	$4, -56(%rbp)
	movl	$-3, -52(%rbp)
	movl	$3, -48(%rbp)
	movl	$-4, -44(%rbp)
	movl	$-1, -40(%rbp)
	movl	$2, -36(%rbp)
	movl	$4, -32(%rbp)
	movl	$3, -28(%rbp)
	movl	$-2, -24(%rbp)
	movl	$-1, -20(%rbp)
.L14:
	leaq	-140(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-140(%rbp), %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -136(%rbp)
	jmp	.L4
.L13:
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movl	$0, -132(%rbp)
	jmp	.L5
.L6:
	leaq	-128(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L5:
	cmpl	$3, -132(%rbp)
	jle	.L6
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	leaq	-112(%rbp), %rdx
	movl	-132(%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, -132(%rbp)
.L7:
	cmpl	$3, -132(%rbp)
	jle	.L8
	movl	$0, -132(%rbp)
	jmp	.L9
.L12:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jle	.L10
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	subl	$1, %eax
	leal	(%rsi,%rcx), %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	jmp	.L11
.L10:
	movl	-132(%rbp), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovs	%edx, %eax
	sarl	$2, %eax
	movl	%eax, %ecx
	movl	-132(%rbp), %eax
	cltd
	shrl	$30, %edx
	addl	%edx, %eax
	andl	$3, %eax
	subl	%edx, %eax
	movslq	%eax, %rdx
	movslq	%ecx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	cltq
	movl	-96(%rbp,%rax,4), %edx
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	cltq
	movl	-128(%rbp,%rax,4), %ecx
	movl	-132(%rbp), %eax
	movl	%eax, %esi
	sarl	$31, %esi
	shrl	$30, %esi
	addl	%esi, %eax
	andl	$3, %eax
	subl	%esi, %eax
	cltq
	movl	-112(%rbp,%rax,4), %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-132(%rbp), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, %edi
	movl	-132(%rbp), %eax
	movl	%eax, %ecx
	sarl	$31, %ecx
	shrl	$30, %ecx
	addl	%ecx, %eax
	andl	$3, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edi, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	movl	-80(%rbp,%rax,4), %eax
	notl	%eax
	subl	%esi, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
.L11:
	addl	$1, -132(%rbp)
.L9:
	cmpl	$15, -132(%rbp)
	jle	.L12
	movl	-84(%rbp), %esi
	movl	-88(%rbp), %ecx
	movl	-92(%rbp), %edx
	movl	-96(%rbp), %eax
	movl	%esi, %r8d
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -136(%rbp)
.L4:
	movl	-140(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L13
	jmp	.L14
.L18:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
