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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

struct drink {
    int price;
    int stock;
};

int asc_by_price(const void *a1, const void *a2) {
    struct drink *d1 = (struct drink*)a1;
    struct drink *d2 = (struct drink*)a2;
    return d1->price - d2->price;
}

#define NUM_MAX 100000

int main(void) {
    int num, llimit;
    static struct drink drinks[NUM_MAX];
    get_int2(&num, &llimit);
    int i;
    for(i = 0; i < num; i++) {
        get_int2(&drinks[i].price, &drinks[i].stock);
    }
    qsort(drinks, num, sizeof(struct drink), asc_by_price);

    int64_t cost = 0;
    for(i = 0; i < num; i++) {
        if(llimit <= 0) break;
        int n = min(llimit, drinks[i].stock);
        cost += (int64_t)drinks[i].price * n;
        llimit -= n;
    }
    printf("%lld\n", cost);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc_by_price
	.type	asc_by_price, @function
asc_by_price:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	asc_by_price, .-asc_by_price
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	leaq	drinks.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	leaq	asc_by_price(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	leaq	drinks.0(%rip), %rcx
	leal	-1(%rax), %esi
	movl	4(%rsp), %edx
	xorl	%r8d, %r8d
	leaq	8(%rcx), %rax
	leaq	(%rax,%rsi,8), %r9
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	4(%rcx), %eax
	movslq	(%rcx), %rsi
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addq	$8, %rcx
	movslq	%eax, %rdi
	subl	%eax, %edx
	movl	$1, %eax
	imulq	%rdi, %rsi
	addq	%rsi, %r8
	cmpq	%rcx, %r9
	je	.L21
.L11:
	testl	%edx, %edx
	jg	.L9
	testb	%al, %al
	je	.L8
.L21:
	movl	%edx, 4(%rsp)
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.local	drinks.0
	.comm	drinks.0,800000,32
	.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_by_price
	.type	asc_by_price, @function
asc_by_price:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	asc_by_price, .-asc_by_price
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	leaq	drinks.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	leaq	asc_by_price(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	leaq	drinks.0(%rip), %rcx
	leal	-1(%rax), %esi
	movl	4(%rsp), %edx
	xorl	%r8d, %r8d
	leaq	8(%rcx), %rax
	leaq	(%rax,%rsi,8), %r9
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	4(%rcx), %eax
	movslq	(%rcx), %rsi
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addq	$8, %rcx
	movslq	%eax, %rdi
	subl	%eax, %edx
	movl	$1, %eax
	imulq	%rdi, %rsi
	addq	%rsi, %r8
	cmpq	%rcx, %r9
	je	.L21
.L11:
	testl	%edx, %edx
	jg	.L9
	testb	%al, %al
	je	.L8
.L21:
	movl	%edx, 4(%rsp)
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.local	drinks.0
	.comm	drinks.0,800000,32
	.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_by_price
	.type	asc_by_price, @function
asc_by_price:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	asc_by_price, .-asc_by_price
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	leaq	drinks.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	leaq	asc_by_price(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	leaq	drinks.0(%rip), %rcx
	leal	-1(%rax), %esi
	movl	4(%rsp), %edx
	xorl	%r8d, %r8d
	leaq	8(%rcx), %rax
	leaq	(%rax,%rsi,8), %r9
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	4(%rcx), %eax
	movslq	(%rcx), %rsi
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addq	$8, %rcx
	movslq	%eax, %rdi
	subl	%eax, %edx
	movl	$1, %eax
	imulq	%rdi, %rsi
	addq	%rsi, %r8
	cmpq	%rcx, %r9
	je	.L21
.L11:
	testl	%edx, %edx
	jg	.L9
	testb	%al, %al
	je	.L8
.L21:
	movl	%edx, 4(%rsp)
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.local	drinks.0
	.comm	drinks.0,800000,32
	.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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

struct drink {
    int price;
    int stock;
};

int asc_by_price(const void *a1, const void *a2) {
    struct drink *d1 = (struct drink*)a1;
    struct drink *d2 = (struct drink*)a2;
    return d1->price - d2->price;
}

#define NUM_MAX 100000

int main(void) {
    int num, llimit;
    static struct drink drinks[NUM_MAX];
    get_int2(&num, &llimit);
    int i;
    for(i = 0; i < num; i++) {
        get_int2(&drinks[i].price, &drinks[i].stock);
    }
    qsort(drinks, num, sizeof(struct drink), asc_by_price);

    int64_t cost = 0;
    for(i = 0; i < num; i++) {
        if(llimit <= 0) break;
        int n = min(llimit, drinks[i].stock);
        cost += (int64_t)drinks[i].price * n;
        llimit -= n;
    }
    printf("%lld\n", cost);
    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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

struct drink {
    int price;
    int stock;
};

int asc_by_price(const void *a1, const void *a2) {
    struct drink *d1 = (struct drink*)a1;
    struct drink *d2 = (struct drink*)a2;
    return d1->price - d2->price;
}

#define NUM_MAX 100000

int main(void) {
    int num, llimit;
    static struct drink drinks[NUM_MAX];
    get_int2(&num, &llimit);
    int i;
    for(i = 0; i < num; i++) {
        get_int2(&drinks[i].price, &drinks[i].stock);
    }
    qsort(drinks, num, sizeof(struct drink), asc_by_price);

    int64_t cost = 0;
    for(i = 0; i < num; i++) {
        if(llimit <= 0) break;
        int n = min(llimit, drinks[i].stock);
        cost += (int64_t)drinks[i].price * n;
        llimit -= n;
    }
    printf("%lld\n", cost);
    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 <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t

#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))

int get_int2(int *a1, int *a2) {
  scanf("%d %d", a1, a2);
  return 0;
}

struct drink {
    int price;
    int stock;
};

int asc_by_price(const void *a1, const void *a2) {
    struct drink *d1 = (struct drink*)a1;
    struct drink *d2 = (struct drink*)a2;
    return d1->price - d2->price;
}

#define NUM_MAX 100000

int main(void) {
    int num, llimit;
    static struct drink drinks[NUM_MAX];
    get_int2(&num, &llimit);
    int i;
    for(i = 0; i < num; i++) {
        get_int2(&drinks[i].price, &drinks[i].stock);
    }
    qsort(drinks, num, sizeof(struct drink), asc_by_price);

    int64_t cost = 0;
    for(i = 0; i < num; i++) {
        if(llimit <= 0) break;
        int n = min(llimit, drinks[i].stock);
        cost += (int64_t)drinks[i].price * n;
        llimit -= n;
    }
    printf("%lld\n", cost);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc_by_price
	.type	asc_by_price, @function
asc_by_price:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	asc_by_price, .-asc_by_price
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	leaq	drinks.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	leaq	asc_by_price(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	leaq	drinks.0(%rip), %rcx
	leal	-1(%rax), %esi
	movl	4(%rsp), %edx
	xorl	%r8d, %r8d
	leaq	8(%rcx), %rax
	leaq	(%rax,%rsi,8), %r9
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	4(%rcx), %eax
	movslq	(%rcx), %rsi
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addq	$8, %rcx
	movslq	%eax, %rdi
	subl	%eax, %edx
	movl	$1, %eax
	imulq	%rdi, %rsi
	addq	%rsi, %r8
	cmpq	%rcx, %r9
	je	.L21
.L11:
	testl	%edx, %edx
	jg	.L9
	testb	%al, %al
	je	.L8
.L21:
	movl	%edx, 4(%rsp)
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.local	drinks.0
	.comm	drinks.0,800000,32
	.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_by_price
	.type	asc_by_price, @function
asc_by_price:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	asc_by_price, .-asc_by_price
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.text
	.p2align 4
	.globl	get_int2
	.type	get_int2, @function
get_int2:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movq	%rdi, %rsi
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE51:
	.size	get_int2, .-get_int2
	.section	.rodata.str1.1
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	leaq	drinks.0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	4(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	testl	%esi, %esi
	jle	.L6
	movq	%r12, %rbx
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rsi
	addl	$1, %ebp
	addq	$8, %rbx
	cmpl	%ebp, %esi
	jg	.L7
.L6:
	leaq	asc_by_price(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	leaq	drinks.0(%rip), %rcx
	leal	-1(%rax), %esi
	movl	4(%rsp), %edx
	xorl	%r8d, %r8d
	leaq	8(%rcx), %rax
	leaq	(%rax,%rsi,8), %r9
	xorl	%eax, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	movl	4(%rcx), %eax
	movslq	(%rcx), %rsi
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	addq	$8, %rcx
	movslq	%eax, %rdi
	subl	%eax, %edx
	movl	$1, %eax
	imulq	%rdi, %rsi
	addq	%rsi, %r8
	cmpq	%rcx, %r9
	je	.L21
.L11:
	testl	%edx, %edx
	jg	.L9
	testb	%al, %al
	je	.L8
.L21:
	movl	%edx, 4(%rsp)
.L8:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.local	drinks.0
	.comm	drinks.0,800000,32
	.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:
```