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 compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main(){
  int n,m;
  scanf("%d%d",&n,&m);
  int a[n+1];
  int b[m+1];
  int i;
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
  a[n] = -1;
  for(i=0;i<m;i++){
    scanf("%d",&b[i]);
  }
  b[m] = -1;
  qsort(a, n, sizeof(int), compare_int);
  qsort(b, m, sizeof(int), compare_int);
  long long int ans = 1;
  i = n * m;
  int row = 0;
  int column = 0;
  while(i > 0){
    //printf("%d %d %d\n", a[row], b[column], i);
    if(a[row] == i && b[column] == i){
      row++;
      column++;
    }else if(a[row] != i && b[column] == i){
      column++;
      ans *= (long long int) row;
    }else if(a[row] == i && b[column] != i){
      row++;
      ans *= (long long int) column;
    }else{
      ans *= (long long int) (row * column - (n * m - i));
    }
    if(ans == 0){
      break;
    }
    ans = ans % 1000000007;
    i--;
  }
  printf("%lld\n", ans);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\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	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-112(%rbp), %eax
	addl	$1, %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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	-116(%rbp), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L13:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L12:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L13
	movl	-112(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	-116(%rbp), %eax
	movslq	%eax, %rsi
	movq	-80(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rsi
	movq	-64(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$1, -96(%rbp)
	movl	-116(%rbp), %edx
	movl	-112(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L14
.L21:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	addl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
	jmp	.L16
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L17
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L17
	addl	$1, -100(%rbp)
	movl	-104(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L18
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L18
	addl	$1, -104(%rbp)
	movl	-100(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	imull	-100(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %ecx
	movl	-112(%rbp), %eax
	imull	%ecx, %eax
	subl	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
.L16:
	cmpq	$0, -96(%rbp)
	je	.L24
	movq	-96(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -96(%rbp)
	subl	$1, -108(%rbp)
.L14:
	cmpl	$0, -108(%rbp)
	jg	.L21
	jmp	.L20
.L24:
	nop
.L20:
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leal	1(%rsi), %eax
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L36
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L37
.L6:
	movslq	-60(%rbp), %rax
	movq	%rsp, %rdi
	movq	%rsp, %rbx
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rdi
.L7:
	cmpq	%rdi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L37:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L9:
	movq	%rsp, %r12
	testl	%esi, %esi
	jle	.L10
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rsi
	addq	$4, %r14
	cmpl	%r13d, %esi
	jg	.L11
	movslq	-60(%rbp), %rax
.L10:
	movslq	%esi, %rdx
	movl	$-1, (%rbx,%rdx,4)
	testl	%eax, %eax
	jle	.L12
	movq	%r12, %r14
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L13
	movslq	-64(%rbp), %rsi
.L12:
	leaq	compare_int(%rip), %r13
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$-1, (%r12,%rax,4)
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	-60(%rbp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	-64(%rbp), %r9d
	imull	-60(%rbp), %r9d
	testl	%r9d, %r9d
	jle	.L21
	movl	%r9d, %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %r8d
	movabsq	$-8543223828751151131, %r10
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r11d, %ecx
	je	.L39
	movl	%esi, %eax
	movl	%r9d, %edx
	imull	%edi, %eax
	subl	%ecx, %edx
	subl	%edx, %eax
	cltq
.L35:
	imulq	%rax, %r8
.L17:
	testq	%r8, %r8
	je	.L14
.L40:
	movq	%r8, %rax
	imulq	%r10
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	subl	$1, %ecx
	je	.L14
.L19:
	movslq	%edi, %rax
	movslq	%esi, %rdx
	movl	(%r12,%rax,4), %r11d
	cmpl	%ecx, (%rbx,%rdx,4)
	jne	.L15
	addl	$1, %esi
	cmpl	%r11d, %ecx
	jne	.L35
	addl	$1, %edi
	testq	%r8, %r8
	jne	.L40
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L41
	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
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	imulq	%rdx, %r8
	addl	$1, %edi
	jmp	.L17
.L21:
	movl	$1, %r8d
	jmp	.L14
.L38:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L41:
	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	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\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
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rsi
	movq	%rsp, %rcx
	leal	1(%rsi), %eax
	cltq
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L36
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L37
.L6:
	movslq	-60(%rbp), %rax
	movq	%rsp, %rdi
	movq	%rsp, %rbx
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rdi
.L7:
	cmpq	%rdi, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L37:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L8:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L9:
	movq	%rsp, %r12
	testl	%esi, %esi
	jle	.L10
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	-64(%rbp), %rsi
	addq	$4, %r14
	cmpl	%r13d, %esi
	jg	.L11
	movslq	-60(%rbp), %rax
.L10:
	movslq	%esi, %rdx
	movl	$-1, (%rbx,%rdx,4)
	testl	%eax, %eax
	jle	.L12
	movq	%r12, %r14
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L13
	movslq	-64(%rbp), %rsi
.L12:
	leaq	compare_int(%rip), %r13
	movl	$4, %edx
	movq	%rbx, %rdi
	movl	$-1, (%r12,%rax,4)
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	-60(%rbp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	-64(%rbp), %r9d
	imull	-60(%rbp), %r9d
	testl	%r9d, %r9d
	jle	.L21
	movl	%r9d, %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %r8d
	movabsq	$-8543223828751151131, %r10
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r11d, %ecx
	je	.L39
	movl	%esi, %eax
	movl	%r9d, %edx
	imull	%edi, %eax
	subl	%ecx, %edx
	subl	%edx, %eax
	cltq
.L35:
	imulq	%rax, %r8
.L17:
	testq	%r8, %r8
	je	.L14
.L40:
	movq	%r8, %rax
	imulq	%r10
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	subl	$1, %ecx
	je	.L14
.L19:
	movslq	%edi, %rax
	movslq	%esi, %rdx
	movl	(%r12,%rax,4), %r11d
	cmpl	%ecx, (%rbx,%rdx,4)
	jne	.L15
	addl	$1, %esi
	cmpl	%r11d, %ecx
	jne	.L35
	addl	$1, %edi
	testq	%r8, %r8
	jne	.L40
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L41
	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
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	imulq	%rdx, %r8
	addl	$1, %edi
	jmp	.L17
.L21:
	movl	$1, %r8d
	jmp	.L14
.L38:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L9
.L41:
	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 compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main(){
  int n,m;
  scanf("%d%d",&n,&m);
  int a[n+1];
  int b[m+1];
  int i;
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
  a[n] = -1;
  for(i=0;i<m;i++){
    scanf("%d",&b[i]);
  }
  b[m] = -1;
  qsort(a, n, sizeof(int), compare_int);
  qsort(b, m, sizeof(int), compare_int);
  long long int ans = 1;
  i = n * m;
  int row = 0;
  int column = 0;
  while(i > 0){
    //printf("%d %d %d\n", a[row], b[column], i);
    if(a[row] == i && b[column] == i){
      row++;
      column++;
    }else if(a[row] != i && b[column] == i){
      column++;
      ans *= (long long int) row;
    }else if(a[row] == i && b[column] != i){
      row++;
      ans *= (long long int) column;
    }else{
      ans *= (long long int) (row * column - (n * m - i));
    }
    if(ans == 0){
      break;
    }
    ans = ans % 1000000007;
    i--;
  }
  printf("%lld\n", ans);
  return 0;
}

3 3
5 9 2
3 6 9
 0 2
4 3
3 4
 14 13
158 167 181 147 178 151 179 182 176 169 180 129 175 168
181 73 178 179 167 180 176 169 182 177 175 159 173
 2 2
6 4
4 4
 3 3
5 9 2
0 6 9
 2 2
6 4
5 4
 0 2
8 3
3 4
 3 3
5 9 2
0 8 9
 2 2
6 1
5 4
 0 2
8 3
3 0

0
 1
 146891838
 0
 0
 0
 1
 0
 0
 1

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 compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main(){
  int n,m;
  scanf("%d%d",&n,&m);
  int a[n+1];
  int b[m+1];
  int i;
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
  a[n] = -1;
  for(i=0;i<m;i++){
    scanf("%d",&b[i]);
  }
  b[m] = -1;
  qsort(a, n, sizeof(int), compare_int);
  qsort(b, m, sizeof(int), compare_int);
  long long int ans = 1;
  i = n * m;
  int row = 0;
  int column = 0;
  while(i > 0){
    //printf("%d %d %d\n", a[row], b[column], i);
    if(a[row] == i && b[column] == i){
      row++;
      column++;
    }else if(a[row] != i && b[column] == i){
      column++;
      ans *= (long long int) row;
    }else if(a[row] == i && b[column] != i){
      row++;
      ans *= (long long int) column;
    }else{
      ans *= (long long int) (row * column - (n * m - i));
    }
    if(ans == 0){
      break;
    }
    ans = ans % 1000000007;
    i--;
  }
  printf("%lld\n", ans);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\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	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-112(%rbp), %eax
	addl	$1, %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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	-116(%rbp), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L13:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L12:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L13
	movl	-112(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	-116(%rbp), %eax
	movslq	%eax, %rsi
	movq	-80(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rsi
	movq	-64(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$1, -96(%rbp)
	movl	-116(%rbp), %edx
	movl	-112(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L14
.L21:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	addl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
	jmp	.L16
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L17
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L17
	addl	$1, -100(%rbp)
	movl	-104(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L18
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L18
	addl	$1, -104(%rbp)
	movl	-100(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	imull	-100(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %ecx
	movl	-112(%rbp), %eax
	imull	%ecx, %eax
	subl	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
.L16:
	cmpq	$0, -96(%rbp)
	je	.L24
	movq	-96(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -96(%rbp)
	subl	$1, -108(%rbp)
.L14:
	cmpl	$0, -108(%rbp)
	jg	.L21
	jmp	.L20
.L24:
	nop
.L20:
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\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	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-112(%rbp), %eax
	addl	$1, %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, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L7:
	cmpq	%rdx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L9
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L10
.L11:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L10:
	movl	-116(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L11
	movl	-116(%rbp), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	$0, -108(%rbp)
	jmp	.L12
.L13:
	movl	-108(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -108(%rbp)
.L12:
	movl	-112(%rbp), %eax
	cmpl	%eax, -108(%rbp)
	jl	.L13
	movl	-112(%rbp), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	$-1, (%rax,%rdx,4)
	movl	-116(%rbp), %eax
	movslq	%eax, %rsi
	movq	-80(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-112(%rbp), %eax
	movslq	%eax, %rsi
	movq	-64(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$1, -96(%rbp)
	movl	-116(%rbp), %edx
	movl	-112(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -108(%rbp)
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L14
.L21:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L15
	addl	$1, -104(%rbp)
	addl	$1, -100(%rbp)
	jmp	.L16
.L15:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L17
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L17
	addl	$1, -100(%rbp)
	movl	-104(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L17:
	movq	-80(%rbp), %rax
	movl	-104(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	jne	.L18
	movq	-64(%rbp), %rax
	movl	-100(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, -108(%rbp)
	je	.L18
	addl	$1, -104(%rbp)
	movl	-100(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
	jmp	.L16
.L18:
	movl	-104(%rbp), %eax
	imull	-100(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %ecx
	movl	-112(%rbp), %eax
	imull	%ecx, %eax
	subl	-108(%rbp), %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	-96(%rbp), %rdx
	imulq	%rdx, %rax
	movq	%rax, -96(%rbp)
.L16:
	cmpq	$0, -96(%rbp)
	je	.L24
	movq	-96(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -96(%rbp)
	subl	$1, -108(%rbp)
.L14:
	cmpl	$0, -108(%rbp)
	jg	.L21
	jmp	.L20
.L24:
	nop
.L20:
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.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:
