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

```c
#include <stdio.h>
#include <inttypes.h>

int N, M;
int A[114514];
int B[114514];

int main(void) {
	int i;
	int64_t asumikana, mizuhasikaori;
	if (scanf("%d%d", &N, &M) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	for (i = 0; i < M; i++) {
		if (scanf("%d", &B[i]) != 1) return 1;
	}

	asumikana = 0;
	for (i = 0; i < M; i++) {
		asumikana += B[i];
	}
	mizuhasikaori = 0;
	for (i = 0; i < N; i++) {
		mizuhasikaori += A[i];
	}
	printf("%" PRId64 "\n", asumikana * mizuhasikaori);

	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	A(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, N(%rip)
	jle	.L4
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L27
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	cmpl	$0, M(%rip)
	jle	.L7
	leaq	B(%rip), %r13
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%r13, %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	movl	M(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L28
.L8:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L29
	jmp	.L5
.L28:
	testl	%eax, %eax
	jle	.L7
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L18
	movl	%eax, %esi
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	shrl	$2, %esi
.L10:
	movq	%rdx, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rdx
	salq	$4, %rcx
	movdqa	0(%r13,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%edx, %esi
	ja	.L10
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L12
.L9:
	movslq	%ecx, %rsi
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L12
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L12
	movslq	%ecx, %rcx
	movslq	0(%r13,%rcx,4), %rax
	addq	%rax, %rdx
.L12:
	movl	N(%rip), %edi
	testl	%edi, %edi
	jle	.L19
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%edi, %r8d
	pxor	%xmm1, %xmm1
	leaq	A(%rip), %rsi
	xorl	%eax, %eax
	shrl	$2, %r8d
	pxor	%xmm4, %xmm4
.L16:
	movq	%rax, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rax
	salq	$4, %rcx
	movdqa	(%rsi,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%eax, %r8d
	ja	.L16
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	testb	$3, %dil
	je	.L14
.L15:
	movslq	%ecx, %r8
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jle	.L14
	movslq	%r8d, %r8
	addl	$2, %ecx
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	cmpl	%ecx, %edi
	jle	.L14
	movslq	%ecx, %rcx
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rcx, %rax
.L14:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L19:
	xorl	%eax, %eax
	jmp	.L14
.L7:
	xorl	%edx, %edx
	jmp	.L12
.L18:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L9
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	A(%rip), %rsi
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 458056
B:
	.zero	458056
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 458056
A:
	.zero	458056
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	A(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, N(%rip)
	jle	.L4
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L27
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	cmpl	$0, M(%rip)
	jle	.L7
	leaq	B(%rip), %r13
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%r13, %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	movl	M(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L28
.L8:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L29
	jmp	.L5
.L28:
	testl	%eax, %eax
	jle	.L7
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L18
	movl	%eax, %esi
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	shrl	$2, %esi
.L10:
	movq	%rdx, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rdx
	salq	$4, %rcx
	movdqa	0(%r13,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%edx, %esi
	ja	.L10
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L12
.L9:
	movslq	%ecx, %rsi
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L12
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L12
	movslq	%ecx, %rcx
	movslq	0(%r13,%rcx,4), %rax
	addq	%rax, %rdx
.L12:
	movl	N(%rip), %edi
	testl	%edi, %edi
	jle	.L19
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%edi, %r8d
	pxor	%xmm1, %xmm1
	leaq	A(%rip), %rsi
	xorl	%eax, %eax
	shrl	$2, %r8d
	pxor	%xmm4, %xmm4
.L16:
	movq	%rax, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rax
	salq	$4, %rcx
	movdqa	(%rsi,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%eax, %r8d
	ja	.L16
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	testb	$3, %dil
	je	.L14
.L15:
	movslq	%ecx, %r8
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jle	.L14
	movslq	%r8d, %r8
	addl	$2, %ecx
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	cmpl	%ecx, %edi
	jle	.L14
	movslq	%ecx, %rcx
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rcx, %rax
.L14:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L19:
	xorl	%eax, %eax
	jmp	.L14
.L7:
	xorl	%edx, %edx
	jmp	.L12
.L18:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L9
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	A(%rip), %rsi
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 458056
B:
	.zero	458056
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 458056
A:
	.zero	458056
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	A(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, N(%rip)
	jle	.L4
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L27
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	cmpl	$0, M(%rip)
	jle	.L7
	leaq	B(%rip), %r13
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%r13, %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	movl	M(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L28
.L8:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L29
	jmp	.L5
.L28:
	testl	%eax, %eax
	jle	.L7
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L18
	movl	%eax, %esi
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	shrl	$2, %esi
.L10:
	movq	%rdx, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rdx
	salq	$4, %rcx
	movdqa	0(%r13,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%edx, %esi
	ja	.L10
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L12
.L9:
	movslq	%ecx, %rsi
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L12
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L12
	movslq	%ecx, %rcx
	movslq	0(%r13,%rcx,4), %rax
	addq	%rax, %rdx
.L12:
	movl	N(%rip), %edi
	testl	%edi, %edi
	jle	.L19
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%edi, %r8d
	pxor	%xmm1, %xmm1
	leaq	A(%rip), %rsi
	xorl	%eax, %eax
	shrl	$2, %r8d
	pxor	%xmm4, %xmm4
.L16:
	movq	%rax, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rax
	salq	$4, %rcx
	movdqa	(%rsi,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%eax, %r8d
	ja	.L16
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	testb	$3, %dil
	je	.L14
.L15:
	movslq	%ecx, %r8
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jle	.L14
	movslq	%r8d, %r8
	addl	$2, %ecx
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	cmpl	%ecx, %edi
	jle	.L14
	movslq	%ecx, %rcx
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rcx, %rax
.L14:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L19:
	xorl	%eax, %eax
	jmp	.L14
.L7:
	xorl	%edx, %edx
	jmp	.L12
.L18:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L9
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	A(%rip), %rsi
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 458056
B:
	.zero	458056
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 458056
A:
	.zero	458056
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:
```
```c
#include <stdio.h>
#include <inttypes.h>

int N, M;
int A[114514];
int B[114514];

int main(void) {
	int i;
	int64_t asumikana, mizuhasikaori;
	if (scanf("%d%d", &N, &M) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	for (i = 0; i < M; i++) {
		if (scanf("%d", &B[i]) != 1) return 1;
	}

	asumikana = 0;
	for (i = 0; i < M; i++) {
		asumikana += B[i];
	}
	mizuhasikaori = 0;
	for (i = 0; i < N; i++) {
		mizuhasikaori += A[i];
	}
	printf("%" PRId64 "\n", asumikana * mizuhasikaori);

	return 0;
}

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

```c
#include <stdio.h>
#include <inttypes.h>

int N, M;
int A[114514];
int B[114514];

int main(void) {
	int i;
	int64_t asumikana, mizuhasikaori;
	if (scanf("%d%d", &N, &M) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	for (i = 0; i < M; i++) {
		if (scanf("%d", &B[i]) != 1) return 1;
	}

	asumikana = 0;
	for (i = 0; i < M; i++) {
		asumikana += B[i];
	}
	mizuhasikaori = 0;
	for (i = 0; i < N; i++) {
		mizuhasikaori += A[i];
	}
	printf("%" PRId64 "\n", asumikana * mizuhasikaori);

	return 0;
}

```

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.
Optimized Assembly Code:

3 2
3 1 5
2 5
 3 2
2 1 5
2 5
 3 2
2 1 3
2 5
 3 2
2 2 3
2 5
 3 1
2 4 3
2 5
 3 2
2 4 3
2 4
 3 2
1 4 3
2 4
 3 2
1 4 3
4 5
 3 2
0 4 3
4 1
 3 1
0 4 3
4 1

63
 56
 42
 49
 18
 54
 48
 72
 35
 28

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

```c
#include <stdio.h>
#include <inttypes.h>

int N, M;
int A[114514];
int B[114514];

int main(void) {
	int i;
	int64_t asumikana, mizuhasikaori;
	if (scanf("%d%d", &N, &M) != 2) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	for (i = 0; i < M; i++) {
		if (scanf("%d", &B[i]) != 1) return 1;
	}

	asumikana = 0;
	for (i = 0; i < M; i++) {
		asumikana += B[i];
	}
	mizuhasikaori = 0;
	for (i = 0; i < N; i++) {
		mizuhasikaori += A[i];
	}
	printf("%" PRId64 "\n", asumikana * mizuhasikaori);

	return 0;
}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	A(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, N(%rip)
	jle	.L4
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L27
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	cmpl	$0, M(%rip)
	jle	.L7
	leaq	B(%rip), %r13
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%r13, %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	movl	M(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L28
.L8:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L29
	jmp	.L5
.L28:
	testl	%eax, %eax
	jle	.L7
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L18
	movl	%eax, %esi
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	shrl	$2, %esi
.L10:
	movq	%rdx, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rdx
	salq	$4, %rcx
	movdqa	0(%r13,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%edx, %esi
	ja	.L10
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L12
.L9:
	movslq	%ecx, %rsi
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L12
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L12
	movslq	%ecx, %rcx
	movslq	0(%r13,%rcx,4), %rax
	addq	%rax, %rdx
.L12:
	movl	N(%rip), %edi
	testl	%edi, %edi
	jle	.L19
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%edi, %r8d
	pxor	%xmm1, %xmm1
	leaq	A(%rip), %rsi
	xorl	%eax, %eax
	shrl	$2, %r8d
	pxor	%xmm4, %xmm4
.L16:
	movq	%rax, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rax
	salq	$4, %rcx
	movdqa	(%rsi,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%eax, %r8d
	ja	.L16
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	testb	$3, %dil
	je	.L14
.L15:
	movslq	%ecx, %r8
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jle	.L14
	movslq	%r8d, %r8
	addl	$2, %ecx
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	cmpl	%ecx, %edi
	jle	.L14
	movslq	%ecx, %rcx
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rcx, %rax
.L14:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L19:
	xorl	%eax, %eax
	jmp	.L14
.L7:
	xorl	%edx, %edx
	jmp	.L12
.L18:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L9
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	A(%rip), %rsi
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 458056
B:
	.zero	458056
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 458056
A:
	.zero	458056
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L5
	cmpl	$0, N(%rip)
	jle	.L4
	leaq	A(%rip), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, N(%rip)
	jle	.L4
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L27
.L5:
	movl	$1, %eax
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	cmpl	$0, M(%rip)
	jle	.L7
	leaq	B(%rip), %r13
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%r13, %rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	movl	M(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L28
.L8:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L29
	jmp	.L5
.L28:
	testl	%eax, %eax
	jle	.L7
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L18
	movl	%eax, %esi
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	xorl	%edx, %edx
	shrl	$2, %esi
.L10:
	movq	%rdx, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rdx
	salq	$4, %rcx
	movdqa	0(%r13,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%edx, %esi
	ja	.L10
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L12
.L9:
	movslq	%ecx, %rsi
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L12
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	0(%r13,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L12
	movslq	%ecx, %rcx
	movslq	0(%r13,%rcx,4), %rax
	addq	%rax, %rdx
.L12:
	movl	N(%rip), %edi
	testl	%edi, %edi
	jle	.L19
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%edi, %r8d
	pxor	%xmm1, %xmm1
	leaq	A(%rip), %rsi
	xorl	%eax, %eax
	shrl	$2, %r8d
	pxor	%xmm4, %xmm4
.L16:
	movq	%rax, %rcx
	movdqa	%xmm4, %xmm2
	addq	$1, %rax
	salq	$4, %rcx
	movdqa	(%rsi,%rcx), %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpl	%eax, %r8d
	ja	.L16
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	testb	$3, %dil
	je	.L14
.L15:
	movslq	%ecx, %r8
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jle	.L14
	movslq	%r8d, %r8
	addl	$2, %ecx
	movslq	(%rsi,%r8,4), %r8
	addq	%r8, %rax
	cmpl	%ecx, %edi
	jle	.L14
	movslq	%ecx, %rcx
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rcx, %rax
.L14:
	imulq	%rax, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L19:
	xorl	%eax, %eax
	jmp	.L14
.L7:
	xorl	%edx, %edx
	jmp	.L12
.L18:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L9
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	A(%rip), %rsi
	jmp	.L15
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	B
	.bss
	.align 32
	.type	B, @object
	.size	B, 458056
B:
	.zero	458056
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 458056
A:
	.zero	458056
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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:
```