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(){
    long long int n,m,c,i,j,co=0,s;
    scanf("%lld %lld %lld",&n,&m,&c);
    long long int b[m],a[n][m];
    for(i=0;i<m;i++)
        scanf("%lld",&b[i]);
    for(i=0;i<n;i++){
        for(j=0;j<m;j++){
            scanf("%lld",&a[i][j]);
        }
    }
    for(i=0;i<n;i++){
        s=c;
        for(j=0;j<m;j++)
            s=s+a[i][j]*b[j];
        if(s>0)
            co++;
    }
    printf("%lld",co);
    }
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld"
	.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	$216, %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, -248(%rbp)
	movq	$0, -112(%rbp)
	leaq	-136(%rbp), %rcx
	leaq	-144(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -96(%rbp)
	movq	%rdx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	%rdx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-144(%rbp), %rcx
	movq	-152(%rbp), %rsi
	leaq	-1(%rcx), %rax
	movq	%rax, -80(%rbp)
	movq	%rcx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rcx, %rax
	leaq	0(,%rax,8), %rbx
	leaq	-1(%rsi), %rax
	movq	%rax, -72(%rbp)
	movq	%rcx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	%rsi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	movq	%r9, %rdx
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rsi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L8
.L9:
	movq	-128(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -128(%rbp)
.L8:
	movq	-144(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movq	$0, -128(%rbp)
	jmp	.L10
.L13:
	movq	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rax
	shrq	$3, %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %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
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L12
	addq	$1, -128(%rbp)
.L10:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L13
	movq	$0, -128(%rbp)
	jmp	.L14
.L18:
	movq	-136(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L15
.L16:
	movq	%rbx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rcx
	imulq	-128(%rbp), %rcx
	movq	-120(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	addq	%rax, -104(%rbp)
	addq	$1, -120(%rbp)
.L15:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
	cmpq	$0, -104(%rbp)
	jle	.L17
	addq	$1, -112(%rbp)
.L17:
	addq	$1, -128(%rbp)
.L14:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-248(%rbp), %rsp
	movl	$0, %eax
	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	"%lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.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	-64(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	pushq	%r13
	leaq	-80(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$72, %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
	movq	-72(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	0(,%rcx,8), %rax
	movq	%rax, -96(%rbp)
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L42:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L42
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L43
.L4:
	movq	-80(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rsp, %r12
	imulq	%rcx, %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L43:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L44
.L7:
	movq	%rsp, -112(%rbp)
	leaq	.LC1(%rip), %r15
	testq	%rcx, %rcx
	jle	.L8
	movq	%r12, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r14
	cmpq	%r13, %rcx
	jg	.L9
.L8:
	movq	-96(%rbp), %rax
	movq	-80(%rbp), %rdi
	movq	$0, -88(%rbp)
	xorl	%r14d, %r14d
	shrq	$3, %rax
	movq	%rax, -104(%rbp)
	testq	%rdi, %rdi
	jle	.L19
	testq	%rcx, %rcx
	jle	.L45
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-112(%rbp), %rax
	xorl	%ebx, %ebx
	leaq	(%rax,%r14,8), %r13
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r13
	cmpq	%rbx, %rcx
	jg	.L13
	addq	$1, -88(%rbp)
	movq	-80(%rbp), %rdi
	movq	-88(%rbp), %rax
	cmpq	%rdi, %rax
	jge	.L15
	addq	-104(%rbp), %r14
	testq	%rcx, %rcx
	jg	.L17
.L45:
	movq	-88(%rbp), %r13
	addq	$1, %r13
	cmpq	%rdi, %r13
	jge	.L15
.L16:
	movq	-64(%rbp), %r11
	movq	-112(%rbp), %rbx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r11, %rsi
	testq	%rcx, %rcx
	jle	.L20
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	movq	(%rbx,%rax,8), %rdx
	imulq	(%r12,%rax,8), %rdx
	addq	$1, %rax
	addq	%rdx, %rsi
	cmpq	%rcx, %rax
	jne	.L21
.L20:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	setg	%al
	addq	$1, %r9
	addq	-96(%rbp), %rbx
	addq	%rax, %r10
	cmpq	%rdi, %r9
	jne	.L23
.L11:
	xorl	%eax, %eax
	movq	%r10, %rdx
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	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
.L15:
	.cfi_restore_state
	testq	%rdi, %rdi
	jg	.L16
.L19:
	xorl	%r10d, %r10d
	jmp	.L11
.L44:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L46:
	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	"%lld %lld %lld"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.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	-64(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	pushq	%r13
	leaq	-80(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$72, %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
	movq	-72(%rbp), %rcx
	movq	%rsp, %rsi
	leaq	0(,%rcx,8), %rax
	movq	%rax, -96(%rbp)
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L42:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L42
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L43
.L4:
	movq	-80(%rbp), %rax
	movq	%rsp, %rsi
	movq	%rsp, %r12
	imulq	%rcx, %rax
	leaq	15(,%rax,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rsi
.L5:
	cmpq	%rsi, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L43:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L44
.L7:
	movq	%rsp, -112(%rbp)
	leaq	.LC1(%rip), %r15
	testq	%rcx, %rcx
	jle	.L8
	movq	%r12, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r14
	cmpq	%r13, %rcx
	jg	.L9
.L8:
	movq	-96(%rbp), %rax
	movq	-80(%rbp), %rdi
	movq	$0, -88(%rbp)
	xorl	%r14d, %r14d
	shrq	$3, %rax
	movq	%rax, -104(%rbp)
	testq	%rdi, %rdi
	jle	.L19
	testq	%rcx, %rcx
	jle	.L45
	.p2align 4,,10
	.p2align 3
.L17:
	movq	-112(%rbp), %rax
	xorl	%ebx, %ebx
	leaq	(%rax,%r14,8), %r13
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rcx
	addq	$8, %r13
	cmpq	%rbx, %rcx
	jg	.L13
	addq	$1, -88(%rbp)
	movq	-80(%rbp), %rdi
	movq	-88(%rbp), %rax
	cmpq	%rdi, %rax
	jge	.L15
	addq	-104(%rbp), %r14
	testq	%rcx, %rcx
	jg	.L17
.L45:
	movq	-88(%rbp), %r13
	addq	$1, %r13
	cmpq	%rdi, %r13
	jge	.L15
.L16:
	movq	-64(%rbp), %r11
	movq	-112(%rbp), %rbx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L23:
	movq	%r11, %rsi
	testq	%rcx, %rcx
	jle	.L20
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L21:
	movq	(%rbx,%rax,8), %rdx
	imulq	(%r12,%rax,8), %rdx
	addq	$1, %rax
	addq	%rdx, %rsi
	cmpq	%rcx, %rax
	jne	.L21
.L20:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	setg	%al
	addq	$1, %r9
	addq	-96(%rbp), %rbx
	addq	%rax, %r10
	cmpq	%rdi, %r9
	jne	.L23
.L11:
	xorl	%eax, %eax
	movq	%r10, %rdx
	movq	%r15, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	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
.L15:
	.cfi_restore_state
	testq	%rdi, %rdi
	jg	.L16
.L19:
	xorl	%r10d, %r10d
	jmp	.L11
.L44:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L46:
	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(){
    long long int n,m,c,i,j,co=0,s;
    scanf("%lld %lld %lld",&n,&m,&c);
    long long int b[m],a[n][m];
    for(i=0;i<m;i++)
        scanf("%lld",&b[i]);
    for(i=0;i<n;i++){
        for(j=0;j<m;j++){
            scanf("%lld",&a[i][j]);
        }
    }
    for(i=0;i<n;i++){
        s=c;
        for(j=0;j<m;j++)
            s=s+a[i][j]*b[j];
        if(s>0)
            co++;
    }
    printf("%lld",co);
    }

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(){
    long long int n,m,c,i,j,co=0,s;
    scanf("%lld %lld %lld",&n,&m,&c);
    long long int b[m],a[n][m];
    for(i=0;i<m;i++)
        scanf("%lld",&b[i]);
    for(i=0;i<n;i++){
        for(j=0;j<m;j++){
            scanf("%lld",&a[i][j]);
        }
    }
    for(i=0;i<n;i++){
        s=c;
        for(j=0;j<m;j++)
            s=s+a[i][j]*b[j];
        if(s>0)
            co++;
    }
    printf("%lld",co);
    }
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld %lld %lld"
.LC1:
	.string	"%lld"
	.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	$216, %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, -248(%rbp)
	movq	$0, -112(%rbp)
	leaq	-136(%rbp), %rcx
	leaq	-144(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -96(%rbp)
	movq	%rdx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	%rdx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-144(%rbp), %rcx
	movq	-152(%rbp), %rsi
	leaq	-1(%rcx), %rax
	movq	%rax, -80(%rbp)
	movq	%rcx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rcx, %rax
	leaq	0(,%rax,8), %rbx
	leaq	-1(%rsi), %rax
	movq	%rax, -72(%rbp)
	movq	%rcx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	%rsi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	movq	%r9, %rdx
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rsi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L8
.L9:
	movq	-128(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -128(%rbp)
.L8:
	movq	-144(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movq	$0, -128(%rbp)
	jmp	.L10
.L13:
	movq	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rax
	shrq	$3, %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %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
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L12
	addq	$1, -128(%rbp)
.L10:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L13
	movq	$0, -128(%rbp)
	jmp	.L14
.L18:
	movq	-136(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L15
.L16:
	movq	%rbx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rcx
	imulq	-128(%rbp), %rcx
	movq	-120(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	addq	%rax, -104(%rbp)
	addq	$1, -120(%rbp)
.L15:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
	cmpq	$0, -104(%rbp)
	jle	.L17
	addq	$1, -112(%rbp)
.L17:
	addq	$1, -128(%rbp)
.L14:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-248(%rbp), %rsp
	movl	$0, %eax
	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	"%lld %lld %lld"
.LC1:
	.string	"%lld"
	.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	$216, %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, -248(%rbp)
	movq	$0, -112(%rbp)
	leaq	-136(%rbp), %rcx
	leaq	-144(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-144(%rbp), %rdx
	leaq	-1(%rdx), %rax
	movq	%rax, -96(%rbp)
	movq	%rdx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movq	%rdx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %ebx
	movl	$0, %edx
	divq	%rbx
	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	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movq	-144(%rbp), %rcx
	movq	-152(%rbp), %rsi
	leaq	-1(%rcx), %rax
	movq	%rax, -80(%rbp)
	movq	%rcx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movq	%rcx, %rax
	leaq	0(,%rax,8), %rbx
	leaq	-1(%rsi), %rax
	movq	%rax, -72(%rbp)
	movq	%rcx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	%rsi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movq	-176(%rbp), %r8
	movq	-168(%rbp), %r9
	movq	%r9, %rdx
	movq	-192(%rbp), %r10
	movq	-184(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movq	%rsi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movq	%rcx, %rdx
	movq	%rsi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -64(%rbp)
	movq	$0, -128(%rbp)
	jmp	.L8
.L9:
	movq	-128(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -128(%rbp)
.L8:
	movq	-144(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L9
	movq	$0, -128(%rbp)
	jmp	.L10
.L13:
	movq	$0, -120(%rbp)
	jmp	.L11
.L12:
	movq	%rbx, %rax
	shrq	$3, %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %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
	addq	$1, -120(%rbp)
.L11:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L12
	addq	$1, -128(%rbp)
.L10:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L13
	movq	$0, -128(%rbp)
	jmp	.L14
.L18:
	movq	-136(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -120(%rbp)
	jmp	.L15
.L16:
	movq	%rbx, %rdx
	shrq	$3, %rdx
	movq	-64(%rbp), %rax
	movq	%rdx, %rcx
	imulq	-128(%rbp), %rcx
	movq	-120(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	-88(%rbp), %rax
	movq	-120(%rbp), %rdx
	movq	(%rax,%rdx,8), %rax
	imulq	%rcx, %rax
	addq	%rax, -104(%rbp)
	addq	$1, -120(%rbp)
.L15:
	movq	-144(%rbp), %rax
	cmpq	%rax, -120(%rbp)
	jl	.L16
	cmpq	$0, -104(%rbp)
	jle	.L17
	addq	$1, -112(%rbp)
.L17:
	addq	$1, -128(%rbp)
.L14:
	movq	-152(%rbp), %rax
	cmpq	%rax, -128(%rbp)
	jl	.L18
	movq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-248(%rbp), %rsp
	movl	$0, %eax
	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:
