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

```c
// AOJ 0325: Cuboid
// 2017.10.27 bal4u@uu

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

typedef struct { int h, w; } T;
T tbl[6];

int cmp(T *a, T *b) { if (a->h - b->h) return a->h - b->h; return a->w - b->w; }

int main()
{
	int h, w, i, ans;

	for (i = 0; i < 6; i++) {
		scanf("%d%d", &h, &w);
		if (h < w) tbl[i].h = h, tbl[i].w = w;
		else       tbl[i].h = w, tbl[i].w = h;
	}
	qsort(tbl, 6, sizeof(T), cmp);

	ans = 1;
	for (i = 0; i < 6; i+=2)
		if (tbl[i].h != tbl[i+1].h || tbl[i].w != tbl[i+1].w) { ans = 0; break; }
	if (ans) ans = tbl[0].h == tbl[2].h && tbl[0].w == tbl[4].h && tbl[2].w == tbl[4].w;
	puts(ans ? "yes" : "no");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	tbl(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	leaq	48(%r14), %r13
	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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L6:
	movd	%eax, %xmm0
	movd	%edx, %xmm1
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L7
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$6, %esi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	tbl(%rip), %eax
	cmpl	8+tbl(%rip), %eax
	leaq	.LC1(%rip), %rdi
	jne	.L8
	movl	4+tbl(%rip), %ecx
	cmpl	12+tbl(%rip), %ecx
	jne	.L8
	movl	16+tbl(%rip), %edx
	cmpl	24+tbl(%rip), %edx
	jne	.L8
	movl	20+tbl(%rip), %r8d
	cmpl	28+tbl(%rip), %r8d
	jne	.L8
	movl	32+tbl(%rip), %esi
	cmpl	40+tbl(%rip), %esi
	jne	.L8
	movl	36+tbl(%rip), %r9d
	cmpl	44+tbl(%rip), %r9d
	jne	.L8
	cmpl	%edx, %eax
	je	.L21
.L8:
	call	puts@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L21:
	.cfi_restore_state
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%r8d, %r9d
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 48
tbl:
	.zero	48
	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	tbl(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	leaq	48(%r14), %r13
	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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L6:
	movd	%eax, %xmm0
	movd	%edx, %xmm1
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L7
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$6, %esi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	tbl(%rip), %eax
	cmpl	8+tbl(%rip), %eax
	leaq	.LC1(%rip), %rdi
	jne	.L8
	movl	4+tbl(%rip), %ecx
	cmpl	12+tbl(%rip), %ecx
	jne	.L8
	movl	16+tbl(%rip), %edx
	cmpl	24+tbl(%rip), %edx
	jne	.L8
	movl	20+tbl(%rip), %r8d
	cmpl	28+tbl(%rip), %r8d
	jne	.L8
	movl	32+tbl(%rip), %esi
	cmpl	40+tbl(%rip), %esi
	jne	.L8
	movl	36+tbl(%rip), %r9d
	cmpl	44+tbl(%rip), %r9d
	jne	.L8
	cmpl	%edx, %eax
	je	.L21
.L8:
	call	puts@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L21:
	.cfi_restore_state
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%r8d, %r9d
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 48
tbl:
	.zero	48
	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	tbl(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	leaq	48(%r14), %r13
	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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L6:
	movd	%eax, %xmm0
	movd	%edx, %xmm1
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L7
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$6, %esi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	tbl(%rip), %eax
	cmpl	8+tbl(%rip), %eax
	leaq	.LC1(%rip), %rdi
	jne	.L8
	movl	4+tbl(%rip), %ecx
	cmpl	12+tbl(%rip), %ecx
	jne	.L8
	movl	16+tbl(%rip), %edx
	cmpl	24+tbl(%rip), %edx
	jne	.L8
	movl	20+tbl(%rip), %r8d
	cmpl	28+tbl(%rip), %r8d
	jne	.L8
	movl	32+tbl(%rip), %esi
	cmpl	40+tbl(%rip), %esi
	jne	.L8
	movl	36+tbl(%rip), %r9d
	cmpl	44+tbl(%rip), %r9d
	jne	.L8
	cmpl	%edx, %eax
	je	.L21
.L8:
	call	puts@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L21:
	.cfi_restore_state
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%r8d, %r9d
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 48
tbl:
	.zero	48
	.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
// AOJ 0325: Cuboid
// 2017.10.27 bal4u@uu

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

typedef struct { int h, w; } T;
T tbl[6];

int cmp(T *a, T *b) { if (a->h - b->h) return a->h - b->h; return a->w - b->w; }

int main()
{
	int h, w, i, ans;

	for (i = 0; i < 6; i++) {
		scanf("%d%d", &h, &w);
		if (h < w) tbl[i].h = h, tbl[i].w = w;
		else       tbl[i].h = w, tbl[i].w = h;
	}
	qsort(tbl, 6, sizeof(T), cmp);

	ans = 1;
	for (i = 0; i < 6; i+=2)
		if (tbl[i].h != tbl[i+1].h || tbl[i].w != tbl[i+1].w) { ans = 0; break; }
	if (ans) ans = tbl[0].h == tbl[2].h && tbl[0].w == tbl[4].h && tbl[2].w == tbl[4].w;
	puts(ans ? "yes" : "no");
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ 0325: Cuboid
// 2017.10.27 bal4u@uu

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

typedef struct { int h, w; } T;
T tbl[6];

int cmp(T *a, T *b) { if (a->h - b->h) return a->h - b->h; return a->w - b->w; }

int main()
{
	int h, w, i, ans;

	for (i = 0; i < 6; i++) {
		scanf("%d%d", &h, &w);
		if (h < w) tbl[i].h = h, tbl[i].w = w;
		else       tbl[i].h = w, tbl[i].w = h;
	}
	qsort(tbl, 6, sizeof(T), cmp);

	ans = 1;
	for (i = 0; i < 6; i+=2)
		if (tbl[i].h != tbl[i+1].h || tbl[i].w != tbl[i+1].w) { ans = 0; break; }
	if (ans) ans = tbl[0].h == tbl[2].h && tbl[0].w == tbl[4].h && tbl[2].w == tbl[4].w;
	puts(ans ? "yes" : "no");
	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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
// AOJ 0325: Cuboid
// 2017.10.27 bal4u@uu

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

typedef struct { int h, w; } T;
T tbl[6];

int cmp(T *a, T *b) { if (a->h - b->h) return a->h - b->h; return a->w - b->w; }

int main()
{
	int h, w, i, ans;

	for (i = 0; i < 6; i++) {
		scanf("%d%d", &h, &w);
		if (h < w) tbl[i].h = h, tbl[i].w = w;
		else       tbl[i].h = w, tbl[i].w = h;
	}
	qsort(tbl, 6, sizeof(T), cmp);

	ans = 1;
	for (i = 0; i < 6; i+=2)
		if (tbl[i].h != tbl[i+1].h || tbl[i].w != tbl[i+1].w) { ans = 0; break; }
	if (ans) ans = tbl[0].h == tbl[2].h && tbl[0].w == tbl[4].h && tbl[2].w == tbl[4].w;
	puts(ans ? "yes" : "no");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	tbl(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	leaq	48(%r14), %r13
	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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L6:
	movd	%eax, %xmm0
	movd	%edx, %xmm1
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L7
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$6, %esi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	tbl(%rip), %eax
	cmpl	8+tbl(%rip), %eax
	leaq	.LC1(%rip), %rdi
	jne	.L8
	movl	4+tbl(%rip), %ecx
	cmpl	12+tbl(%rip), %ecx
	jne	.L8
	movl	16+tbl(%rip), %edx
	cmpl	24+tbl(%rip), %edx
	jne	.L8
	movl	20+tbl(%rip), %r8d
	cmpl	28+tbl(%rip), %r8d
	jne	.L8
	movl	32+tbl(%rip), %esi
	cmpl	40+tbl(%rip), %esi
	jne	.L8
	movl	36+tbl(%rip), %r9d
	cmpl	44+tbl(%rip), %r9d
	jne	.L8
	cmpl	%edx, %eax
	je	.L21
.L8:
	call	puts@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L21:
	.cfi_restore_state
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%r8d, %r9d
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 48
tbl:
	.zero	48
	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	movl	(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"yes"
.LC1:
	.string	"no"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	tbl(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%r14, %r15
	leaq	48(%r14), %r13
	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	.LC2(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%rsp), %edx
	movl	4(%rsp), %eax
	cmpl	%eax, %edx
	jge	.L6
	movl	%eax, %ecx
	movl	%edx, %eax
	movl	%ecx, %edx
.L6:
	movd	%eax, %xmm0
	movd	%edx, %xmm1
	addq	$8, %r15
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r15)
	cmpq	%r15, %r13
	jne	.L7
	movq	%r14, %rdi
	movl	$8, %edx
	movl	$6, %esi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	tbl(%rip), %eax
	cmpl	8+tbl(%rip), %eax
	leaq	.LC1(%rip), %rdi
	jne	.L8
	movl	4+tbl(%rip), %ecx
	cmpl	12+tbl(%rip), %ecx
	jne	.L8
	movl	16+tbl(%rip), %edx
	cmpl	24+tbl(%rip), %edx
	jne	.L8
	movl	20+tbl(%rip), %r8d
	cmpl	28+tbl(%rip), %r8d
	jne	.L8
	movl	32+tbl(%rip), %esi
	cmpl	40+tbl(%rip), %esi
	jne	.L8
	movl	36+tbl(%rip), %r9d
	cmpl	44+tbl(%rip), %r9d
	jne	.L8
	cmpl	%edx, %eax
	je	.L21
.L8:
	call	puts@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$24, %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
.L21:
	.cfi_restore_state
	cmpl	%ecx, %esi
	jne	.L8
	cmpl	%r8d, %r9d
	leaq	.LC0(%rip), %rax
	cmove	%rax, %rdi
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 48
tbl:
	.zero	48
	.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:
```