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

```c

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

struct item_t {
	int w;
	int v;
} ;

int compare_item(const void *a, const void *b) {
  struct item_t *A = (struct item_t *)a;
  struct item_t *B = (struct item_t *)b;
  return A->w - B->w;
}

int compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}


int main(void)
{
	//変数の宣言
	int n;
	long int weight;
	int i,j,k,l;
	struct item_t item[110];
	long int kati[4][110];
	long int katilen[4]={0,0,0,0};
	long int katisum[4][110];
	long int temp;
	long int w1;
	long int ans;
	
	//データの読み込み
	scanf("%d %ld",&n,&weight);
	
	for(i=0;i<n;i++){
		scanf("%d %d",&item[i].w,&item[i].v);
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	w1=item[0].w;
	qsort(item, n, sizeof(struct item_t), compare_item);
	
//	printf("qsort１回目完了\n");
	for(i=0;i<n;i++){
//		printf("w=%d,v=%d\n",item[i].w,item[i].v);
	}
	
	j=0;
	k=0;
	for(i=0;i<n;i++){
		if(i==0){
			//なにもしない
		}else if(item[i].w!=item[i-1].w){
			katilen[j]=k+1;
			j++;
			k=0;
		}else{
			k++;
		}
		kati[j][k]=item[i].v;
	}
	katilen[j]=k+1;
	
	
	for(i=0;i<4;i++){
		qsort(kati[i], katilen[i], sizeof(long int), compare_int);
		for(j=0;j<katilen[i];j++){
			if(j==0){
				katisum[i][j]=kati[i][j];
			}else{
				katisum[i][j]=katisum[i][j-1]+kati[i][j];
			}
		}
	}
	
	for(i=0;i<4;i++){
//		printf("w=%dの価値配列は\n{",w1+i);
		for(j=0;j<katilen[i];j++){
			if(j==0){
//				printf("%d",katisum[i][j]);
			}else{
//				printf(",%d",katisum[i][j]);
			}
		}
//		printf("}\n");
	}
	
	ans=0;
	for(i=0;i<katilen[0]+1;i++){
		for(j=0;j<katilen[1]+1;j++){
			for(k=0;k<katilen[2]+1;k++){
//				printf("i=%d,j=%d,k=%d,wsum=%d\n",i,j,k,w1*i+(w1+1)*j+(w1+2)*k);
				
				if(weight-w1*i-(w1+1)*j-(w1+2)*k>=0){
					l=(weight-w1*i-(w1+1)*j-(w1+2)*k)/(w1+3);
					if(l>katilen[3]) l=katilen[3];
					temp=0;
					if(i!=0) temp=temp+katisum[0][i-1];
					if(j!=0) temp=temp+katisum[1][j-1];
					if(k!=0) temp=temp+katisum[2][k-1];
					if(l!=0) temp=temp+katisum[3][l-1];
					
//					printf("i=%d,j=%d,k=%d,l=%d,temp=%d\n\n",i,j,k,l,temp);
					if(ans<temp) ans=temp;
				}
			}
		}
	}
	
	
	
//	printf("計算部分終了\n");
	
	//出力
	
	
	printf("%ld",ans);
	
	
//	printf("結果の出力終了\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_item
	.type	compare_item, @function
compare_item:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_item, .-compare_item
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -7968(%rbp)
	movq	$0, -7960(%rbp)
	movq	$0, -7952(%rbp)
	movq	$0, -7944(%rbp)
	leaq	-8000(%rbp), %rdx
	leaq	-8020(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8016(%rbp)
	jmp	.L6
.L7:
	leaq	-7936(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-7936(%rbp), %rcx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8016(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L7
	movl	-7936(%rbp), %eax
	cltq
	movq	%rax, -7976(%rbp)
	movl	-8020(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-7936(%rbp), %rax
	leaq	compare_item(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8016(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8016(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L9
	movl	$0, -8012(%rbp)
	movl	$0, -8008(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L10
.L13:
	cmpl	$0, -8016(%rbp)
	je	.L11
	movl	-8016(%rbp), %eax
	cltq
	movl	-7936(%rbp,%rax,8), %edx
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-7936(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	addl	$1, -8012(%rbp)
	movl	$0, -8008(%rbp)
	jmp	.L11
.L12:
	addl	$1, -8008(%rbp)
.L11:
	movl	-8016(%rbp), %eax
	cltq
	movl	-7932(%rbp,%rax,8), %eax
	cltq
	movl	-8008(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8012(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -7056(%rbp,%rdx,8)
	addl	$1, -8016(%rbp)
.L10:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L13
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	movl	$0, -8016(%rbp)
	jmp	.L14
.L19:
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	-7056(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$880, %rax, %rax
	addq	%rdx, %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8012(%rbp)
	jmp	.L15
.L18:
	cmpl	$0, -8012(%rbp)
	jne	.L16
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	movl	-8012(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8016(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -3536(%rbp,%rdx,8)
	jmp	.L17
.L16:
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-3536(%rbp,%rax,8), %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	%rdx, -3536(%rbp,%rax,8)
.L17:
	addl	$1, -8012(%rbp)
.L15:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L18
	addl	$1, -8016(%rbp)
.L14:
	cmpl	$3, -8016(%rbp)
	jle	.L19
	movl	$0, -8016(%rbp)
	jmp	.L20
.L23:
	movl	$0, -8012(%rbp)
	jmp	.L21
.L22:
	addl	$1, -8012(%rbp)
.L21:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L22
	addl	$1, -8016(%rbp)
.L20:
	cmpl	$3, -8016(%rbp)
	jle	.L23
	movq	$0, -7984(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L24
.L35:
	movl	$0, -8012(%rbp)
	jmp	.L25
.L34:
	movl	$0, -8008(%rbp)
	jmp	.L26
.L33:
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L27
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-7976(%rbp), %rdx
	leaq	3(%rdx), %rdi
	cqto
	idivq	%rdi
	movl	%eax, -8004(%rbp)
	movl	-8004(%rbp), %eax
	movslq	%eax, %rdx
	movq	-7944(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movq	-7944(%rbp), %rax
	movl	%eax, -8004(%rbp)
.L28:
	movq	$0, -7992(%rbp)
	cmpl	$0, -8016(%rbp)
	je	.L29
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L29:
	cmpl	$0, -8012(%rbp)
	je	.L30
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$110, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L30:
	cmpl	$0, -8008(%rbp)
	je	.L31
	movl	-8008(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$220, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L31:
	cmpl	$0, -8004(%rbp)
	je	.L32
	movl	-8004(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$330, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L32:
	movq	-7984(%rbp), %rax
	cmpq	-7992(%rbp), %rax
	jge	.L27
	movq	-7992(%rbp), %rax
	movq	%rax, -7984(%rbp)
.L27:
	addl	$1, -8008(%rbp)
.L26:
	movq	-7952(%rbp), %rdx
	movl	-8008(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L33
	addl	$1, -8012(%rbp)
.L25:
	movq	-7960(%rbp), %rdx
	movl	-8012(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L34
	addl	$1, -8016(%rbp)
.L24:
	movq	-7968(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L35
	movq	-7984(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_item
	.type	compare_item, @function
compare_item:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_item, .-compare_item
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB40:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE40:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rdx
	leaq	52(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	leaq	96(%rsp), %rbx
	movq	%rbx, %rbp
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %eax
	jg	.L6
.L5:
	movslq	96(%rsp), %rcx
	movslq	%eax, %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	movq	%rcx, 16(%rsp)
	leaq	compare_item(%rip), %rcx
	call	qsort@PLT
	movl	52(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L50
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	.L10
.L87:
	movslq	%edi, %rdi
	addl	$1, %r10d
	xorl	%r8d, %r8d
	movq	%rdi, 64(%rsp,%r9,8)
	movl	$1, %edi
	movslq	%r10d, %r9
.L8:
	imulq	$110, %r9, %rcx
	movslq	%r8d, %rsi
	addl	$1, %edx
	addq	$8, %rax
	addq	%rsi, %rcx
	movslq	-4(%rax), %rsi
	movq	%rsi, 976(%rsp,%rcx,8)
	cmpl	%r11d, %edx
	je	.L7
.L10:
	leal	1(%r8), %edi
	testl	%edx, %edx
	je	.L8
	movl	-8(%rax), %ebx
	cmpl	%ebx, (%rax)
	jne	.L87
	leal	2(%r8), %ecx
	movl	%edi, %r8d
	movl	%ecx, %edi
	jmp	.L8
.L50:
	movl	$1, %edi
	xorl	%r9d, %r9d
.L7:
	leaq	4496(%rsp), %r14
	movslq	%edi, %rdi
	leaq	64(%rsp), %r15
	movq	%rdi, 64(%rsp,%r9,8)
	movq	%r15, %rbp
	leaq	976(%rsp), %r13
	movq	%r14, %r12
	movq	%r14, 8(%rsp)
	leaq	compare_int(%rip), %rbx
	movq	%r14, %r15
.L12:
	movq	0(%rbp), %r14
	movl	$8, %edx
	movq	%rbx, %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	call	qsort@PLT
	movq	%r15, %rdx
	xorl	%eax, %eax
	testq	%r14, %r14
	jg	.L11
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	movq	0(%r13,%rax,8), %rcx
	addq	$1, %rax
	addq	-8(%rdx), %rcx
	addq	$8, %rdx
	movq	%rcx, -8(%rdx)
	cmpq	%rax, %r14
	je	.L16
.L11:
	testq	%rax, %rax
	jne	.L14
	movq	0(%r13), %rcx
	addq	$1, %rax
	addq	$8, %rdx
	movq	%rcx, (%r15)
	cmpq	%rax, %r14
	jne	.L11
.L16:
	addq	$880, %r13
	addq	$8, %rbp
	addq	$880, %r15
	cmpq	%r12, %r13
	jne	.L12
	movq	64(%rsp), %rax
	movq	8(%rsp), %rbp
	testq	%rax, %rax
	js	.L52
	movq	72(%rsp), %rbx
	addl	$1, %eax
	movq	56(%rsp), %rcx
	xorl	%r8d, %r8d
	movl	%eax, 44(%rsp)
	movq	80(%rsp), %r13
	leaq	4488(%rsp), %r14
	movq	16(%rsp), %rax
	movq	%rbx, 24(%rsp)
	movq	88(%rsp), %rbx
	movl	$0, 8(%rsp)
	leaq	1(%r13), %r10
	movq	%rcx, 32(%rsp)
	leaq	2(%rax), %rdi
	leaq	3(%rax), %rcx
	movl	%ebx, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%r9d, %r9d
	cmpq	$0, 24(%rsp)
	movq	32(%rsp), %r11
	js	.L46
	.p2align 4,,10
	.p2align 3
.L48:
	testq	%r13, %r13
	js	.L26
	movq	%r11, %rsi
	xorl	%r15d, %r15d
	testq	%r9, %r9
	jne	.L19
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testq	%rsi, %rsi
	js	.L21
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rbx, %rdx
	cmovg	%r12d, %eax
	xorl	%edx, %edx
	testq	%r15, %r15
	je	.L23
	movq	1752(%rbp,%r15,8), %rdx
.L23:
	testl	%eax, %eax
	je	.L24
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L24:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L21:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L25
.L26:
	subq	16(%rsp), %r11
	leaq	1(%r9), %rax
	subq	$1, %r11
	cmpq	%r9, 24(%rsp)
	je	.L46
	movq	%rax, %r9
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L33:
	testq	%rsi, %rsi
	js	.L27
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	movq	(%r14), %rdx
	cmovl	%r12d, %eax
	testq	%r15, %r15
	je	.L32
	addq	1752(%rbp,%r15,8), %rdx
.L32:
	testl	%eax, %eax
	je	.L31
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L31:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L27:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L33
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L19:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L41:
	testq	%rsi, %rsi
	js	.L35
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	movq	872(%rbp,%r9,8), %rdx
	cmovl	%r12d, %eax
	testq	%r15, %r15
	je	.L40
	addq	1752(%rbp,%r15,8), %rdx
.L40:
	testl	%eax, %eax
	je	.L39
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L39:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L35:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L41
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %r15
.L34:
	testq	%rsi, %rsi
	js	.L42
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rbx, %rdx
	movq	872(%rbp,%r9,8), %rdx
	cmovg	%r12d, %eax
	addq	(%r14), %rdx
	testq	%r15, %r15
	je	.L44
	addq	1752(%rbp,%r15,8), %rdx
.L44:
	testl	%eax, %eax
	je	.L45
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L45:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L42:
	leaq	1(%r15), %rax
	subq	%rdi, %rsi
	cmpq	%r13, %r15
	jne	.L55
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L46:
	addl	$1, 8(%rsp)
	movq	16(%rsp), %rdx
	addq	$8, %r14
	subq	%rdx, 32(%rsp)
	movl	8(%rsp), %eax
	cmpl	44(%rsp), %eax
	jne	.L18
.L17:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$8040, %rsp
	.cfi_remember_state
	.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
.L52:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L17
.L88:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_item
	.type	compare_item, @function
compare_item:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_item, .-compare_item
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB40:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE40:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r13
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	56(%rsp), %rdx
	leaq	52(%rsp), %rsi
	movaps	%xmm0, 64(%rsp)
	movaps	%xmm0, 80(%rsp)
	leaq	96(%rsp), %rbx
	movq	%rbx, %rbp
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	4(%rbp), %rdx
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	52(%rsp), %eax
	addl	$1, %r12d
	addq	$8, %rbp
	cmpl	%r12d, %eax
	jg	.L6
.L5:
	movslq	96(%rsp), %rcx
	movslq	%eax, %rsi
	movl	$8, %edx
	movq	%rbx, %rdi
	movq	%rcx, 16(%rsp)
	leaq	compare_item(%rip), %rcx
	call	qsort@PLT
	movl	52(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L50
	movq	%rbx, %rax
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	.L10
.L87:
	movslq	%edi, %rdi
	addl	$1, %r10d
	xorl	%r8d, %r8d
	movq	%rdi, 64(%rsp,%r9,8)
	movl	$1, %edi
	movslq	%r10d, %r9
.L8:
	imulq	$110, %r9, %rcx
	movslq	%r8d, %rsi
	addl	$1, %edx
	addq	$8, %rax
	addq	%rsi, %rcx
	movslq	-4(%rax), %rsi
	movq	%rsi, 976(%rsp,%rcx,8)
	cmpl	%r11d, %edx
	je	.L7
.L10:
	leal	1(%r8), %edi
	testl	%edx, %edx
	je	.L8
	movl	-8(%rax), %ebx
	cmpl	%ebx, (%rax)
	jne	.L87
	leal	2(%r8), %ecx
	movl	%edi, %r8d
	movl	%ecx, %edi
	jmp	.L8
.L50:
	movl	$1, %edi
	xorl	%r9d, %r9d
.L7:
	leaq	4496(%rsp), %r14
	movslq	%edi, %rdi
	leaq	64(%rsp), %r15
	movq	%rdi, 64(%rsp,%r9,8)
	movq	%r15, %rbp
	leaq	976(%rsp), %r13
	movq	%r14, %r12
	movq	%r14, 8(%rsp)
	leaq	compare_int(%rip), %rbx
	movq	%r14, %r15
.L12:
	movq	0(%rbp), %r14
	movl	$8, %edx
	movq	%rbx, %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	call	qsort@PLT
	movq	%r15, %rdx
	xorl	%eax, %eax
	testq	%r14, %r14
	jg	.L11
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	movq	0(%r13,%rax,8), %rcx
	addq	$1, %rax
	addq	-8(%rdx), %rcx
	addq	$8, %rdx
	movq	%rcx, -8(%rdx)
	cmpq	%rax, %r14
	je	.L16
.L11:
	testq	%rax, %rax
	jne	.L14
	movq	0(%r13), %rcx
	addq	$1, %rax
	addq	$8, %rdx
	movq	%rcx, (%r15)
	cmpq	%rax, %r14
	jne	.L11
.L16:
	addq	$880, %r13
	addq	$8, %rbp
	addq	$880, %r15
	cmpq	%r12, %r13
	jne	.L12
	movq	64(%rsp), %rax
	movq	8(%rsp), %rbp
	testq	%rax, %rax
	js	.L52
	movq	72(%rsp), %rbx
	addl	$1, %eax
	movq	56(%rsp), %rcx
	xorl	%r8d, %r8d
	movl	%eax, 44(%rsp)
	movq	80(%rsp), %r13
	leaq	4488(%rsp), %r14
	movq	16(%rsp), %rax
	movq	%rbx, 24(%rsp)
	movq	88(%rsp), %rbx
	movl	$0, 8(%rsp)
	leaq	1(%r13), %r10
	movq	%rcx, 32(%rsp)
	leaq	2(%rax), %rdi
	leaq	3(%rax), %rcx
	movl	%ebx, %r12d
	.p2align 4,,10
	.p2align 3
.L18:
	xorl	%r9d, %r9d
	cmpq	$0, 24(%rsp)
	movq	32(%rsp), %r11
	js	.L46
	.p2align 4,,10
	.p2align 3
.L48:
	testq	%r13, %r13
	js	.L26
	movq	%r11, %rsi
	xorl	%r15d, %r15d
	testq	%r9, %r9
	jne	.L19
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L25:
	testq	%rsi, %rsi
	js	.L21
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rbx, %rdx
	cmovg	%r12d, %eax
	xorl	%edx, %edx
	testq	%r15, %r15
	je	.L23
	movq	1752(%rbp,%r15,8), %rdx
.L23:
	testl	%eax, %eax
	je	.L24
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L24:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L21:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L25
.L26:
	subq	16(%rsp), %r11
	leaq	1(%r9), %rax
	subq	$1, %r11
	cmpq	%r9, 24(%rsp)
	je	.L46
	movq	%rax, %r9
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L33:
	testq	%rsi, %rsi
	js	.L27
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	movq	(%r14), %rdx
	cmovl	%r12d, %eax
	testq	%r15, %r15
	je	.L32
	addq	1752(%rbp,%r15,8), %rdx
.L32:
	testl	%eax, %eax
	je	.L31
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L31:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L27:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L33
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L19:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L41:
	testq	%rsi, %rsi
	js	.L35
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rbx
	movq	872(%rbp,%r9,8), %rdx
	cmovl	%r12d, %eax
	testq	%r15, %r15
	je	.L40
	addq	1752(%rbp,%r15,8), %rdx
.L40:
	testl	%eax, %eax
	je	.L39
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L39:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L35:
	addq	$1, %r15
	subq	%rdi, %rsi
	cmpq	%r10, %r15
	jne	.L41
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L55:
	movq	%rax, %r15
.L34:
	testq	%rsi, %rsi
	js	.L42
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movslq	%eax, %rdx
	cmpq	%rbx, %rdx
	movq	872(%rbp,%r9,8), %rdx
	cmovg	%r12d, %eax
	addq	(%r14), %rdx
	testq	%r15, %r15
	je	.L44
	addq	1752(%rbp,%r15,8), %rdx
.L44:
	testl	%eax, %eax
	je	.L45
	subl	$1, %eax
	cltq
	addq	7136(%rsp,%rax,8), %rdx
.L45:
	cmpq	%rdx, %r8
	cmovl	%rdx, %r8
.L42:
	leaq	1(%r15), %rax
	subq	%rdi, %rsi
	cmpq	%r13, %r15
	jne	.L55
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L46:
	addl	$1, 8(%rsp)
	movq	16(%rsp), %rdx
	addq	$8, %r14
	subq	%rdx, 32(%rsp)
	movl	8(%rsp), %eax
	cmpl	44(%rsp), %eax
	jne	.L18
.L17:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$8040, %rsp
	.cfi_remember_state
	.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
.L52:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L17
.L88:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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:


#include <stdio.h>
#include <stdlib.h>
#include <math.h>

struct item_t {
	int w;
	int v;
} ;

int compare_item(const void *a, const void *b) {
  struct item_t *A = (struct item_t *)a;
  struct item_t *B = (struct item_t *)b;
  return A->w - B->w;
}

int compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}


int main(void)
{
	//変数の宣言
	int n;
	long int weight;
	int i,j,k,l;
	struct item_t item[110];
	long int kati[4][110];
	long int katilen[4]={0,0,0,0};
	long int katisum[4][110];
	long int temp;
	long int w1;
	long int ans;
	
	//データの読み込み
	scanf("%d %ld",&n,&weight);
	
	for(i=0;i<n;i++){
		scanf("%d %d",&item[i].w,&item[i].v);
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	w1=item[0].w;
	qsort(item, n, sizeof(struct item_t), compare_item);
	
//	printf("qsort１回目完了\n");
	for(i=0;i<n;i++){
//		printf("w=%d,v=%d\n",item[i].w,item[i].v);
	}
	
	j=0;
	k=0;
	for(i=0;i<n;i++){
		if(i==0){
			//なにもしない
		}else if(item[i].w!=item[i-1].w){
			katilen[j]=k+1;
			j++;
			k=0;
		}else{
			k++;
		}
		kati[j][k]=item[i].v;
	}
	katilen[j]=k+1;
	
	
	for(i=0;i<4;i++){
		qsort(kati[i], katilen[i], sizeof(long int), compare_int);
		for(j=0;j<katilen[i];j++){
			if(j==0){
				katisum[i][j]=kati[i][j];
			}else{
				katisum[i][j]=katisum[i][j-1]+kati[i][j];
			}
		}
	}
	
	for(i=0;i<4;i++){
//		printf("w=%dの価値配列は\n{",w1+i);
		for(j=0;j<katilen[i];j++){
			if(j==0){
//				printf("%d",katisum[i][j]);
			}else{
//				printf(",%d",katisum[i][j]);
			}
		}
//		printf("}\n");
	}
	
	ans=0;
	for(i=0;i<katilen[0]+1;i++){
		for(j=0;j<katilen[1]+1;j++){
			for(k=0;k<katilen[2]+1;k++){
//				printf("i=%d,j=%d,k=%d,wsum=%d\n",i,j,k,w1*i+(w1+1)*j+(w1+2)*k);
				
				if(weight-w1*i-(w1+1)*j-(w1+2)*k>=0){
					l=(weight-w1*i-(w1+1)*j-(w1+2)*k)/(w1+3);
					if(l>katilen[3]) l=katilen[3];
					temp=0;
					if(i!=0) temp=temp+katisum[0][i-1];
					if(j!=0) temp=temp+katisum[1][j-1];
					if(k!=0) temp=temp+katisum[2][k-1];
					if(l!=0) temp=temp+katisum[3][l-1];
					
//					printf("i=%d,j=%d,k=%d,l=%d,temp=%d\n\n",i,j,k,l,temp);
					if(ans<temp) ans=temp;
				}
			}
		}
	}
	
	
	
//	printf("計算部分終了\n");
	
	//出力
	
	
	printf("%ld",ans);
	
	
//	printf("結果の出力終了\n");
	
	return 0;
}
4 10
1 100
2 100
1 100
1 100
 4 1
10 100
10 100
10 101
10 100
 4 6
2 1
3 6
4 10
3 4
 4 10
1 000
1 100
1 100
1 100
 4 6
2 1
3 7
4 10
3 9
 4 12
2 1
3 4
4 10
3 4
 4 6
2 1
3 6
4 8
3 4
 4 6
2 1
3 6
4 10
3 9
 4 10
1 100
4 100
1 101
1 100
 4 6
2 1
3 6
2 8
3 4

400 0 11 300 16 19 10 15 401 14
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

struct item_t {
	int w;
	int v;
} ;

int compare_item(const void *a, const void *b) {
  struct item_t *A = (struct item_t *)a;
  struct item_t *B = (struct item_t *)b;
  return A->w - B->w;
}

int compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}


int main(void)
{
	//変数の宣言
	int n;
	long int weight;
	int i,j,k,l;
	struct item_t item[110];
	long int kati[4][110];
	long int katilen[4]={0,0,0,0};
	long int katisum[4][110];
	long int temp;
	long int w1;
	long int ans;
	
	//データの読み込み
	scanf("%d %ld",&n,&weight);
	
	for(i=0;i<n;i++){
		scanf("%d %d",&item[i].w,&item[i].v);
	}
	
//	printf("nは%dです\n", n);
//	printf("データの読み込み終了\n");
	//実際の処理
	
	w1=item[0].w;
	qsort(item, n, sizeof(struct item_t), compare_item);
	
//	printf("qsort１回目完了\n");
	for(i=0;i<n;i++){
//		printf("w=%d,v=%d\n",item[i].w,item[i].v);
	}
	
	j=0;
	k=0;
	for(i=0;i<n;i++){
		if(i==0){
			//なにもしない
		}else if(item[i].w!=item[i-1].w){
			katilen[j]=k+1;
			j++;
			k=0;
		}else{
			k++;
		}
		kati[j][k]=item[i].v;
	}
	katilen[j]=k+1;
	
	
	for(i=0;i<4;i++){
		qsort(kati[i], katilen[i], sizeof(long int), compare_int);
		for(j=0;j<katilen[i];j++){
			if(j==0){
				katisum[i][j]=kati[i][j];
			}else{
				katisum[i][j]=katisum[i][j-1]+kati[i][j];
			}
		}
	}
	
	for(i=0;i<4;i++){
//		printf("w=%dの価値配列は\n{",w1+i);
		for(j=0;j<katilen[i];j++){
			if(j==0){
//				printf("%d",katisum[i][j]);
			}else{
//				printf(",%d",katisum[i][j]);
			}
		}
//		printf("}\n");
	}
	
	ans=0;
	for(i=0;i<katilen[0]+1;i++){
		for(j=0;j<katilen[1]+1;j++){
			for(k=0;k<katilen[2]+1;k++){
//				printf("i=%d,j=%d,k=%d,wsum=%d\n",i,j,k,w1*i+(w1+1)*j+(w1+2)*k);
				
				if(weight-w1*i-(w1+1)*j-(w1+2)*k>=0){
					l=(weight-w1*i-(w1+1)*j-(w1+2)*k)/(w1+3);
					if(l>katilen[3]) l=katilen[3];
					temp=0;
					if(i!=0) temp=temp+katisum[0][i-1];
					if(j!=0) temp=temp+katisum[1][j-1];
					if(k!=0) temp=temp+katisum[2][k-1];
					if(l!=0) temp=temp+katisum[3][l-1];
					
//					printf("i=%d,j=%d,k=%d,l=%d,temp=%d\n\n",i,j,k,l,temp);
					if(ans<temp) ans=temp;
				}
			}
		}
	}
	
	
	
//	printf("計算部分終了\n");
	
	//出力
	
	
	printf("%ld",ans);
	
	
//	printf("結果の出力終了\n");
	
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_item
	.type	compare_item, @function
compare_item:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_item, .-compare_item
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -7968(%rbp)
	movq	$0, -7960(%rbp)
	movq	$0, -7952(%rbp)
	movq	$0, -7944(%rbp)
	leaq	-8000(%rbp), %rdx
	leaq	-8020(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8016(%rbp)
	jmp	.L6
.L7:
	leaq	-7936(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-7936(%rbp), %rcx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8016(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L7
	movl	-7936(%rbp), %eax
	cltq
	movq	%rax, -7976(%rbp)
	movl	-8020(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-7936(%rbp), %rax
	leaq	compare_item(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8016(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8016(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L9
	movl	$0, -8012(%rbp)
	movl	$0, -8008(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L10
.L13:
	cmpl	$0, -8016(%rbp)
	je	.L11
	movl	-8016(%rbp), %eax
	cltq
	movl	-7936(%rbp,%rax,8), %edx
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-7936(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	addl	$1, -8012(%rbp)
	movl	$0, -8008(%rbp)
	jmp	.L11
.L12:
	addl	$1, -8008(%rbp)
.L11:
	movl	-8016(%rbp), %eax
	cltq
	movl	-7932(%rbp,%rax,8), %eax
	cltq
	movl	-8008(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8012(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -7056(%rbp,%rdx,8)
	addl	$1, -8016(%rbp)
.L10:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L13
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	movl	$0, -8016(%rbp)
	jmp	.L14
.L19:
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	-7056(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$880, %rax, %rax
	addq	%rdx, %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8012(%rbp)
	jmp	.L15
.L18:
	cmpl	$0, -8012(%rbp)
	jne	.L16
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	movl	-8012(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8016(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -3536(%rbp,%rdx,8)
	jmp	.L17
.L16:
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-3536(%rbp,%rax,8), %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	%rdx, -3536(%rbp,%rax,8)
.L17:
	addl	$1, -8012(%rbp)
.L15:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L18
	addl	$1, -8016(%rbp)
.L14:
	cmpl	$3, -8016(%rbp)
	jle	.L19
	movl	$0, -8016(%rbp)
	jmp	.L20
.L23:
	movl	$0, -8012(%rbp)
	jmp	.L21
.L22:
	addl	$1, -8012(%rbp)
.L21:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L22
	addl	$1, -8016(%rbp)
.L20:
	cmpl	$3, -8016(%rbp)
	jle	.L23
	movq	$0, -7984(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L24
.L35:
	movl	$0, -8012(%rbp)
	jmp	.L25
.L34:
	movl	$0, -8008(%rbp)
	jmp	.L26
.L33:
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L27
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-7976(%rbp), %rdx
	leaq	3(%rdx), %rdi
	cqto
	idivq	%rdi
	movl	%eax, -8004(%rbp)
	movl	-8004(%rbp), %eax
	movslq	%eax, %rdx
	movq	-7944(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movq	-7944(%rbp), %rax
	movl	%eax, -8004(%rbp)
.L28:
	movq	$0, -7992(%rbp)
	cmpl	$0, -8016(%rbp)
	je	.L29
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L29:
	cmpl	$0, -8012(%rbp)
	je	.L30
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$110, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L30:
	cmpl	$0, -8008(%rbp)
	je	.L31
	movl	-8008(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$220, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L31:
	cmpl	$0, -8004(%rbp)
	je	.L32
	movl	-8004(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$330, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L32:
	movq	-7984(%rbp), %rax
	cmpq	-7992(%rbp), %rax
	jge	.L27
	movq	-7992(%rbp), %rax
	movq	%rax, -7984(%rbp)
.L27:
	addl	$1, -8008(%rbp)
.L26:
	movq	-7952(%rbp), %rdx
	movl	-8008(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L33
	addl	$1, -8012(%rbp)
.L25:
	movq	-7960(%rbp), %rdx
	movl	-8012(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L34
	addl	$1, -8016(%rbp)
.L24:
	movq	-7968(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L35
	movq	-7984(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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.
train
	.file	"temp.c"
	.text
	.globl	compare_item
	.type	compare_item, @function
compare_item:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_item, .-compare_item
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d %ld"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%ld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -7968(%rbp)
	movq	$0, -7960(%rbp)
	movq	$0, -7952(%rbp)
	movq	$0, -7944(%rbp)
	leaq	-8000(%rbp), %rdx
	leaq	-8020(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8016(%rbp)
	jmp	.L6
.L7:
	leaq	-7936(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	leaq	4(%rax), %rdx
	leaq	-7936(%rbp), %rcx
	movl	-8016(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8016(%rbp)
.L6:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L7
	movl	-7936(%rbp), %eax
	cltq
	movq	%rax, -7976(%rbp)
	movl	-8020(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-7936(%rbp), %rax
	leaq	compare_item(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8016(%rbp)
	jmp	.L8
.L9:
	addl	$1, -8016(%rbp)
.L8:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L9
	movl	$0, -8012(%rbp)
	movl	$0, -8008(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L10
.L13:
	cmpl	$0, -8016(%rbp)
	je	.L11
	movl	-8016(%rbp), %eax
	cltq
	movl	-7936(%rbp,%rax,8), %edx
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-7936(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	addl	$1, -8012(%rbp)
	movl	$0, -8008(%rbp)
	jmp	.L11
.L12:
	addl	$1, -8008(%rbp)
.L11:
	movl	-8016(%rbp), %eax
	cltq
	movl	-7932(%rbp,%rax,8), %eax
	cltq
	movl	-8008(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8012(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -7056(%rbp,%rdx,8)
	addl	$1, -8016(%rbp)
.L10:
	movl	-8020(%rbp), %eax
	cmpl	%eax, -8016(%rbp)
	jl	.L13
	movl	-8008(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-8012(%rbp), %eax
	cltq
	movq	%rdx, -7968(%rbp,%rax,8)
	movl	$0, -8016(%rbp)
	jmp	.L14
.L19:
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	-7056(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$880, %rax, %rax
	addq	%rdx, %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -8012(%rbp)
	jmp	.L15
.L18:
	cmpl	$0, -8012(%rbp)
	jne	.L16
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	movl	-8012(%rbp), %edx
	movslq	%edx, %rcx
	movl	-8016(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$110, %rdx, %rdx
	addq	%rcx, %rdx
	movq	%rax, -3536(%rbp,%rdx,8)
	jmp	.L17
.L16:
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	-3536(%rbp,%rax,8), %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	-7056(%rbp,%rax,8), %rax
	addq	%rax, %rdx
	movl	-8012(%rbp), %eax
	movslq	%eax, %rcx
	movl	-8016(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rcx, %rax
	movq	%rdx, -3536(%rbp,%rax,8)
.L17:
	addl	$1, -8012(%rbp)
.L15:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L18
	addl	$1, -8016(%rbp)
.L14:
	cmpl	$3, -8016(%rbp)
	jle	.L19
	movl	$0, -8016(%rbp)
	jmp	.L20
.L23:
	movl	$0, -8012(%rbp)
	jmp	.L21
.L22:
	addl	$1, -8012(%rbp)
.L21:
	movl	-8012(%rbp), %eax
	movslq	%eax, %rdx
	movl	-8016(%rbp), %eax
	cltq
	movq	-7968(%rbp,%rax,8), %rax
	cmpq	%rax, %rdx
	jl	.L22
	addl	$1, -8016(%rbp)
.L20:
	cmpl	$3, -8016(%rbp)
	jle	.L23
	movq	$0, -7984(%rbp)
	movl	$0, -8016(%rbp)
	jmp	.L24
.L35:
	movl	$0, -8012(%rbp)
	jmp	.L25
.L34:
	movl	$0, -8008(%rbp)
	jmp	.L26
.L33:
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	testq	%rax, %rax
	js	.L27
	movq	-8000(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	imulq	-7976(%rbp), %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	1(%rax), %rcx
	movl	-8012(%rbp), %eax
	cltq
	imulq	%rcx, %rax
	subq	%rax, %rdx
	movq	-7976(%rbp), %rax
	leaq	2(%rax), %rcx
	movl	-8008(%rbp), %eax
	cltq
	imulq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	-7976(%rbp), %rdx
	leaq	3(%rdx), %rdi
	cqto
	idivq	%rdi
	movl	%eax, -8004(%rbp)
	movl	-8004(%rbp), %eax
	movslq	%eax, %rdx
	movq	-7944(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L28
	movq	-7944(%rbp), %rax
	movl	%eax, -8004(%rbp)
.L28:
	movq	$0, -7992(%rbp)
	cmpl	$0, -8016(%rbp)
	je	.L29
	movl	-8016(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L29:
	cmpl	$0, -8012(%rbp)
	je	.L30
	movl	-8012(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$110, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L30:
	cmpl	$0, -8008(%rbp)
	je	.L31
	movl	-8008(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$220, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L31:
	cmpl	$0, -8004(%rbp)
	je	.L32
	movl	-8004(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$330, %rax
	movq	-3536(%rbp,%rax,8), %rax
	addq	%rax, -7992(%rbp)
.L32:
	movq	-7984(%rbp), %rax
	cmpq	-7992(%rbp), %rax
	jge	.L27
	movq	-7992(%rbp), %rax
	movq	%rax, -7984(%rbp)
.L27:
	addl	$1, -8008(%rbp)
.L26:
	movq	-7952(%rbp), %rdx
	movl	-8008(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L33
	addl	$1, -8012(%rbp)
.L25:
	movq	-7960(%rbp), %rdx
	movl	-8012(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L34
	addl	$1, -8016(%rbp)
.L24:
	movq	-7968(%rbp), %rdx
	movl	-8016(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	jge	.L35
	movq	-7984(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
