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>
long long asc(const void *a,const void *b){
    return *(long long*)a - *(long long*)b;
}
int main(void){
    long long n,m,i,j,ans=0;
    scanf("%lld%lld",&n,&m);
    long long a[n][2];
    for(i=0;i<n;i++) scanf("%lld %lld",&a[i][0],&a[i][1]);
    qsort(a,n,sizeof(a[0]),asc);
    i = 0;
    while(1){
        if(m>a[i][1]){
            m-=a[i][1];
            ans += a[i][0]*a[i][1];
        }
        else{
            ans+=m*a[i][0];
            break;
        }
        i++;
    }
    printf("%lld",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rdx
	movq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rsp
	je	.L5
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L19
.L5:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L20
.L6:
	leaq	7(%rsp), %r12
	movq	%r12, %r15
	andq	$-8, %r12
	shrq	$3, %r15
	testq	%rsi, %rsi
	jle	.L7
	movq	%r12, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	jg	.L8
.L7:
	movl	$16, %edx
	leaq	asc(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	8(,%r15,8), %rax
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	jge	.L12
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	subq	%rax, %rdx
	imulq	(%rcx), %rax
	addq	$16, %rcx
	addq	$1, %rsi
	addq	%rax, %rdi
	movq	8(%rcx), %rax
	cmpq	%rdx, %rax
	jl	.L10
	movq	%rdx, -64(%rbp)
.L9:
	salq	$4, %rsi
	xorl	%eax, %eax
	imulq	(%r12,%rsi), %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L6
.L12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L9
.L21:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rdx
	movq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rsp
	je	.L5
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L19
.L5:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L20
.L6:
	leaq	7(%rsp), %r12
	movq	%r12, %r15
	andq	$-8, %r12
	shrq	$3, %r15
	testq	%rsi, %rsi
	jle	.L7
	movq	%r12, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	jg	.L8
.L7:
	movl	$16, %edx
	leaq	asc(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	8(,%r15,8), %rax
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	jge	.L12
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	subq	%rax, %rdx
	imulq	(%rcx), %rax
	addq	$16, %rcx
	addq	$1, %rsi
	addq	%rax, %rdi
	movq	8(%rcx), %rax
	cmpq	%rdx, %rax
	jl	.L10
	movq	%rdx, -64(%rbp)
.L9:
	salq	$4, %rsi
	xorl	%eax, %eax
	imulq	(%r12,%rsi), %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L6
.L12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L9
.L21:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rdx
	movq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rsp
	je	.L5
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L19
.L5:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L20
.L6:
	leaq	7(%rsp), %r12
	movq	%r12, %r15
	andq	$-8, %r12
	shrq	$3, %r15
	testq	%rsi, %rsi
	jle	.L7
	movq	%r12, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	jg	.L8
.L7:
	movl	$16, %edx
	leaq	asc(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	8(,%r15,8), %rax
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	jge	.L12
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	subq	%rax, %rdx
	imulq	(%rcx), %rax
	addq	$16, %rcx
	addq	$1, %rsi
	addq	%rax, %rdi
	movq	8(%rcx), %rax
	cmpq	%rdx, %rax
	jl	.L10
	movq	%rdx, -64(%rbp)
.L9:
	salq	$4, %rsi
	xorl	%eax, %eax
	imulq	(%r12,%rsi), %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L6
.L12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L9
.L21:
	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>
long long asc(const void *a,const void *b){
    return *(long long*)a - *(long long*)b;
}
int main(void){
    long long n,m,i,j,ans=0;
    scanf("%lld%lld",&n,&m);
    long long a[n][2];
    for(i=0;i<n;i++) scanf("%lld %lld",&a[i][0],&a[i][1]);
    qsort(a,n,sizeof(a[0]),asc);
    i = 0;
    while(1){
        if(m>a[i][1]){
            m-=a[i][1];
            ans += a[i][0]*a[i][1];
        }
        else{
            ans+=m*a[i][0];
            break;
        }
        i++;
    }
    printf("%lld",ans);
}```
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>
long long asc(const void *a,const void *b){
    return *(long long*)a - *(long long*)b;
}
int main(void){
    long long n,m,i,j,ans=0;
    scanf("%lld%lld",&n,&m);
    long long a[n][2];
    for(i=0;i<n;i++) scanf("%lld %lld",&a[i][0],&a[i][1]);
    qsort(a,n,sizeof(a[0]),asc);
    i = 0;
    while(1){
        if(m>a[i][1]){
            m-=a[i][1];
            ans += a[i][0]*a[i][1];
        }
        else{
            ans+=m*a[i][0];
            break;
        }
        i++;
    }
    printf("%lld",ans);
}```

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>
long long asc(const void *a,const void *b){
    return *(long long*)a - *(long long*)b;
}
int main(void){
    long long n,m,i,j,ans=0;
    scanf("%lld%lld",&n,&m);
    long long a[n][2];
    for(i=0;i<n;i++) scanf("%lld %lld",&a[i][0],&a[i][1]);
    qsort(a,n,sizeof(a[0]),asc);
    i = 0;
    while(1){
        if(m>a[i][1]){
            m-=a[i][1];
            ans += a[i][0]*a[i][1];
        }
        else{
            ans+=m*a[i][0];
            break;
        }
        i++;
    }
    printf("%lld",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rdx
	movq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rsp
	je	.L5
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L19
.L5:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L20
.L6:
	leaq	7(%rsp), %r12
	movq	%r12, %r15
	andq	$-8, %r12
	shrq	$3, %r15
	testq	%rsi, %rsi
	jle	.L7
	movq	%r12, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	jg	.L8
.L7:
	movl	$16, %edx
	leaq	asc(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	8(,%r15,8), %rax
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	jge	.L12
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	subq	%rax, %rdx
	imulq	(%rcx), %rax
	addq	$16, %rcx
	addq	$1, %rsi
	addq	%rax, %rdi
	movq	8(%rcx), %rax
	cmpq	%rdx, %rax
	jl	.L10
	movq	%rdx, -64(%rbp)
.L9:
	salq	$4, %rsi
	xorl	%eax, %eax
	imulq	(%r12,%rsi), %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L6
.L12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L9
.L21:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subq	(%rsi), %rax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld %lld"
.LC2:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rdx
	movq	%rsi, %rax
	salq	$4, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rsp
	je	.L5
.L19:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdx, %rsp
	jne	.L19
.L5:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L20
.L6:
	leaq	7(%rsp), %r12
	movq	%r12, %r15
	andq	$-8, %r12
	shrq	$3, %r15
	testq	%rsi, %rsi
	jle	.L7
	movq	%r12, %rbx
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$1, %r13
	addq	$16, %rbx
	cmpq	%r13, %rsi
	jg	.L8
.L7:
	movl	$16, %edx
	leaq	asc(%rip), %rcx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	8(,%r15,8), %rax
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	jge	.L12
	movq	%r12, %rcx
	xorl	%edi, %edi
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L10:
	subq	%rax, %rdx
	imulq	(%rcx), %rax
	addq	$16, %rcx
	addq	$1, %rsi
	addq	%rax, %rdi
	movq	8(%rcx), %rax
	cmpq	%rdx, %rax
	jl	.L10
	movq	%rdx, -64(%rbp)
.L9:
	salq	$4, %rsi
	xorl	%eax, %eax
	imulq	(%r12,%rsi), %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L21
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L20:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rax)
	jmp	.L6
.L12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	.L9
.L21:
	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:
```