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>

typedef struct {
    int h;
    int w;
} RECT;

int comp(const void *a, const void *b)
{
    int x;
    
    x = (*(RECT *)a).w - (*(RECT *)b).w;
    if (x != 0){
        return (x);
    }
    return ((*(RECT *)a).h - (*(RECT *)b).h);
}


int main(void)
{
    RECT rect[6];
    int i;
    int h, w, t;
    int flag;
    
    flag = 1;
    for (i = 0; i < 6; i++){
        scanf("%d%d", &w, &h);
        
        if (w > h){
            t = w;
            w = h;
            h = t;
        }
        
        rect[i].w = w;
        rect[i].h = h;
    }
    
    qsort(rect, 6, sizeof(RECT), comp);

    for (i = 0; i < 6; i++){
//        printf("%d:%d %d\n", i, rect[i].w, rect[i].h);
    }


    
    for (i = 0; i <= 4; i += 2){
        if (rect[i].w != rect[i + 1].w || rect[i].h != rect[i + 1].h){

// printf("<1>");
            flag = 0;
            break;
        }
    }
    if (rect[0].w != rect[2].w || rect[2].h != rect[4].h || rect[0].h != rect[4].w){
// printf("<2>");
        flag = 0;
    }

    if (flag == 1){
        printf("yes\n");
    }
    else {
        printf("no\n");
    }

    
    return (0);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -72(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L7:
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %edx
	movl	-84(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-80(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-84(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)
.L6:
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,8)
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,8)
	addl	$1, -76(%rbp)
.L5:
	cmpl	$5, -76(%rbp)
	jle	.L7
	leaq	-64(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$6, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	jmp	.L8
.L9:
	addl	$1, -76(%rbp)
.L8:
	cmpl	$5, -76(%rbp)
	jle	.L9
	movl	$0, -76(%rbp)
	jmp	.L10
.L14:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-60(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-76(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
.L11:
	movl	$0, -72(%rbp)
	jmp	.L13
.L12:
	addl	$2, -76(%rbp)
.L10:
	cmpl	$4, -76(%rbp)
	jle	.L14
.L13:
	movl	-60(%rbp), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-48(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-64(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	je	.L16
.L15:
	movl	$0, -72(%rbp)
.L16:
	cmpl	$1, -72(%rbp)
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L18
.L17:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	jne	.L1
	movl	(%rdi), %eax
	subl	(%rsi), %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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
	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
	leaq	.LC0(%rip), %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r14
	leaq	64(%rsp), %r13
	movq	%r14, %r15
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	8(%rsp), %eax
	cmpl	%eax, %edx
	jle	.L5
	movd	%edx, %xmm0
	movd	%eax, %xmm1
	movl	%eax, 12(%rsp)
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movl	%edx, 8(%rsp)
	movq	%xmm0, -8(%r15)
	cmpq	%r13, %r15
	jne	.L8
.L7:
	leaq	comp(%rip), %rcx
	movl	$8, %edx
	movl	$6, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	movl	20(%rsp), %eax
	cmpl	28(%rsp), %eax
	jne	.L17
	movl	24(%rsp), %ecx
	cmpl	%ecx, 16(%rsp)
	jne	.L17
	movl	44(%rsp), %ecx
	cmpl	%ecx, 36(%rsp)
	jne	.L17
	movl	40(%rsp), %ecx
	cmpl	%ecx, 32(%rsp)
	jne	.L17
	movl	60(%rsp), %esi
	cmpl	%esi, 52(%rsp)
	jne	.L17
	xorl	%edx, %edx
	movl	56(%rsp), %ebx
	cmpl	%ebx, 48(%rsp)
	sete	%dl
.L9:
	cmpl	%eax, 36(%rsp)
	jne	.L10
	movl	48(%rsp), %eax
	cmpl	%eax, 32(%rsp)
	je	.L25
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L11:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movd	%eax, %xmm0
	movd	%edx, %xmm2
	addq	$8, %r15
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L8
	jmp	.L7
.L25:
	movl	52(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jne	.L10
	testl	%edx, %edx
	je	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L17:
	xorl	%edx, %edx
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	jne	.L1
	movl	(%rdi), %eax
	subl	(%rsi), %eax
.L1:
	ret
	.cfi_endproc
.LFE39:
	.size	comp, .-comp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.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
	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
	leaq	.LC0(%rip), %rbx
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r14
	leaq	64(%rsp), %r13
	movq	%r14, %r15
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	movl	8(%rsp), %eax
	cmpl	%eax, %edx
	jle	.L5
	movd	%edx, %xmm0
	movd	%eax, %xmm1
	movl	%eax, 12(%rsp)
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movl	%edx, 8(%rsp)
	movq	%xmm0, -8(%r15)
	cmpq	%r13, %r15
	jne	.L8
.L7:
	leaq	comp(%rip), %rcx
	movl	$8, %edx
	movl	$6, %esi
	movq	%r14, %rdi
	call	qsort@PLT
	movl	20(%rsp), %eax
	cmpl	28(%rsp), %eax
	jne	.L17
	movl	24(%rsp), %ecx
	cmpl	%ecx, 16(%rsp)
	jne	.L17
	movl	44(%rsp), %ecx
	cmpl	%ecx, 36(%rsp)
	jne	.L17
	movl	40(%rsp), %ecx
	cmpl	%ecx, 32(%rsp)
	jne	.L17
	movl	60(%rsp), %esi
	cmpl	%esi, 52(%rsp)
	jne	.L17
	xorl	%edx, %edx
	movl	56(%rsp), %ebx
	cmpl	%ebx, 48(%rsp)
	sete	%dl
.L9:
	cmpl	%eax, 36(%rsp)
	jne	.L10
	movl	48(%rsp), %eax
	cmpl	%eax, 32(%rsp)
	je	.L25
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L11:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$88, %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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movd	%eax, %xmm0
	movd	%edx, %xmm2
	addq	$8, %r15
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L8
	jmp	.L7
.L25:
	movl	52(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jne	.L10
	testl	%edx, %edx
	je	.L10
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L11
.L17:
	xorl	%edx, %edx
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

typedef struct {
    int h;
    int w;
} RECT;

int comp(const void *a, const void *b)
{
    int x;
    
    x = (*(RECT *)a).w - (*(RECT *)b).w;
    if (x != 0){
        return (x);
    }
    return ((*(RECT *)a).h - (*(RECT *)b).h);
}


int main(void)
{
    RECT rect[6];
    int i;
    int h, w, t;
    int flag;
    
    flag = 1;
    for (i = 0; i < 6; i++){
        scanf("%d%d", &w, &h);
        
        if (w > h){
            t = w;
            w = h;
            h = t;
        }
        
        rect[i].w = w;
        rect[i].h = h;
    }
    
    qsort(rect, 6, sizeof(RECT), comp);

    for (i = 0; i < 6; i++){
//        printf("%d:%d %d\n", i, rect[i].w, rect[i].h);
    }


    
    for (i = 0; i <= 4; i += 2){
        if (rect[i].w != rect[i + 1].w || rect[i].h != rect[i + 1].h){

// printf("<1>");
            flag = 0;
            break;
        }
    }
    if (rect[0].w != rect[2].w || rect[2].h != rect[4].h || rect[0].h != rect[4].w){
// printf("<2>");
        flag = 0;
    }

    if (flag == 1){
        printf("yes\n");
    }
    else {
        printf("no\n");
    }

    
    return (0);
}


2 2
2 3
2 3
2 3
2 2
5 2
 2 2
2 3
2 2
2 3
2 2
2 2
 2 2
2 3
2 3
2 2
2 2
5 2
 2 2
2 3
2 2
2 3
2 2
2 3
 2 2
2 3
2 3
2 2
2 2
10 2
 2 2
2 3
4 2
2 3
2 2
2 3
 2 2
2 3
2 2
2 2
2 2
10 2
 2 2
2 3
4 4
2 3
2 2
2 3
 2 2
2 3
4 2
2 2
2 2
10 2
 2 2
2 3
4 4
2 3
1 2
2 3

no
 no
 no
 no
 no
 no
 no
 no
 no
 no

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>

typedef struct {
    int h;
    int w;
} RECT;

int comp(const void *a, const void *b)
{
    int x;
    
    x = (*(RECT *)a).w - (*(RECT *)b).w;
    if (x != 0){
        return (x);
    }
    return ((*(RECT *)a).h - (*(RECT *)b).h);
}


int main(void)
{
    RECT rect[6];
    int i;
    int h, w, t;
    int flag;
    
    flag = 1;
    for (i = 0; i < 6; i++){
        scanf("%d%d", &w, &h);
        
        if (w > h){
            t = w;
            w = h;
            h = t;
        }
        
        rect[i].w = w;
        rect[i].h = h;
    }
    
    qsort(rect, 6, sizeof(RECT), comp);

    for (i = 0; i < 6; i++){
//        printf("%d:%d %d\n", i, rect[i].w, rect[i].h);
    }


    
    for (i = 0; i <= 4; i += 2){
        if (rect[i].w != rect[i + 1].w || rect[i].h != rect[i + 1].h){

// printf("<1>");
            flag = 0;
            break;
        }
    }
    if (rect[0].w != rect[2].w || rect[2].h != rect[4].h || rect[0].h != rect[4].w){
// printf("<2>");
        flag = 0;
    }

    if (flag == 1){
        printf("yes\n");
    }
    else {
        printf("no\n");
    }

    
    return (0);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.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
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -72(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L7:
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %edx
	movl	-84(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-80(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-84(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)
.L6:
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,8)
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,8)
	addl	$1, -76(%rbp)
.L5:
	cmpl	$5, -76(%rbp)
	jle	.L7
	leaq	-64(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$6, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	jmp	.L8
.L9:
	addl	$1, -76(%rbp)
.L8:
	cmpl	$5, -76(%rbp)
	jle	.L9
	movl	$0, -76(%rbp)
	jmp	.L10
.L14:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-60(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-76(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
.L11:
	movl	$0, -72(%rbp)
	jmp	.L13
.L12:
	addl	$2, -76(%rbp)
.L10:
	cmpl	$4, -76(%rbp)
	jle	.L14
.L13:
	movl	-60(%rbp), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-48(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-64(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	je	.L16
.L15:
	movl	$0, -72(%rbp)
.L16:
	cmpl	$1, -72(%rbp)
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L18
.L17:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	comp
	.type	comp, @function
comp:
.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
	movl	4(%rax), %edx
	movq	-32(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -4(%rbp)
	je	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"yes"
.LC2:
	.string	"no"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -72(%rbp)
	movl	$0, -76(%rbp)
	jmp	.L5
.L7:
	leaq	-84(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %edx
	movl	-84(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L6
	movl	-80(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-84(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)
.L6:
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -60(%rbp,%rax,8)
	movl	-84(%rbp), %edx
	movl	-76(%rbp), %eax
	cltq
	movl	%edx, -64(%rbp,%rax,8)
	addl	$1, -76(%rbp)
.L5:
	cmpl	$5, -76(%rbp)
	jle	.L7
	leaq	-64(%rbp), %rax
	leaq	comp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movl	$6, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -76(%rbp)
	jmp	.L8
.L9:
	addl	$1, -76(%rbp)
.L8:
	cmpl	$5, -76(%rbp)
	jle	.L9
	movl	$0, -76(%rbp)
	jmp	.L10
.L14:
	movl	-76(%rbp), %eax
	cltq
	movl	-60(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-60(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	jne	.L11
	movl	-76(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,8), %edx
	movl	-76(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-64(%rbp,%rax,8), %eax
	cmpl	%eax, %edx
	je	.L12
.L11:
	movl	$0, -72(%rbp)
	jmp	.L13
.L12:
	addl	$2, -76(%rbp)
.L10:
	cmpl	$4, -76(%rbp)
	jle	.L14
.L13:
	movl	-60(%rbp), %edx
	movl	-44(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-48(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L15
	movl	-64(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	je	.L16
.L15:
	movl	$0, -72(%rbp)
.L16:
	cmpl	$1, -72(%rbp)
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L18
.L17:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L18:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
