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 asc(const void *a,const void *b)
{
	return *(int *)a-*(int *)b;
}
int main()
{
	unsigned long long int n;
	scanf("%lld",&n);
	unsigned long long int i;
	int a[100005],b[100005],c[100005];
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
		scanf("%d",&b[i]);
	for(i=0;i<n;i++)
		scanf("%d",&c[i]);
	qsort(a,n,sizeof(int),asc);
	qsort(b,n,sizeof(int),asc);
	qsort(c,n,sizeof(int),asc);
	a[n]=2000000000;
	c[n]=2000000000;
	unsigned long long int j,k;
	unsigned long long int ans=0;
	i=j=k=0;
	while(a[i]>=b[j] && j<n)
		j++;
	for(;j<n;j++)
	{
		while(a[i]<b[j])
			i++;
		while(b[j]>=c[k])
			k++;
		ans+=i*(n-k);
	}
	printf("%lld\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.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	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%lld"
.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
	leaq	-1200128(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1200128(%rbp)
	jmp	.L4
.L5:
	leaq	-1200096(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L4:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L5
	movq	$0, -1200128(%rbp)
	jmp	.L6
.L7:
	leaq	-800064(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L6:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L7
	movq	$0, -1200128(%rbp)
	jmp	.L8
.L9:
	leaq	-400032(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L8:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L9
	movq	-1200136(%rbp), %rsi
	leaq	-1200096(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-800064(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-400032(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -1200096(%rbp,%rax,4)
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -400032(%rbp,%rax,4)
	movq	$0, -1200104(%rbp)
	movq	$0, -1200112(%rbp)
	movq	-1200112(%rbp), %rax
	movq	%rax, -1200120(%rbp)
	movq	-1200120(%rbp), %rax
	movq	%rax, -1200128(%rbp)
	jmp	.L10
.L12:
	addq	$1, -1200120(%rbp)
.L10:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L13
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L12
	jmp	.L13
.L15:
	addq	$1, -1200128(%rbp)
.L14:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L15
	jmp	.L16
.L17:
	addq	$1, -1200112(%rbp)
.L16:
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %edx
	movq	-1200112(%rbp), %rax
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L17
	movq	-1200136(%rbp), %rax
	subq	-1200112(%rbp), %rax
	imulq	-1200128(%rbp), %rax
	addq	%rax, -1200104(%rbp)
	addq	$1, -1200120(%rbp)
.L13:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L14
	movq	-1200104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.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	%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196088
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4088, %rsp
	.cfi_def_cfa_offset 1200176
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	leaq	400048(%rsp), %r12
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	je	.L7
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$4, %r12
	cmpq	%rbx, %rax
	ja	.L5
	leaq	400048(%rsp), %r12
	testq	%rax, %rax
	je	.L7
	movq	%r12, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$4, %r13
	cmpq	%rbx, %rax
	ja	.L6
	testq	%rax, %rax
	je	.L7
	leaq	800080(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	addq	$4, %r14
	cmpq	%r13, %rsi
	ja	.L8
.L18:
	leaq	asc(%rip), %r13
	movl	$4, %edx
	movq	%rbp, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movq	8(%rsp), %r8
	movl	$2000000000, 16(%rsp,%r8,4)
	movl	16(%rsp), %edx
	movl	$2000000000, 800080(%rsp,%r8,4)
	cmpl	%edx, 400048(%rsp)
	jg	.L20
	testq	%r8, %r8
	je	.L22
	xorl	%eax, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	%rax, %r8
	je	.L22
.L13:
	addq	$1, %rax
	cmpl	%edx, (%r12,%rax,4)
	jle	.L11
.L9:
	cmpq	%rax, %r8
	jbe	.L22
	movl	800080(%rsp), %esi
	leaq	(%r12,%rax,4), %rdi
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	leaq	(%r12,%r8,4), %r10
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rdi), %ecx
	cmpl	16(%rsp,%rax,4), %ecx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpl	%ecx, 0(%rbp,%rax,4)
	jl	.L14
.L17:
	cmpl	%esi, %ecx
	jl	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$1, %rdx
	movl	(%rbx,%rdx,4), %esi
	cmpl	%ecx, %esi
	jle	.L16
.L15:
	movq	%r8, %rcx
	addq	$4, %rdi
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	addq	%rcx, %r9
	cmpq	%rdi, %r10
	jne	.L12
	jmp	.L10
.L22:
	xorl	%r9d, %r9d
.L10:
	xorl	%eax, %eax
	movq	%r9, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1200104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$1200120, %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
.L7:
	.cfi_restore_state
	xorl	%esi, %esi
	leaq	800080(%rsp), %rbx
	jmp	.L18
.L20:
	xorl	%eax, %eax
	jmp	.L9
.L40:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.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	%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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196088
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4088, %rsp
	.cfi_def_cfa_offset 1200176
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200104(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbp
	leaq	400048(%rsp), %r12
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	je	.L7
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$4, %r12
	cmpq	%rbx, %rax
	ja	.L5
	leaq	400048(%rsp), %r12
	testq	%rax, %rax
	je	.L7
	movq	%r12, %r13
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rax
	addq	$4, %r13
	cmpq	%rbx, %rax
	ja	.L6
	testq	%rax, %rax
	je	.L7
	leaq	800080(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %r13
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	addq	$4, %r14
	cmpq	%r13, %rsi
	ja	.L8
.L18:
	leaq	asc(%rip), %r13
	movl	$4, %edx
	movq	%rbp, %rdi
	movq	%r13, %rcx
	call	qsort@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movq	8(%rsp), %rsi
	movq	%r13, %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	call	qsort@PLT
	movq	8(%rsp), %r8
	movl	$2000000000, 16(%rsp,%r8,4)
	movl	16(%rsp), %edx
	movl	$2000000000, 800080(%rsp,%r8,4)
	cmpl	%edx, 400048(%rsp)
	jg	.L20
	testq	%r8, %r8
	je	.L22
	xorl	%eax, %eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	cmpq	%rax, %r8
	je	.L22
.L13:
	addq	$1, %rax
	cmpl	%edx, (%r12,%rax,4)
	jle	.L11
.L9:
	cmpq	%rax, %r8
	jbe	.L22
	movl	800080(%rsp), %esi
	leaq	(%r12,%rax,4), %rdi
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	leaq	(%r12,%r8,4), %r10
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L12:
	movl	(%rdi), %ecx
	cmpl	16(%rsp,%rax,4), %ecx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rax
	cmpl	%ecx, 0(%rbp,%rax,4)
	jl	.L14
.L17:
	cmpl	%esi, %ecx
	jl	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$1, %rdx
	movl	(%rbx,%rdx,4), %esi
	cmpl	%ecx, %esi
	jle	.L16
.L15:
	movq	%r8, %rcx
	addq	$4, %rdi
	subq	%rdx, %rcx
	imulq	%rax, %rcx
	addq	%rcx, %r9
	cmpq	%rdi, %r10
	jne	.L12
	jmp	.L10
.L22:
	xorl	%r9d, %r9d
.L10:
	xorl	%eax, %eax
	movq	%r9, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1200104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L40
	addq	$1200120, %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
.L7:
	.cfi_restore_state
	xorl	%esi, %esi
	leaq	800080(%rsp), %rbx
	jmp	.L18
.L20:
	xorl	%eax, %eax
	jmp	.L9
.L40:
	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 asc(const void *a,const void *b)
{
	return *(int *)a-*(int *)b;
}
int main()
{
	unsigned long long int n;
	scanf("%lld",&n);
	unsigned long long int i;
	int a[100005],b[100005],c[100005];
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
		scanf("%d",&b[i]);
	for(i=0;i<n;i++)
		scanf("%d",&c[i]);
	qsort(a,n,sizeof(int),asc);
	qsort(b,n,sizeof(int),asc);
	qsort(c,n,sizeof(int),asc);
	a[n]=2000000000;
	c[n]=2000000000;
	unsigned long long int j,k;
	unsigned long long int ans=0;
	i=j=k=0;
	while(a[i]>=b[j] && j<n)
		j++;
	for(;j<n;j++)
	{
		while(a[i]<b[j])
			i++;
		while(b[j]>=c[k])
			k++;
		ans+=i*(n-k);
	}
	printf("%lld\n",ans);
	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>
int asc(const void *a,const void *b)
{
	return *(int *)a-*(int *)b;
}
int main()
{
	unsigned long long int n;
	scanf("%lld",&n);
	unsigned long long int i;
	int a[100005],b[100005],c[100005];
	for(i=0;i<n;i++)
		scanf("%d",&a[i]);
	for(i=0;i<n;i++)
		scanf("%d",&b[i]);
	for(i=0;i<n;i++)
		scanf("%d",&c[i]);
	qsort(a,n,sizeof(int),asc);
	qsort(b,n,sizeof(int),asc);
	qsort(c,n,sizeof(int),asc);
	a[n]=2000000000;
	c[n]=2000000000;
	unsigned long long int j,k;
	unsigned long long int ans=0;
	i=j=k=0;
	while(a[i]>=b[j] && j<n)
		j++;
	for(;j<n;j++)
	{
		while(a[i]<b[j])
			i++;
		while(b[j]>=c[k])
			k++;
		ans+=i*(n-k);
	}
	printf("%lld\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asc
	.type	asc, @function
asc:
.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	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%lld"
.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
	leaq	-1200128(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1200128(%rbp)
	jmp	.L4
.L5:
	leaq	-1200096(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L4:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L5
	movq	$0, -1200128(%rbp)
	jmp	.L6
.L7:
	leaq	-800064(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L6:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L7
	movq	$0, -1200128(%rbp)
	jmp	.L8
.L9:
	leaq	-400032(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L8:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L9
	movq	-1200136(%rbp), %rsi
	leaq	-1200096(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-800064(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-400032(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -1200096(%rbp,%rax,4)
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -400032(%rbp,%rax,4)
	movq	$0, -1200104(%rbp)
	movq	$0, -1200112(%rbp)
	movq	-1200112(%rbp), %rax
	movq	%rax, -1200120(%rbp)
	movq	-1200120(%rbp), %rax
	movq	%rax, -1200128(%rbp)
	jmp	.L10
.L12:
	addq	$1, -1200120(%rbp)
.L10:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L13
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L12
	jmp	.L13
.L15:
	addq	$1, -1200128(%rbp)
.L14:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L15
	jmp	.L16
.L17:
	addq	$1, -1200112(%rbp)
.L16:
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %edx
	movq	-1200112(%rbp), %rax
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L17
	movq	-1200136(%rbp), %rax
	subq	-1200112(%rbp), %rax
	imulq	-1200128(%rbp), %rax
	addq	%rax, -1200104(%rbp)
	addq	$1, -1200120(%rbp)
.L13:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L14
	movq	-1200104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.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	asc
	.type	asc, @function
asc:
.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	asc, .-asc
	.section	.rodata
.LC0:
	.string	"%lld"
.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
	leaq	-1200128(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1200136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -1200128(%rbp)
	jmp	.L4
.L5:
	leaq	-1200096(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L4:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L5
	movq	$0, -1200128(%rbp)
	jmp	.L6
.L7:
	leaq	-800064(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L6:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L7
	movq	$0, -1200128(%rbp)
	jmp	.L8
.L9:
	leaq	-400032(%rbp), %rdx
	movq	-1200128(%rbp), %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -1200128(%rbp)
.L8:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200128(%rbp)
	jb	.L9
	movq	-1200136(%rbp), %rsi
	leaq	-1200096(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-800064(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rsi
	leaq	-400032(%rbp), %rax
	leaq	asc(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -1200096(%rbp,%rax,4)
	movq	-1200136(%rbp), %rax
	movl	$2000000000, -400032(%rbp,%rax,4)
	movq	$0, -1200104(%rbp)
	movq	$0, -1200112(%rbp)
	movq	-1200112(%rbp), %rax
	movq	%rax, -1200120(%rbp)
	movq	-1200120(%rbp), %rax
	movq	%rax, -1200128(%rbp)
	jmp	.L10
.L12:
	addq	$1, -1200120(%rbp)
.L10:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L13
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L12
	jmp	.L13
.L15:
	addq	$1, -1200128(%rbp)
.L14:
	movq	-1200128(%rbp), %rax
	movl	-1200096(%rbp,%rax,4), %edx
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L15
	jmp	.L16
.L17:
	addq	$1, -1200112(%rbp)
.L16:
	movq	-1200120(%rbp), %rax
	movl	-800064(%rbp,%rax,4), %edx
	movq	-1200112(%rbp), %rax
	movl	-400032(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L17
	movq	-1200136(%rbp), %rax
	subq	-1200112(%rbp), %rax
	imulq	-1200128(%rbp), %rax
	addq	%rax, -1200104(%rbp)
	addq	$1, -1200120(%rbp)
.L13:
	movq	-1200136(%rbp), %rax
	cmpq	%rax, -1200120(%rbp)
	jb	.L14
	movq	-1200104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.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:
