Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;

ll compare_ll(const void *a, const void *b){
    return *(ll*)a - *(ll*)b;
}

int main(){
    int n, m;
	ll money=0;
  	typedef struct{
      ll a,b;
    }st;
  	st store[100000]={0};

    scanf("%d%d", &n, &m);
    for(int i=0; i<n; i++){
		scanf("%lld%lld", &store[i].a, &store[i].b);
    }
    qsort( store, n, sizeof(store[0]), compare_ll );
	
	for(int i=0; i<n; i++){
		if( m > store[i].b ){ m -= store[i].b;	money += (store[i].a * store[i].b); }
		else				{					money += (store[i].a * m); break;   }
	}
	printf("%lld\n", money);
  	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_ll
	.type	compare_ll, @function
compare_ll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_ll, .-compare_ll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addl	$1, %r12d
	addq	$16, %rbp
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	compare_ll(%rip), %rcx
	movl	$16, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	subl	$1, %eax
	movl	12(%rsp), %ecx
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	salq	$4, %rax
	xorl	%r8d, %r8d
	leaq	32(%rsp,%rax), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	%eax, %ecx
	imulq	%rdi, %rax
	addq	$16, %rdx
	movl	$1, %r9d
	addq	%rax, %r8
	cmpq	%rdx, %r10
	je	.L18
.L8:
	movq	8(%rdx), %rax
	movslq	%ecx, %rsi
	movq	(%rdx), %rdi
	cmpq	%rax, %rsi
	jg	.L19
	testb	%r9b, %r9b
	je	.L9
	movl	%ecx, 12(%rsp)
.L9:
	imulq	%rdi, %rsi
	addq	%rsi, %r8
.L6:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1600040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, 12(%rsp)
	jmp	.L6
.L11:
	xorl	%r8d, %r8d
	jmp	.L6
.L20:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_ll
	.type	compare_ll, @function
compare_ll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_ll, .-compare_ll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addl	$1, %r12d
	addq	$16, %rbp
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	compare_ll(%rip), %rcx
	movl	$16, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	subl	$1, %eax
	movl	12(%rsp), %ecx
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	salq	$4, %rax
	xorl	%r8d, %r8d
	leaq	32(%rsp,%rax), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	%eax, %ecx
	imulq	%rdi, %rax
	addq	$16, %rdx
	movl	$1, %r9d
	addq	%rax, %r8
	cmpq	%rdx, %r10
	je	.L18
.L8:
	movq	8(%rdx), %rax
	movslq	%ecx, %rsi
	movq	(%rdx), %rdi
	cmpq	%rax, %rsi
	jg	.L19
	testb	%r9b, %r9b
	je	.L9
	movl	%ecx, 12(%rsp)
.L9:
	imulq	%rdi, %rsi
	addq	%rsi, %r8
.L6:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1600040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, 12(%rsp)
	jmp	.L6
.L11:
	xorl	%r8d, %r8d
	jmp	.L6
.L20:
	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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_ll
	.type	compare_ll, @function
compare_ll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_ll, .-compare_ll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addl	$1, %r12d
	addq	$16, %rbp
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	compare_ll(%rip), %rcx
	movl	$16, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	subl	$1, %eax
	movl	12(%rsp), %ecx
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	salq	$4, %rax
	xorl	%r8d, %r8d
	leaq	32(%rsp,%rax), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	%eax, %ecx
	imulq	%rdi, %rax
	addq	$16, %rdx
	movl	$1, %r9d
	addq	%rax, %r8
	cmpq	%rdx, %r10
	je	.L18
.L8:
	movq	8(%rdx), %rax
	movslq	%ecx, %rsi
	movq	(%rdx), %rdi
	cmpq	%rax, %rsi
	jg	.L19
	testb	%r9b, %r9b
	je	.L9
	movl	%ecx, 12(%rsp)
.L9:
	imulq	%rdi, %rsi
	addq	%rsi, %r8
.L6:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1600040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, 12(%rsp)
	jmp	.L6
.L11:
	xorl	%r8d, %r8d
	jmp	.L6
.L20:
	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:
```
```c
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;

ll compare_ll(const void *a, const void *b){
    return *(ll*)a - *(ll*)b;
}

int main(){
    int n, m;
	ll money=0;
  	typedef struct{
      ll a,b;
    }st;
  	st store[100000]={0};

    scanf("%d%d", &n, &m);
    for(int i=0; i<n; i++){
		scanf("%lld%lld", &store[i].a, &store[i].b);
    }
    qsort( store, n, sizeof(store[0]), compare_ll );
	
	for(int i=0; i<n; i++){
		if( m > store[i].b ){ m -= store[i].b;	money += (store[i].a * store[i].b); }
		else				{					money += (store[i].a * m); break;   }
	}
	printf("%lld\n", money);
  	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;

ll compare_ll(const void *a, const void *b){
    return *(ll*)a - *(ll*)b;
}

int main(){
    int n, m;
	ll money=0;
  	typedef struct{
      ll a,b;
    }st;
  	st store[100000]={0};

    scanf("%d%d", &n, &m);
    for(int i=0; i<n; i++){
		scanf("%lld%lld", &store[i].a, &store[i].b);
    }
    qsort( store, n, sizeof(store[0]), compare_ll );
	
	for(int i=0; i<n; i++){
		if( m > store[i].b ){ m -= store[i].b;	money += (store[i].a * store[i].b); }
		else				{					money += (store[i].a * m); break;   }
	}
	printf("%lld\n", money);
  	return 0;
}```

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.
Optimized Assembly Code:

4 30
6 18
2 6
3 10
7 9
 2 3
4 9
2 4
 4 30
6 18
2 1
3 10
7 9
 2 3
4 9
4 4
 2 6
4 9
4 4
 2 6
3 9
4 4
 2 6
3 9
2 4
 2 6
3 9
1 4
 2 3
3 4
1 6
 2 5
3 4
1 6

126
 6
 147
 12
 24
 18
 14
 10
 3
 5

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;

ll compare_ll(const void *a, const void *b){
    return *(ll*)a - *(ll*)b;
}

int main(){
    int n, m;
	ll money=0;
  	typedef struct{
      ll a,b;
    }st;
  	st store[100000]={0};

    scanf("%d%d", &n, &m);
    for(int i=0; i<n; i++){
		scanf("%lld%lld", &store[i].a, &store[i].b);
    }
    qsort( store, n, sizeof(store[0]), compare_ll );
	
	for(int i=0; i<n; i++){
		if( m > store[i].b ){ m -= store[i].b;	money += (store[i].a * store[i].b); }
		else				{					money += (store[i].a * m); break;   }
	}
	printf("%lld\n", money);
  	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_ll
	.type	compare_ll, @function
compare_ll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_ll, .-compare_ll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addl	$1, %r12d
	addq	$16, %rbp
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	compare_ll(%rip), %rcx
	movl	$16, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	subl	$1, %eax
	movl	12(%rsp), %ecx
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	salq	$4, %rax
	xorl	%r8d, %r8d
	leaq	32(%rsp,%rax), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	%eax, %ecx
	imulq	%rdi, %rax
	addq	$16, %rdx
	movl	$1, %r9d
	addq	%rax, %r8
	cmpq	%rdx, %r10
	je	.L18
.L8:
	movq	8(%rdx), %rax
	movslq	%ecx, %rsi
	movq	(%rdx), %rdi
	cmpq	%rax, %rsi
	jg	.L19
	testb	%r9b, %r9b
	je	.L9
	movl	%ecx, 12(%rsp)
.L9:
	imulq	%rdi, %rsi
	addq	%rsi, %r8
.L6:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1600040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, 12(%rsp)
	jmp	.L6
.L11:
	xorl	%r8d, %r8d
	jmp	.L6
.L20:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_ll
	.type	compare_ll, @function
compare_ll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_ll, .-compare_ll
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	movl	$1600000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%rbx, %rbp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	leaq	8(%rbp), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addl	$1, %r12d
	addq	$16, %rbp
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	compare_ll(%rip), %rcx
	movl	$16, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	subl	$1, %eax
	movl	12(%rsp), %ecx
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	salq	$4, %rax
	xorl	%r8d, %r8d
	leaq	32(%rsp,%rax), %r10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	subl	%eax, %ecx
	imulq	%rdi, %rax
	addq	$16, %rdx
	movl	$1, %r9d
	addq	%rax, %r8
	cmpq	%rdx, %r10
	je	.L18
.L8:
	movq	8(%rdx), %rax
	movslq	%ecx, %rsi
	movq	(%rdx), %rdi
	cmpq	%rax, %rsi
	jg	.L19
	testb	%r9b, %r9b
	je	.L9
	movl	%ecx, 12(%rsp)
.L9:
	imulq	%rdi, %rsi
	addq	%rsi, %r8
.L6:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$1600040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, 12(%rsp)
	jmp	.L6
.L11:
	xorl	%r8d, %r8d
	jmp	.L6
.L20:
	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:
```