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

```c
#include <stdio.h>
int main(void){
  int N,M,C;
  int A[30][30];
  int B[30];
  int i,j;
  int ans=0;
  scanf("%d %d %d",&N,&M,&C);
  for(i=1;i<=M;i++){
    scanf("%d",&B[i]);
  }
  for(i=1;i<=N;i++){
    for(j=1;j<=M;j++){
      scanf("%d",&A[i][j]);
    }
  }
  for(i=1;i<=N;i++){
    int s=0;
    for(j=1;j<=M;j++){
      s=s+A[i][j]*B[j];
    }
    if(s+C>0){
      ans=ans+1;
    }
  }
  printf("%d\n",ans);
  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
	subq	$3776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -3752(%rbp)
	leaq	-3764(%rbp), %rcx
	leaq	-3768(%rbp), %rdx
	leaq	-3772(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -3760(%rbp)
	jmp	.L2
.L3:
	leaq	-3744(%rbp), %rdx
	movl	-3760(%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
	addl	$1, -3760(%rbp)
.L2:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L3
	movl	$1, -3760(%rbp)
	jmp	.L4
.L7:
	movl	$1, -3756(%rbp)
	jmp	.L5
.L6:
	leaq	-3616(%rbp), %rcx
	movl	-3756(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %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, -3756(%rbp)
.L5:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L6
	addl	$1, -3760(%rbp)
.L4:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L7
	movl	$1, -3760(%rbp)
	jmp	.L8
.L12:
	movl	$0, -3748(%rbp)
	movl	$1, -3756(%rbp)
	jmp	.L9
.L10:
	movl	-3756(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-3616(%rbp,%rax,4), %edx
	movl	-3756(%rbp), %eax
	cltq
	movl	-3744(%rbp,%rax,4), %eax
	imull	%edx, %eax
	addl	%eax, -3748(%rbp)
	addl	$1, -3756(%rbp)
.L9:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L10
	movl	-3764(%rbp), %edx
	movl	-3748(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -3752(%rbp)
.L11:
	addl	$1, -3760(%rbp)
.L8:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L12
	movl	-3752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%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
	leaq	.LC0(%rip), %rdi
	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	$3784, %rsp
	.cfi_def_cfa_offset 3840
	movq	%fs:40, %rax
	movq	%rax, 3768(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	36(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
.L2:
	movl	20(%rsp), %r9d
	leaq	284(%rsp), %r13
	movl	$1, %r14d
	leaq	.LC1(%rip), %r12
	movq	%r13, %r15
	testl	%r9d, %r9d
	jle	.L5
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r15, %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L6
	movl	20(%rsp), %r9d
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jl	.L48
	addq	$120, %r15
	testl	%eax, %eax
	jg	.L22
.L9:
	movdqu	36(%rsp), %xmm2
	movdqu	52(%rsp), %xmm4
	movl	%eax, %ebx
	movl	%eax, %r8d
	movdqu	132(%rsp), %xmm13
	movdqu	68(%rsp), %xmm5
	andl	$-4, %ebx
	addl	$1, %r9d
	movdqu	84(%rsp), %xmm7
	movdqa	%xmm2, %xmm3
	leal	-1(%rax), %ebp
	xorl	%r10d, %r10d
	movdqu	100(%rsp), %xmm9
	movdqu	116(%rsp), %xmm11
	movdqa	%xmm13, %xmm0
	movdqa	%xmm4, %xmm6
	movdqa	%xmm5, %xmm8
	movdqa	%xmm7, %xmm10
	movl	28(%rsp), %r11d
	shrl	$2, %r8d
	movdqa	%xmm9, %xmm12
	movdqa	%xmm11, %xmm14
	leal	1(%rbx), %r12d
	movl	$1, %edi
	psrlq	$32, %xmm0
	psrlq	$32, %xmm3
	psrlq	$32, %xmm6
	psrlq	$32, %xmm8
	movaps	%xmm0, (%rsp)
	psrlq	$32, %xmm10
	psrlq	$32, %xmm12
	psrlq	$32, %xmm14
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r11d, %edx
	testl	%eax, %eax
	jle	.L19
	cmpl	$2, %ebp
	jbe	.L23
	movdqu	0(%r13), %xmm1
	movdqu	0(%r13), %xmm0
	psrlq	$32, %xmm1
	pmuludq	%xmm2, %xmm0
	pmuludq	%xmm3, %xmm1
	pshufd	$8, %xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	cmpl	$1, %r8d
	jbe	.L14
	movdqu	16(%r13), %xmm1
	movdqu	16(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm15
	pmuludq	%xmm6, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$2, %r8d
	je	.L14
	movdqu	32(%r13), %xmm1
	movdqu	32(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm5, %xmm15
	pmuludq	%xmm8, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$3, %r8d
	je	.L14
	movdqu	48(%r13), %xmm1
	movdqu	48(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm7, %xmm15
	pmuludq	%xmm10, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$4, %r8d
	je	.L14
	movdqu	64(%r13), %xmm1
	movdqu	64(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm9, %xmm15
	pmuludq	%xmm12, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$5, %r8d
	je	.L14
	movdqu	80(%r13), %xmm1
	movdqu	80(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm11, %xmm15
	pmuludq	%xmm14, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$6, %r8d
	je	.L14
	movdqu	96(%r13), %xmm15
	movdqu	96(%r13), %xmm1
	pmuludq	%xmm13, %xmm15
	psrlq	$32, %xmm1
	pmuludq	(%rsp), %xmm1
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm15, %xmm15
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
.L14:
	movdqa	%xmm0, %xmm1
	movl	%r12d, %esi
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%eax, %ebx
	je	.L15
.L13:
	movslq	%edi, %r15
	movslq	%esi, %r14
	movq	%r15, %rcx
	salq	$4, %rcx
	subq	%r15, %rcx
	movq	%r14, %r15
	addq	%rcx, %rcx
	leaq	(%rcx,%r14), %r14
	movl	160(%rsp,%r14,4), %r14d
	imull	32(%rsp,%r15,4), %r14d
	addl	%r14d, %edx
	leal	1(%rsi), %r14d
	cmpl	%eax, %r14d
	jg	.L15
	movslq	%r14d, %r15
	addl	$2, %esi
	leaq	(%rcx,%r15), %r14
	movl	160(%rsp,%r14,4), %r14d
	imull	32(%rsp,%r15,4), %r14d
	addl	%r14d, %edx
	cmpl	%esi, %eax
	jl	.L15
	movslq	%esi, %rsi
	addq	%rsi, %rcx
	movl	32(%rsp,%rsi,4), %esi
	imull	160(%rsp,%rcx,4), %esi
	addl	%esi, %edx
.L15:
	addl	%r11d, %edx
.L19:
	testl	%edx, %edx
	setg	%dl
	addl	$1, %edi
	addq	$120, %r13
	movzbl	%dl, %edx
	addl	%edx, %r10d
	cmpl	%r9d, %edi
	jne	.L12
.L17:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3768(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$3784, %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
.L23:
	.cfi_restore_state
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L13
.L48:
	testl	%r9d, %r9d
	jg	.L9
.L5:
	xorl	%r10d, %r10d
	jmp	.L17
.L49:
	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	"%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
	leaq	.LC0(%rip), %rdi
	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	$3784, %rsp
	.cfi_def_cfa_offset 3840
	movq	%fs:40, %rax
	movq	%rax, 3768(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	36(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L3
.L2:
	movl	20(%rsp), %r9d
	leaq	284(%rsp), %r13
	movl	$1, %r14d
	leaq	.LC1(%rip), %r12
	movq	%r13, %r15
	testl	%r9d, %r9d
	jle	.L5
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r15, %rbp
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jge	.L6
	movl	20(%rsp), %r9d
	addl	$1, %r14d
	cmpl	%r14d, %r9d
	jl	.L48
	addq	$120, %r15
	testl	%eax, %eax
	jg	.L22
.L9:
	movdqu	36(%rsp), %xmm2
	movdqu	52(%rsp), %xmm4
	movl	%eax, %ebx
	movl	%eax, %r8d
	movdqu	132(%rsp), %xmm13
	movdqu	68(%rsp), %xmm5
	andl	$-4, %ebx
	addl	$1, %r9d
	movdqu	84(%rsp), %xmm7
	movdqa	%xmm2, %xmm3
	leal	-1(%rax), %ebp
	xorl	%r10d, %r10d
	movdqu	100(%rsp), %xmm9
	movdqu	116(%rsp), %xmm11
	movdqa	%xmm13, %xmm0
	movdqa	%xmm4, %xmm6
	movdqa	%xmm5, %xmm8
	movdqa	%xmm7, %xmm10
	movl	28(%rsp), %r11d
	shrl	$2, %r8d
	movdqa	%xmm9, %xmm12
	movdqa	%xmm11, %xmm14
	leal	1(%rbx), %r12d
	movl	$1, %edi
	psrlq	$32, %xmm0
	psrlq	$32, %xmm3
	psrlq	$32, %xmm6
	psrlq	$32, %xmm8
	movaps	%xmm0, (%rsp)
	psrlq	$32, %xmm10
	psrlq	$32, %xmm12
	psrlq	$32, %xmm14
	.p2align 4,,10
	.p2align 3
.L12:
	movl	%r11d, %edx
	testl	%eax, %eax
	jle	.L19
	cmpl	$2, %ebp
	jbe	.L23
	movdqu	0(%r13), %xmm1
	movdqu	0(%r13), %xmm0
	psrlq	$32, %xmm1
	pmuludq	%xmm2, %xmm0
	pmuludq	%xmm3, %xmm1
	pshufd	$8, %xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm0
	cmpl	$1, %r8d
	jbe	.L14
	movdqu	16(%r13), %xmm1
	movdqu	16(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm4, %xmm15
	pmuludq	%xmm6, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$2, %r8d
	je	.L14
	movdqu	32(%r13), %xmm1
	movdqu	32(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm5, %xmm15
	pmuludq	%xmm8, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$3, %r8d
	je	.L14
	movdqu	48(%r13), %xmm1
	movdqu	48(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm7, %xmm15
	pmuludq	%xmm10, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$4, %r8d
	je	.L14
	movdqu	64(%r13), %xmm1
	movdqu	64(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm9, %xmm15
	pmuludq	%xmm12, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$5, %r8d
	je	.L14
	movdqu	80(%r13), %xmm1
	movdqu	80(%r13), %xmm15
	psrlq	$32, %xmm1
	pmuludq	%xmm11, %xmm15
	pmuludq	%xmm14, %xmm1
	pshufd	$8, %xmm15, %xmm15
	pshufd	$8, %xmm1, %xmm1
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$6, %r8d
	je	.L14
	movdqu	96(%r13), %xmm15
	movdqu	96(%r13), %xmm1
	pmuludq	%xmm13, %xmm15
	psrlq	$32, %xmm1
	pmuludq	(%rsp), %xmm1
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm15, %xmm15
	punpckldq	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
.L14:
	movdqa	%xmm0, %xmm1
	movl	%r12d, %esi
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%eax, %ebx
	je	.L15
.L13:
	movslq	%edi, %r15
	movslq	%esi, %r14
	movq	%r15, %rcx
	salq	$4, %rcx
	subq	%r15, %rcx
	movq	%r14, %r15
	addq	%rcx, %rcx
	leaq	(%rcx,%r14), %r14
	movl	160(%rsp,%r14,4), %r14d
	imull	32(%rsp,%r15,4), %r14d
	addl	%r14d, %edx
	leal	1(%rsi), %r14d
	cmpl	%eax, %r14d
	jg	.L15
	movslq	%r14d, %r15
	addl	$2, %esi
	leaq	(%rcx,%r15), %r14
	movl	160(%rsp,%r14,4), %r14d
	imull	32(%rsp,%r15,4), %r14d
	addl	%r14d, %edx
	cmpl	%esi, %eax
	jl	.L15
	movslq	%esi, %rsi
	addq	%rsi, %rcx
	movl	32(%rsp,%rsi,4), %esi
	imull	160(%rsp,%rcx,4), %esi
	addl	%esi, %edx
.L15:
	addl	%r11d, %edx
.L19:
	testl	%edx, %edx
	setg	%dl
	addl	$1, %edi
	addq	$120, %r13
	movzbl	%dl, %edx
	addl	%edx, %r10d
	cmpl	%r9d, %edi
	jne	.L12
.L17:
	xorl	%eax, %eax
	movl	%r10d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	3768(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$3784, %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
.L23:
	.cfi_restore_state
	xorl	%edx, %edx
	movl	$1, %esi
	jmp	.L13
.L48:
	testl	%r9d, %r9d
	jg	.L9
.L5:
	xorl	%r10d, %r10d
	jmp	.L17
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
int main(void){
  int N,M,C;
  int A[30][30];
  int B[30];
  int i,j;
  int ans=0;
  scanf("%d %d %d",&N,&M,&C);
  for(i=1;i<=M;i++){
    scanf("%d",&B[i]);
  }
  for(i=1;i<=N;i++){
    for(j=1;j<=M;j++){
      scanf("%d",&A[i][j]);
    }
  }
  for(i=1;i<=N;i++){
    int s=0;
    for(j=1;j<=M;j++){
      s=s+A[i][j]*B[j];
    }
    if(s+C>0){
      ans=ans+1;
    }
  }
  printf("%d\n",ans);
  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
#include <stdio.h>
int main(void){
  int N,M,C;
  int A[30][30];
  int B[30];
  int i,j;
  int ans=0;
  scanf("%d %d %d",&N,&M,&C);
  for(i=1;i<=M;i++){
    scanf("%d",&B[i]);
  }
  for(i=1;i<=N;i++){
    for(j=1;j<=M;j++){
      scanf("%d",&A[i][j]);
    }
  }
  for(i=1;i<=N;i++){
    int s=0;
    for(j=1;j<=M;j++){
      s=s+A[i][j]*B[j];
    }
    if(s+C>0){
      ans=ans+1;
    }
  }
  printf("%d\n",ans);
  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
	subq	$3776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -3752(%rbp)
	leaq	-3764(%rbp), %rcx
	leaq	-3768(%rbp), %rdx
	leaq	-3772(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -3760(%rbp)
	jmp	.L2
.L3:
	leaq	-3744(%rbp), %rdx
	movl	-3760(%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
	addl	$1, -3760(%rbp)
.L2:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L3
	movl	$1, -3760(%rbp)
	jmp	.L4
.L7:
	movl	$1, -3756(%rbp)
	jmp	.L5
.L6:
	leaq	-3616(%rbp), %rcx
	movl	-3756(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %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, -3756(%rbp)
.L5:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L6
	addl	$1, -3760(%rbp)
.L4:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L7
	movl	$1, -3760(%rbp)
	jmp	.L8
.L12:
	movl	$0, -3748(%rbp)
	movl	$1, -3756(%rbp)
	jmp	.L9
.L10:
	movl	-3756(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-3616(%rbp,%rax,4), %edx
	movl	-3756(%rbp), %eax
	cltq
	movl	-3744(%rbp,%rax,4), %eax
	imull	%edx, %eax
	addl	%eax, -3748(%rbp)
	addl	$1, -3756(%rbp)
.L9:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L10
	movl	-3764(%rbp), %edx
	movl	-3748(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -3752(%rbp)
.L11:
	addl	$1, -3760(%rbp)
.L8:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L12
	movl	-3752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %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
	subq	$3776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -3752(%rbp)
	leaq	-3764(%rbp), %rcx
	leaq	-3768(%rbp), %rdx
	leaq	-3772(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -3760(%rbp)
	jmp	.L2
.L3:
	leaq	-3744(%rbp), %rdx
	movl	-3760(%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
	addl	$1, -3760(%rbp)
.L2:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L3
	movl	$1, -3760(%rbp)
	jmp	.L4
.L7:
	movl	$1, -3756(%rbp)
	jmp	.L5
.L6:
	leaq	-3616(%rbp), %rcx
	movl	-3756(%rbp), %eax
	movslq	%eax, %rsi
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %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, -3756(%rbp)
.L5:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L6
	addl	$1, -3760(%rbp)
.L4:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L7
	movl	$1, -3760(%rbp)
	jmp	.L8
.L12:
	movl	$0, -3748(%rbp)
	movl	$1, -3756(%rbp)
	jmp	.L9
.L10:
	movl	-3756(%rbp), %eax
	movslq	%eax, %rcx
	movl	-3760(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	subq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movl	-3616(%rbp,%rax,4), %edx
	movl	-3756(%rbp), %eax
	cltq
	movl	-3744(%rbp,%rax,4), %eax
	imull	%edx, %eax
	addl	%eax, -3748(%rbp)
	addl	$1, -3756(%rbp)
.L9:
	movl	-3768(%rbp), %eax
	cmpl	%eax, -3756(%rbp)
	jle	.L10
	movl	-3764(%rbp), %edx
	movl	-3748(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	jle	.L11
	addl	$1, -3752(%rbp)
.L11:
	addl	$1, -3760(%rbp)
.L8:
	movl	-3772(%rbp), %eax
	cmpl	%eax, -3760(%rbp)
	jle	.L12
	movl	-3752(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
