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 <math.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
typedef long long LL;
typedef long double Lf;
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define MOD 1000000007
int acs(const void* a, const void* b) { return *(int*)a - *(int*)b; } //1,2,3,4
int des(const void* a, const void* b) { return *(int*)b - *(int*)a; } 
int cmp_char(const void* a, const void* b) { return *(char*)a - *(char*)b; } //a,b,c,d
int cmp_str(const void* a, const void* b) { return strcmp(*(const char**)a, *(const char**)b); } //aaa,aab
//temmie_のsnippet

typedef struct BC { int b; int c; }BC;
int cmp_BC(const void* a, const void* b) { return ((BC*)b)->c - ((BC*)a)->c; }//BCのcの大きい方から
#define N 100009//提出時確認
int main() {
	int n,m,x=0,a[N]; LL ans=0; BC q[N];
	scanf("%d%d",&n,&m);
	rep(i,n)scanf("%d",a+i);
	rep(i,m)scanf("%d%d",&q[i].b,&q[i].c);

	qsort(a,n,sizeof(int),acs);//aは小さい方から
	qsort(q,m,sizeof(BC),cmp_BC);//cは大きい方から

	rep(i,m)rep(j,q[i].b){if(q[i].c<=a[x])break;a[x++]=q[i].c;}//書換
	rep(i,n)ans+=(LL)a[i];
	printf("%lld",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.globl	des
	.type	des, @function
des:
.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, -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
.LFE7:
	.size	des, .-des
	.globl	cmp_char
	.type	cmp_char, @function
cmp_char:
.LFB8:
	.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp_char, .-cmp_char
	.globl	cmp_str
	.type	cmp_str, @function
cmp_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp_str, .-cmp_str
	.globl	cmp_BC
	.type	cmp_BC, @function
cmp_BC:
.LFB10:
	.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	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp_BC, .-cmp_BC
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1200160(%rbp)
	movq	$0, -1200136(%rbp)
	leaq	-1200164(%rbp), %rdx
	leaq	-1200168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200156(%rbp)
	jmp	.L12
.L13:
	movl	-1200156(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1200128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200156(%rbp)
.L12:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200156(%rbp)
	jl	.L13
	movl	$0, -1200152(%rbp)
	jmp	.L14
.L15:
	leaq	-800080(%rbp), %rdx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-800080(%rbp), %rcx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200152(%rbp)
.L14:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200152(%rbp)
	jl	.L15
	movl	-1200168(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1200128(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1200164(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800080(%rbp), %rax
	leaq	cmp_BC(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1200148(%rbp)
	jmp	.L16
.L21:
	movl	$0, -1200144(%rbp)
	jmp	.L17
.L20:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800076(%rbp,%rax,8), %edx
	movl	-1200160(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L26
	movl	-1200160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -1200160(%rbp)
	movl	-1200148(%rbp), %edx
	movslq	%edx, %rdx
	movl	-800076(%rbp,%rdx,8), %edx
	cltq
	movl	%edx, -1200128(%rbp,%rax,4)
	addl	$1, -1200144(%rbp)
.L17:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800080(%rbp,%rax,8), %eax
	cmpl	%eax, -1200144(%rbp)
	jl	.L20
	jmp	.L19
.L26:
	nop
.L19:
	addl	$1, -1200148(%rbp)
.L16:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200148(%rbp)
	jl	.L21
	movl	$0, -1200140(%rbp)
	jmp	.L22
.L23:
	movl	-1200140(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cltq
	addq	%rax, -1200136(%rbp)
	addl	$1, -1200140(%rbp)
.L22:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200140(%rbp)
	jl	.L23
	movq	-1200136(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	acs
	.type	acs, @function
acs:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	acs, .-acs
	.p2align 4
	.globl	cmp_BC
	.type	cmp_BC, @function
cmp_BC:
.LFB55:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %eax
	subl	4(%rdi), %eax
	ret
	.cfi_endproc
.LFE55:
	.size	cmp_BC, .-cmp_BC
	.p2align 4
	.globl	des
	.type	des, @function
des:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	des, .-des
	.p2align 4
	.globl	cmp_char
	.type	cmp_char, @function
cmp_char:
.LFB53:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	cmp_char, .-cmp_char
	.p2align 4
	.globl	cmp_str
	.type	cmp_str, @function
cmp_str:
.LFB54:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rsi
	movq	(%rdi), %rdi
	jmp	strcmp@PLT
	.cfi_endproc
.LFE54:
	.size	cmp_str, .-cmp_str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1200128(%rsp), %r11
	.cfi_def_cfa 11, 1200176
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$16, %rsp
	.cfi_def_cfa_offset 1200192
	leaq	.LC0(%rip), %r14
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200136(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 8(%rsp)
	jg	.L11
.L12:
	movl	12(%rsp), %eax
	leaq	400064(%rsp), %rbp
	xorl	%r13d, %r13d
	movq	%rbp, %r12
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	4(%r12), %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r13d
	addq	$8, %r12
	cmpl	%r13d, 12(%rsp)
	jg	.L15
.L10:
	movslq	8(%rsp), %rsi
	leaq	acs(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rsi
	movl	$8, %edx
	movq	%rbp, %rdi
	leaq	cmp_BC(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	subl	$1, %eax
	movq	%rbp, %rdi
	xorl	%edx, %edx
	leaq	400072(%rsp,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	.L16
	movslq	%edx, %rax
	movl	4(%rdi), %ecx
	addl	%edx, %esi
	leaq	(%rbx,%rax,4), %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L33:
	addl	$1, %edx
	movl	%ecx, (%rax)
	addq	$4, %rax
	cmpl	%esi, %edx
	je	.L16
.L17:
	cmpl	(%rax), %ecx
	jg	.L33
.L16:
	addq	$8, %rdi
	cmpq	%r8, %rdi
	jne	.L14
.L13:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L25
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L26
	movl	%eax, %edx
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqa	(%rbx), %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %rbx
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rdx, %rbx
	jne	.L21
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L19
.L20:
	movslq	%ecx, %rsi
	movslq	16(%rsp,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L19
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	16(%rsp,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L19
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rax
	addq	%rax, %rdx
.L19:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1200144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L19
.L26:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L20
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.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	acs
	.type	acs, @function
acs:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	acs, .-acs
	.p2align 4
	.globl	cmp_BC
	.type	cmp_BC, @function
cmp_BC:
.LFB55:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %eax
	subl	4(%rdi), %eax
	ret
	.cfi_endproc
.LFE55:
	.size	cmp_BC, .-cmp_BC
	.p2align 4
	.globl	des
	.type	des, @function
des:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	des, .-des
	.p2align 4
	.globl	cmp_char
	.type	cmp_char, @function
cmp_char:
.LFB53:
	.cfi_startproc
	endbr64
	movsbl	(%rdi), %eax
	movsbl	(%rsi), %edx
	subl	%edx, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	cmp_char, .-cmp_char
	.p2align 4
	.globl	cmp_str
	.type	cmp_str, @function
cmp_str:
.LFB54:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rsi
	movq	(%rdi), %rdi
	jmp	strcmp@PLT
	.cfi_endproc
.LFE54:
	.size	cmp_str, .-cmp_str
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB56:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-1200128(%rsp), %r11
	.cfi_def_cfa 11, 1200176
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$16, %rsp
	.cfi_def_cfa_offset 1200192
	leaq	.LC0(%rip), %r14
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1200136(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	addq	$4, %r12
	cmpl	%ebp, 8(%rsp)
	jg	.L11
.L12:
	movl	12(%rsp), %eax
	leaq	400064(%rsp), %rbp
	xorl	%r13d, %r13d
	movq	%rbp, %r12
	testl	%eax, %eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	leaq	4(%r12), %rdx
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r13d
	addq	$8, %r12
	cmpl	%r13d, 12(%rsp)
	jg	.L15
.L10:
	movslq	8(%rsp), %rsi
	leaq	acs(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rsi
	movl	$8, %edx
	movq	%rbp, %rdi
	leaq	cmp_BC(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	subl	$1, %eax
	movq	%rbp, %rdi
	xorl	%edx, %edx
	leaq	400072(%rsp,%rax,8), %r8
	.p2align 4,,10
	.p2align 3
.L14:
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	.L16
	movslq	%edx, %rax
	movl	4(%rdi), %ecx
	addl	%edx, %esi
	leaq	(%rbx,%rax,4), %rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L33:
	addl	$1, %edx
	movl	%ecx, (%rax)
	addq	$4, %rax
	cmpl	%esi, %edx
	je	.L16
.L17:
	cmpl	(%rax), %ecx
	jg	.L33
.L16:
	addq	$8, %rdi
	cmpq	%r8, %rdi
	jne	.L14
.L13:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L25
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L26
	movl	%eax, %edx
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	leaq	32(%rsp,%rdx), %rdx
	.p2align 4,,10
	.p2align 3
.L21:
	movdqa	(%rbx), %xmm0
	movdqa	%xmm4, %xmm2
	addq	$16, %rbx
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rdx, %rbx
	jne	.L21
	movdqa	%xmm1, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	testb	$3, %al
	je	.L19
.L20:
	movslq	%ecx, %rsi
	movslq	16(%rsp,%rsi,4), %rsi
	addq	%rsi, %rdx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L19
	movslq	%esi, %rsi
	addl	$2, %ecx
	movslq	16(%rsp,%rsi,4), %rsi
	addq	%rsi, %rdx
	cmpl	%ecx, %eax
	jle	.L19
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rax
	addq	%rax, %rdx
.L19:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1200144, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L25:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L19
.L26:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	.L20
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE56:
	.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>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
typedef long long LL;
typedef long double Lf;
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define MOD 1000000007
int acs(const void* a, const void* b) { return *(int*)a - *(int*)b; } //1,2,3,4
int des(const void* a, const void* b) { return *(int*)b - *(int*)a; } 
int cmp_char(const void* a, const void* b) { return *(char*)a - *(char*)b; } //a,b,c,d
int cmp_str(const void* a, const void* b) { return strcmp(*(const char**)a, *(const char**)b); } //aaa,aab
//temmie_のsnippet

typedef struct BC { int b; int c; }BC;
int cmp_BC(const void* a, const void* b) { return ((BC*)b)->c - ((BC*)a)->c; }//BCのcの大きい方から
#define N 100009//提出時確認
int main() {
	int n,m,x=0,a[N]; LL ans=0; BC q[N];
	scanf("%d%d",&n,&m);
	rep(i,n)scanf("%d",a+i);
	rep(i,m)scanf("%d%d",&q[i].b,&q[i].c);

	qsort(a,n,sizeof(int),acs);//aは小さい方から
	qsort(q,m,sizeof(BC),cmp_BC);//cは大きい方から

	rep(i,m)rep(j,q[i].b){if(q[i].c<=a[x])break;a[x++]=q[i].c;}//書換
	rep(i,n)ans+=(LL)a[i];
	printf("%lld",ans);
	return 0;
}
10 3
1 8 5 7 100 4 7 33 13 5
3 10
4 30
1 4
 3 2
5 1 1
2 3
1 5
 3 2
100 100 100
0 99
3 99
 11 3
1 1 1 1 1 1 1 1 1 1 1
3 1000000000
4 1000000000
3 1000000001
 10 2
0 8 5 7 100 4 7 33 24 5
3 10
4 30
1 4
 3 2
5 1 1
2 3
1 7
 10 2
0 8 5 7 100 4 7 33 24 5
3 15
4 30
1 4
 3 2
5 1 1
2 3
1 6
 3 2
5 1 1
2 3
2 6
 10 2
0 4 5 7 100 4 7 33 33 5
3 15
4 30
1 4

296 13 300 10000000004 307 15 322 14 17 331
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 <math.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
typedef long long LL;
typedef long double Lf;
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))
#define MOD 1000000007
int acs(const void* a, const void* b) { return *(int*)a - *(int*)b; } //1,2,3,4
int des(const void* a, const void* b) { return *(int*)b - *(int*)a; } 
int cmp_char(const void* a, const void* b) { return *(char*)a - *(char*)b; } //a,b,c,d
int cmp_str(const void* a, const void* b) { return strcmp(*(const char**)a, *(const char**)b); } //aaa,aab
//temmie_のsnippet

typedef struct BC { int b; int c; }BC;
int cmp_BC(const void* a, const void* b) { return ((BC*)b)->c - ((BC*)a)->c; }//BCのcの大きい方から
#define N 100009//提出時確認
int main() {
	int n,m,x=0,a[N]; LL ans=0; BC q[N];
	scanf("%d%d",&n,&m);
	rep(i,n)scanf("%d",a+i);
	rep(i,m)scanf("%d%d",&q[i].b,&q[i].c);

	qsort(a,n,sizeof(int),acs);//aは小さい方から
	qsort(q,m,sizeof(BC),cmp_BC);//cは大きい方から

	rep(i,m)rep(j,q[i].b){if(q[i].c<=a[x])break;a[x++]=q[i].c;}//書換
	rep(i,n)ans+=(LL)a[i];
	printf("%lld",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.globl	des
	.type	des, @function
des:
.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, -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
.LFE7:
	.size	des, .-des
	.globl	cmp_char
	.type	cmp_char, @function
cmp_char:
.LFB8:
	.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp_char, .-cmp_char
	.globl	cmp_str
	.type	cmp_str, @function
cmp_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp_str, .-cmp_str
	.globl	cmp_BC
	.type	cmp_BC, @function
cmp_BC:
.LFB10:
	.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	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp_BC, .-cmp_BC
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1200160(%rbp)
	movq	$0, -1200136(%rbp)
	leaq	-1200164(%rbp), %rdx
	leaq	-1200168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200156(%rbp)
	jmp	.L12
.L13:
	movl	-1200156(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1200128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200156(%rbp)
.L12:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200156(%rbp)
	jl	.L13
	movl	$0, -1200152(%rbp)
	jmp	.L14
.L15:
	leaq	-800080(%rbp), %rdx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-800080(%rbp), %rcx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200152(%rbp)
.L14:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200152(%rbp)
	jl	.L15
	movl	-1200168(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1200128(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1200164(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800080(%rbp), %rax
	leaq	cmp_BC(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1200148(%rbp)
	jmp	.L16
.L21:
	movl	$0, -1200144(%rbp)
	jmp	.L17
.L20:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800076(%rbp,%rax,8), %edx
	movl	-1200160(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L26
	movl	-1200160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -1200160(%rbp)
	movl	-1200148(%rbp), %edx
	movslq	%edx, %rdx
	movl	-800076(%rbp,%rdx,8), %edx
	cltq
	movl	%edx, -1200128(%rbp,%rax,4)
	addl	$1, -1200144(%rbp)
.L17:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800080(%rbp,%rax,8), %eax
	cmpl	%eax, -1200144(%rbp)
	jl	.L20
	jmp	.L19
.L26:
	nop
.L19:
	addl	$1, -1200148(%rbp)
.L16:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200148(%rbp)
	jl	.L21
	movl	$0, -1200140(%rbp)
	jmp	.L22
.L23:
	movl	-1200140(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cltq
	addq	%rax, -1200136(%rbp)
	addl	$1, -1200140(%rbp)
.L22:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200140(%rbp)
	jl	.L23
	movq	-1200136(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	acs
	.type	acs, @function
acs:
.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	acs, .-acs
	.globl	des
	.type	des, @function
des:
.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, -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
.LFE7:
	.size	des, .-des
	.globl	cmp_char
	.type	cmp_char, @function
cmp_char:
.LFB8:
	.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
	movzbl	(%rax), %eax
	movsbl	%al, %edx
	movq	-16(%rbp), %rax
	movzbl	(%rax), %eax
	movsbl	%al, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp_char, .-cmp_char
	.globl	cmp_str
	.type	cmp_str, @function
cmp_str:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp_str, .-cmp_str
	.globl	cmp_BC
	.type	cmp_BC, @function
cmp_BC:
.LFB10:
	.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	4(%rax), %edx
	movq	-8(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp_BC, .-cmp_BC
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -1200160(%rbp)
	movq	$0, -1200136(%rbp)
	leaq	-1200164(%rbp), %rdx
	leaq	-1200168(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1200156(%rbp)
	jmp	.L12
.L13:
	movl	-1200156(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-1200128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200156(%rbp)
.L12:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200156(%rbp)
	jl	.L13
	movl	$0, -1200152(%rbp)
	jmp	.L14
.L15:
	leaq	-800080(%rbp), %rdx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-800080(%rbp), %rcx
	movl	-1200152(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1200152(%rbp)
.L14:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200152(%rbp)
	jl	.L15
	movl	-1200168(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-1200128(%rbp), %rax
	leaq	acs(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	-1200164(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800080(%rbp), %rax
	leaq	cmp_BC(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -1200148(%rbp)
	jmp	.L16
.L21:
	movl	$0, -1200144(%rbp)
	jmp	.L17
.L20:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800076(%rbp,%rax,8), %edx
	movl	-1200160(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L26
	movl	-1200160(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -1200160(%rbp)
	movl	-1200148(%rbp), %edx
	movslq	%edx, %rdx
	movl	-800076(%rbp,%rdx,8), %edx
	cltq
	movl	%edx, -1200128(%rbp,%rax,4)
	addl	$1, -1200144(%rbp)
.L17:
	movl	-1200148(%rbp), %eax
	cltq
	movl	-800080(%rbp,%rax,8), %eax
	cmpl	%eax, -1200144(%rbp)
	jl	.L20
	jmp	.L19
.L26:
	nop
.L19:
	addl	$1, -1200148(%rbp)
.L16:
	movl	-1200164(%rbp), %eax
	cmpl	%eax, -1200148(%rbp)
	jl	.L21
	movl	$0, -1200140(%rbp)
	jmp	.L22
.L23:
	movl	-1200140(%rbp), %eax
	cltq
	movl	-1200128(%rbp,%rax,4), %eax
	cltq
	addq	%rax, -1200136(%rbp)
	addl	$1, -1200140(%rbp)
.L22:
	movl	-1200168(%rbp), %eax
	cmpl	%eax, -1200140(%rbp)
	jl	.L23
	movq	-1200136(%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	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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:
