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>
#define rep(i,n)for(int i=0;i<(int)(n);i++)
int main(){
    int n,m,x,c[12]={0},a[12][12]={0},y,z[12],b,d=2e9;
    scanf("%d%d%d",&n,&m,&x);
    rep(i,n){
    scanf("%d",&c[i]);
        rep(j,m){
            scanf("%d",&a[i][j]);
        }
    }
    rep(i,2){rep(j,2){rep(k,2){rep(l,2){rep(o,2){rep(p,2){rep(q,2){rep(r,2){rep(s,2){rep(t,2){rep(u,2){rep(v,2){
        y=i*c[0]+j*c[1]+k*c[2]+l*c[3]+o*c[4]+p*c[5]+q*c[6]+r*c[7]+s*c[8]+t*c[9]+u*c[10]+v*c[11];
        for(b=0;b<m;b++){
            z[b]=i*a[0][b]+j*a[1][b]+k*a[2][b]+l*a[3][b]+o*a[4][b]+p*a[5][b]+q*a[6][b]+r*a[7][b]+s*a[8][b]+t*a[9][b]+u*a[10][b]+v*a[11][b];
            if(z[b]<x)break;
        }
        if(b==m&&y<d)d = y;
    }}}}}}}}}}}}
    if(d==(int)2e9)puts("-1");
    else printf("%d",d);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
	.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	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -688(%rbp)
	movq	$0, -680(%rbp)
	movq	$0, -672(%rbp)
	movq	$0, -664(%rbp)
	movq	$0, -656(%rbp)
	movq	$0, -648(%rbp)
	leaq	-592(%rbp), %rdx
	movl	$0, %eax
	movl	$72, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2000000000, -752(%rbp)
	leaq	-760(%rbp), %rcx
	leaq	-764(%rbp), %rdx
	leaq	-768(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -748(%rbp)
	jmp	.L2
.L5:
	leaq	-688(%rbp), %rdx
	movl	-748(%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
	movl	$0, -744(%rbp)
	jmp	.L3
.L4:
	leaq	-592(%rbp), %rcx
	movl	-744(%rbp), %eax
	movslq	%eax, %rsi
	movl	-748(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	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, -744(%rbp)
.L3:
	movl	-764(%rbp), %eax
	cmpl	%eax, -744(%rbp)
	jl	.L4
	addl	$1, -748(%rbp)
.L2:
	movl	-768(%rbp), %eax
	cmpl	%eax, -748(%rbp)
	jl	.L5
	movl	$0, -740(%rbp)
	jmp	.L6
.L34:
	movl	$0, -736(%rbp)
	jmp	.L7
.L33:
	movl	$0, -732(%rbp)
	jmp	.L8
.L32:
	movl	$0, -728(%rbp)
	jmp	.L9
.L31:
	movl	$0, -724(%rbp)
	jmp	.L10
.L30:
	movl	$0, -720(%rbp)
	jmp	.L11
.L29:
	movl	$0, -716(%rbp)
	jmp	.L12
.L28:
	movl	$0, -712(%rbp)
	jmp	.L13
.L27:
	movl	$0, -708(%rbp)
	jmp	.L14
.L26:
	movl	$0, -704(%rbp)
	jmp	.L15
.L25:
	movl	$0, -700(%rbp)
	jmp	.L16
.L24:
	movl	$0, -696(%rbp)
	jmp	.L17
.L23:
	movl	-688(%rbp), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-684(%rbp), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-680(%rbp), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-676(%rbp), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-672(%rbp), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-668(%rbp), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-664(%rbp), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-660(%rbp), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-656(%rbp), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-652(%rbp), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-648(%rbp), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-644(%rbp), %eax
	imull	-696(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -692(%rbp)
	movl	$0, -756(%rbp)
	jmp	.L18
.L21:
	movl	-756(%rbp), %eax
	cltq
	movl	-592(%rbp,%rax,4), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$12, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$24, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$36, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$48, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$60, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$72, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$84, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$96, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$108, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$120, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$132, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-696(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	movl	%edx, -640(%rbp,%rax,4)
	movl	-756(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %edx
	movl	-760(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L39
	addl	$1, -756(%rbp)
.L18:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jl	.L21
	jmp	.L20
.L39:
	nop
.L20:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jne	.L22
	movl	-692(%rbp), %eax
	cmpl	-752(%rbp), %eax
	jge	.L22
	movl	-692(%rbp), %eax
	movl	%eax, -752(%rbp)
.L22:
	addl	$1, -696(%rbp)
.L17:
	cmpl	$1, -696(%rbp)
	jle	.L23
	addl	$1, -700(%rbp)
.L16:
	cmpl	$1, -700(%rbp)
	jle	.L24
	addl	$1, -704(%rbp)
.L15:
	cmpl	$1, -704(%rbp)
	jle	.L25
	addl	$1, -708(%rbp)
.L14:
	cmpl	$1, -708(%rbp)
	jle	.L26
	addl	$1, -712(%rbp)
.L13:
	cmpl	$1, -712(%rbp)
	jle	.L27
	addl	$1, -716(%rbp)
.L12:
	cmpl	$1, -716(%rbp)
	jle	.L28
	addl	$1, -720(%rbp)
.L11:
	cmpl	$1, -720(%rbp)
	jle	.L29
	addl	$1, -724(%rbp)
.L10:
	cmpl	$1, -724(%rbp)
	jle	.L30
	addl	$1, -728(%rbp)
.L9:
	cmpl	$1, -728(%rbp)
	jle	.L31
	addl	$1, -732(%rbp)
.L8:
	cmpl	$1, -732(%rbp)
	jle	.L32
	addl	$1, -736(%rbp)
.L7:
	cmpl	$1, -736(%rbp)
	jle	.L33
	addl	$1, -740(%rbp)
.L6:
	cmpl	$1, -740(%rbp)
	jle	.L34
	cmpl	$2000000000, -752(%rbp)
	jne	.L35
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L36
.L35:
	movl	-752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L36:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
	.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
	movl	$72, %ecx
	pxor	%xmm0, %xmm0
	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	$792, %rsp
	.cfi_def_cfa_offset 848
	movq	%fs:40, %rax
	movq	%rax, 776(%rsp)
	xorl	%eax, %eax
	leaq	192(%rsp), %rdi
	leaq	136(%rsp), %rdx
	movaps	%xmm0, 144(%rsp)
	movq	%rdi, 32(%rsp)
	movq	%rdi, %rbp
	leaq	132(%rsp), %rsi
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	rep stosq
	leaq	140(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%ebx, %ebx
	leaq	144(%rsp), %r13
	leaq	.LC1(%rip), %r15
.L5:
	leaq	0(%r13,%rbx,4), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	movq	%rbp, %r14
	xorl	%r12d, %r12d
.L4:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %eax
	addq	$4, %r14
	cmpl	%r12d, %eax
	jg	.L4
.L3:
	addq	$1, %rbx
	addq	$48, %rbp
	cmpl	%ebx, 132(%rsp)
	jg	.L5
.L43:
	movl	%eax, 8(%rsp)
	movl	148(%rsp), %eax
	movl	$0, 80(%rsp)
	movl	%eax, 104(%rsp)
	movl	152(%rsp), %eax
	movl	$0, 12(%rsp)
	movl	%eax, 108(%rsp)
	movl	156(%rsp), %eax
	movl	$2000000000, 40(%rsp)
	movl	%eax, 112(%rsp)
	movl	160(%rsp), %eax
	movl	%eax, 116(%rsp)
	movl	164(%rsp), %eax
	movl	%eax, 120(%rsp)
	movl	168(%rsp), %eax
	movl	%eax, 76(%rsp)
	movl	172(%rsp), %eax
	movl	%eax, 68(%rsp)
	movl	176(%rsp), %eax
	movl	%eax, 64(%rsp)
	movl	180(%rsp), %eax
	movl	%eax, 56(%rsp)
	movl	184(%rsp), %eax
	movl	%eax, 48(%rsp)
	movl	188(%rsp), %eax
	movl	%eax, 28(%rsp)
	movl	140(%rsp), %eax
	movl	%eax, 16(%rsp)
	movl	144(%rsp), %eax
	movl	%eax, 124(%rsp)
.L7:
	movl	80(%rsp), %eax
	xorl	%r14d, %r14d
	movl	%eax, 84(%rsp)
.L33:
	movl	84(%rsp), %eax
	movl	%r14d, %r13d
	movl	%eax, 88(%rsp)
	xorl	%eax, %eax
	movl	%eax, %r14d
.L31:
	movl	88(%rsp), %eax
	xorl	%r12d, %r12d
	movl	%r13d, %ebp
	movl	%r14d, %r13d
	movl	%r12d, %r14d
	movl	%eax, 92(%rsp)
.L29:
	movl	92(%rsp), %eax
	xorl	%r12d, %r12d
	movl	%r13d, %ebx
	movl	%eax, 96(%rsp)
	movl	%r12d, %eax
	movl	%r14d, %r12d
	movl	%eax, %r14d
.L27:
	movl	96(%rsp), %eax
	xorl	%r13d, %r13d
	movl	%eax, 100(%rsp)
.L25:
	movl	100(%rsp), %eax
	xorl	%r11d, %r11d
	movl	%eax, 72(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%ebx, %r12d
	movl	%ebp, %ebx
	movl	%eax, %ebp
.L23:
	movl	72(%rsp), %eax
	xorl	%r10d, %r10d
	movl	%eax, 60(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%ebx, %r12d
	movl	%eax, %ebx
.L21:
	movl	60(%rsp), %eax
	xorl	%r9d, %r9d
	movl	%eax, 52(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%eax, %r12d
.L19:
	movl	52(%rsp), %eax
	xorl	%r8d, %r8d
	movl	%eax, 44(%rsp)
.L17:
	movl	44(%rsp), %eax
	xorl	%edi, %edi
	movl	%eax, 24(%rsp)
.L15:
	movl	24(%rsp), %eax
	xorl	%esi, %esi
	movl	%eax, 20(%rsp)
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
.L46:
	movq	32(%rsp), %rax
	xorl	%ecx, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %ecx
	addq	$4, %rax
	cmpl	8(%rsp), %ecx
	je	.L11
.L10:
	movl	48(%rax), %r15d
	movl	12(%rsp), %edx
	imull	(%rax), %edx
	imull	%r14d, %r15d
	addl	%edx, %r15d
	movl	96(%rax), %edx
	imull	%r12d, %edx
	addl	%r15d, %edx
	movl	144(%rax), %r15d
	imull	%ebx, %r15d
	addl	%edx, %r15d
	movl	192(%rax), %edx
	imull	%ebp, %edx
	addl	%r15d, %edx
	movl	240(%rax), %r15d
	imull	%r13d, %r15d
	addl	%edx, %r15d
	movl	288(%rax), %edx
	imull	%r11d, %edx
	addl	%r15d, %edx
	movl	336(%rax), %r15d
	imull	%r10d, %r15d
	addl	%edx, %r15d
	movl	384(%rax), %edx
	imull	%r9d, %edx
	addl	%r15d, %edx
	movl	432(%rax), %r15d
	imull	%r8d, %r15d
	addl	%edx, %r15d
	movl	480(%rax), %edx
	imull	%edi, %edx
	addl	%r15d, %edx
	movl	528(%rax), %r15d
	imull	%esi, %r15d
	addl	%r15d, %edx
	cmpl	16(%rsp), %edx
	jge	.L45
.L9:
	movl	28(%rsp), %ecx
	addl	%ecx, 20(%rsp)
	cmpl	$1, %esi
	jne	.L37
	movl	48(%rsp), %esi
	addl	%esi, 24(%rsp)
	cmpl	$1, %edi
	je	.L13
	movl	$1, %edi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L37:
	movl	8(%rsp), %eax
	movl	$1, %esi
	testl	%eax, %eax
	jg	.L46
.L8:
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movl	40(%rsp), %eax
	movl	20(%rsp), %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, 40(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	movl	56(%rsp), %edi
	addl	%edi, 44(%rsp)
	cmpl	$1, %r8d
	je	.L14
	movl	$1, %r8d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	movl	64(%rsp), %edi
	addl	%edi, 52(%rsp)
	cmpl	$1, %r9d
	je	.L16
	movl	$1, %r9d
	jmp	.L19
.L16:
	movl	%r12d, %eax
	movl	68(%rsp), %esi
	movl	%r14d, %r12d
	addl	%esi, 60(%rsp)
	movl	%eax, %r14d
	cmpl	$1, %r10d
	je	.L18
	movl	$1, %r10d
	jmp	.L21
.L18:
	movl	%ebx, %eax
	movl	76(%rsp), %esi
	movl	%r12d, %ebx
	addl	%esi, 72(%rsp)
	movl	%r14d, %r12d
	movl	%eax, %r14d
	cmpl	$1, %r11d
	je	.L20
	movl	$1, %r11d
	jmp	.L23
.L20:
	movl	%ebp, %eax
	movl	120(%rsp), %esi
	movl	%ebx, %ebp
	addl	%esi, 100(%rsp)
	movl	%r12d, %ebx
	movl	%r14d, %r12d
	movl	%eax, %r14d
	cmpl	$1, %r13d
	je	.L22
	movl	$1, %r13d
	jmp	.L25
.L22:
	movl	116(%rsp), %esi
	addl	%esi, 96(%rsp)
	cmpl	$1, %eax
	je	.L24
	movl	$1, %r14d
	jmp	.L27
.L24:
	movl	%ebx, %r13d
	movl	112(%rsp), %ebx
	addl	%ebx, 92(%rsp)
	cmpl	$1, %r12d
	je	.L26
	movl	$1, %r14d
	jmp	.L29
.L26:
	movl	%r13d, %r14d
	movl	108(%rsp), %ebx
	movl	%ebp, %r13d
	addl	%ebx, 88(%rsp)
	cmpl	$1, %r14d
	je	.L28
	movl	$1, %r14d
	jmp	.L31
.L28:
	movl	104(%rsp), %ebx
	addl	%ebx, 84(%rsp)
	cmpl	$1, %ebp
	je	.L30
	movl	$1, %r14d
	jmp	.L33
.L30:
	movl	124(%rsp), %ebx
	addl	%ebx, 80(%rsp)
	cmpl	$1, 12(%rsp)
	je	.L32
	movl	$1, 12(%rsp)
	jmp	.L7
.L32:
	cmpl	$2000000000, 40(%rsp)
	je	.L47
	movl	40(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	movq	776(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$792, %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
.L47:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L35
.L2:
	movl	136(%rsp), %eax
	jmp	.L43
.L48:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
	.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
	movl	$72, %ecx
	pxor	%xmm0, %xmm0
	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	$792, %rsp
	.cfi_def_cfa_offset 848
	movq	%fs:40, %rax
	movq	%rax, 776(%rsp)
	xorl	%eax, %eax
	leaq	192(%rsp), %rdi
	leaq	136(%rsp), %rdx
	movaps	%xmm0, 144(%rsp)
	movq	%rdi, 32(%rsp)
	movq	%rdi, %rbp
	leaq	132(%rsp), %rsi
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	rep stosq
	leaq	140(%rsp), %rcx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	132(%rsp), %edx
	testl	%edx, %edx
	jle	.L2
	xorl	%ebx, %ebx
	leaq	144(%rsp), %r13
	leaq	.LC1(%rip), %r15
.L5:
	leaq	0(%r13,%rbx,4), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %eax
	testl	%eax, %eax
	jle	.L3
	movq	%rbp, %r14
	xorl	%r12d, %r12d
.L4:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	136(%rsp), %eax
	addq	$4, %r14
	cmpl	%r12d, %eax
	jg	.L4
.L3:
	addq	$1, %rbx
	addq	$48, %rbp
	cmpl	%ebx, 132(%rsp)
	jg	.L5
.L43:
	movl	%eax, 8(%rsp)
	movl	148(%rsp), %eax
	movl	$0, 80(%rsp)
	movl	%eax, 104(%rsp)
	movl	152(%rsp), %eax
	movl	$0, 12(%rsp)
	movl	%eax, 108(%rsp)
	movl	156(%rsp), %eax
	movl	$2000000000, 40(%rsp)
	movl	%eax, 112(%rsp)
	movl	160(%rsp), %eax
	movl	%eax, 116(%rsp)
	movl	164(%rsp), %eax
	movl	%eax, 120(%rsp)
	movl	168(%rsp), %eax
	movl	%eax, 76(%rsp)
	movl	172(%rsp), %eax
	movl	%eax, 68(%rsp)
	movl	176(%rsp), %eax
	movl	%eax, 64(%rsp)
	movl	180(%rsp), %eax
	movl	%eax, 56(%rsp)
	movl	184(%rsp), %eax
	movl	%eax, 48(%rsp)
	movl	188(%rsp), %eax
	movl	%eax, 28(%rsp)
	movl	140(%rsp), %eax
	movl	%eax, 16(%rsp)
	movl	144(%rsp), %eax
	movl	%eax, 124(%rsp)
.L7:
	movl	80(%rsp), %eax
	xorl	%r14d, %r14d
	movl	%eax, 84(%rsp)
.L33:
	movl	84(%rsp), %eax
	movl	%r14d, %r13d
	movl	%eax, 88(%rsp)
	xorl	%eax, %eax
	movl	%eax, %r14d
.L31:
	movl	88(%rsp), %eax
	xorl	%r12d, %r12d
	movl	%r13d, %ebp
	movl	%r14d, %r13d
	movl	%r12d, %r14d
	movl	%eax, 92(%rsp)
.L29:
	movl	92(%rsp), %eax
	xorl	%r12d, %r12d
	movl	%r13d, %ebx
	movl	%eax, 96(%rsp)
	movl	%r12d, %eax
	movl	%r14d, %r12d
	movl	%eax, %r14d
.L27:
	movl	96(%rsp), %eax
	xorl	%r13d, %r13d
	movl	%eax, 100(%rsp)
.L25:
	movl	100(%rsp), %eax
	xorl	%r11d, %r11d
	movl	%eax, 72(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%ebx, %r12d
	movl	%ebp, %ebx
	movl	%eax, %ebp
.L23:
	movl	72(%rsp), %eax
	xorl	%r10d, %r10d
	movl	%eax, 60(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%ebx, %r12d
	movl	%eax, %ebx
.L21:
	movl	60(%rsp), %eax
	xorl	%r9d, %r9d
	movl	%eax, 52(%rsp)
	movl	%r14d, %eax
	movl	%r12d, %r14d
	movl	%eax, %r12d
.L19:
	movl	52(%rsp), %eax
	xorl	%r8d, %r8d
	movl	%eax, 44(%rsp)
.L17:
	movl	44(%rsp), %eax
	xorl	%edi, %edi
	movl	%eax, 24(%rsp)
.L15:
	movl	24(%rsp), %eax
	xorl	%esi, %esi
	movl	%eax, 20(%rsp)
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
.L46:
	movq	32(%rsp), %rax
	xorl	%ecx, %ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L45:
	addl	$1, %ecx
	addq	$4, %rax
	cmpl	8(%rsp), %ecx
	je	.L11
.L10:
	movl	48(%rax), %r15d
	movl	12(%rsp), %edx
	imull	(%rax), %edx
	imull	%r14d, %r15d
	addl	%edx, %r15d
	movl	96(%rax), %edx
	imull	%r12d, %edx
	addl	%r15d, %edx
	movl	144(%rax), %r15d
	imull	%ebx, %r15d
	addl	%edx, %r15d
	movl	192(%rax), %edx
	imull	%ebp, %edx
	addl	%r15d, %edx
	movl	240(%rax), %r15d
	imull	%r13d, %r15d
	addl	%edx, %r15d
	movl	288(%rax), %edx
	imull	%r11d, %edx
	addl	%r15d, %edx
	movl	336(%rax), %r15d
	imull	%r10d, %r15d
	addl	%edx, %r15d
	movl	384(%rax), %edx
	imull	%r9d, %edx
	addl	%r15d, %edx
	movl	432(%rax), %r15d
	imull	%r8d, %r15d
	addl	%edx, %r15d
	movl	480(%rax), %edx
	imull	%edi, %edx
	addl	%r15d, %edx
	movl	528(%rax), %r15d
	imull	%esi, %r15d
	addl	%r15d, %edx
	cmpl	16(%rsp), %edx
	jge	.L45
.L9:
	movl	28(%rsp), %ecx
	addl	%ecx, 20(%rsp)
	cmpl	$1, %esi
	jne	.L37
	movl	48(%rsp), %esi
	addl	%esi, 24(%rsp)
	cmpl	$1, %edi
	je	.L13
	movl	$1, %edi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L37:
	movl	8(%rsp), %eax
	movl	$1, %esi
	testl	%eax, %eax
	jg	.L46
.L8:
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movl	40(%rsp), %eax
	movl	20(%rsp), %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	movl	%eax, 40(%rsp)
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	movl	56(%rsp), %edi
	addl	%edi, 44(%rsp)
	cmpl	$1, %r8d
	je	.L14
	movl	$1, %r8d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	movl	64(%rsp), %edi
	addl	%edi, 52(%rsp)
	cmpl	$1, %r9d
	je	.L16
	movl	$1, %r9d
	jmp	.L19
.L16:
	movl	%r12d, %eax
	movl	68(%rsp), %esi
	movl	%r14d, %r12d
	addl	%esi, 60(%rsp)
	movl	%eax, %r14d
	cmpl	$1, %r10d
	je	.L18
	movl	$1, %r10d
	jmp	.L21
.L18:
	movl	%ebx, %eax
	movl	76(%rsp), %esi
	movl	%r12d, %ebx
	addl	%esi, 72(%rsp)
	movl	%r14d, %r12d
	movl	%eax, %r14d
	cmpl	$1, %r11d
	je	.L20
	movl	$1, %r11d
	jmp	.L23
.L20:
	movl	%ebp, %eax
	movl	120(%rsp), %esi
	movl	%ebx, %ebp
	addl	%esi, 100(%rsp)
	movl	%r12d, %ebx
	movl	%r14d, %r12d
	movl	%eax, %r14d
	cmpl	$1, %r13d
	je	.L22
	movl	$1, %r13d
	jmp	.L25
.L22:
	movl	116(%rsp), %esi
	addl	%esi, 96(%rsp)
	cmpl	$1, %eax
	je	.L24
	movl	$1, %r14d
	jmp	.L27
.L24:
	movl	%ebx, %r13d
	movl	112(%rsp), %ebx
	addl	%ebx, 92(%rsp)
	cmpl	$1, %r12d
	je	.L26
	movl	$1, %r14d
	jmp	.L29
.L26:
	movl	%r13d, %r14d
	movl	108(%rsp), %ebx
	movl	%ebp, %r13d
	addl	%ebx, 88(%rsp)
	cmpl	$1, %r14d
	je	.L28
	movl	$1, %r14d
	jmp	.L31
.L28:
	movl	104(%rsp), %ebx
	addl	%ebx, 84(%rsp)
	cmpl	$1, %ebp
	je	.L30
	movl	$1, %r14d
	jmp	.L33
.L30:
	movl	124(%rsp), %ebx
	addl	%ebx, 80(%rsp)
	cmpl	$1, 12(%rsp)
	je	.L32
	movl	$1, 12(%rsp)
	jmp	.L7
.L32:
	cmpl	$2000000000, 40(%rsp)
	je	.L47
	movl	40(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L35:
	movq	776(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$792, %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
.L47:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L35
.L2:
	movl	136(%rsp), %eax
	jmp	.L43
.L48:
	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>
#define rep(i,n)for(int i=0;i<(int)(n);i++)
int main(){
    int n,m,x,c[12]={0},a[12][12]={0},y,z[12],b,d=2e9;
    scanf("%d%d%d",&n,&m,&x);
    rep(i,n){
    scanf("%d",&c[i]);
        rep(j,m){
            scanf("%d",&a[i][j]);
        }
    }
    rep(i,2){rep(j,2){rep(k,2){rep(l,2){rep(o,2){rep(p,2){rep(q,2){rep(r,2){rep(s,2){rep(t,2){rep(u,2){rep(v,2){
        y=i*c[0]+j*c[1]+k*c[2]+l*c[3]+o*c[4]+p*c[5]+q*c[6]+r*c[7]+s*c[8]+t*c[9]+u*c[10]+v*c[11];
        for(b=0;b<m;b++){
            z[b]=i*a[0][b]+j*a[1][b]+k*a[2][b]+l*a[3][b]+o*a[4][b]+p*a[5][b]+q*a[6][b]+r*a[7][b]+s*a[8][b]+t*a[9][b]+u*a[10][b]+v*a[11][b];
            if(z[b]<x)break;
        }
        if(b==m&&y<d)d = y;
    }}}}}}}}}}}}
    if(d==(int)2e9)puts("-1");
    else printf("%d",d);
    return 0;
}
2 3 10
100 3 1 4
100 1 5 9
100 2 6 5
 3 3 10
60 2 2 4
70 8 7 2
50 2 3 9
 8 5 22
100 3 7 5 3 1
164 4 5 2 7 8
334 7 2 7 2 9
234 4 7 2 8 2
541 5 4 3 3 6
235 4 6 6 9 7
394 3 6 1 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
164 4 5 1 7 8
334 7 2 7 2 9
234 4 7 2 8 2
541 5 4 3 3 6
235 4 6 6 9 7
394 3 6 1 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
32 4 5 1 7 8
334 7 2 7 2 1
234 4 7 2 8 2
541 5 4 3 3 6
235 4 6 6 9 7
394 3 6 0 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
32 4 5 1 7 8
334 7 2 7 2 1
234 4 7 2 8 2
1039 5 4 3 3 6
235 4 6 6 9 7
394 3 6 0 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
56 4 5 1 7 8
334 7 2 7 2 1
234 4 7 2 8 2
1039 5 4 3 3 6
235 4 6 6 9 7
394 3 6 0 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
56 4 9 1 12 8
334 7 2 7 2 1
234 4 7 2 8 2
568 5 4 3 5 6
235 3 5 6 9 7
394 3 6 0 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
56 4 9 1 12 8
334 7 2 7 2 1
234 4 7 2 8 2
568 5 4 3 5 6
239 3 5 6 9 9
394 3 6 0 6 2
872 8 4 3 7 2
 8 5 22
100 3 7 5 3 1
56 4 9 1 12 8
334 7 2 7 2 1
234 4 7 2 8 2
568 5 1 3 5 1
239 3 5 6 9 9
394 2 6 0 6 3
872 8 4 3 7 2

-1
 120 1067 1374 1242 1740 1764 1293 1297 1531
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>
#define rep(i,n)for(int i=0;i<(int)(n);i++)
int main(){
    int n,m,x,c[12]={0},a[12][12]={0},y,z[12],b,d=2e9;
    scanf("%d%d%d",&n,&m,&x);
    rep(i,n){
    scanf("%d",&c[i]);
        rep(j,m){
            scanf("%d",&a[i][j]);
        }
    }
    rep(i,2){rep(j,2){rep(k,2){rep(l,2){rep(o,2){rep(p,2){rep(q,2){rep(r,2){rep(s,2){rep(t,2){rep(u,2){rep(v,2){
        y=i*c[0]+j*c[1]+k*c[2]+l*c[3]+o*c[4]+p*c[5]+q*c[6]+r*c[7]+s*c[8]+t*c[9]+u*c[10]+v*c[11];
        for(b=0;b<m;b++){
            z[b]=i*a[0][b]+j*a[1][b]+k*a[2][b]+l*a[3][b]+o*a[4][b]+p*a[5][b]+q*a[6][b]+r*a[7][b]+s*a[8][b]+t*a[9][b]+u*a[10][b]+v*a[11][b];
            if(z[b]<x)break;
        }
        if(b==m&&y<d)d = y;
    }}}}}}}}}}}}
    if(d==(int)2e9)puts("-1");
    else printf("%d",d);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
	.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	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -688(%rbp)
	movq	$0, -680(%rbp)
	movq	$0, -672(%rbp)
	movq	$0, -664(%rbp)
	movq	$0, -656(%rbp)
	movq	$0, -648(%rbp)
	leaq	-592(%rbp), %rdx
	movl	$0, %eax
	movl	$72, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2000000000, -752(%rbp)
	leaq	-760(%rbp), %rcx
	leaq	-764(%rbp), %rdx
	leaq	-768(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -748(%rbp)
	jmp	.L2
.L5:
	leaq	-688(%rbp), %rdx
	movl	-748(%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
	movl	$0, -744(%rbp)
	jmp	.L3
.L4:
	leaq	-592(%rbp), %rcx
	movl	-744(%rbp), %eax
	movslq	%eax, %rsi
	movl	-748(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	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, -744(%rbp)
.L3:
	movl	-764(%rbp), %eax
	cmpl	%eax, -744(%rbp)
	jl	.L4
	addl	$1, -748(%rbp)
.L2:
	movl	-768(%rbp), %eax
	cmpl	%eax, -748(%rbp)
	jl	.L5
	movl	$0, -740(%rbp)
	jmp	.L6
.L34:
	movl	$0, -736(%rbp)
	jmp	.L7
.L33:
	movl	$0, -732(%rbp)
	jmp	.L8
.L32:
	movl	$0, -728(%rbp)
	jmp	.L9
.L31:
	movl	$0, -724(%rbp)
	jmp	.L10
.L30:
	movl	$0, -720(%rbp)
	jmp	.L11
.L29:
	movl	$0, -716(%rbp)
	jmp	.L12
.L28:
	movl	$0, -712(%rbp)
	jmp	.L13
.L27:
	movl	$0, -708(%rbp)
	jmp	.L14
.L26:
	movl	$0, -704(%rbp)
	jmp	.L15
.L25:
	movl	$0, -700(%rbp)
	jmp	.L16
.L24:
	movl	$0, -696(%rbp)
	jmp	.L17
.L23:
	movl	-688(%rbp), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-684(%rbp), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-680(%rbp), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-676(%rbp), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-672(%rbp), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-668(%rbp), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-664(%rbp), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-660(%rbp), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-656(%rbp), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-652(%rbp), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-648(%rbp), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-644(%rbp), %eax
	imull	-696(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -692(%rbp)
	movl	$0, -756(%rbp)
	jmp	.L18
.L21:
	movl	-756(%rbp), %eax
	cltq
	movl	-592(%rbp,%rax,4), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$12, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$24, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$36, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$48, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$60, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$72, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$84, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$96, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$108, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$120, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$132, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-696(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	movl	%edx, -640(%rbp,%rax,4)
	movl	-756(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %edx
	movl	-760(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L39
	addl	$1, -756(%rbp)
.L18:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jl	.L21
	jmp	.L20
.L39:
	nop
.L20:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jne	.L22
	movl	-692(%rbp), %eax
	cmpl	-752(%rbp), %eax
	jge	.L22
	movl	-692(%rbp), %eax
	movl	%eax, -752(%rbp)
.L22:
	addl	$1, -696(%rbp)
.L17:
	cmpl	$1, -696(%rbp)
	jle	.L23
	addl	$1, -700(%rbp)
.L16:
	cmpl	$1, -700(%rbp)
	jle	.L24
	addl	$1, -704(%rbp)
.L15:
	cmpl	$1, -704(%rbp)
	jle	.L25
	addl	$1, -708(%rbp)
.L14:
	cmpl	$1, -708(%rbp)
	jle	.L26
	addl	$1, -712(%rbp)
.L13:
	cmpl	$1, -712(%rbp)
	jle	.L27
	addl	$1, -716(%rbp)
.L12:
	cmpl	$1, -716(%rbp)
	jle	.L28
	addl	$1, -720(%rbp)
.L11:
	cmpl	$1, -720(%rbp)
	jle	.L29
	addl	$1, -724(%rbp)
.L10:
	cmpl	$1, -724(%rbp)
	jle	.L30
	addl	$1, -728(%rbp)
.L9:
	cmpl	$1, -728(%rbp)
	jle	.L31
	addl	$1, -732(%rbp)
.L8:
	cmpl	$1, -732(%rbp)
	jle	.L32
	addl	$1, -736(%rbp)
.L7:
	cmpl	$1, -736(%rbp)
	jle	.L33
	addl	$1, -740(%rbp)
.L6:
	cmpl	$1, -740(%rbp)
	jle	.L34
	cmpl	$2000000000, -752(%rbp)
	jne	.L35
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L36
.L35:
	movl	-752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L36:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"-1"
	.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	$768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -688(%rbp)
	movq	$0, -680(%rbp)
	movq	$0, -672(%rbp)
	movq	$0, -664(%rbp)
	movq	$0, -656(%rbp)
	movq	$0, -648(%rbp)
	leaq	-592(%rbp), %rdx
	movl	$0, %eax
	movl	$72, %ecx
	movq	%rdx, %rdi
	rep stosq
	movl	$2000000000, -752(%rbp)
	leaq	-760(%rbp), %rcx
	leaq	-764(%rbp), %rdx
	leaq	-768(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -748(%rbp)
	jmp	.L2
.L5:
	leaq	-688(%rbp), %rdx
	movl	-748(%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
	movl	$0, -744(%rbp)
	jmp	.L3
.L4:
	leaq	-592(%rbp), %rcx
	movl	-744(%rbp), %eax
	movslq	%eax, %rsi
	movl	-748(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	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, -744(%rbp)
.L3:
	movl	-764(%rbp), %eax
	cmpl	%eax, -744(%rbp)
	jl	.L4
	addl	$1, -748(%rbp)
.L2:
	movl	-768(%rbp), %eax
	cmpl	%eax, -748(%rbp)
	jl	.L5
	movl	$0, -740(%rbp)
	jmp	.L6
.L34:
	movl	$0, -736(%rbp)
	jmp	.L7
.L33:
	movl	$0, -732(%rbp)
	jmp	.L8
.L32:
	movl	$0, -728(%rbp)
	jmp	.L9
.L31:
	movl	$0, -724(%rbp)
	jmp	.L10
.L30:
	movl	$0, -720(%rbp)
	jmp	.L11
.L29:
	movl	$0, -716(%rbp)
	jmp	.L12
.L28:
	movl	$0, -712(%rbp)
	jmp	.L13
.L27:
	movl	$0, -708(%rbp)
	jmp	.L14
.L26:
	movl	$0, -704(%rbp)
	jmp	.L15
.L25:
	movl	$0, -700(%rbp)
	jmp	.L16
.L24:
	movl	$0, -696(%rbp)
	jmp	.L17
.L23:
	movl	-688(%rbp), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-684(%rbp), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-680(%rbp), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-676(%rbp), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-672(%rbp), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-668(%rbp), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-664(%rbp), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-660(%rbp), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-656(%rbp), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-652(%rbp), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-648(%rbp), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-644(%rbp), %eax
	imull	-696(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -692(%rbp)
	movl	$0, -756(%rbp)
	jmp	.L18
.L21:
	movl	-756(%rbp), %eax
	cltq
	movl	-592(%rbp,%rax,4), %eax
	imull	-740(%rbp), %eax
	movl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$12, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-736(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$24, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-732(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$36, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-728(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$48, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-724(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$60, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-720(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$72, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-716(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$84, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-712(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$96, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-708(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$108, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-704(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$120, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-700(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	addq	$132, %rax
	movl	-592(%rbp,%rax,4), %eax
	imull	-696(%rbp), %eax
	addl	%eax, %edx
	movl	-756(%rbp), %eax
	cltq
	movl	%edx, -640(%rbp,%rax,4)
	movl	-756(%rbp), %eax
	cltq
	movl	-640(%rbp,%rax,4), %edx
	movl	-760(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L39
	addl	$1, -756(%rbp)
.L18:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jl	.L21
	jmp	.L20
.L39:
	nop
.L20:
	movl	-764(%rbp), %eax
	cmpl	%eax, -756(%rbp)
	jne	.L22
	movl	-692(%rbp), %eax
	cmpl	-752(%rbp), %eax
	jge	.L22
	movl	-692(%rbp), %eax
	movl	%eax, -752(%rbp)
.L22:
	addl	$1, -696(%rbp)
.L17:
	cmpl	$1, -696(%rbp)
	jle	.L23
	addl	$1, -700(%rbp)
.L16:
	cmpl	$1, -700(%rbp)
	jle	.L24
	addl	$1, -704(%rbp)
.L15:
	cmpl	$1, -704(%rbp)
	jle	.L25
	addl	$1, -708(%rbp)
.L14:
	cmpl	$1, -708(%rbp)
	jle	.L26
	addl	$1, -712(%rbp)
.L13:
	cmpl	$1, -712(%rbp)
	jle	.L27
	addl	$1, -716(%rbp)
.L12:
	cmpl	$1, -716(%rbp)
	jle	.L28
	addl	$1, -720(%rbp)
.L11:
	cmpl	$1, -720(%rbp)
	jle	.L29
	addl	$1, -724(%rbp)
.L10:
	cmpl	$1, -724(%rbp)
	jle	.L30
	addl	$1, -728(%rbp)
.L9:
	cmpl	$1, -728(%rbp)
	jle	.L31
	addl	$1, -732(%rbp)
.L8:
	cmpl	$1, -732(%rbp)
	jle	.L32
	addl	$1, -736(%rbp)
.L7:
	cmpl	$1, -736(%rbp)
	jle	.L33
	addl	$1, -740(%rbp)
.L6:
	cmpl	$1, -740(%rbp)
	jle	.L34
	cmpl	$2000000000, -752(%rbp)
	jne	.L35
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L36
.L35:
	movl	-752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L36:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	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:
