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>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}
int lower_bound(int a[],int n,int k){
	int left=-1; int right=n;
	while(right-left>1){
		int mid=(left+right)/2;
		if(a[mid]<=k) left=mid;
		else right=mid;
	}
	return right;
}
int a[100000],b[100000],c[100000];
ll cnt[100001];
int main(void)
{
	int n,id,i;
	ll res=0;
	scanf("%d",&n);
	FOR(i,0,n) scanf("%d",a+i);
	FOR(i,0,n) scanf("%d",b+i);
	FOR(i,0,n) scanf("%d",c+i);
	qsort(a,n,sizeof(int),comp);
	qsort(b,n,sizeof(int),comp);
	qsort(c,n,sizeof(int),comp);
	FOR(i,0,n){
		cnt[i]=n-lower_bound(c,n,b[i]);
	}
	for(i=n-2;i>=0;i--) cnt[i]+=cnt[i+1];
	FOR(i,0,n){
		id=lower_bound(b,n,a[i]);
		res+=cnt[id];
	}
	printf("%lld\n",res);
	return 0;
}
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	lower_bound
	.type	lower_bound, @function
lower_bound:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$-1, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	cmpl	$1, %eax
	jg	.L6
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lower_bound, .-lower_bound
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 400000
c:
	.zero	400000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800008
cnt:
	.zero	800008
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -32(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L9
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L10
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -40(%rbp)
	jmp	.L15
.L16:
	movl	-44(%rbp), %ebx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cnt(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -40(%rbp)
.L15:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L16
	movl	-44(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -40(%rbp)
	jmp	.L17
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	subl	$1, -40(%rbp)
.L17:
	cmpl	$0, -40(%rbp)
	jns	.L18
	movl	$0, -40(%rbp)
	jmp	.L19
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -32(%rbp)
	addl	$1, -40(%rbp)
.L19:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	comp
	.type	comp, @function
comp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.p2align 4
	.globl	lower_bound
	.type	lower_bound, @function
lower_bound:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	$-1, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	leal	(%rsi,%rax), %r8d
	movl	%r8d, %ecx
	shrl	$31, %ecx
	addl	%r8d, %ecx
	sarl	%ecx
	movslq	%ecx, %r8
	cmpl	%edx, (%rdi,%r8,4)
	cmovg	%ecx, %eax
	cmovle	%ecx, %esi
.L5:
	movl	%eax, %ecx
	subl	%esi, %ecx
	cmpl	$1, %ecx
	jg	.L6
	ret
	.cfi_endproc
.LFE52:
	.size	lower_bound, .-lower_bound
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	movq	%rbx, %r12
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L44
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L9
	leaq	b(%rip), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r14
	cmpl	%r12d, %eax
	jg	.L11
	leaq	c(%rip), %r12
	testl	%eax, %eax
	jle	.L12
	movq	%r12, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r15
	cmpl	%r14d, %eax
	jg	.L13
.L12:
	leaq	comp(%rip), %r13
	movslq	%eax, %rsi
	movl	$4, %edx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	4(%rsp), %rsi
	movq	%r13, %rcx
	movq	%rbp, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movslq	4(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L28
	movslq	%esi, %r11
	xorl	%r10d, %r10d
	leaq	cnt(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp,%r10,4), %r9d
	movl	%esi, %edx
	movl	$-1, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	leal	(%rcx,%rdx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movslq	%eax, %r8
	cmpl	(%r12,%r8,4), %r9d
	cmovl	%eax, %edx
	cmovge	%eax, %ecx
.L16:
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jg	.L17
	movl	%esi, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, (%rdi,%r10,8)
	addq	$1, %r10
	cmpq	%r10, %r11
	jne	.L18
	leal	-2(%rsi), %eax
	cmpl	$1, %esi
	je	.L26
	cltq
	leaq	8+cnt(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	addq	(%rdi,%rax,8), %rdx
	movq	%rdx, (%rdi,%rax,8)
	subq	$1, %rax
	testl	%eax, %eax
	jns	.L20
.L26:
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rbx,%r10,4), %r9d
	movl	%esi, %edx
	movl	$-1, %ecx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	leal	(%rcx,%rdx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movslq	%eax, %r8
	cmpl	0(%rbp,%r8,4), %r9d
	cmovl	%eax, %edx
	cmovge	%eax, %ecx
.L22:
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jg	.L23
	movslq	%edx, %rdx
	addq	$1, %r10
	addq	(%rdi,%rdx,8), %r11
	cmpl	%r10d, %esi
	jg	.L24
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L44:
	.cfi_restore_state
	movl	4(%rsp), %eax
.L9:
	leaq	b(%rip), %rbp
	leaq	c(%rip), %r12
	jmp	.L12
.L28:
	xorl	%r11d, %r11d
	jmp	.L14
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800008
cnt:
	.zero	800008
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 400000
c:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.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	comp
	.type	comp, @function
comp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.p2align 4
	.globl	lower_bound
	.type	lower_bound, @function
lower_bound:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	movl	$-1, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	leal	(%rsi,%rax), %r8d
	movl	%r8d, %ecx
	shrl	$31, %ecx
	addl	%r8d, %ecx
	sarl	%ecx
	movslq	%ecx, %r8
	cmpl	%edx, (%rdi,%r8,4)
	cmovg	%ecx, %eax
	cmovle	%ecx, %esi
.L5:
	movl	%eax, %ecx
	subl	%esi, %ecx
	cmpl	$1, %ecx
	jg	.L6
	ret
	.cfi_endproc
.LFE52:
	.size	lower_bound, .-lower_bound
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xorl	%ebp, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	movq	%rbx, %r12
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L44
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L10
	testl	%eax, %eax
	jle	.L9
	leaq	b(%rip), %rbp
	xorl	%r12d, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r14
	cmpl	%r12d, %eax
	jg	.L11
	leaq	c(%rip), %r12
	testl	%eax, %eax
	jle	.L12
	movq	%r12, %r15
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r15, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	addq	$4, %r15
	cmpl	%r14d, %eax
	jg	.L13
.L12:
	leaq	comp(%rip), %r13
	movslq	%eax, %rsi
	movl	$4, %edx
	movq	%rbx, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movslq	4(%rsp), %rsi
	movq	%r13, %rcx
	movq	%rbp, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movslq	4(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movl	4(%rsp), %esi
	testl	%esi, %esi
	jle	.L28
	movslq	%esi, %r11
	xorl	%r10d, %r10d
	leaq	cnt(%rip), %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	0(%rbp,%r10,4), %r9d
	movl	%esi, %edx
	movl	$-1, %ecx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	leal	(%rcx,%rdx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movslq	%eax, %r8
	cmpl	(%r12,%r8,4), %r9d
	cmovl	%eax, %edx
	cmovge	%eax, %ecx
.L16:
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jg	.L17
	movl	%esi, %eax
	subl	%edx, %eax
	cltq
	movq	%rax, (%rdi,%r10,8)
	addq	$1, %r10
	cmpq	%r10, %r11
	jne	.L18
	leal	-2(%rsi), %eax
	cmpl	$1, %esi
	je	.L26
	cltq
	leaq	8+cnt(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	.p2align 4,,10
	.p2align 3
.L20:
	addq	(%rdi,%rax,8), %rdx
	movq	%rdx, (%rdi,%rax,8)
	subq	$1, %rax
	testl	%eax, %eax
	jns	.L20
.L26:
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L24:
	movl	(%rbx,%r10,4), %r9d
	movl	%esi, %edx
	movl	$-1, %ecx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	leal	(%rcx,%rdx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	movslq	%eax, %r8
	cmpl	0(%rbp,%r8,4), %r9d
	cmovl	%eax, %edx
	cmovge	%eax, %ecx
.L22:
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jg	.L23
	movslq	%edx, %rdx
	addq	$1, %r10
	addq	(%rdi,%rdx,8), %r11
	cmpl	%r10d, %esi
	jg	.L24
.L14:
	xorl	%eax, %eax
	movq	%r11, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L45
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L44:
	.cfi_restore_state
	movl	4(%rsp), %eax
.L9:
	leaq	b(%rip), %rbp
	leaq	c(%rip), %r12
	jmp	.L12
.L28:
	xorl	%r11d, %r11d
	jmp	.L14
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 32
	.type	cnt, @object
	.size	cnt, 800008
cnt:
	.zero	800008
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 400000
c:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.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>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}
int lower_bound(int a[],int n,int k){
	int left=-1; int right=n;
	while(right-left>1){
		int mid=(left+right)/2;
		if(a[mid]<=k) left=mid;
		else right=mid;
	}
	return right;
}
int a[100000],b[100000],c[100000];
ll cnt[100001];
int main(void)
{
	int n,id,i;
	ll res=0;
	scanf("%d",&n);
	FOR(i,0,n) scanf("%d",a+i);
	FOR(i,0,n) scanf("%d",b+i);
	FOR(i,0,n) scanf("%d",c+i);
	qsort(a,n,sizeof(int),comp);
	qsort(b,n,sizeof(int),comp);
	qsort(c,n,sizeof(int),comp);
	FOR(i,0,n){
		cnt[i]=n-lower_bound(c,n,b[i]);
	}
	for(i=n-2;i>=0;i--) cnt[i]+=cnt[i+1];
	FOR(i,0,n){
		id=lower_bound(b,n,a[i]);
		res+=cnt[id];
	}
	printf("%lld\n",res);
	return 0;
}
    
3
1 0 1
2 2 2
3 3 3
 2
1 5
2 4
2 6
 6
3 14 159 2 6 53
58 9 7 323 84 6
2643 383 2 79 50 288
 3
1 0 2
2 2 2
3 3 3
 2
2 5
2 4
2 6
 6
3 14 159 2 6 53
58 9 7 323 84 6
2643 383 2 79 50 430
 3
1 0 4
2 2 2
3 1 3
 3
0 0 4
2 2 2
3 1 1
 6
5 14 159 0 6 53
58 9 7 323 166 6
2643 383 3 79 50 430
 3
0 0 0
2 2 2
3 1 1

27
 2
 87
 18
 1
 93
 12
 6
 96
 9

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>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}
int lower_bound(int a[],int n,int k){
	int left=-1; int right=n;
	while(right-left>1){
		int mid=(left+right)/2;
		if(a[mid]<=k) left=mid;
		else right=mid;
	}
	return right;
}
int a[100000],b[100000],c[100000];
ll cnt[100001];
int main(void)
{
	int n,id,i;
	ll res=0;
	scanf("%d",&n);
	FOR(i,0,n) scanf("%d",a+i);
	FOR(i,0,n) scanf("%d",b+i);
	FOR(i,0,n) scanf("%d",c+i);
	qsort(a,n,sizeof(int),comp);
	qsort(b,n,sizeof(int),comp);
	qsort(c,n,sizeof(int),comp);
	FOR(i,0,n){
		cnt[i]=n-lower_bound(c,n,b[i]);
	}
	for(i=n-2;i>=0;i--) cnt[i]+=cnt[i+1];
	FOR(i,0,n){
		id=lower_bound(b,n,a[i]);
		res+=cnt[id];
	}
	printf("%lld\n",res);
	return 0;
}
    ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	lower_bound
	.type	lower_bound, @function
lower_bound:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$-1, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	cmpl	$1, %eax
	jg	.L6
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lower_bound, .-lower_bound
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 400000
c:
	.zero	400000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800008
cnt:
	.zero	800008
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -32(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L9
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L10
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -40(%rbp)
	jmp	.L15
.L16:
	movl	-44(%rbp), %ebx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cnt(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -40(%rbp)
.L15:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L16
	movl	-44(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -40(%rbp)
	jmp	.L17
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	subl	$1, -40(%rbp)
.L17:
	cmpl	$0, -40(%rbp)
	jns	.L18
	movl	$0, -40(%rbp)
	jmp	.L19
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -32(%rbp)
	addl	$1, -40(%rbp)
.L19:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	comp
	.type	comp, @function
comp:
.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	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	lower_bound
	.type	lower_bound, @function
lower_bound:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	%edx, -32(%rbp)
	movl	$-1, -12(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L4
.L6:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	-4(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L4
.L5:
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	cmpl	$1, %eax
	jg	.L6
	movl	-8(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lower_bound, .-lower_bound
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 400000
a:
	.zero	400000
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 400000
b:
	.zero	400000
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 400000
c:
	.zero	400000
	.globl	cnt
	.align 32
	.type	cnt, @object
	.size	cnt, 800008
cnt:
	.zero	800008
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movq	$0, -32(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L9
.L10:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L9:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L10
	movl	$0, -40(%rbp)
	jmp	.L11
.L12:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L11:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L14:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -40(%rbp)
.L13:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -40(%rbp)
	jmp	.L15
.L16:
	movl	-44(%rbp), %ebx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cltq
	movl	-40(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cnt(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addl	$1, -40(%rbp)
.L15:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L16
	movl	-44(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -40(%rbp)
	jmp	.L17
.L18:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-40(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	subl	$1, -40(%rbp)
.L17:
	cmpl	$0, -40(%rbp)
	jns	.L18
	movl	$0, -40(%rbp)
	jmp	.L19
.L20:
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	call	lower_bound
	movl	%eax, -36(%rbp)
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cnt(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, -32(%rbp)
	addl	$1, -40(%rbp)
.L19:
	movl	-44(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L20
	movq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
