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>
#include <string.h>
#include <limits.h>
#include <math.h>

typedef struct dish_t {
    int a;
    int b;
    int c;
} DISH;

int qsort_dish(const void *a, const void *b)
{
    //降順
    return ((*(DISH *)b).c) - ((*(DISH *)a).c);
}

int main(int argc, char *argv[])
{
    int n;
    DISH dish[100000];
    int i;
    long long point_tkhs, point_aoki;
    long long ans;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%d %d", &dish[i].a, &dish[i].b);
        dish[i].c = dish[i].a + dish[i].b;
    }

    qsort(dish, n, sizeof(DISH), qsort_dish);

    point_tkhs = 0;
    point_aoki = 0;
    for (i = 0; i < n; i++) {
        if (i % 2 == 0) {
            point_tkhs += (long long) dish[i].a;
        } else {
            point_aoki += (long long) dish[i].b;
        }
    }

    ans = point_tkhs - point_aoki;

    printf("%lld\n", ans);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsort_dish
	.type	qsort_dish, @function
qsort_dish:
.LFB51:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %eax
	subl	8(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	qsort_dish, .-qsort_dish
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200080
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	movq	%rbp, %rbx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movslq	12(%rsp), %rsi
	movl	%eax, 8(%rbx)
	addq	$12, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	qsort_dish(%rip), %rcx
	movl	$12, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L11
	movq	%rbp, %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdx
	cmpl	%eax, %esi
	je	.L6
.L9:
	testb	$1, %al
	je	.L17
	movslq	4(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdi
	cmpl	%eax, %esi
	jne	.L9
.L6:
	subq	%rdi, %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1200040, %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
.L11:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	qsort_dish
	.type	qsort_dish, @function
qsort_dish:
.LFB51:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %eax
	subl	8(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	qsort_dish, .-qsort_dish
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200080
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	movq	%rbp, %rbx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movslq	12(%rsp), %rsi
	movl	%eax, 8(%rbx)
	addq	$12, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	qsort_dish(%rip), %rcx
	movl	$12, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L11
	movq	%rbp, %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdx
	cmpl	%eax, %esi
	je	.L6
.L9:
	testb	$1, %al
	je	.L17
	movslq	4(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdi
	cmpl	%eax, %esi
	jne	.L9
.L6:
	subq	%rdi, %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1200040, %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
.L11:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	qsort_dish
	.type	qsort_dish, @function
qsort_dish:
.LFB51:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %eax
	subl	8(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	qsort_dish, .-qsort_dish
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200080
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	movq	%rbp, %rbx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movslq	12(%rsp), %rsi
	movl	%eax, 8(%rbx)
	addq	$12, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	qsort_dish(%rip), %rcx
	movl	$12, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L11
	movq	%rbp, %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdx
	cmpl	%eax, %esi
	je	.L6
.L9:
	testb	$1, %al
	je	.L17
	movslq	4(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdi
	cmpl	%eax, %esi
	jne	.L9
.L6:
	subq	%rdi, %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1200040, %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
.L11:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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>
#include <string.h>
#include <limits.h>
#include <math.h>

typedef struct dish_t {
    int a;
    int b;
    int c;
} DISH;

int qsort_dish(const void *a, const void *b)
{
    //降順
    return ((*(DISH *)b).c) - ((*(DISH *)a).c);
}

int main(int argc, char *argv[])
{
    int n;
    DISH dish[100000];
    int i;
    long long point_tkhs, point_aoki;
    long long ans;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%d %d", &dish[i].a, &dish[i].b);
        dish[i].c = dish[i].a + dish[i].b;
    }

    qsort(dish, n, sizeof(DISH), qsort_dish);

    point_tkhs = 0;
    point_aoki = 0;
    for (i = 0; i < n; i++) {
        if (i % 2 == 0) {
            point_tkhs += (long long) dish[i].a;
        } else {
            point_aoki += (long long) dish[i].b;
        }
    }

    ans = point_tkhs - point_aoki;

    printf("%lld\n", ans);

    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>
#include <string.h>
#include <limits.h>
#include <math.h>

typedef struct dish_t {
    int a;
    int b;
    int c;
} DISH;

int qsort_dish(const void *a, const void *b)
{
    //降順
    return ((*(DISH *)b).c) - ((*(DISH *)a).c);
}

int main(int argc, char *argv[])
{
    int n;
    DISH dish[100000];
    int i;
    long long point_tkhs, point_aoki;
    long long ans;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%d %d", &dish[i].a, &dish[i].b);
        dish[i].c = dish[i].a + dish[i].b;
    }

    qsort(dish, n, sizeof(DISH), qsort_dish);

    point_tkhs = 0;
    point_aoki = 0;
    for (i = 0; i < n; i++) {
        if (i % 2 == 0) {
            point_tkhs += (long long) dish[i].a;
        } else {
            point_aoki += (long long) dish[i].b;
        }
    }

    ans = point_tkhs - point_aoki;

    printf("%lld\n", ans);

    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:

3
20 10
16 20
20 30
 3
10 10
20 34
30 30
 6
1 1000000000
1 1000000000
1 1000000000
1 1000000000
1 1000000000
1 1000000001
 3
20 10
16 20
20 7
 3
10 10
20 4
30 30
 6
1 1000000000
1 1000000000
1 1000000000
1 1000000000
1 1000000000
2 1000000001
 3
20 2
16 20
20 7
 3
15 10
20 4
30 30
 6
1 1000000000
1 1000000000
1 1000000000
1 1010000000
1 1000000000
2 1000000001
 3
20 2
1 20
20 7

20
 6
 -2999999997
 26
 36
 -2999999996
 29
 40
 -2999999998
 19

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>
#include <string.h>
#include <limits.h>
#include <math.h>

typedef struct dish_t {
    int a;
    int b;
    int c;
} DISH;

int qsort_dish(const void *a, const void *b)
{
    //降順
    return ((*(DISH *)b).c) - ((*(DISH *)a).c);
}

int main(int argc, char *argv[])
{
    int n;
    DISH dish[100000];
    int i;
    long long point_tkhs, point_aoki;
    long long ans;

    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        scanf("%d %d", &dish[i].a, &dish[i].b);
        dish[i].c = dish[i].a + dish[i].b;
    }

    qsort(dish, n, sizeof(DISH), qsort_dish);

    point_tkhs = 0;
    point_aoki = 0;
    for (i = 0; i < n; i++) {
        if (i % 2 == 0) {
            point_tkhs += (long long) dish[i].a;
        } else {
            point_aoki += (long long) dish[i].b;
        }
    }

    ans = point_tkhs - point_aoki;

    printf("%lld\n", ans);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsort_dish
	.type	qsort_dish, @function
qsort_dish:
.LFB51:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %eax
	subl	8(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	qsort_dish, .-qsort_dish
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200080
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	movq	%rbp, %rbx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movslq	12(%rsp), %rsi
	movl	%eax, 8(%rbx)
	addq	$12, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	qsort_dish(%rip), %rcx
	movl	$12, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L11
	movq	%rbp, %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdx
	cmpl	%eax, %esi
	je	.L6
.L9:
	testb	$1, %al
	je	.L17
	movslq	4(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdi
	cmpl	%eax, %esi
	jne	.L9
.L6:
	subq	%rdi, %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1200040, %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
.L11:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	qsort_dish
	.type	qsort_dish, @function
qsort_dish:
.LFB51:
	.cfi_startproc
	endbr64
	movl	8(%rsi), %eax
	subl	8(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	qsort_dish, .-qsort_dish
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-1196032(%rsp), %r11
	.cfi_def_cfa 11, 1196072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4008, %rsp
	.cfi_def_cfa_offset 1200080
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 1200024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	movq	%rbp, %rbx
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	4(%rbx), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	addl	$1, %r12d
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	movslq	12(%rsp), %rsi
	movl	%eax, 8(%rbx)
	addq	$12, %rbx
	cmpl	%r12d, %esi
	jg	.L5
.L4:
	leaq	qsort_dish(%rip), %rcx
	movl	$12, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L11
	movq	%rbp, %rcx
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	movslq	(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdx
	cmpl	%eax, %esi
	je	.L6
.L9:
	testb	$1, %al
	je	.L17
	movslq	4(%rcx), %r8
	addl	$1, %eax
	addq	$12, %rcx
	addq	%r8, %rdi
	cmpl	%eax, %esi
	jne	.L9
.L6:
	subq	%rdi, %rdx
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1200024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1200040, %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
.L11:
	.cfi_restore_state
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L6
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:
```