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<memory.h>
int cmp(const void *x, const void *y)
{
	return *(int*)x - *(int*)y;
}
int main()
{
	int c[5], n[13], nn[5], i;
	while (scanf("%d", c)>0) {
		for (i = 1; i < 5; i ++)
			scanf(",%d", c+i);
		qsort(c, 5, sizeof(int), cmp);
		memset(n, 0, sizeof(n));
		for (i = 0; i < 5; i ++)
			n[c[i]-1] ++;
		memset(nn, 0, sizeof(nn));
		for (i = 0; i < 13; i ++)
			nn[n[i]] ++;
		if (nn[4])
			puts("four card");
		else if (nn[3] && nn[2])
			puts("full house");
		else if (c[1]+1==c[2] && c[1]+2==c[3] && c[1]+3==c[4] && (c[1]-1==c[0] || (c[0]==1 && c[1]==10)))
			puts("straight");
		else if (nn[3])
			puts("three card");
		else if (nn[2] == 2)
			puts("two pair");
		else if (nn[2])
			puts("one pair");
		else
			puts("null");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	",%d"
.LC1:
	.string	"four card"
.LC2:
	.string	"full house"
.LC3:
	.string	"straight"
.LC4:
	.string	"three card"
.LC5:
	.string	"two pair"
.LC6:
	.string	"one pair"
.LC7:
	.string	"null"
.LC8:
	.string	"%d"
	.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	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L18:
	movl	$1, -132(%rbp)
	jmp	.L5
.L6:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L5:
	cmpl	$4, -132(%rbp)
	jle	.L6
	leaq	-128(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	$5, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-64(%rbp), %rax
	movl	$52, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-64(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L7:
	cmpl	$4, -132(%rbp)
	jle	.L8
	leaq	-96(%rbp), %rax
	movl	$20, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L9
.L10:
	movl	-132(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-96(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L9:
	cmpl	$12, -132(%rbp)
	jle	.L10
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L11:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L12:
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	2(%rax), %edx
	movl	-116(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	3(%rax), %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-128(%rbp), %eax
	cmpl	%eax, %edx
	je	.L14
	movl	-128(%rbp), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-124(%rbp), %eax
	cmpl	$10, %eax
	jne	.L13
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L13:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L15:
	movl	-88(%rbp), %eax
	cmpl	$2, %eax
	jne	.L16
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L16:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L17:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jg	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	",%d"
.LC1:
	.string	"four card"
.LC2:
	.string	"full house"
.LC3:
	.string	"straight"
.LC4:
	.string	"three card"
.LC5:
	.string	"two pair"
.LC6:
	.string	"one pair"
.LC7:
	.string	"null"
.LC8:
	.string	"%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	cmp(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC8(%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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jle	.L35
	leaq	4(%rsp), %r15
	leaq	20(%rsp), %rbx
.L5:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r15
	jne	.L5
	movq	%r14, %rcx
	movl	$4, %edx
	movl	$5, %esi
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ecx
	movaps	%xmm0, 64(%rsp)
	movl	12(%rsp), %r8d
	leal	-1(%rsi), %eax
	leal	-1(%rdx), %edi
	movaps	%xmm0, 80(%rsp)
	movl	16(%rsp), %r9d
	cltq
	movl	$0, 112(%rsp)
	movaps	%xmm0, 96(%rsp)
	movl	$1, 64(%rsp,%rax,4)
	movslq	%edi, %rax
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%rcx), %eax
	cltq
	movl	$0, 48(%rsp)
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%r8), %eax
	cltq
	movaps	%xmm0, 32(%rsp)
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%r9), %eax
	cltq
	addl	$1, 64(%rsp,%rax,4)
	movslq	64(%rsp), %rax
	movl	$1, 32(%rsp,%rax,4)
	movslq	68(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	72(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	76(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	80(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	84(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	88(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	92(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	96(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	100(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	104(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	108(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	112(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movl	48(%rsp), %r11d
	testl	%r11d, %r11d
	jne	.L36
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movl	40(%rsp), %r10d
	testl	%r10d, %r10d
	jne	.L37
	leal	1(%rdx), %r10d
	cmpl	%ecx, %r10d
	je	.L38
.L17:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	leal	1(%rdx), %r10d
	cmpl	%ecx, %r10d
	je	.L39
.L12:
	movl	40(%rsp), %eax
	cmpl	$2, %eax
	je	.L40
	testl	%eax, %eax
	je	.L14
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L36:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L35:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$136, %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
.L39:
	.cfi_restore_state
	leal	2(%rdx), %ecx
	cmpl	%r8d, %ecx
	jne	.L12
	leal	3(%rdx), %ecx
	cmpl	%r9d, %ecx
	jne	.L12
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L40:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L38:
	leal	2(%rdx), %ecx
	cmpl	%r8d, %ecx
	jne	.L17
	leal	3(%rdx), %ecx
	cmpl	%r9d, %ecx
	jne	.L17
.L21:
	cmpl	%edi, %esi
	je	.L10
	subl	$1, %esi
	jne	.L11
	cmpl	$10, %edx
	je	.L10
.L11:
	testl	%eax, %eax
	je	.L12
	jmp	.L17
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	",%d"
.LC1:
	.string	"four card"
.LC2:
	.string	"full house"
.LC3:
	.string	"straight"
.LC4:
	.string	"three card"
.LC5:
	.string	"two pair"
.LC6:
	.string	"one pair"
.LC7:
	.string	"null"
.LC8:
	.string	"%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	cmp(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC8(%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	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %r12
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jle	.L35
	leaq	4(%rsp), %r15
	leaq	20(%rsp), %rbx
.L5:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %r15
	call	__isoc99_scanf@PLT
	cmpq	%rbx, %r15
	jne	.L5
	movq	%r14, %rcx
	movl	$4, %edx
	movl	$5, %esi
	movq	%r12, %rdi
	call	qsort@PLT
	movl	(%rsp), %esi
	movl	4(%rsp), %edx
	pxor	%xmm0, %xmm0
	movl	8(%rsp), %ecx
	movaps	%xmm0, 64(%rsp)
	movl	12(%rsp), %r8d
	leal	-1(%rsi), %eax
	leal	-1(%rdx), %edi
	movaps	%xmm0, 80(%rsp)
	movl	16(%rsp), %r9d
	cltq
	movl	$0, 112(%rsp)
	movaps	%xmm0, 96(%rsp)
	movl	$1, 64(%rsp,%rax,4)
	movslq	%edi, %rax
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%rcx), %eax
	cltq
	movl	$0, 48(%rsp)
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%r8), %eax
	cltq
	movaps	%xmm0, 32(%rsp)
	addl	$1, 64(%rsp,%rax,4)
	leal	-1(%r9), %eax
	cltq
	addl	$1, 64(%rsp,%rax,4)
	movslq	64(%rsp), %rax
	movl	$1, 32(%rsp,%rax,4)
	movslq	68(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	72(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	76(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	80(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	84(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	88(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	92(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	96(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	100(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	104(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	108(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movslq	112(%rsp), %rax
	addl	$1, 32(%rsp,%rax,4)
	movl	48(%rsp), %r11d
	testl	%r11d, %r11d
	jne	.L36
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	movl	40(%rsp), %r10d
	testl	%r10d, %r10d
	jne	.L37
	leal	1(%rdx), %r10d
	cmpl	%ecx, %r10d
	je	.L38
.L17:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	leal	1(%rdx), %r10d
	cmpl	%ecx, %r10d
	je	.L39
.L12:
	movl	40(%rsp), %eax
	cmpl	$2, %eax
	je	.L40
	testl	%eax, %eax
	je	.L14
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L36:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	.LC7(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L35:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$136, %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
.L39:
	.cfi_restore_state
	leal	2(%rdx), %ecx
	cmpl	%r8d, %ecx
	jne	.L12
	leal	3(%rdx), %ecx
	cmpl	%r9d, %ecx
	jne	.L12
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L40:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L38:
	leal	2(%rdx), %ecx
	cmpl	%r8d, %ecx
	jne	.L17
	leal	3(%rdx), %ecx
	cmpl	%r9d, %ecx
	jne	.L17
.L21:
	cmpl	%edi, %esi
	je	.L10
	subl	$1, %esi
	jne	.L11
	cmpl	$10, %edx
	je	.L10
.L11:
	testl	%eax, %eax
	je	.L12
	jmp	.L17
.L10:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L4
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<stdlib.h>
#include<memory.h>
int cmp(const void *x, const void *y)
{
	return *(int*)x - *(int*)y;
}
int main()
{
	int c[5], n[13], nn[5], i;
	while (scanf("%d", c)>0) {
		for (i = 1; i < 5; i ++)
			scanf(",%d", c+i);
		qsort(c, 5, sizeof(int), cmp);
		memset(n, 0, sizeof(n));
		for (i = 0; i < 5; i ++)
			n[c[i]-1] ++;
		memset(nn, 0, sizeof(nn));
		for (i = 0; i < 13; i ++)
			nn[n[i]] ++;
		if (nn[4])
			puts("four card");
		else if (nn[3] && nn[2])
			puts("full house");
		else if (c[1]+1==c[2] && c[1]+2==c[3] && c[1]+3==c[4] && (c[1]-1==c[0] || (c[0]==1 && c[1]==10)))
			puts("straight");
		else if (nn[3])
			puts("three card");
		else if (nn[2] == 2)
			puts("two pair");
		else if (nn[2])
			puts("one pair");
		else
			puts("null");
	}
	return 0;
}
1,2,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,12,10,1,13
11,12,13,1,2
 1,2,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,13,10,1,13
11,12,13,1,2
 1,2,3,4,1
2,3,1,3,12
13,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,13,10,1,13
11,12,13,1,2
 1,2,4,4,1
2,3,2,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,12,10,1,13
11,12,13,1,2
 1,2,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,13,11,1,13
11,12,13,1,2
 1,2,4,4,1
2,3,2,3,12
12,13,11,12,12
7,6,8,6,7
3,3,2,3,3
6,7,8,9,10
11,12,10,1,13
11,12,13,1,2
 1,3,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,12,10,1,13
11,12,13,1,2
 1,2,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,13,11,1,13
11,13,13,1,2
 1,4,3,2,1
2,3,1,3,12
12,13,11,12,12
8,6,7,6,7
3,3,2,3,3
6,7,8,9,10
11,13,10,1,13
11,12,13,1,2
 1,2,3,4,1
2,3,1,3,12
12,13,11,12,12
7,6,7,6,7
3,3,2,3,3
6,7,8,9,10
10,13,11,1,13
11,13,13,1,2

one pair
one pair
three card
full house
four card
straight
straight
null
 one pair
one pair
three card
full house
four card
straight
one pair
null
 one pair
one pair
two pair
full house
four card
straight
one pair
null
 two pair
two pair
three card
full house
four card
straight
straight
null
 one pair
one pair
three card
full house
four card
straight
two pair
null
 two pair
two pair
three card
two pair
four card
straight
straight
null
 two pair
one pair
three card
full house
four card
straight
straight
null
 one pair
one pair
three card
full house
four card
straight
two pair
one pair
 one pair
one pair
three card
two pair
four card
straight
one pair
null
 one pair
one pair
three card
full house
four card
straight
one pair
one pair

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<memory.h>
int cmp(const void *x, const void *y)
{
	return *(int*)x - *(int*)y;
}
int main()
{
	int c[5], n[13], nn[5], i;
	while (scanf("%d", c)>0) {
		for (i = 1; i < 5; i ++)
			scanf(",%d", c+i);
		qsort(c, 5, sizeof(int), cmp);
		memset(n, 0, sizeof(n));
		for (i = 0; i < 5; i ++)
			n[c[i]-1] ++;
		memset(nn, 0, sizeof(nn));
		for (i = 0; i < 13; i ++)
			nn[n[i]] ++;
		if (nn[4])
			puts("four card");
		else if (nn[3] && nn[2])
			puts("full house");
		else if (c[1]+1==c[2] && c[1]+2==c[3] && c[1]+3==c[4] && (c[1]-1==c[0] || (c[0]==1 && c[1]==10)))
			puts("straight");
		else if (nn[3])
			puts("three card");
		else if (nn[2] == 2)
			puts("two pair");
		else if (nn[2])
			puts("one pair");
		else
			puts("null");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	",%d"
.LC1:
	.string	"four card"
.LC2:
	.string	"full house"
.LC3:
	.string	"straight"
.LC4:
	.string	"three card"
.LC5:
	.string	"two pair"
.LC6:
	.string	"one pair"
.LC7:
	.string	"null"
.LC8:
	.string	"%d"
	.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	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L18:
	movl	$1, -132(%rbp)
	jmp	.L5
.L6:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L5:
	cmpl	$4, -132(%rbp)
	jle	.L6
	leaq	-128(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	$5, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-64(%rbp), %rax
	movl	$52, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-64(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L7:
	cmpl	$4, -132(%rbp)
	jle	.L8
	leaq	-96(%rbp), %rax
	movl	$20, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L9
.L10:
	movl	-132(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-96(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L9:
	cmpl	$12, -132(%rbp)
	jle	.L10
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L11:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L12:
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	2(%rax), %edx
	movl	-116(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	3(%rax), %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-128(%rbp), %eax
	cmpl	%eax, %edx
	je	.L14
	movl	-128(%rbp), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-124(%rbp), %eax
	cmpl	$10, %eax
	jne	.L13
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L13:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L15:
	movl	-88(%rbp), %eax
	cmpl	$2, %eax
	jne	.L16
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L16:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L17:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jg	.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	cmp
	.type	cmp, @function
cmp:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.section	.rodata
.LC0:
	.string	",%d"
.LC1:
	.string	"four card"
.LC2:
	.string	"full house"
.LC3:
	.string	"straight"
.LC4:
	.string	"three card"
.LC5:
	.string	"two pair"
.LC6:
	.string	"one pair"
.LC7:
	.string	"null"
.LC8:
	.string	"%d"
	.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	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L4
.L18:
	movl	$1, -132(%rbp)
	jmp	.L5
.L6:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -132(%rbp)
.L5:
	cmpl	$4, -132(%rbp)
	jle	.L6
	leaq	-128(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movl	$5, %esi
	movq	%rax, %rdi
	call	qsort@PLT
	leaq	-64(%rbp), %rax
	movl	$52, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L7
.L8:
	movl	-132(%rbp), %eax
	cltq
	movl	-128(%rbp,%rax,4), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	movl	-64(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -64(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L7:
	cmpl	$4, -132(%rbp)
	jle	.L8
	leaq	-96(%rbp), %rax
	movl	$20, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -132(%rbp)
	jmp	.L9
.L10:
	movl	-132(%rbp), %eax
	cltq
	movl	-64(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movl	-96(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -96(%rbp,%rax,4)
	addl	$1, -132(%rbp)
.L9:
	cmpl	$12, -132(%rbp)
	jle	.L10
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	je	.L11
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L11:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L12:
	movl	-124(%rbp), %eax
	leal	1(%rax), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	2(%rax), %edx
	movl	-116(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	3(%rax), %edx
	movl	-112(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L13
	movl	-124(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-128(%rbp), %eax
	cmpl	%eax, %edx
	je	.L14
	movl	-128(%rbp), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-124(%rbp), %eax
	cmpl	$10, %eax
	jne	.L13
.L14:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L13:
	movl	-84(%rbp), %eax
	testl	%eax, %eax
	je	.L15
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L15:
	movl	-88(%rbp), %eax
	cmpl	$2, %eax
	jne	.L16
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L16:
	movl	-88(%rbp), %eax
	testl	%eax, %eax
	je	.L17
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L4
.L17:
	leaq	.LC7(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L4:
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC8(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	jg	.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:
