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>

int get_num,fukuro_num;
int price[1000];

int qsort_comp(const void* x,const void* y) {
	int* a=(int*)x;
	int* b=(int*)y;
	if(*a<*b)return 1;
	if(*a>*b)return -1;
	return 0;
}

int main(void) {
	int i;
	int result;
	while(1) {
		scanf("%d%d",&get_num,&fukuro_num);
		if(get_num==0 && fukuro_num==0)break;
		for(i=0;i<get_num;i++)scanf("%d",&price[i]);
		qsort(price,get_num,sizeof(int),qsort_comp);
		for(i=0,result=0;i<get_num;i++) {
			if((i+1)%fukuro_num!=0)result+=price[i];
		}
		printf("%d\n",result);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsort_comp
	.type	qsort_comp, @function
qsort_comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jl	.L1
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsort_comp, .-qsort_comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	fukuro_num(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	get_num(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4+price(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	testl	%esi, %esi
	jne	.L22
	movl	fukuro_num(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	leaq	qsort_comp(%rip), %rcx
	movl	$4, %edx
	leaq	price(%rip), %rdi
	call	qsort@PLT
	movl	get_num(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	movl	fukuro_num(%rip), %esi
	leal	1(%rax), %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L12
	addl	0(%rbp,%rcx,4), %r8d
.L12:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L13
.L11:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	jle	.L8
	leaq	price(%rip), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	addq	$4, %r12
	cmpl	%r15d, %esi
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%r8d, %r8d
	jmp	.L11
.L23:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	price
	.bss
	.align 32
	.type	price, @object
	.size	price, 4000
price:
	.zero	4000
	.globl	fukuro_num
	.align 4
	.type	fukuro_num, @object
	.size	fukuro_num, 4
fukuro_num:
	.zero	4
	.globl	get_num
	.align 4
	.type	get_num, @object
	.size	get_num, 4
get_num:
	.zero	4
	.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_comp
	.type	qsort_comp, @function
qsort_comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jl	.L1
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsort_comp, .-qsort_comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	fukuro_num(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	get_num(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4+price(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	testl	%esi, %esi
	jne	.L22
	movl	fukuro_num(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	leaq	qsort_comp(%rip), %rcx
	movl	$4, %edx
	leaq	price(%rip), %rdi
	call	qsort@PLT
	movl	get_num(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	movl	fukuro_num(%rip), %esi
	leal	1(%rax), %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L12
	addl	0(%rbp,%rcx,4), %r8d
.L12:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L13
.L11:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	jle	.L8
	leaq	price(%rip), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	addq	$4, %r12
	cmpl	%r15d, %esi
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%r8d, %r8d
	jmp	.L11
.L23:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	price
	.bss
	.align 32
	.type	price, @object
	.size	price, 4000
price:
	.zero	4000
	.globl	fukuro_num
	.align 4
	.type	fukuro_num, @object
	.size	fukuro_num, 4
fukuro_num:
	.zero	4
	.globl	get_num
	.align 4
	.type	get_num, @object
	.size	get_num, 4
get_num:
	.zero	4
	.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_comp
	.type	qsort_comp, @function
qsort_comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jl	.L1
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsort_comp, .-qsort_comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	fukuro_num(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	get_num(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4+price(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	testl	%esi, %esi
	jne	.L22
	movl	fukuro_num(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	leaq	qsort_comp(%rip), %rcx
	movl	$4, %edx
	leaq	price(%rip), %rdi
	call	qsort@PLT
	movl	get_num(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	movl	fukuro_num(%rip), %esi
	leal	1(%rax), %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L12
	addl	0(%rbp,%rcx,4), %r8d
.L12:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L13
.L11:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	jle	.L8
	leaq	price(%rip), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	addq	$4, %r12
	cmpl	%r15d, %esi
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%r8d, %r8d
	jmp	.L11
.L23:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	price
	.bss
	.align 32
	.type	price, @object
	.size	price, 4000
price:
	.zero	4000
	.globl	fukuro_num
	.align 4
	.type	fukuro_num, @object
	.size	fukuro_num, 4
fukuro_num:
	.zero	4
	.globl	get_num
	.align 4
	.type	get_num, @object
	.size	get_num, 4
get_num:
	.zero	4
	.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>

int get_num,fukuro_num;
int price[1000];

int qsort_comp(const void* x,const void* y) {
	int* a=(int*)x;
	int* b=(int*)y;
	if(*a<*b)return 1;
	if(*a>*b)return -1;
	return 0;
}

int main(void) {
	int i;
	int result;
	while(1) {
		scanf("%d%d",&get_num,&fukuro_num);
		if(get_num==0 && fukuro_num==0)break;
		for(i=0;i<get_num;i++)scanf("%d",&price[i]);
		qsort(price,get_num,sizeof(int),qsort_comp);
		for(i=0,result=0;i<get_num;i++) {
			if((i+1)%fukuro_num!=0)result+=price[i];
		}
		printf("%d\n",result);
	}
	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>

int get_num,fukuro_num;
int price[1000];

int qsort_comp(const void* x,const void* y) {
	int* a=(int*)x;
	int* b=(int*)y;
	if(*a<*b)return 1;
	if(*a>*b)return -1;
	return 0;
}

int main(void) {
	int i;
	int result;
	while(1) {
		scanf("%d%d",&get_num,&fukuro_num);
		if(get_num==0 && fukuro_num==0)break;
		for(i=0;i<get_num;i++)scanf("%d",&price[i]);
		qsort(price,get_num,sizeof(int),qsort_comp);
		for(i=0,result=0;i<get_num;i++) {
			if((i+1)%fukuro_num!=0)result+=price[i];
		}
		printf("%d\n",result);
	}
	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 2
50 40 100 80
7 3
400 300 100 700 200 600 57
0 0
 4 2
50 40 100 80
7 3
400 300 100 700 352 600 57
0 0
 4 3
50 40 100 80
7 3
400 300 100 700 352 600 57
0 0
 4 3
50 40 100 80
7 3
400 290 100 700 352 600 57
0 0
 4 3
50 40 100 80
7 3
400 290 000 700 352 600 57
0 0
 4 3
50 40 100 80
7 3
400 284 000 700 352 600 57
0 0
 4 3
50 40 100 80
7 4
400 284 000 700 352 600 57
0 0
 4 3
50 40 100 80
7 4
400 284 000 700 352 650 57
0 0
 4 2
50 40 100 80
7 4
400 284 000 700 352 650 57
0 0
 4 2
50 40 100 80
7 3
400 139 100 700 200 600 500
0 0

150
1857
 150
2009
 220
2009
 220
1999
 220
1942
 220
1936
 220
2041
 220
2091
 150
2091
 150
2000

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>

int get_num,fukuro_num;
int price[1000];

int qsort_comp(const void* x,const void* y) {
	int* a=(int*)x;
	int* b=(int*)y;
	if(*a<*b)return 1;
	if(*a>*b)return -1;
	return 0;
}

int main(void) {
	int i;
	int result;
	while(1) {
		scanf("%d%d",&get_num,&fukuro_num);
		if(get_num==0 && fukuro_num==0)break;
		for(i=0;i<get_num;i++)scanf("%d",&price[i]);
		qsort(price,get_num,sizeof(int),qsort_comp);
		for(i=0,result=0;i<get_num;i++) {
			if((i+1)%fukuro_num!=0)result+=price[i];
		}
		printf("%d\n",result);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	qsort_comp
	.type	qsort_comp, @function
qsort_comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jl	.L1
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsort_comp, .-qsort_comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	fukuro_num(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	get_num(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4+price(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	testl	%esi, %esi
	jne	.L22
	movl	fukuro_num(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	leaq	qsort_comp(%rip), %rcx
	movl	$4, %edx
	leaq	price(%rip), %rdi
	call	qsort@PLT
	movl	get_num(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	movl	fukuro_num(%rip), %esi
	leal	1(%rax), %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L12
	addl	0(%rbp,%rcx,4), %r8d
.L12:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L13
.L11:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	jle	.L8
	leaq	price(%rip), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	addq	$4, %r12
	cmpl	%r15d, %esi
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%r8d, %r8d
	jmp	.L11
.L23:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	price
	.bss
	.align 32
	.type	price, @object
	.size	price, 4000
price:
	.zero	4000
	.globl	fukuro_num
	.align 4
	.type	fukuro_num, @object
	.size	fukuro_num, 4
fukuro_num:
	.zero	4
	.globl	get_num
	.align 4
	.type	get_num, @object
	.size	get_num, 4
get_num:
	.zero	4
	.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_comp
	.type	qsort_comp, @function
qsort_comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	movl	$1, %eax
	cmpl	%edx, (%rdi)
	jl	.L1
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	qsort_comp, .-qsort_comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	fukuro_num(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	get_num(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	-4+price(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC1(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	testl	%esi, %esi
	jne	.L22
	movl	fukuro_num(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L8:
	leaq	qsort_comp(%rip), %rcx
	movl	$4, %edx
	leaq	price(%rip), %rdi
	call	qsort@PLT
	movl	get_num(%rip), %eax
	testl	%eax, %eax
	jle	.L15
	movl	fukuro_num(%rip), %esi
	leal	1(%rax), %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	je	.L12
	addl	0(%rbp,%rcx,4), %r8d
.L12:
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L13
.L11:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	jle	.L8
	leaq	price(%rip), %r12
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r15d
	call	__isoc99_scanf@PLT
	movslq	get_num(%rip), %rsi
	addq	$4, %r12
	cmpl	%r15d, %esi
	jg	.L10
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%r8d, %r8d
	jmp	.L11
.L23:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	price
	.bss
	.align 32
	.type	price, @object
	.size	price, 4000
price:
	.zero	4000
	.globl	fukuro_num
	.align 4
	.type	fukuro_num, @object
	.size	fukuro_num, 4
fukuro_num:
	.zero	4
	.globl	get_num
	.align 4
	.type	get_num, @object
	.size	get_num, 4
get_num:
	.zero	4
	.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:
```