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>
#include <stdlib.h>

int kaijo(int nb)
{
	int sum = 1;
	while (nb > 0)
	{
		sum *= nb;
		nb--;
	}
	return (sum);
}

int main(void)
{
	int N;
	scanf("%d", &N);
	int P[N];
	int Q[N];
	int total = kaijo(N);
	int i,j,ans1 = 0,ans2 = 0;
	i = 0;
	while (i < N)
		scanf("%d", &P[i++]);
	i = 0;
	while (i < N)
		scanf("%d", &Q[i++]);
	i = 0;
	int k,p,q;
	while (i < N)
	{
		j = 0;
		p = 0;
		q = 0;
		k = i;
		while (j < k)
		{
			if (P[j] < P[i])
				p++;
			if (Q[j] < Q[i])
				q++;
			j++;
		}
		ans1 += kaijo(N - (i + 1)) * (P[i] - 1 - p);
		ans2 += kaijo(N - (i + 1)) * (Q[i] - 1 - q);
		i++;
	}
	ans1++;
	ans2++;
	printf("%d\n", abs(ans1 - ans2));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	kaijo
	.type	kaijo, @function
kaijo:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	kaijo, .-kaijo
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%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, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %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
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, %edi
	call	kaijo
	movl	%eax, -96(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L12
.L13:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L12:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L13
	movl	$0, -120(%rbp)
	jmp	.L14
.L15:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L15
	movl	$0, -120(%rbp)
	jmp	.L16
.L21:
	movl	$0, -116(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	-120(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L18
	addl	$1, -104(%rbp)
.L18:
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L19
	addl	$1, -100(%rbp)
.L19:
	addl	$1, -116(%rbp)
.L17:
	movl	-116(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L20
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-80(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-104(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-64(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-100(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -108(%rbp)
	addl	$1, -120(%rbp)
.L16:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L21
	addl	$1, -112(%rbp)
	addl	$1, -108(%rbp)
	movl	-112(%rbp), %eax
	subl	-108(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.p2align 4
	.globl	kaijo
	.type	kaijo, @function
kaijo:
.LFB39:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	imull	%edi, %eax
	subl	$1, %edi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE39:
	.size	kaijo, .-kaijo
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	.LC0(%rip), %r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	movq	%r15, %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.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, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L9
.L54:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L54
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L55
.L10:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %rbx
	andq	$-16, %rdx
	subq	%rax, %rsi
.L11:
	cmpq	%rsi, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L55:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L10
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L56
.L13:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L17
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L15
	testl	%eax, %eax
	jle	.L17
	movq	%r12, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L16
	testl	%edi, %edi
	jle	.L17
	subl	$1, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	notl	%eax
	movl	$0, -72(%rbp)
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	addl	$1, %r9d
	movl	%edi, %edx
	addl	(%rbx,%rsi,4), %eax
	testl	%edi, %edi
	je	.L28
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%edi, %r8d
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L29:
	imull	%r8d, %r10d
	subl	$1, %r8d
	jne	.L29
	imull	%eax, %r10d
	addl	%r10d, -72(%rbp)
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L31:
	imull	%edx, %eax
	subl	$1, %edx
	jne	.L31
	notl	%ecx
	addl	(%r12,%rsi,4), %ecx
	movl	4(%rbx,%rsi,4), %r10d
	imull	%eax, %ecx
	movl	4(%r12,%rsi,4), %r11d
	addl	%ecx, %r15d
	cmpq	$2, %rsi
	jbe	.L57
	movd	%r10d, %xmm7
	movl	%r9d, %edx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pshufd	$0, %xmm7, %xmm4
	shrl	$2, %edx
	movd	%r11d, %xmm7
	movdqa	%xmm1, %xmm0
	pshufd	$0, %xmm7, %xmm3
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%rbx,%rax), %xmm5
	movdqa	%xmm4, %xmm2
	movdqu	(%r12,%rax), %xmm6
	addq	$16, %rax
	pcmpgtd	%xmm5, %xmm2
	psubd	%xmm2, %xmm0
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	psubd	%xmm2, %xmm1
	cmpq	%rdx, %rax
	jne	.L19
	movdqa	%xmm1, %xmm2
	movl	%r9d, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	paddd	%xmm2, %xmm1
	movd	%xmm1, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %r9b
	je	.L20
.L34:
	movslq	%edx, %r8
	xorl	%r14d, %r14d
	movl	%esi, -68(%rbp)
	salq	$2, %r8
	leaq	(%rbx,%r8), %r13
	cmpl	%r10d, 0(%r13)
	setl	%r14b
	addq	%r12, %r8
	addl	%r14d, %eax
	xorl	%r14d, %r14d
	cmpl	%r11d, (%r8)
	setl	%r14b
	addl	%r14d, %ecx
	leal	1(%rdx), %r14d
	cmpl	%esi, %edx
	jge	.L20
	xorl	%edx, %edx
	cmpl	%r10d, 4(%r13)
	setl	%dl
	addl	%edx, %eax
	xorl	%edx, %edx
	cmpl	%r11d, 4(%r8)
	setl	%dl
	addl	%edx, %ecx
	cmpl	%esi, %r14d
	jge	.L20
	xorl	%edx, %edx
	cmpl	%r10d, 8(%r13)
	setl	%dl
	addl	%edx, %eax
	xorl	%edx, %edx
	cmpl	%r11d, 8(%r8)
	setl	%dl
	addl	%edx, %ecx
.L20:
	addq	$1, %rsi
	subl	$1, %edi
	notl	%eax
	addl	$1, %r9d
	movl	%edi, %edx
	addl	(%rbx,%rsi,4), %eax
	testl	%edi, %edi
	jne	.L58
.L28:
	movl	-72(%rbp), %edx
	notl	%ecx
	addl	(%r12,%rsi,4), %ecx
	addl	%eax, %edx
	leal	(%rcx,%r15), %eax
.L33:
	subl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%edx, %eax
	negl	%eax
	cmovns	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L59
	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
.L57:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L34
.L17:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L33
.L56:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L13
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
	.p2align 4
	.globl	kaijo
	.type	kaijo, @function
kaijo:
.LFB39:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	imull	%edi, %eax
	subl	$1, %edi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE39:
	.size	kaijo, .-kaijo
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	.cfi_offset 15, -24
	leaq	.LC0(%rip), %r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	movq	%r15, %rdi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.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, %rsi
	movq	%rax, %rcx
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rsi
	cmpq	%rsi, %rsp
	je	.L9
.L54:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L54
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L55
.L10:
	movq	%rax, %rdx
	movq	%rsp, %rsi
	andq	$-4096, %rax
	movq	%rsp, %rbx
	andq	$-16, %rdx
	subq	%rax, %rsi
.L11:
	cmpq	%rsi, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L55:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L10
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L56
.L13:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L17
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L15
	testl	%eax, %eax
	jle	.L17
	movq	%r12, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %edi
	addq	$4, %r14
	cmpl	%r13d, %edi
	jg	.L16
	testl	%edi, %edi
	jle	.L17
	subl	$1, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	notl	%eax
	movl	$0, -72(%rbp)
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	addl	$1, %r9d
	movl	%edi, %edx
	addl	(%rbx,%rsi,4), %eax
	testl	%edi, %edi
	je	.L28
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%edi, %r8d
	movl	$1, %r10d
	.p2align 4,,10
	.p2align 3
.L29:
	imull	%r8d, %r10d
	subl	$1, %r8d
	jne	.L29
	imull	%eax, %r10d
	addl	%r10d, -72(%rbp)
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L31:
	imull	%edx, %eax
	subl	$1, %edx
	jne	.L31
	notl	%ecx
	addl	(%r12,%rsi,4), %ecx
	movl	4(%rbx,%rsi,4), %r10d
	imull	%eax, %ecx
	movl	4(%r12,%rsi,4), %r11d
	addl	%ecx, %r15d
	cmpq	$2, %rsi
	jbe	.L57
	movd	%r10d, %xmm7
	movl	%r9d, %edx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pshufd	$0, %xmm7, %xmm4
	shrl	$2, %edx
	movd	%r11d, %xmm7
	movdqa	%xmm1, %xmm0
	pshufd	$0, %xmm7, %xmm3
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movdqu	(%rbx,%rax), %xmm5
	movdqa	%xmm4, %xmm2
	movdqu	(%r12,%rax), %xmm6
	addq	$16, %rax
	pcmpgtd	%xmm5, %xmm2
	psubd	%xmm2, %xmm0
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	psubd	%xmm2, %xmm1
	cmpq	%rdx, %rax
	jne	.L19
	movdqa	%xmm1, %xmm2
	movl	%r9d, %edx
	psrldq	$8, %xmm2
	andl	$-4, %edx
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	paddd	%xmm2, %xmm1
	movd	%xmm1, %ecx
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %r9b
	je	.L20
.L34:
	movslq	%edx, %r8
	xorl	%r14d, %r14d
	movl	%esi, -68(%rbp)
	salq	$2, %r8
	leaq	(%rbx,%r8), %r13
	cmpl	%r10d, 0(%r13)
	setl	%r14b
	addq	%r12, %r8
	addl	%r14d, %eax
	xorl	%r14d, %r14d
	cmpl	%r11d, (%r8)
	setl	%r14b
	addl	%r14d, %ecx
	leal	1(%rdx), %r14d
	cmpl	%esi, %edx
	jge	.L20
	xorl	%edx, %edx
	cmpl	%r10d, 4(%r13)
	setl	%dl
	addl	%edx, %eax
	xorl	%edx, %edx
	cmpl	%r11d, 4(%r8)
	setl	%dl
	addl	%edx, %ecx
	cmpl	%esi, %r14d
	jge	.L20
	xorl	%edx, %edx
	cmpl	%r10d, 8(%r13)
	setl	%dl
	addl	%edx, %eax
	xorl	%edx, %edx
	cmpl	%r11d, 8(%r8)
	setl	%dl
	addl	%edx, %ecx
.L20:
	addq	$1, %rsi
	subl	$1, %edi
	notl	%eax
	addl	$1, %r9d
	movl	%edi, %edx
	addl	(%rbx,%rsi,4), %eax
	testl	%edi, %edi
	jne	.L58
.L28:
	movl	-72(%rbp), %edx
	notl	%ecx
	addl	(%r12,%rsi,4), %ecx
	addl	%eax, %edx
	leal	(%rcx,%r15), %eax
.L33:
	subl	%eax, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%edx, %eax
	negl	%eax
	cmovns	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L59
	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
.L57:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	.L34
.L17:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L33
.L56:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L13
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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>
#include <stdlib.h>

int kaijo(int nb)
{
	int sum = 1;
	while (nb > 0)
	{
		sum *= nb;
		nb--;
	}
	return (sum);
}

int main(void)
{
	int N;
	scanf("%d", &N);
	int P[N];
	int Q[N];
	int total = kaijo(N);
	int i,j,ans1 = 0,ans2 = 0;
	i = 0;
	while (i < N)
		scanf("%d", &P[i++]);
	i = 0;
	while (i < N)
		scanf("%d", &Q[i++]);
	i = 0;
	int k,p,q;
	while (i < N)
	{
		j = 0;
		p = 0;
		q = 0;
		k = i;
		while (j < k)
		{
			if (P[j] < P[i])
				p++;
			if (Q[j] < Q[i])
				q++;
			j++;
		}
		ans1 += kaijo(N - (i + 1)) * (P[i] - 1 - p);
		ans2 += kaijo(N - (i + 1)) * (Q[i] - 1 - q);
		i++;
	}
	ans1++;
	ans2++;
	printf("%d\n", abs(ans1 - ans2));
	return 0;
}

3
1 3 2
3 1 2

3

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>
#include <stdlib.h>

int kaijo(int nb)
{
	int sum = 1;
	while (nb > 0)
	{
		sum *= nb;
		nb--;
	}
	return (sum);
}

int main(void)
{
	int N;
	scanf("%d", &N);
	int P[N];
	int Q[N];
	int total = kaijo(N);
	int i,j,ans1 = 0,ans2 = 0;
	i = 0;
	while (i < N)
		scanf("%d", &P[i++]);
	i = 0;
	while (i < N)
		scanf("%d", &Q[i++]);
	i = 0;
	int k,p,q;
	while (i < N)
	{
		j = 0;
		p = 0;
		q = 0;
		k = i;
		while (j < k)
		{
			if (P[j] < P[i])
				p++;
			if (Q[j] < Q[i])
				q++;
			j++;
		}
		ans1 += kaijo(N - (i + 1)) * (P[i] - 1 - p);
		ans2 += kaijo(N - (i + 1)) * (Q[i] - 1 - q);
		i++;
	}
	ans1++;
	ans2++;
	printf("%d\n", abs(ans1 - ans2));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	kaijo
	.type	kaijo, @function
kaijo:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	kaijo, .-kaijo
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%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, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %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
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, %edi
	call	kaijo
	movl	%eax, -96(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L12
.L13:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L12:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L13
	movl	$0, -120(%rbp)
	jmp	.L14
.L15:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L15
	movl	$0, -120(%rbp)
	jmp	.L16
.L21:
	movl	$0, -116(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	-120(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L18
	addl	$1, -104(%rbp)
.L18:
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L19
	addl	$1, -100(%rbp)
.L19:
	addl	$1, -116(%rbp)
.L17:
	movl	-116(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L20
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-80(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-104(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-64(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-100(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -108(%rbp)
	addl	$1, -120(%rbp)
.L16:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L21
	addl	$1, -112(%rbp)
	addl	$1, -108(%rbp)
	movl	-112(%rbp), %eax
	subl	-108(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	kaijo
	.type	kaijo, @function
kaijo:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	imull	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
	subl	$1, -20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	kaijo, .-kaijo
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-124(%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, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L6:
	cmpq	%rdx, %rsp
	je	.L7
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L6
.L7:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L8
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L8:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %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
.L9:
	cmpq	%rdx, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L11
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L11:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	-124(%rbp), %eax
	movl	%eax, %edi
	call	kaijo
	movl	%eax, -96(%rbp)
	movl	$0, -112(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -120(%rbp)
	jmp	.L12
.L13:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L12:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L13
	movl	$0, -120(%rbp)
	jmp	.L14
.L15:
	movl	-120(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -120(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
.L14:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L15
	movl	$0, -120(%rbp)
	jmp	.L16
.L21:
	movl	$0, -116(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	movl	-120(%rbp), %eax
	movl	%eax, -92(%rbp)
	jmp	.L17
.L20:
	movq	-80(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L18
	addl	$1, -104(%rbp)
.L18:
	movq	-64(%rbp), %rax
	movl	-116(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-64(%rbp), %rax
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jge	.L19
	addl	$1, -100(%rbp)
.L19:
	addl	$1, -116(%rbp)
.L17:
	movl	-116(%rbp), %eax
	cmpl	-92(%rbp), %eax
	jl	.L20
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-80(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-104(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movl	-120(%rbp), %edx
	addl	$1, %edx
	subl	%edx, %eax
	movl	%eax, %edi
	call	kaijo
	movq	-64(%rbp), %rdx
	movl	-120(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rdx,%rcx,4), %edx
	subl	$1, %edx
	subl	-100(%rbp), %edx
	imull	%edx, %eax
	addl	%eax, -108(%rbp)
	addl	$1, -120(%rbp)
.L16:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L21
	addl	$1, -112(%rbp)
	addl	$1, -108(%rbp)
	movl	-112(%rbp), %eax
	subl	-108(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%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	.L23
	call	__stack_chk_fail@PLT
.L23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
