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

```c
//b.c B-Can you solve this?
#include<stdio.h>
#include<stdbool.h>

typedef struct{
    int a[21];
    bool flag;
    int ans;
}com;

int main(void){
    int n,m,c;
    scanf("%d %d %d",&n,&m,&c);
    int b[m];
    for(int i=0;i<m;++i){
        scanf("%d",&b[i]);
    }

    com buf[n];
    for(int i=0;i<n;++i){
        buf[i].ans = 0;
        for(int j=0;j<m;++j){
            scanf("%d",&buf[i].a[j]);
            buf[i].ans += buf[i].a[j] * b[j];
        }
        buf[i].ans += c;
        if(buf[i].ans>0){
            buf[i].flag = true;
        }else{
            buf[i].flag = false;
        }
    }

    int num = 0;
    for(int i=0;i<n;++i){
        if(buf[i].flag==true){
            num++;
        }
    }

    printf("%d\n",num);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rcx
	leaq	-116(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$736, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$736, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	imulq	$92, %rax, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L10
.L15:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	$0, (%rax)
	movl	$0, -100(%rbp)
	jmp	.L11
.L12:
	movl	-100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rcx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdi
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	movl	(%rcx,%rax,4), %ecx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	addl	$1, -100(%rbp)
.L11:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L12
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %edx
	movl	-112(%rbp), %eax
	addl	%eax, %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	.L13
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$1, (%rax)
	jmp	.L14
.L13:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$0, (%rax)
.L14:
	addl	$1, -104(%rbp)
.L10:
	movl	-120(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L15
	movl	$0, -96(%rbp)
	movl	$0, -92(%rbp)
	jmp	.L16
.L18:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L17
	addl	$1, -96(%rbp)
.L17:
	addl	$1, -92(%rbp)
.L16:
	movl	-120(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L18
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC4:
	.string	"%d\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB5:
	.section	.text.startup,"ax",@progbits
.LHOTB5:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-80(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	pushq	%r13
	leaq	-64(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L44:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L44
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L45
.L4:
	movq	%rsp, %r12
	movq	%r12, -336(%rbp)
	testl	%edi, %edi
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L6
.L5:
	movslq	-64(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	imulq	$92, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L8
.L46:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L46
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L47
.L9:
	movq	%rsp, -352(%rbp)
	testl	%edx, %edx
	jle	.L19
	movq	%rsp, %r15
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	movq	$0, -328(%rbp)
	movl	$0, -340(%rbp)
	movl	$0, 88(%r15)
	testl	%edi, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	movq	%r15, %rbx
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-328(%rbp), %rax
	movq	-336(%rbp), %rcx
	movl	-60(%rbp), %edi
	addq	%rbx, %rax
	addq	$4, %rbx
	movl	(%rax,%r12), %eax
	imull	(%rcx,%r13,4), %eax
	addq	$1, %r13
	addl	88(%r15), %eax
	movl	%eax, 88(%r15)
	cmpl	%r13d, %edi
	jg	.L13
	addl	-80(%rbp), %eax
	movl	-64(%rbp), %edx
	testl	%eax, %eax
	movl	%eax, 88(%r15)
	setg	84(%r15)
	addl	$1, -340(%rbp)
	movl	-340(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L48
	addq	$92, %r15
	addq	$92, %r12
	subq	$92, -328(%rbp)
	movl	$0, 88(%r15)
	testl	%edi, %edi
	jg	.L49
.L12:
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	movl	%eax, 88(%r15)
	setg	84(%r15)
	movl	-340(%rbp), %r15d
	addl	$1, %r15d
	cmpl	%r15d, %edx
	jle	.L18
	movl	%edx, %ecx
	subl	%r15d, %ecx
	leal	-1(%rcx), %esi
	cmpl	$14, %esi
	jbe	.L23
	movd	%eax, %xmm5
	movslq	%r15d, %rsi
	pxor	%xmm0, %xmm0
	movl	%ecx, %r9d
	pshufd	$0, %xmm5, %xmm1
	imulq	$92, %rsi, %rsi
	shrl	$4, %r9d
	xorl	%r8d, %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	.LC2(%rip), %xmm1
	movq	-352(%rbp), %rbx
	movdqa	.LC3(%rip), %xmm3
	movdqa	%xmm1, %xmm2
	leaq	88(%rbx,%rsi), %rdi
	leaq	84(%rbx,%rsi), %rsi
	punpckhwd	%xmm1, %xmm2
	jmp	.L16
.L48:
	testl	%edx, %edx
	jle	.L19
.L18:
	subl	$1, %edx
	movq	-352(%rbp), %rsi
	imulq	$92, %rdx, %rdx
	leaq	84(%rsi), %rax
	leaq	176(%rsi,%rdx), %rcx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$1, (%rax)
	sbbl	$-1, %edx
	addq	$92, %rax
	cmpq	%rcx, %rax
	jne	.L21
.L11:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L50
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L47:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L45:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L19:
	xorl	%edx, %edx
	jmp	.L11
.L50:
	call	__stack_chk_fail@PLT
.L23:
	movl	-80(%rbp), %eax
	movslq	%r15d, %rsi
	imulq	$92, %rsi, %rsi
	addq	-352(%rbp), %rsi
	testl	%eax, %eax
	movl	%eax, 88(%rsi)
	setg	%cl
	movb	%cl, 84(%rsi)
	leal	1(%r15), %esi
	cmpl	%esi, %edx
	jg	.L38
	jmp	.L18
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB23:
.L16:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	movdqa	%xmm1, %xmm0
	movl	%eax, (%rdi)
	addl	$1, %r8d
	addq	$1472, %rdi
	punpcklwd	%xmm1, %xmm0
	movl	%eax, -1380(%rdi)
	addq	$1472, %rsi
	movdqa	%xmm0, %xmm4
	punpcklwd	%xmm2, %xmm0
	movl	%eax, -92(%rdi)
	punpckhwd	%xmm2, %xmm4
	movl	%eax, -1288(%rdi)
	punpcklwd	%xmm4, %xmm0
	movl	%eax, -1196(%rdi)
	pand	%xmm3, %xmm0
	movl	%eax, -1104(%rdi)
	packuswb	%xmm0, %xmm0
	movl	%eax, -1012(%rdi)
	movd	%xmm0, %r10d
	movl	%eax, -920(%rdi)
	movl	%eax, -828(%rdi)
	movl	%eax, -736(%rdi)
	movl	%eax, -644(%rdi)
	movl	%eax, -552(%rdi)
	movl	%eax, -460(%rdi)
	movl	%eax, -368(%rdi)
	movl	%eax, -276(%rdi)
	movl	%eax, -184(%rdi)
	movb	%r10b, -1472(%rsi)
	movaps	%xmm0, -96(%rbp)
	movzbl	-95(%rbp), %r10d
	movb	%r10b, -1380(%rsi)
	movaps	%xmm0, -112(%rbp)
	movzbl	-110(%rbp), %r10d
	movb	%r10b, -1288(%rsi)
	movaps	%xmm0, -128(%rbp)
	movzbl	-125(%rbp), %r10d
	movb	%r10b, -1196(%rsi)
	movaps	%xmm0, -144(%rbp)
	movzbl	-140(%rbp), %r10d
	movb	%r10b, -1104(%rsi)
	movaps	%xmm0, -160(%rbp)
	movzbl	-155(%rbp), %r10d
	movb	%r10b, -1012(%rsi)
	movaps	%xmm0, -176(%rbp)
	movzbl	-170(%rbp), %r10d
	movb	%r10b, -920(%rsi)
	movaps	%xmm0, -192(%rbp)
	movzbl	-185(%rbp), %r10d
	movb	%r10b, -828(%rsi)
	movaps	%xmm0, -208(%rbp)
	movzbl	-200(%rbp), %r10d
	movb	%r10b, -736(%rsi)
	movaps	%xmm0, -224(%rbp)
	movzbl	-215(%rbp), %r10d
	movb	%r10b, -644(%rsi)
	movaps	%xmm0, -240(%rbp)
	movzbl	-230(%rbp), %r10d
	movb	%r10b, -552(%rsi)
	movaps	%xmm0, -256(%rbp)
	movzbl	-245(%rbp), %r10d
	movb	%r10b, -460(%rsi)
	movaps	%xmm0, -272(%rbp)
	movzbl	-260(%rbp), %r10d
	movb	%r10b, -368(%rsi)
	movaps	%xmm0, -288(%rbp)
	movzbl	-275(%rbp), %r10d
	movb	%r10b, -276(%rsi)
	movaps	%xmm0, -304(%rbp)
	movzbl	-290(%rbp), %r10d
	movb	%r10b, -184(%rsi)
	movaps	%xmm0, -320(%rbp)
	movzbl	-305(%rbp), %r10d
	movb	%r10b, -92(%rsi)
	cmpl	%r8d, %r9d
	jne	.L16
	movl	%ecx, %eax
	andl	$-16, %eax
	addl	%eax, %r15d
	cmpl	%eax, %ecx
	je	.L18
	jmp	.L23
.L38:
	movslq	%esi, %rsi
	movq	-352(%rbp), %rbx
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	2(%r15), %esi
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	3(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	4(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	5(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	6(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	7(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	8(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	9(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	10(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	11(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	12(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	13(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	addl	$14, %r15d
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	cmpl	%r15d, %edx
	jle	.L18
	movslq	%r15d, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	jmp	.L18
	.cfi_endproc
.LFE23:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE5:
	.section	.text.startup
.LHOTE5:
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC3:
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.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"
.LC4:
	.string	"%d\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB5:
	.section	.text.startup,"ax",@progbits
.LHOTB5:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-80(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	pushq	%r13
	leaq	-64(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$312, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rdi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L44:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L44
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L45
.L4:
	movq	%rsp, %r12
	movq	%r12, -336(%rbp)
	testl	%edi, %edi
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L6
.L5:
	movslq	-64(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rax, %rdx
	imulq	$92, %rax, %rax
	addq	$15, %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L8
.L46:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L46
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L47
.L9:
	movq	%rsp, -352(%rbp)
	testl	%edx, %edx
	jle	.L19
	movq	%rsp, %r15
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	movq	$0, -328(%rbp)
	movl	$0, -340(%rbp)
	movl	$0, 88(%r15)
	testl	%edi, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	movq	%r15, %rbx
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-328(%rbp), %rax
	movq	-336(%rbp), %rcx
	movl	-60(%rbp), %edi
	addq	%rbx, %rax
	addq	$4, %rbx
	movl	(%rax,%r12), %eax
	imull	(%rcx,%r13,4), %eax
	addq	$1, %r13
	addl	88(%r15), %eax
	movl	%eax, 88(%r15)
	cmpl	%r13d, %edi
	jg	.L13
	addl	-80(%rbp), %eax
	movl	-64(%rbp), %edx
	testl	%eax, %eax
	movl	%eax, 88(%r15)
	setg	84(%r15)
	addl	$1, -340(%rbp)
	movl	-340(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L48
	addq	$92, %r15
	addq	$92, %r12
	subq	$92, -328(%rbp)
	movl	$0, 88(%r15)
	testl	%edi, %edi
	jg	.L49
.L12:
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	movl	%eax, 88(%r15)
	setg	84(%r15)
	movl	-340(%rbp), %r15d
	addl	$1, %r15d
	cmpl	%r15d, %edx
	jle	.L18
	movl	%edx, %ecx
	subl	%r15d, %ecx
	leal	-1(%rcx), %esi
	cmpl	$14, %esi
	jbe	.L23
	movd	%eax, %xmm5
	movslq	%r15d, %rsi
	pxor	%xmm0, %xmm0
	movl	%ecx, %r9d
	pshufd	$0, %xmm5, %xmm1
	imulq	$92, %rsi, %rsi
	shrl	$4, %r9d
	xorl	%r8d, %r8d
	pcmpgtd	%xmm0, %xmm1
	pand	.LC2(%rip), %xmm1
	movq	-352(%rbp), %rbx
	movdqa	.LC3(%rip), %xmm3
	movdqa	%xmm1, %xmm2
	leaq	88(%rbx,%rsi), %rdi
	leaq	84(%rbx,%rsi), %rsi
	punpckhwd	%xmm1, %xmm2
	jmp	.L16
.L48:
	testl	%edx, %edx
	jle	.L19
.L18:
	subl	$1, %edx
	movq	-352(%rbp), %rsi
	imulq	$92, %rdx, %rdx
	leaq	84(%rsi), %rax
	leaq	176(%rsi,%rdx), %rcx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$1, (%rax)
	sbbl	$-1, %edx
	addq	$92, %rax
	cmpq	%rcx, %rax
	jne	.L21
.L11:
	xorl	%eax, %eax
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L50
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L47:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L45:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L19:
	xorl	%edx, %edx
	jmp	.L11
.L50:
	call	__stack_chk_fail@PLT
.L23:
	movl	-80(%rbp), %eax
	movslq	%r15d, %rsi
	imulq	$92, %rsi, %rsi
	addq	-352(%rbp), %rsi
	testl	%eax, %eax
	movl	%eax, 88(%rsi)
	setg	%cl
	movb	%cl, 84(%rsi)
	leal	1(%r15), %esi
	cmpl	%esi, %edx
	jg	.L38
	jmp	.L18
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB23:
.L16:
	.cfi_def_cfa 6, 16
	.cfi_offset 3, -56
	.cfi_offset 6, -16
	.cfi_offset 12, -48
	.cfi_offset 13, -40
	.cfi_offset 14, -32
	.cfi_offset 15, -24
	movdqa	%xmm1, %xmm0
	movl	%eax, (%rdi)
	addl	$1, %r8d
	addq	$1472, %rdi
	punpcklwd	%xmm1, %xmm0
	movl	%eax, -1380(%rdi)
	addq	$1472, %rsi
	movdqa	%xmm0, %xmm4
	punpcklwd	%xmm2, %xmm0
	movl	%eax, -92(%rdi)
	punpckhwd	%xmm2, %xmm4
	movl	%eax, -1288(%rdi)
	punpcklwd	%xmm4, %xmm0
	movl	%eax, -1196(%rdi)
	pand	%xmm3, %xmm0
	movl	%eax, -1104(%rdi)
	packuswb	%xmm0, %xmm0
	movl	%eax, -1012(%rdi)
	movd	%xmm0, %r10d
	movl	%eax, -920(%rdi)
	movl	%eax, -828(%rdi)
	movl	%eax, -736(%rdi)
	movl	%eax, -644(%rdi)
	movl	%eax, -552(%rdi)
	movl	%eax, -460(%rdi)
	movl	%eax, -368(%rdi)
	movl	%eax, -276(%rdi)
	movl	%eax, -184(%rdi)
	movb	%r10b, -1472(%rsi)
	movaps	%xmm0, -96(%rbp)
	movzbl	-95(%rbp), %r10d
	movb	%r10b, -1380(%rsi)
	movaps	%xmm0, -112(%rbp)
	movzbl	-110(%rbp), %r10d
	movb	%r10b, -1288(%rsi)
	movaps	%xmm0, -128(%rbp)
	movzbl	-125(%rbp), %r10d
	movb	%r10b, -1196(%rsi)
	movaps	%xmm0, -144(%rbp)
	movzbl	-140(%rbp), %r10d
	movb	%r10b, -1104(%rsi)
	movaps	%xmm0, -160(%rbp)
	movzbl	-155(%rbp), %r10d
	movb	%r10b, -1012(%rsi)
	movaps	%xmm0, -176(%rbp)
	movzbl	-170(%rbp), %r10d
	movb	%r10b, -920(%rsi)
	movaps	%xmm0, -192(%rbp)
	movzbl	-185(%rbp), %r10d
	movb	%r10b, -828(%rsi)
	movaps	%xmm0, -208(%rbp)
	movzbl	-200(%rbp), %r10d
	movb	%r10b, -736(%rsi)
	movaps	%xmm0, -224(%rbp)
	movzbl	-215(%rbp), %r10d
	movb	%r10b, -644(%rsi)
	movaps	%xmm0, -240(%rbp)
	movzbl	-230(%rbp), %r10d
	movb	%r10b, -552(%rsi)
	movaps	%xmm0, -256(%rbp)
	movzbl	-245(%rbp), %r10d
	movb	%r10b, -460(%rsi)
	movaps	%xmm0, -272(%rbp)
	movzbl	-260(%rbp), %r10d
	movb	%r10b, -368(%rsi)
	movaps	%xmm0, -288(%rbp)
	movzbl	-275(%rbp), %r10d
	movb	%r10b, -276(%rsi)
	movaps	%xmm0, -304(%rbp)
	movzbl	-290(%rbp), %r10d
	movb	%r10b, -184(%rsi)
	movaps	%xmm0, -320(%rbp)
	movzbl	-305(%rbp), %r10d
	movb	%r10b, -92(%rsi)
	cmpl	%r8d, %r9d
	jne	.L16
	movl	%ecx, %eax
	andl	$-16, %eax
	addl	%eax, %r15d
	cmpl	%eax, %ecx
	je	.L18
	jmp	.L23
.L38:
	movslq	%esi, %rsi
	movq	-352(%rbp), %rbx
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	2(%r15), %esi
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	3(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	4(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	5(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	6(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	7(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	8(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	9(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	10(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	11(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	12(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	leal	13(%r15), %esi
	cmpl	%esi, %edx
	jle	.L18
	movslq	%esi, %rsi
	addl	$14, %r15d
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	cmpl	%r15d, %edx
	jle	.L18
	movslq	%r15d, %rsi
	imulq	$92, %rsi, %rsi
	addq	%rbx, %rsi
	movl	%eax, 88(%rsi)
	movb	%cl, 84(%rsi)
	jmp	.L18
	.cfi_endproc
.LFE23:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE5:
	.section	.text.startup
.LHOTE5:
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC3:
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.value	255
	.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:

//b.c B-Can you solve this?
#include<stdio.h>
#include<stdbool.h>

typedef struct{
    int a[21];
    bool flag;
    int ans;
}com;

int main(void){
    int n,m,c;
    scanf("%d %d %d",&n,&m,&c);
    int b[m];
    for(int i=0;i<m;++i){
        scanf("%d",&b[i]);
    }

    com buf[n];
    for(int i=0;i<n;++i){
        buf[i].ans = 0;
        for(int j=0;j<m;++j){
            scanf("%d",&buf[i].a[j]);
            buf[i].ans += buf[i].a[j] * b[j];
        }
        buf[i].ans += c;
        if(buf[i].ans>0){
            buf[i].flag = true;
        }else{
            buf[i].flag = false;
        }
    }

    int num = 0;
    for(int i=0;i<n;++i){
        if(buf[i].flag==true){
            num++;
        }
    }

    printf("%d\n",num);
    return 0;
}
3 3 0
100 -100 0
0 100 101
100 100 100
-100 100 100
 5 2 -4
-2 5
100 41
100 40
-4 0
-6 -2
18 -13
 3 3 0
101 -100 0
0 100 101
100 100 100
-100 100 100
 5 2 -4
-2 5
100 41
001 40
-3 1
-6 -2
18 -13
 2 3 -10
1 2 3
3 2 1
1 1 2
 5 2 -4
-2 5
100 41
100 40
-4 -1
-6 -2
18 -13
 2 3 -10
1 2 3
3 2 1
1 1 1
 3 3 0
101 -100 0
-1 100 101
100 100 100
-100 100 100
 2 2 -4
-2 5
100 41
100 40
-4 -1
-6 -2
18 -13
 2 3 -11
1 2 3
3 2 1
1 1 1

0
 2
 1
 3
 0
 1
 0
 1
 1
 0

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

```c
//b.c B-Can you solve this?
#include<stdio.h>
#include<stdbool.h>

typedef struct{
    int a[21];
    bool flag;
    int ans;
}com;

int main(void){
    int n,m,c;
    scanf("%d %d %d",&n,&m,&c);
    int b[m];
    for(int i=0;i<m;++i){
        scanf("%d",&b[i]);
    }

    com buf[n];
    for(int i=0;i<n;++i){
        buf[i].ans = 0;
        for(int j=0;j<m;++j){
            scanf("%d",&buf[i].a[j]);
            buf[i].ans += buf[i].a[j] * b[j];
        }
        buf[i].ans += c;
        if(buf[i].ans>0){
            buf[i].flag = true;
        }else{
            buf[i].flag = false;
        }
    }

    int num = 0;
    for(int i=0;i<n;++i){
        if(buf[i].flag==true){
            num++;
        }
    }

    printf("%d\n",num);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rcx
	leaq	-116(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$736, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$736, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	imulq	$92, %rax, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L10
.L15:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	$0, (%rax)
	movl	$0, -100(%rbp)
	jmp	.L11
.L12:
	movl	-100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rcx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdi
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	movl	(%rcx,%rax,4), %ecx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	addl	$1, -100(%rbp)
.L11:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L12
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %edx
	movl	-112(%rbp), %eax
	addl	%eax, %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	.L13
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$1, (%rax)
	jmp	.L14
.L13:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$0, (%rax)
.L14:
	addl	$1, -104(%rbp)
.L10:
	movl	-120(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L15
	movl	$0, -96(%rbp)
	movl	$0, -92(%rbp)
	jmp	.L16
.L18:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L17
	addl	$1, -96(%rbp)
.L17:
	addl	$1, -92(%rbp)
.L16:
	movl	-120(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L18
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"%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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-112(%rbp), %rcx
	leaq	-116(%rbp), %rdx
	leaq	-120(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L5
.L6:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L5:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L6
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	imulq	$736, %r15, %rdx
	imulq	$0, %r14, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r14
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	imulq	$736, %r13, %rdx
	imulq	$0, %r12, %rax
	leaq	(%rdx,%rax), %rsi
	movl	$736, %eax
	mulq	%r12
	addq	%rdx, %rsi
	movq	%rsi, %rdx
	movslq	%ecx, %rax
	imulq	$92, %rax, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -104(%rbp)
	jmp	.L10
.L15:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	$0, (%rax)
	movl	$0, -100(%rbp)
	jmp	.L11
.L12:
	movl	-100(%rbp), %eax
	movslq	%eax, %rcx
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rcx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdi
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	movl	(%rcx,%rax,4), %ecx
	movq	-80(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	imull	%ecx, %eax
	leal	(%rsi,%rax), %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	addl	$1, -100(%rbp)
.L11:
	movl	-116(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L12
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %edx
	movl	-112(%rbp), %eax
	addl	%eax, %edx
	movq	-64(%rbp), %rcx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rcx, %rax
	addq	$88, %rax
	movl	%edx, (%rax)
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$88, %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	.L13
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$1, (%rax)
	jmp	.L14
.L13:
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movb	$0, (%rax)
.L14:
	addl	$1, -104(%rbp)
.L10:
	movl	-120(%rbp), %eax
	cmpl	%eax, -104(%rbp)
	jl	.L15
	movl	$0, -96(%rbp)
	movl	$0, -92(%rbp)
	jmp	.L16
.L18:
	movq	-64(%rbp), %rdx
	movl	-92(%rbp), %eax
	cltq
	imulq	$92, %rax, %rax
	addq	%rdx, %rax
	addq	$84, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	.L17
	addl	$1, -96(%rbp)
.L17:
	addl	$1, -92(%rbp)
.L16:
	movl	-120(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L18
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
