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

```c
// AOJ 0182: Beaker

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

int n;
int c[52];
char used[52], t[52];

int cmp(int *a, int *b) { return *a - *b; }

#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int k, int r)
{
	if (!r) return 1;
	if (k < 0) return 0;
	if (t[k] && c[k] <= r) {
		t[k] = 0;
		if (calc(k-1, r-c[k])) return 1;
		t[k] = 1;
	}
	return calc(k-1, r);
}

int rec(int k, int r)
{
	int i;

	if (!r) {
		memcpy(t, used, sizeof(t));
		for (i = 0; i < n; i++) {
			if (t[i]) continue;
			if (!calc(i-1, c[i])) return 0;
			t[i] = 1;
		}
		return 1;
	}
	if (r < c[k]) return 0;
	used[k] = 1;
	if (rec(k+1, r-c[k])) return 1;
	used[k] = 0;
	return rec(k+1, r);
}

int main()
{
	int i;

	while (n = in()) {
		for (i = 0; i < n; i++) c[i] = in();
		if (n == 1) { puts("YES"); continue; }
		qsort(c, n, sizeof(int), cmp);
		memset(used, 0, sizeof(used));
		used[0] = 1;
		puts(rec(1, c[n-1]-c[0])? "YES": "NO");
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 208
c:
	.zero	208
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 52
used:
	.zero	52
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 52
t:
	.zero	52
	.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
	.globl	in
	.type	in, @function
in:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	cmpl	$0, -4(%rbp)
	jns	.L9
	movl	$0, %eax
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calc
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calc, .-calc
	.globl	rec
	.type	rec, @function
rec:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L13
	movq	used(%rip), %rax
	movq	8+used(%rip), %rdx
	movq	%rax, t(%rip)
	movq	%rdx, 8+t(%rip)
	movq	16+used(%rip), %rax
	movq	24+used(%rip), %rdx
	movq	%rax, 16+t(%rip)
	movq	%rdx, 24+t(%rip)
	movq	32+used(%rip), %rax
	movq	40+used(%rip), %rdx
	movq	%rax, 32+t(%rip)
	movq	%rdx, 40+t(%rip)
	movl	48+used(%rip), %eax
	movl	%eax, 48+t(%rip)
	movl	$0, -4(%rbp)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L22
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
	jmp	.L16
.L22:
	nop
.L16:
	addl	$1, -4(%rbp)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, %eax
	jmp	.L18
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L20
	movl	$0, %eax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L21
	movl	$1, %eax
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L24
.L30:
	movl	$0, -4(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L26
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L27
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$52, %edx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movb	$1, used(%rip)
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	c(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	rec
	testl	%eax, %eax
	je	.L28
	leaq	.LC0(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC1(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r12,%r12,4), %edx
	leal	(%rax,%rdx,2), %r12d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L4
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	in, .-in
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB53:
	.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	$184, %rsp
	.cfi_def_cfa_offset 240
	movl	%esi, 32(%rsp)
	testl	%esi, %esi
	je	.L12
	movl	%edi, %ecx
	testl	%edi, %edi
	js	.L37
	movslq	%edi, %rax
	leaq	c(%rip), %rdi
	leaq	t(%rip), %rdx
	movl	%ecx, %r8d
	leaq	-4(%rdi,%rax,4), %r10
	leaq	(%rdx,%rax), %r11
	movq	%r10, %r9
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L11:
	subq	$1, %r11
	subq	$4, %r9
	cmpl	$-1, %r8d
	je	.L37
.L38:
	subl	$1, %r8d
	cmpb	$0, (%r11)
	je	.L11
	movl	4(%r9), %eax
	cmpl	32(%rsp), %eax
	jg	.L11
	movl	32(%rsp), %ecx
	movb	$0, (%r11)
	subl	%eax, %ecx
	movl	%ecx, 36(%rsp)
	je	.L12
	cmpl	$-1, %r8d
	je	.L13
	movq	%r11, %r15
	movq	%r9, 16(%rsp)
	movq	%r11, 56(%rsp)
	movl	%r8d, %r11d
	movq	%r9, 64(%rsp)
	movq	%r15, %r9
	movl	%r8d, 72(%rsp)
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L14:
	subq	$4, 16(%rsp)
	subq	$1, %r9
	cmpl	$-1, %r11d
	je	.L112
.L36:
	subl	$1, %r11d
	cmpb	$0, -1(%r9)
	je	.L14
	movq	16(%rsp), %rax
	movl	(%rax), %eax
	cmpl	%eax, 36(%rsp)
	jl	.L14
	movl	36(%rsp), %edx
	movb	$0, -1(%r9)
	subl	%eax, %edx
	movl	%edx, 40(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L15
	movslq	%r11d, %rax
	leaq	t(%rip), %rdi
	movl	%r11d, 76(%rsp)
	leaq	c(%rip), %rcx
	leaq	-1(%rdi,%rax), %r10
	leaq	(%rcx,%rax,4), %rax
	movq	%r9, 80(%rsp)
	movq	%rax, 8(%rsp)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L16:
	subq	$4, 8(%rsp)
	subq	$1, %r10
	cmpl	$-1, %r11d
	je	.L113
.L35:
	subl	$1, %r11d
	cmpb	$0, 1(%r10)
	je	.L16
	movq	8(%rsp), %rax
	movl	(%rax), %eax
	cmpl	%eax, 40(%rsp)
	jl	.L16
	movl	40(%rsp), %edi
	movb	$0, 1(%r10)
	subl	%eax, %edi
	movl	%edi, 44(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L17
	movq	8(%rsp), %rax
	movl	%r11d, 104(%rsp)
	movl	%r11d, %r9d
	movq	%r10, 88(%rsp)
	movq	%rax, 24(%rsp)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L18:
	subq	$4, 24(%rsp)
	subq	$1, %r10
	cmpl	$-1, %r9d
	je	.L114
.L34:
	subl	$1, %r9d
	cmpb	$0, (%r10)
	je	.L18
	movq	24(%rsp), %rax
	movl	-4(%rax), %eax
	cmpl	%eax, 44(%rsp)
	jl	.L18
	movl	44(%rsp), %ecx
	movb	$0, (%r10)
	subl	%eax, %ecx
	movl	%ecx, 48(%rsp)
	je	.L12
	cmpl	$-1, %r9d
	je	.L19
	movslq	%r9d, %rax
	leaq	c(%rip), %rbx
	movq	%r10, %r11
	movl	%r9d, %r8d
	leaq	(%rbx,%rax,4), %rcx
	movq	%r10, 96(%rsp)
	movl	%r9d, 108(%rsp)
	movq	%rcx, %r10
	movq	%r11, %r9
	movl	%r8d, %r11d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L20:
	subq	$1, %r9
	subq	$4, %r10
	cmpl	$-1, %r11d
	je	.L115
.L33:
	subl	$1, %r11d
	cmpb	$0, -1(%r9)
	je	.L20
	movl	(%r10), %eax
	cmpl	%eax, 48(%rsp)
	jl	.L20
	movl	48(%rsp), %esi
	movb	$0, -1(%r9)
	subl	%eax, %esi
	movl	%esi, 52(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L21
	movslq	%r11d, %rax
	leaq	t(%rip), %rdi
	movq	%r10, %r8
	movl	%r11d, %r12d
	movl	%r11d, 144(%rsp)
	leaq	-1(%rdi,%rax), %rbp
	movq	%r10, 112(%rsp)
	movq	%r9, 120(%rsp)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L22:
	subq	$1, %rbp
	subq	$4, %r8
	cmpl	$-1, %r12d
	je	.L116
.L32:
	subl	$1, %r12d
	cmpb	$0, 1(%rbp)
	je	.L22
	movl	-4(%r8), %eax
	cmpl	%eax, 52(%rsp)
	jl	.L22
	movl	52(%rsp), %r11d
	movb	$0, 1(%rbp)
	subl	%eax, %r11d
	je	.L12
	cmpl	$-1, %r12d
	je	.L23
	movslq	%r12d, %rax
	leaq	c(%rip), %rcx
	movq	%rbp, %r13
	movl	%r12d, %r14d
	leaq	-4(%rcx,%rax,4), %rcx
	movq	%rbp, 128(%rsp)
	movl	%r12d, 148(%rsp)
	movq	%rcx, %rbp
	movl	%r11d, %r12d
	movq	%r8, 136(%rsp)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L24:
	subq	$1, %r13
	subq	$4, %rbp
	cmpl	$-1, %r14d
	je	.L117
.L31:
	subl	$1, %r14d
	cmpb	$0, 0(%r13)
	je	.L24
	movl	4(%rbp), %eax
	cmpl	%eax, %r12d
	jl	.L24
	movl	%r12d, %r9d
	movb	$0, 0(%r13)
	subl	%eax, %r9d
	je	.L12
	cmpl	$-1, %r14d
	je	.L25
	movq	%rbp, %r8
	movq	%rbp, 152(%rsp)
	movq	%r13, %r15
	movl	%r9d, %ebp
	movq	%r13, 160(%rsp)
	movl	%r14d, %r13d
	movl	%r12d, 168(%rsp)
	movq	%r8, %r12
	movl	%r14d, 172(%rsp)
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$1, %r15
	subq	$4, %r12
	cmpl	$-1, %r13d
	je	.L118
.L30:
	subl	$1, %r13d
	cmpb	$0, -1(%r15)
	je	.L26
	movl	(%r12), %eax
	cmpl	%eax, %ebp
	jl	.L26
	movl	%ebp, %r14d
	movb	$0, -1(%r15)
	subl	%eax, %r14d
	je	.L12
	cmpl	$-1, %r13d
	je	.L27
	movslq	%r13d, %rbx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L28:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L27
.L29:
	leaq	t(%rip), %rax
	leal	-1(%rbx), %edi
	cmpb	$0, (%rax,%rbx)
	je	.L28
	leaq	c(%rip), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	%eax, %r14d
	jl	.L28
	leaq	t(%rip), %rdx
	movl	%r14d, %esi
	movb	$0, (%rdx,%rbx)
	subl	%eax, %esi
	call	calc
	testl	%eax, %eax
	jne	.L12
	leaq	t(%rip), %rdx
	movb	$1, (%rdx,%rbx)
	subq	$1, %rbx
	cmpl	$-1, %ebx
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	movb	$1, -1(%r15)
	subq	$4, %r12
	subq	$1, %r15
	cmpl	$-1, %r13d
	jne	.L30
	.p2align 4,,10
	.p2align 3
.L118:
	movq	152(%rsp), %rbp
	movq	160(%rsp), %r13
	movl	168(%rsp), %r12d
	movl	172(%rsp), %r14d
.L25:
	movb	$1, 0(%r13)
	subq	$4, %rbp
	subq	$1, %r13
	cmpl	$-1, %r14d
	jne	.L31
	.p2align 4,,10
	.p2align 3
.L117:
	movq	128(%rsp), %rbp
	movq	136(%rsp), %r8
	movl	148(%rsp), %r12d
.L23:
	movb	$1, 1(%rbp)
	subq	$4, %r8
	subq	$1, %rbp
	cmpl	$-1, %r12d
	jne	.L32
	.p2align 4,,10
	.p2align 3
.L116:
	movl	144(%rsp), %r11d
	movq	112(%rsp), %r10
	movq	120(%rsp), %r9
.L21:
	movb	$1, -1(%r9)
	subq	$4, %r10
	subq	$1, %r9
	cmpl	$-1, %r11d
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L115:
	movq	96(%rsp), %r10
	movl	108(%rsp), %r9d
.L19:
	movb	$1, (%r10)
	subq	$1, %r10
	subq	$4, 24(%rsp)
	cmpl	$-1, %r9d
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L114:
	movl	104(%rsp), %r11d
	movq	88(%rsp), %r10
.L17:
	movb	$1, 1(%r10)
	subq	$1, %r10
	subq	$4, 8(%rsp)
	cmpl	$-1, %r11d
	jne	.L35
	.p2align 4,,10
	.p2align 3
.L113:
	movl	76(%rsp), %r11d
	movq	80(%rsp), %r9
.L15:
	movb	$1, -1(%r9)
	subq	$1, %r9
	subq	$4, 16(%rsp)
	cmpl	$-1, %r11d
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L112:
	movq	56(%rsp), %r11
	movq	64(%rsp), %r9
	movl	72(%rsp), %r8d
.L13:
	movb	$1, (%r11)
	subq	$4, %r9
	subq	$1, %r11
	cmpl	$-1, %r8d
	jne	.L38
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	$1, %eax
.L7:
	addq	$184, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	calc, .-calc
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB54:
	.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	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%esi, %esi
	je	.L120
	addl	$1, %edi
	leaq	-1+used(%rip), %r14
	movl	%esi, %ebp
	movslq	%edi, %rbx
	leaq	-4+c(%rip), %r12
	leaq	-1(%r14), %r13
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L137:
	movb	$1, (%rbx,%r14)
	movl	%ebp, %esi
	movl	%ebx, %edi
	addq	$1, %rbx
	subl	%eax, %esi
	call	rec
	testl	%eax, %eax
	jne	.L122
	movb	$0, 0(%r13,%rbx)
.L121:
	movl	(%r12,%rbx,4), %eax
	cmpl	%ebp, %eax
	jle	.L137
.L129:
	addq	$8, %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
.L120:
	.cfi_restore_state
	movdqa	used(%rip), %xmm0
	movdqa	16+used(%rip), %xmm1
	movdqa	32+used(%rip), %xmm2
	movl	48+used(%rip), %eax
	movl	n(%rip), %ecx
	movaps	%xmm0, t(%rip)
	movl	%eax, 48+t(%rip)
	movaps	%xmm1, 16+t(%rip)
	movaps	%xmm2, 32+t(%rip)
	testl	%ecx, %ecx
	jle	.L122
	leaq	1+t(%rip), %r15
	movq	$-1, %rbp
	leaq	c(%rip), %r13
	leaq	-1(%r15), %r12
	.p2align 4,,10
	.p2align 3
.L130:
	cmpb	$0, (%r15,%rbp)
	jne	.L123
	leaq	4+c(%rip), %rax
	movl	(%rax,%rbp,4), %r14d
	testl	%r14d, %r14d
	je	.L124
	cmpl	$-1, %ebp
	je	.L129
	movq	%rbp, %rbx
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L127:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L129
.L125:
	cmpb	$0, (%r12,%rbx)
	leal	-1(%rbx), %edi
	je	.L127
	movl	0(%r13,%rbx,4), %eax
	cmpl	%eax, %r14d
	jl	.L127
	movb	$0, (%r12,%rbx)
	movl	%r14d, %esi
	subl	%eax, %esi
	call	calc
	testl	%eax, %eax
	jne	.L138
	movb	$1, (%r12,%rbx)
	jmp	.L127
	.p2align 4,,10
	.p2align 3
.L138:
	movl	n(%rip), %ecx
.L124:
	movb	$1, (%r15,%rbp)
.L123:
	addq	$1, %rbp
	leal	1(%rbp), %eax
	cmpl	%eax, %ecx
	jg	.L130
.L122:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	rec, .-rec
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.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
	leaq	-1+used(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L140:
	movq	stdin(%rip), %rdi
	xorl	%r14d, %r14d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L155:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r14,%r14,4), %edx
	leal	(%rax,%rdx,2), %r14d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L155
	movl	%r14d, n(%rip)
	testl	%r14d, %r14d
	je	.L162
	movl	$0, %ebx
	jle	.L157
	.p2align 4,,10
	.p2align 3
.L142:
	movq	stdin(%rip), %rdi
	xorl	%r14d, %r14d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L141:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r14,%r14,4), %edx
	leal	(%rax,%rdx,2), %r14d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L141
	movl	%r14d, 0(%rbp,%rbx,4)
	movl	n(%rip), %r14d
	addq	$1, %rbx
	cmpl	%ebx, %r14d
	jg	.L142
.L157:
	cmpl	$1, %r14d
	je	.L146
	movslq	%r14d, %rsi
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	n(%rip), %esi
	pxor	%xmm0, %xmm0
	movl	$0, 48+used(%rip)
	movaps	%xmm0, used(%rip)
	movl	$2, %r13d
	leaq	-4+c(%rip), %r14
	leaq	-2+used(%rip), %r15
	leal	-1(%rsi), %eax
	movb	$1, used(%rip)
	cltq
	movaps	%xmm0, 16+used(%rip)
	movl	0(%rbp,%rax,4), %ebx
	movaps	%xmm0, 32+used(%rip)
	subl	0(%rbp), %ebx
	jne	.L145
	jmp	.L172
	.p2align 4,,10
	.p2align 3
.L173:
	movl	%ebx, %esi
	movl	%r13d, %edi
	movb	$1, 0(%r13,%r12)
	addq	$1, %r13
	subl	%eax, %esi
	call	rec
	testl	%eax, %eax
	jne	.L146
	movb	$0, (%r15,%r13)
.L145:
	movl	(%r14,%r13,4), %eax
	cmpl	%eax, %ebx
	jge	.L173
.L153:
	leaq	.LC0(%rip), %rdi
.L150:
	call	puts@PLT
	jmp	.L140
.L174:
	movl	n(%rip), %esi
.L148:
	movb	$1, 0(%r13,%r14)
.L147:
	addq	$1, %r14
	leal	1(%r14), %eax
	cmpl	%esi, %eax
	jl	.L154
.L146:
	leaq	.LC1(%rip), %rdi
	jmp	.L150
.L172:
	movdqa	used(%rip), %xmm1
	leaq	t(%rip), %r15
	movl	$0, 48+t(%rip)
	movaps	%xmm0, 16+t(%rip)
	movaps	%xmm1, t(%rip)
	movaps	%xmm0, 32+t(%rip)
	testl	%esi, %esi
	jle	.L146
	movq	$-1, %r14
	leaq	1(%r15), %r13
	.p2align 4,,10
	.p2align 3
.L154:
	cmpb	$0, 0(%r13,%r14)
	jne	.L147
	leaq	4+c(%rip), %rax
	movl	(%rax,%r14,4), %ecx
	testl	%ecx, %ecx
	je	.L148
	cmpl	$-1, %r14d
	je	.L153
	movq	%r14, %rbx
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L151:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L153
.L149:
	cmpb	$0, (%r15,%rbx)
	leal	-1(%rbx), %edi
	je	.L151
	movl	0(%rbp,%rbx,4), %eax
	cmpl	%eax, %ecx
	jl	.L151
	movb	$0, (%r15,%rbx)
	movl	%ecx, %esi
	subl	%eax, %esi
	movl	%ecx, 12(%rsp)
	call	calc
	movl	12(%rsp), %ecx
	testl	%eax, %eax
	jne	.L174
	movb	$1, (%r15,%rbx)
	jmp	.L151
.L162:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 52
t:
	.zero	52
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 52
used:
	.zero	52
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 208
c:
	.zero	208
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.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
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	stdin(%rip), %rdi
	xorl	%r12d, %r12d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r12,%r12,4), %edx
	leal	(%rax,%rdx,2), %r12d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L4
	movl	%r12d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE52:
	.size	in, .-in
	.p2align 4
	.globl	calc
	.type	calc, @function
calc:
.LFB53:
	.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	$184, %rsp
	.cfi_def_cfa_offset 240
	movl	%esi, 32(%rsp)
	testl	%esi, %esi
	je	.L12
	movl	%edi, %ecx
	testl	%edi, %edi
	js	.L37
	movslq	%edi, %rax
	leaq	c(%rip), %rdi
	leaq	t(%rip), %rdx
	movl	%ecx, %r8d
	leaq	-4(%rdi,%rax,4), %r10
	leaq	(%rdx,%rax), %r11
	movq	%r10, %r9
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L11:
	subq	$1, %r11
	subq	$4, %r9
	cmpl	$-1, %r8d
	je	.L37
.L38:
	subl	$1, %r8d
	cmpb	$0, (%r11)
	je	.L11
	movl	4(%r9), %eax
	cmpl	32(%rsp), %eax
	jg	.L11
	movl	32(%rsp), %ecx
	movb	$0, (%r11)
	subl	%eax, %ecx
	movl	%ecx, 36(%rsp)
	je	.L12
	cmpl	$-1, %r8d
	je	.L13
	movq	%r11, %r15
	movq	%r9, 16(%rsp)
	movq	%r11, 56(%rsp)
	movl	%r8d, %r11d
	movq	%r9, 64(%rsp)
	movq	%r15, %r9
	movl	%r8d, 72(%rsp)
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L14:
	subq	$4, 16(%rsp)
	subq	$1, %r9
	cmpl	$-1, %r11d
	je	.L112
.L36:
	subl	$1, %r11d
	cmpb	$0, -1(%r9)
	je	.L14
	movq	16(%rsp), %rax
	movl	(%rax), %eax
	cmpl	%eax, 36(%rsp)
	jl	.L14
	movl	36(%rsp), %edx
	movb	$0, -1(%r9)
	subl	%eax, %edx
	movl	%edx, 40(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L15
	movslq	%r11d, %rax
	leaq	t(%rip), %rdi
	movl	%r11d, 76(%rsp)
	leaq	c(%rip), %rcx
	leaq	-1(%rdi,%rax), %r10
	leaq	(%rcx,%rax,4), %rax
	movq	%r9, 80(%rsp)
	movq	%rax, 8(%rsp)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L16:
	subq	$4, 8(%rsp)
	subq	$1, %r10
	cmpl	$-1, %r11d
	je	.L113
.L35:
	subl	$1, %r11d
	cmpb	$0, 1(%r10)
	je	.L16
	movq	8(%rsp), %rax
	movl	(%rax), %eax
	cmpl	%eax, 40(%rsp)
	jl	.L16
	movl	40(%rsp), %edi
	movb	$0, 1(%r10)
	subl	%eax, %edi
	movl	%edi, 44(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L17
	movq	8(%rsp), %rax
	movl	%r11d, 104(%rsp)
	movl	%r11d, %r9d
	movq	%r10, 88(%rsp)
	movq	%rax, 24(%rsp)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L18:
	subq	$4, 24(%rsp)
	subq	$1, %r10
	cmpl	$-1, %r9d
	je	.L114
.L34:
	subl	$1, %r9d
	cmpb	$0, (%r10)
	je	.L18
	movq	24(%rsp), %rax
	movl	-4(%rax), %eax
	cmpl	%eax, 44(%rsp)
	jl	.L18
	movl	44(%rsp), %ecx
	movb	$0, (%r10)
	subl	%eax, %ecx
	movl	%ecx, 48(%rsp)
	je	.L12
	cmpl	$-1, %r9d
	je	.L19
	movslq	%r9d, %rax
	leaq	c(%rip), %rbx
	movq	%r10, %r11
	movl	%r9d, %r8d
	leaq	(%rbx,%rax,4), %rcx
	movq	%r10, 96(%rsp)
	movl	%r9d, 108(%rsp)
	movq	%rcx, %r10
	movq	%r11, %r9
	movl	%r8d, %r11d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L20:
	subq	$1, %r9
	subq	$4, %r10
	cmpl	$-1, %r11d
	je	.L115
.L33:
	subl	$1, %r11d
	cmpb	$0, -1(%r9)
	je	.L20
	movl	(%r10), %eax
	cmpl	%eax, 48(%rsp)
	jl	.L20
	movl	48(%rsp), %esi
	movb	$0, -1(%r9)
	subl	%eax, %esi
	movl	%esi, 52(%rsp)
	je	.L12
	cmpl	$-1, %r11d
	je	.L21
	movslq	%r11d, %rax
	leaq	t(%rip), %rdi
	movq	%r10, %r8
	movl	%r11d, %r12d
	movl	%r11d, 144(%rsp)
	leaq	-1(%rdi,%rax), %rbp
	movq	%r10, 112(%rsp)
	movq	%r9, 120(%rsp)
	jmp	.L32
	.p2align 4,,10
	.p2align 3
.L22:
	subq	$1, %rbp
	subq	$4, %r8
	cmpl	$-1, %r12d
	je	.L116
.L32:
	subl	$1, %r12d
	cmpb	$0, 1(%rbp)
	je	.L22
	movl	-4(%r8), %eax
	cmpl	%eax, 52(%rsp)
	jl	.L22
	movl	52(%rsp), %r11d
	movb	$0, 1(%rbp)
	subl	%eax, %r11d
	je	.L12
	cmpl	$-1, %r12d
	je	.L23
	movslq	%r12d, %rax
	leaq	c(%rip), %rcx
	movq	%rbp, %r13
	movl	%r12d, %r14d
	leaq	-4(%rcx,%rax,4), %rcx
	movq	%rbp, 128(%rsp)
	movl	%r12d, 148(%rsp)
	movq	%rcx, %rbp
	movl	%r11d, %r12d
	movq	%r8, 136(%rsp)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L24:
	subq	$1, %r13
	subq	$4, %rbp
	cmpl	$-1, %r14d
	je	.L117
.L31:
	subl	$1, %r14d
	cmpb	$0, 0(%r13)
	je	.L24
	movl	4(%rbp), %eax
	cmpl	%eax, %r12d
	jl	.L24
	movl	%r12d, %r9d
	movb	$0, 0(%r13)
	subl	%eax, %r9d
	je	.L12
	cmpl	$-1, %r14d
	je	.L25
	movq	%rbp, %r8
	movq	%rbp, 152(%rsp)
	movq	%r13, %r15
	movl	%r9d, %ebp
	movq	%r13, 160(%rsp)
	movl	%r14d, %r13d
	movl	%r12d, 168(%rsp)
	movq	%r8, %r12
	movl	%r14d, 172(%rsp)
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L26:
	subq	$1, %r15
	subq	$4, %r12
	cmpl	$-1, %r13d
	je	.L118
.L30:
	subl	$1, %r13d
	cmpb	$0, -1(%r15)
	je	.L26
	movl	(%r12), %eax
	cmpl	%eax, %ebp
	jl	.L26
	movl	%ebp, %r14d
	movb	$0, -1(%r15)
	subl	%eax, %r14d
	je	.L12
	cmpl	$-1, %r13d
	je	.L27
	movslq	%r13d, %rbx
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L28:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L27
.L29:
	leaq	t(%rip), %rax
	leal	-1(%rbx), %edi
	cmpb	$0, (%rax,%rbx)
	je	.L28
	leaq	c(%rip), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	%eax, %r14d
	jl	.L28
	leaq	t(%rip), %rdx
	movl	%r14d, %esi
	movb	$0, (%rdx,%rbx)
	subl	%eax, %esi
	call	calc
	testl	%eax, %eax
	jne	.L12
	leaq	t(%rip), %rdx
	movb	$1, (%rdx,%rbx)
	subq	$1, %rbx
	cmpl	$-1, %ebx
	jne	.L29
	.p2align 4,,10
	.p2align 3
.L27:
	movb	$1, -1(%r15)
	subq	$4, %r12
	subq	$1, %r15
	cmpl	$-1, %r13d
	jne	.L30
	.p2align 4,,10
	.p2align 3
.L118:
	movq	152(%rsp), %rbp
	movq	160(%rsp), %r13
	movl	168(%rsp), %r12d
	movl	172(%rsp), %r14d
.L25:
	movb	$1, 0(%r13)
	subq	$4, %rbp
	subq	$1, %r13
	cmpl	$-1, %r14d
	jne	.L31
	.p2align 4,,10
	.p2align 3
.L117:
	movq	128(%rsp), %rbp
	movq	136(%rsp), %r8
	movl	148(%rsp), %r12d
.L23:
	movb	$1, 1(%rbp)
	subq	$4, %r8
	subq	$1, %rbp
	cmpl	$-1, %r12d
	jne	.L32
	.p2align 4,,10
	.p2align 3
.L116:
	movl	144(%rsp), %r11d
	movq	112(%rsp), %r10
	movq	120(%rsp), %r9
.L21:
	movb	$1, -1(%r9)
	subq	$4, %r10
	subq	$1, %r9
	cmpl	$-1, %r11d
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L115:
	movq	96(%rsp), %r10
	movl	108(%rsp), %r9d
.L19:
	movb	$1, (%r10)
	subq	$1, %r10
	subq	$4, 24(%rsp)
	cmpl	$-1, %r9d
	jne	.L34
	.p2align 4,,10
	.p2align 3
.L114:
	movl	104(%rsp), %r11d
	movq	88(%rsp), %r10
.L17:
	movb	$1, 1(%r10)
	subq	$1, %r10
	subq	$4, 8(%rsp)
	cmpl	$-1, %r11d
	jne	.L35
	.p2align 4,,10
	.p2align 3
.L113:
	movl	76(%rsp), %r11d
	movq	80(%rsp), %r9
.L15:
	movb	$1, -1(%r9)
	subq	$1, %r9
	subq	$4, 16(%rsp)
	cmpl	$-1, %r11d
	jne	.L36
	.p2align 4,,10
	.p2align 3
.L112:
	movq	56(%rsp), %r11
	movq	64(%rsp), %r9
	movl	72(%rsp), %r8d
.L13:
	movb	$1, (%r11)
	subq	$4, %r9
	subq	$1, %r11
	cmpl	$-1, %r8d
	jne	.L38
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	movl	$1, %eax
.L7:
	addq	$184, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE53:
	.size	calc, .-calc
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB54:
	.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	$8, %rsp
	.cfi_def_cfa_offset 64
	testl	%esi, %esi
	je	.L120
	addl	$1, %edi
	leaq	-1+used(%rip), %r14
	movl	%esi, %ebp
	movslq	%edi, %rbx
	leaq	-4+c(%rip), %r12
	leaq	-1(%r14), %r13
	jmp	.L121
	.p2align 4,,10
	.p2align 3
.L137:
	movb	$1, (%rbx,%r14)
	movl	%ebp, %esi
	movl	%ebx, %edi
	addq	$1, %rbx
	subl	%eax, %esi
	call	rec
	testl	%eax, %eax
	jne	.L122
	movb	$0, 0(%r13,%rbx)
.L121:
	movl	(%r12,%rbx,4), %eax
	cmpl	%ebp, %eax
	jle	.L137
.L129:
	addq	$8, %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
.L120:
	.cfi_restore_state
	movdqa	used(%rip), %xmm0
	movdqa	16+used(%rip), %xmm1
	movdqa	32+used(%rip), %xmm2
	movl	48+used(%rip), %eax
	movl	n(%rip), %ecx
	movaps	%xmm0, t(%rip)
	movl	%eax, 48+t(%rip)
	movaps	%xmm1, 16+t(%rip)
	movaps	%xmm2, 32+t(%rip)
	testl	%ecx, %ecx
	jle	.L122
	leaq	1+t(%rip), %r15
	movq	$-1, %rbp
	leaq	c(%rip), %r13
	leaq	-1(%r15), %r12
	.p2align 4,,10
	.p2align 3
.L130:
	cmpb	$0, (%r15,%rbp)
	jne	.L123
	leaq	4+c(%rip), %rax
	movl	(%rax,%rbp,4), %r14d
	testl	%r14d, %r14d
	je	.L124
	cmpl	$-1, %ebp
	je	.L129
	movq	%rbp, %rbx
	jmp	.L125
	.p2align 4,,10
	.p2align 3
.L127:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L129
.L125:
	cmpb	$0, (%r12,%rbx)
	leal	-1(%rbx), %edi
	je	.L127
	movl	0(%r13,%rbx,4), %eax
	cmpl	%eax, %r14d
	jl	.L127
	movb	$0, (%r12,%rbx)
	movl	%r14d, %esi
	subl	%eax, %esi
	call	calc
	testl	%eax, %eax
	jne	.L138
	movb	$1, (%r12,%rbx)
	jmp	.L127
	.p2align 4,,10
	.p2align 3
.L138:
	movl	n(%rip), %ecx
.L124:
	movb	$1, (%r15,%rbp)
.L123:
	addq	$1, %rbp
	leal	1(%rbp), %eax
	cmpl	%eax, %ecx
	jg	.L130
.L122:
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE54:
	.size	rec, .-rec
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.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
	leaq	-1+used(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L140:
	movq	stdin(%rip), %rdi
	xorl	%r14d, %r14d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L155:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r14,%r14,4), %edx
	leal	(%rax,%rdx,2), %r14d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L155
	movl	%r14d, n(%rip)
	testl	%r14d, %r14d
	je	.L162
	movl	$0, %ebx
	jle	.L157
	.p2align 4,,10
	.p2align 3
.L142:
	movq	stdin(%rip), %rdi
	xorl	%r14d, %r14d
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L141:
	movq	stdin(%rip), %rdi
	andl	$15, %eax
	leal	(%r14,%r14,4), %edx
	leal	(%rax,%rdx,2), %r14d
	call	getc@PLT
	cmpl	$47, %eax
	jg	.L141
	movl	%r14d, 0(%rbp,%rbx,4)
	movl	n(%rip), %r14d
	addq	$1, %rbx
	cmpl	%ebx, %r14d
	jg	.L142
.L157:
	cmpl	$1, %r14d
	je	.L146
	movslq	%r14d, %rsi
	leaq	cmp(%rip), %rcx
	movl	$4, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	n(%rip), %esi
	pxor	%xmm0, %xmm0
	movl	$0, 48+used(%rip)
	movaps	%xmm0, used(%rip)
	movl	$2, %r13d
	leaq	-4+c(%rip), %r14
	leaq	-2+used(%rip), %r15
	leal	-1(%rsi), %eax
	movb	$1, used(%rip)
	cltq
	movaps	%xmm0, 16+used(%rip)
	movl	0(%rbp,%rax,4), %ebx
	movaps	%xmm0, 32+used(%rip)
	subl	0(%rbp), %ebx
	jne	.L145
	jmp	.L172
	.p2align 4,,10
	.p2align 3
.L173:
	movl	%ebx, %esi
	movl	%r13d, %edi
	movb	$1, 0(%r13,%r12)
	addq	$1, %r13
	subl	%eax, %esi
	call	rec
	testl	%eax, %eax
	jne	.L146
	movb	$0, (%r15,%r13)
.L145:
	movl	(%r14,%r13,4), %eax
	cmpl	%eax, %ebx
	jge	.L173
.L153:
	leaq	.LC0(%rip), %rdi
.L150:
	call	puts@PLT
	jmp	.L140
.L174:
	movl	n(%rip), %esi
.L148:
	movb	$1, 0(%r13,%r14)
.L147:
	addq	$1, %r14
	leal	1(%r14), %eax
	cmpl	%esi, %eax
	jl	.L154
.L146:
	leaq	.LC1(%rip), %rdi
	jmp	.L150
.L172:
	movdqa	used(%rip), %xmm1
	leaq	t(%rip), %r15
	movl	$0, 48+t(%rip)
	movaps	%xmm0, 16+t(%rip)
	movaps	%xmm1, t(%rip)
	movaps	%xmm0, 32+t(%rip)
	testl	%esi, %esi
	jle	.L146
	movq	$-1, %r14
	leaq	1(%r15), %r13
	.p2align 4,,10
	.p2align 3
.L154:
	cmpb	$0, 0(%r13,%r14)
	jne	.L147
	leaq	4+c(%rip), %rax
	movl	(%rax,%r14,4), %ecx
	testl	%ecx, %ecx
	je	.L148
	cmpl	$-1, %r14d
	je	.L153
	movq	%r14, %rbx
	jmp	.L149
	.p2align 4,,10
	.p2align 3
.L151:
	subq	$1, %rbx
	cmpl	$-1, %ebx
	je	.L153
.L149:
	cmpb	$0, (%r15,%rbx)
	leal	-1(%rbx), %edi
	je	.L151
	movl	0(%rbp,%rbx,4), %eax
	cmpl	%eax, %ecx
	jl	.L151
	movb	$0, (%r15,%rbx)
	movl	%ecx, %esi
	subl	%eax, %esi
	movl	%ecx, 12(%rsp)
	call	calc
	movl	12(%rsp), %ecx
	testl	%eax, %eax
	jne	.L174
	movb	$1, (%r15,%rbx)
	jmp	.L151
.L162:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 52
t:
	.zero	52
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 52
used:
	.zero	52
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 208
c:
	.zero	208
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

// AOJ 0182: Beaker

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

int n;
int c[52];
char used[52], t[52];

int cmp(int *a, int *b) { return *a - *b; }

#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int k, int r)
{
	if (!r) return 1;
	if (k < 0) return 0;
	if (t[k] && c[k] <= r) {
		t[k] = 0;
		if (calc(k-1, r-c[k])) return 1;
		t[k] = 1;
	}
	return calc(k-1, r);
}

int rec(int k, int r)
{
	int i;

	if (!r) {
		memcpy(t, used, sizeof(t));
		for (i = 0; i < n; i++) {
			if (t[i]) continue;
			if (!calc(i-1, c[i])) return 0;
			t[i] = 1;
		}
		return 1;
	}
	if (r < c[k]) return 0;
	used[k] = 1;
	if (rec(k+1, r-c[k])) return 1;
	used[k] = 0;
	return rec(k+1, r);
}

int main()
{
	int i;

	while (n = in()) {
		for (i = 0; i < n; i++) c[i] = in();
		if (n == 1) { puts("YES"); continue; }
		qsort(c, n, sizeof(int), cmp);
		memset(used, 0, sizeof(used));
		used[0] = 1;
		puts(rec(1, c[n-1]-c[0])? "YES": "NO");
	}
	return 0;
}


10
11 2 23 4 2 12 8 5 2 10
8
2 1 3 11 2 3 1 4
9
5 9 1 2 4 8 17 1 8
8
3 38 9 4 24 14 19 5
1
1
0
 10
11 2 23 4 3 12 8 5 2 10
8
2 1 3 11 2 3 1 4
9
5 9 1 2 4 8 17 1 8
8
3 38 9 4 24 14 19 5
1
1
0

YES
YES
YES
NO
YES
 NO
YES
YES
NO
YES

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

```c
// AOJ 0182: Beaker

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

int n;
int c[52];
char used[52], t[52];

int cmp(int *a, int *b) { return *a - *b; }

#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int calc(int k, int r)
{
	if (!r) return 1;
	if (k < 0) return 0;
	if (t[k] && c[k] <= r) {
		t[k] = 0;
		if (calc(k-1, r-c[k])) return 1;
		t[k] = 1;
	}
	return calc(k-1, r);
}

int rec(int k, int r)
{
	int i;

	if (!r) {
		memcpy(t, used, sizeof(t));
		for (i = 0; i < n; i++) {
			if (t[i]) continue;
			if (!calc(i-1, c[i])) return 0;
			t[i] = 1;
		}
		return 1;
	}
	if (r < c[k]) return 0;
	used[k] = 1;
	if (rec(k+1, r-c[k])) return 1;
	used[k] = 0;
	return rec(k+1, r);
}

int main()
{
	int i;

	while (n = in()) {
		for (i = 0; i < n; i++) c[i] = in();
		if (n == 1) { puts("YES"); continue; }
		qsort(c, n, sizeof(int), cmp);
		memset(used, 0, sizeof(used));
		used[0] = 1;
		puts(rec(1, c[n-1]-c[0])? "YES": "NO");
	}
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 208
c:
	.zero	208
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 52
used:
	.zero	52
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 52
t:
	.zero	52
	.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
	.globl	in
	.type	in, @function
in:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	cmpl	$0, -4(%rbp)
	jns	.L9
	movl	$0, %eax
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calc
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calc, .-calc
	.globl	rec
	.type	rec, @function
rec:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L13
	movq	used(%rip), %rax
	movq	8+used(%rip), %rdx
	movq	%rax, t(%rip)
	movq	%rdx, 8+t(%rip)
	movq	16+used(%rip), %rax
	movq	24+used(%rip), %rdx
	movq	%rax, 16+t(%rip)
	movq	%rdx, 24+t(%rip)
	movq	32+used(%rip), %rax
	movq	40+used(%rip), %rdx
	movq	%rax, 32+t(%rip)
	movq	%rdx, 40+t(%rip)
	movl	48+used(%rip), %eax
	movl	%eax, 48+t(%rip)
	movl	$0, -4(%rbp)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L22
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
	jmp	.L16
.L22:
	nop
.L16:
	addl	$1, -4(%rbp)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, %eax
	jmp	.L18
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L20
	movl	$0, %eax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L21
	movl	$1, %eax
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L24
.L30:
	movl	$0, -4(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L26
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L27
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$52, %edx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movb	$1, used(%rip)
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	c(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	rec
	testl	%eax, %eax
	je	.L28
	leaq	.LC0(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC1(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	c
	.align 32
	.type	c, @object
	.size	c, 208
c:
	.zero	208
	.globl	used
	.align 32
	.type	used, @object
	.size	used, 52
used:
	.zero	52
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 52
t:
	.zero	52
	.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
	.globl	in
	.type	in, @function
in:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
.L4:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L4
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	in, .-in
	.globl	calc
	.type	calc, @function
calc:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L7
	movl	$1, %eax
	jmp	.L8
.L7:
	cmpl	$0, -4(%rbp)
	jns	.L9
	movl	$0, %eax
	jmp	.L8
.L9:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	calc
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L8
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
.L10:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calc, .-calc
	.globl	rec
	.type	rec, @function
rec:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	jne	.L13
	movq	used(%rip), %rax
	movq	8+used(%rip), %rdx
	movq	%rax, t(%rip)
	movq	%rdx, 8+t(%rip)
	movq	16+used(%rip), %rax
	movq	24+used(%rip), %rdx
	movq	%rax, 16+t(%rip)
	movq	%rdx, 24+t(%rip)
	movq	32+used(%rip), %rax
	movq	40+used(%rip), %rdx
	movq	%rax, 32+t(%rip)
	movq	%rdx, 40+t(%rip)
	movl	48+used(%rip), %eax
	movl	%eax, 48+t(%rip)
	movl	$0, -4(%rbp)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L22
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-4(%rbp), %edx
	subl	$1, %edx
	movl	%eax, %esi
	movl	%edx, %edi
	call	calc
	testl	%eax, %eax
	jne	.L17
	movl	$0, %eax
	jmp	.L18
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$1, (%rax,%rdx)
	jmp	.L16
.L22:
	nop
.L16:
	addl	$1, -4(%rbp)
.L14:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, %eax
	jmp	.L18
.L13:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -24(%rbp)
	jge	.L20
	movl	$0, %eax
	jmp	.L18
.L20:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-24(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-20(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L21
	movl	$1, %eax
	jmp	.L18
.L21:
	movl	-20(%rbp), %eax
	cltq
	leaq	used(%rip), %rdx
	movb	$0, (%rax,%rdx)
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	rec
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L24
.L30:
	movl	$0, -4(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-4(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -4(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L26
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L27
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L24
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	c(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$52, %edx
	movl	$0, %esi
	leaq	used(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movb	$1, used(%rip)
	movl	n(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	c(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	$1, %edi
	call	rec
	testl	%eax, %eax
	je	.L28
	leaq	.LC0(%rip), %rax
	jmp	.L29
.L28:
	leaq	.LC1(%rip), %rax
.L29:
	movq	%rax, %rdi
	call	puts@PLT
.L24:
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L30
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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:
