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>

const int bit[17] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536};
int N, a[17][17];
long long dp[65536], sum[65536];

long long recursion(int n)
{
	if (dp[n] >= 0) return dp[n];
	else dp[n] = sum[n];
	
	int i, j, k, m, b[17];
	long long tmp;
	for (i = 0, m = 0; i < N; i++) if ((n & bit[i]) == bit[i]) b[m++] = i;
	k = bit[b[0]];
	while (k < bit[b[m-1]]) {
		tmp = recursion(k) + recursion(n ^ k);
		if (tmp > dp[n]) dp[n] = tmp;
		for (i = 0; (k & bit[b[i]]) != 0; i++);
		for (k ^= bit[b[i--]]; i >= 0; k ^= bit[b[i--]]);
	}
	return dp[n];
}
 
int main()
{
	int i, j, k;
	scanf("%d", &N);
	for (i = 0; i < N; i++) {
		for (j = 0; j < N; j++) scanf("%d", &(a[i][j]));
	}
	for (i = 1, dp[0] = 0; i < bit[N]; i++) dp[i] = -1;
	for (k = 0; k < bit[N]; k++) {
		for (i = 0, sum[k] = 0; i < N; i++) {
			if ((k & bit[i]) == 0) continue;
			for (j = i + 1; j < N; j++) if ((k & bit[j]) != 0) sum[k] += a[i][j];
		}
	}
	printf("%lld\n", recursion(bit[N] - 1));
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bit
	.section	.rodata
	.align 32
	.type	bit, @object
	.size	bit, 68
bit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.long	128
	.long	256
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1156
a:
	.zero	1156
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 524288
dp:
	.zero	524288
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 524288
sum:
	.zero	524288
	.text
	.globl	recursion
	.type	recursion, @function
recursion:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movl	%edi, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	js	.L2
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L14
.L2:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -116(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L4
.L6:
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-132(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	bit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -108(%rbp)
	cltq
	movl	-116(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L5:
	addl	$1, -116(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L6
	movl	-96(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -112(%rbp)
	jmp	.L7
.L13:
	movl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rbx
	movl	-132(%rbp), %eax
	xorl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	addq	%rbx, %rax
	movq	%rax, -104(%rbp)
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -104(%rbp)
	jle	.L8
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rdx
	movq	-104(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L8:
	movl	$0, -116(%rbp)
	jmp	.L9
.L10:
	addl	$1, -116(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-112(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
	jmp	.L11
.L12:
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
.L11:
	cmpl	$0, -116(%rbp)
	jns	.L12
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L13
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L14:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	recursion, .-recursion
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L17
.L20:
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	$1, -12(%rbp)
	movq	$0, dp(%rip)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, -4(%rbp)
	jmp	.L23
.L31:
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L24
.L30:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L33
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L27
.L29:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L28:
	addl	$1, -8(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L29
	jmp	.L26
.L33:
	nop
.L26:
	addl	$1, -12(%rbp)
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L30
	addl	$1, -4(%rbp)
.L23:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L31
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.type	recursion.part.0, @function
recursion.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	dp(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	N(%rip), %edx
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	leaq	sum(%rip), %rax
	movq	(%rax,%r14,8), %r8
	movq	%r8, 0(%r13,%r14,8)
	testl	%edx, %edx
	jle	.L34
	movl	%r14d, %eax
	andl	$1, %eax
	je	.L3
	movl	$0, 16(%rsp)
.L3:
	cmpl	$1, %edx
	je	.L4
	testb	$2, %r12b
	je	.L5
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$1, 16(%rsp,%rcx,4)
.L5:
	cmpl	$2, %edx
	je	.L4
	testb	$4, %r12b
	jne	.L185
.L6:
	cmpl	$3, %edx
	je	.L4
	testb	$8, %r12b
	jne	.L186
.L7:
	cmpl	$4, %edx
	je	.L4
	testb	$16, %r12b
	jne	.L187
	cmpl	$5, %edx
	je	.L4
.L193:
	testb	$32, %r12b
	je	.L9
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$5, 16(%rsp,%rcx,4)
.L9:
	cmpl	$6, %edx
	je	.L4
	testb	$64, %r12b
	je	.L10
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$6, 16(%rsp,%rcx,4)
.L10:
	cmpl	$7, %edx
	je	.L4
	testb	$-128, %r12b
	je	.L11
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$7, 16(%rsp,%rcx,4)
.L11:
	cmpl	$8, %edx
	je	.L4
	testl	$256, %r12d
	je	.L12
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$8, 16(%rsp,%rcx,4)
.L12:
	cmpl	$9, %edx
	je	.L4
	testl	$512, %r12d
	je	.L13
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$9, 16(%rsp,%rcx,4)
.L13:
	cmpl	$10, %edx
	je	.L4
	testl	$1024, %r12d
	jne	.L188
.L14:
	cmpl	$11, %edx
	je	.L4
	testl	$2048, %r12d
	jne	.L189
.L15:
	cmpl	$12, %edx
	je	.L4
	testl	$4096, %r12d
	jne	.L190
.L16:
	cmpl	$13, %edx
	je	.L4
	testl	$8192, %r12d
	je	.L17
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$13, 16(%rsp,%rcx,4)
.L17:
	cmpl	$14, %edx
	je	.L4
	testl	$16384, %r12d
	je	.L18
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$14, 16(%rsp,%rcx,4)
.L18:
	cmpl	$15, %edx
	je	.L4
	testl	$32768, %r12d
	je	.L19
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$15, 16(%rsp,%rcx,4)
.L19:
	cmpl	$16, %edx
	je	.L4
	testl	$65536, %r12d
	jne	.L191
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %eax
.L2:
	cltq
	movslq	16(%rsp), %rdx
	leaq	bit(%rip), %rbp
	movslq	16(%rsp,%rax,4), %rax
	movl	0(%rbp,%rdx,4), %r15d
	movl	0(%rbp,%rax,4), %esi
	cmpl	%esi, %r15d
	jge	.L1
	movl	%r15d, %ebx
.L30:
	movslq	%ebx, %rax
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	jns	.L22
	movl	%ebx, %edi
	movl	%esi, 4(%rsp)
	call	recursion.part.0
	movl	4(%rsp), %esi
	movq	%rax, %rdx
.L22:
	movl	%r12d, %edi
	xorl	%ebx, %edi
	movslq	%edi, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jns	.L23
	movq	%rdx, 8(%rsp)
	movl	%esi, 4(%rsp)
	call	recursion.part.0
	movq	8(%rsp), %rdx
	movl	4(%rsp), %esi
.L23:
	movq	0(%r13,%r14,8), %r8
	addq	%rdx, %rax
	cmpq	%r8, %rax
	jle	.L24
	movq	%rax, 0(%r13,%r14,8)
	movq	%rax, %r8
.L24:
	testl	%ebx, %r15d
	je	.L25
	movslq	20(%rsp), %rax
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %ebx
	je	.L26
	movslq	24(%rsp), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	testl	%ecx, %ebx
	je	.L27
	movslq	28(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L35
	movslq	32(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L36
	movslq	36(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L37
	movslq	40(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L38
	movslq	44(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L39
	movslq	48(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L40
	movslq	52(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L41
	movslq	56(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L42
	movslq	60(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L43
	movslq	64(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L44
	movslq	68(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L45
	movslq	72(%rsp), %rax
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %ebx
	je	.L46
	movslq	76(%rsp), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	testl	%ecx, %ebx
	je	.L47
	movslq	80(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	movl	$15, %eax
.L28:
	xorl	%ecx, %edx
	leal	-1(%rax), %ecx
	leal	-3(%rax), %edi
	movslq	%ecx, %rcx
	xorl	%ebx, %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %edx
	leal	-2(%rax), %ecx
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	movl	0(%rbp,%rcx,4), %ebx
	xorl	%edx, %ebx
	cmpl	$2, %eax
	je	.L31
	movslq	%edi, %rdi
	leal	-4(%rax), %edx
	movslq	16(%rsp,%rdi,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$3, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-5(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$4, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-6(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$5, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-7(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$6, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-8(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$7, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-9(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$8, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-10(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$9, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-11(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$10, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-12(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$11, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-13(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$12, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-14(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$13, %eax
	je	.L31
	movslq	%edx, %rax
	movslq	16(%rsp,%rax,4), %rax
	xorl	0(%rbp,%rax,4), %ebx
	movl	%ebx, %eax
	xorl	%r15d, %eax
	testl	%edx, %edx
	cmovne	%eax, %ebx
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%ebx, %esi
	jg	.L30
.L1:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L192
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L185:
	.cfi_restore_state
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$2, 16(%rsp,%rcx,4)
	jmp	.L6
.L186:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$3, 16(%rsp,%rcx,4)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	xorl	%r15d, %ebx
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r15d, %eax
	xorl	%eax, %ebx
	jmp	.L31
.L27:
	movslq	16(%rsp), %rdx
	xorl	%ecx, %eax
	xorl	%ebx, %eax
	xorl	0(%rbp,%rdx,4), %eax
	movl	%eax, %ebx
	jmp	.L31
.L35:
	movl	$2, %eax
	jmp	.L28
.L36:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$3, %eax
	jmp	.L28
.L37:
	movl	$4, %eax
	jmp	.L28
.L187:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$4, 16(%rsp,%rcx,4)
	cmpl	$5, %edx
	jne	.L193
	jmp	.L4
.L188:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$10, 16(%rsp,%rcx,4)
	jmp	.L14
.L189:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$11, 16(%rsp,%rcx,4)
	jmp	.L15
.L190:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$12, 16(%rsp,%rcx,4)
	jmp	.L16
.L38:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$5, %eax
	jmp	.L28
.L39:
	movl	$6, %eax
	jmp	.L28
.L40:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$7, %eax
	jmp	.L28
.L41:
	movl	$8, %eax
	jmp	.L28
.L42:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$9, %eax
	jmp	.L28
.L43:
	movl	$10, %eax
	jmp	.L28
.L34:
	movl	$-1, %eax
	jmp	.L2
.L44:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$11, %eax
	jmp	.L28
.L45:
	movl	$12, %eax
	jmp	.L28
.L46:
	movl	%edx, %ecx
	movl	%eax, %edx
	movl	$13, %eax
	jmp	.L28
.L47:
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$14, %eax
	jmp	.L28
.L191:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$16, 16(%rsp,%rdx,4)
	jmp	.L4
.L192:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	recursion.part.0, .-recursion.part.0
	.p2align 4
	.globl	recursion
	.type	recursion, @function
recursion:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	leaq	dp(%rip), %rax
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	jns	.L194
	jmp	recursion.part.0
	.p2align 4,,10
	.p2align 3
.L194:
	ret
	.cfi_endproc
.LFE23:
	.size	recursion, .-recursion
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	testl	%ebx, %ebx
	jle	.L198
	.p2align 4,,10
	.p2align 3
.L197:
	leaq	a(%rip), %rax
	xorl	%ebp, %ebp
	leaq	(%rax,%r13,4), %r15
	.p2align 4,,10
	.p2align 3
.L199:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	addq	$4, %r15
	cmpl	%ebp, %ebx
	jg	.L199
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	jle	.L198
	addq	$17, %r13
	jmp	.L197
.L198:
	leaq	bit(%rip), %rbp
	movslq	%ebx, %rax
	movq	$0, dp(%rip)
	movl	0(%rbp,%rax,4), %r12d
	cmpl	$1, %r12d
	jle	.L201
	leal	-1(%r12), %edx
	movl	$255, %esi
	leaq	8+dp(%rip), %rdi
	movq	%rdx, %r13
	salq	$3, %rdx
	call	memset@PLT
.L203:
	leaq	sum(%rip), %rsi
	xorl	%ecx, %ecx
	leaq	a(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L202:
	movq	$0, (%rsi)
	testl	%ebx, %ebx
	jle	.L206
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L224:
	movslq	%eax, %rdx
	movl	%ecx, %edi
	andl	0(%rbp,%rdx,4), %edi
	jne	.L297
	addl	$1, %eax
	cmpl	%ebx, %eax
	jl	.L224
.L206:
	addl	$1, %ecx
	addq	$8, %rsi
	cmpl	%r12d, %ecx
	jl	.L202
.L225:
	movslq	%r13d, %rax
	leaq	dp(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	testq	%rdx, %rdx
	jns	.L204
	movl	%r13d, %edi
	call	recursion.part.0
	movq	%rax, %rdx
.L204:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	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
	.p2align 4,,10
	.p2align 3
.L297:
	.cfi_restore_state
	leal	1(%rax), %r8d
	cmpl	%r8d, %ebx
	jle	.L206
	movslq	%r8d, %r10
	movl	%ecx, %edi
	andl	0(%rbp,%r10,4), %edi
	je	.L208
	movq	%rdx, %rdi
	salq	$4, %rdi
	addq	%rdx, %rdi
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L208:
	leal	2(%rax), %edi
	cmpl	%ebx, %edi
	jge	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L210
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L210:
	leal	3(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L211
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L211:
	leal	4(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L212
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L212:
	leal	5(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L213
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L213:
	leal	6(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L214
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L214:
	leal	7(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L215
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L215:
	leal	8(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L216
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L216:
	leal	9(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L217
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L217:
	leal	10(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L218
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L218:
	leal	11(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L219
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L219:
	leal	12(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L220
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L220:
	leal	13(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L221
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L221:
	leal	14(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L222
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L222:
	addl	$15, %eax
	cmpl	%eax, %ebx
	jle	.L223
	cltq
	movl	%ecx, %edi
	andl	0(%rbp,%rax,4), %edi
	je	.L223
	movq	%rdx, %rdi
	salq	$4, %rdi
	addq	%rdi, %rdx
	addq	%rdx, %rax
	movslq	(%r9,%rax,4), %rax
	addq	%rax, (%rsi)
	.p2align 4,,10
	.p2align 3
.L223:
	movl	%r8d, %eax
	jmp	.L224
.L201:
	je	.L258
	leal	-1(%r12), %r13d
	jmp	.L225
.L258:
	xorl	%r13d, %r13d
	jmp	.L203
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	sum
	.bss
	.align 32
	.type	sum, @object
	.size	sum, 524288
sum:
	.zero	524288
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 524288
dp:
	.zero	524288
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1156
a:
	.zero	1156
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	bit
	.section	.rodata
	.align 32
	.type	bit, @object
	.size	bit, 68
bit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.long	128
	.long	256
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.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
	.type	recursion.part.0, @function
recursion.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movslq	%edi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	dp(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r14, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movl	N(%rip), %edx
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	leaq	sum(%rip), %rax
	movq	(%rax,%r14,8), %r8
	movq	%r8, 0(%r13,%r14,8)
	testl	%edx, %edx
	jle	.L34
	movl	%r14d, %eax
	andl	$1, %eax
	je	.L3
	movl	$0, 16(%rsp)
.L3:
	cmpl	$1, %edx
	je	.L4
	testb	$2, %r12b
	je	.L5
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$1, 16(%rsp,%rcx,4)
.L5:
	cmpl	$2, %edx
	je	.L4
	testb	$4, %r12b
	jne	.L185
.L6:
	cmpl	$3, %edx
	je	.L4
	testb	$8, %r12b
	jne	.L186
.L7:
	cmpl	$4, %edx
	je	.L4
	testb	$16, %r12b
	jne	.L187
	cmpl	$5, %edx
	je	.L4
.L193:
	testb	$32, %r12b
	je	.L9
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$5, 16(%rsp,%rcx,4)
.L9:
	cmpl	$6, %edx
	je	.L4
	testb	$64, %r12b
	je	.L10
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$6, 16(%rsp,%rcx,4)
.L10:
	cmpl	$7, %edx
	je	.L4
	testb	$-128, %r12b
	je	.L11
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$7, 16(%rsp,%rcx,4)
.L11:
	cmpl	$8, %edx
	je	.L4
	testl	$256, %r12d
	je	.L12
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$8, 16(%rsp,%rcx,4)
.L12:
	cmpl	$9, %edx
	je	.L4
	testl	$512, %r12d
	je	.L13
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$9, 16(%rsp,%rcx,4)
.L13:
	cmpl	$10, %edx
	je	.L4
	testl	$1024, %r12d
	jne	.L188
.L14:
	cmpl	$11, %edx
	je	.L4
	testl	$2048, %r12d
	jne	.L189
.L15:
	cmpl	$12, %edx
	je	.L4
	testl	$4096, %r12d
	jne	.L190
.L16:
	cmpl	$13, %edx
	je	.L4
	testl	$8192, %r12d
	je	.L17
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$13, 16(%rsp,%rcx,4)
.L17:
	cmpl	$14, %edx
	je	.L4
	testl	$16384, %r12d
	je	.L18
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$14, 16(%rsp,%rcx,4)
.L18:
	cmpl	$15, %edx
	je	.L4
	testl	$32768, %r12d
	je	.L19
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$15, 16(%rsp,%rcx,4)
.L19:
	cmpl	$16, %edx
	je	.L4
	testl	$65536, %r12d
	jne	.L191
	.p2align 4,,10
	.p2align 3
.L4:
	subl	$1, %eax
.L2:
	cltq
	movslq	16(%rsp), %rdx
	leaq	bit(%rip), %rbp
	movslq	16(%rsp,%rax,4), %rax
	movl	0(%rbp,%rdx,4), %r15d
	movl	0(%rbp,%rax,4), %esi
	cmpl	%esi, %r15d
	jge	.L1
	movl	%r15d, %ebx
.L30:
	movslq	%ebx, %rax
	movq	0(%r13,%rax,8), %rdx
	testq	%rdx, %rdx
	jns	.L22
	movl	%ebx, %edi
	movl	%esi, 4(%rsp)
	call	recursion.part.0
	movl	4(%rsp), %esi
	movq	%rax, %rdx
.L22:
	movl	%r12d, %edi
	xorl	%ebx, %edi
	movslq	%edi, %rax
	movq	0(%r13,%rax,8), %rax
	testq	%rax, %rax
	jns	.L23
	movq	%rdx, 8(%rsp)
	movl	%esi, 4(%rsp)
	call	recursion.part.0
	movq	8(%rsp), %rdx
	movl	4(%rsp), %esi
.L23:
	movq	0(%r13,%r14,8), %r8
	addq	%rdx, %rax
	cmpq	%r8, %rax
	jle	.L24
	movq	%rax, 0(%r13,%r14,8)
	movq	%rax, %r8
.L24:
	testl	%ebx, %r15d
	je	.L25
	movslq	20(%rsp), %rax
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %ebx
	je	.L26
	movslq	24(%rsp), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	testl	%ecx, %ebx
	je	.L27
	movslq	28(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L35
	movslq	32(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L36
	movslq	36(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L37
	movslq	40(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L38
	movslq	44(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L39
	movslq	48(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L40
	movslq	52(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L41
	movslq	56(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L42
	movslq	60(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L43
	movslq	64(%rsp), %rax
	movl	0(%rbp,%rax,4), %ecx
	testl	%ecx, %ebx
	je	.L44
	movslq	68(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	testl	%edx, %ebx
	je	.L45
	movslq	72(%rsp), %rax
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %ebx
	je	.L46
	movslq	76(%rsp), %rdx
	movl	0(%rbp,%rdx,4), %ecx
	testl	%ecx, %ebx
	je	.L47
	movslq	80(%rsp), %rax
	movl	0(%rbp,%rax,4), %edx
	movl	$15, %eax
.L28:
	xorl	%ecx, %edx
	leal	-1(%rax), %ecx
	leal	-3(%rax), %edi
	movslq	%ecx, %rcx
	xorl	%ebx, %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %edx
	leal	-2(%rax), %ecx
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	movl	0(%rbp,%rcx,4), %ebx
	xorl	%edx, %ebx
	cmpl	$2, %eax
	je	.L31
	movslq	%edi, %rdi
	leal	-4(%rax), %edx
	movslq	16(%rsp,%rdi,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$3, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-5(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$4, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-6(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$5, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-7(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$6, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-8(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$7, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-9(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$8, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-10(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$9, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-11(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$10, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-12(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$11, %eax
	je	.L31
	movslq	%edx, %rdx
	leal	-13(%rax), %ecx
	movslq	16(%rsp,%rdx,4), %rdx
	xorl	0(%rbp,%rdx,4), %ebx
	cmpl	$12, %eax
	je	.L31
	movslq	%ecx, %rcx
	leal	-14(%rax), %edx
	movslq	16(%rsp,%rcx,4), %rcx
	xorl	0(%rbp,%rcx,4), %ebx
	cmpl	$13, %eax
	je	.L31
	movslq	%edx, %rax
	movslq	16(%rsp,%rax,4), %rax
	xorl	0(%rbp,%rax,4), %ebx
	movl	%ebx, %eax
	xorl	%r15d, %eax
	testl	%edx, %edx
	cmovne	%eax, %ebx
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%ebx, %esi
	jg	.L30
.L1:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L192
	addq	$104, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %rax
	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
.L185:
	.cfi_restore_state
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$2, 16(%rsp,%rcx,4)
	jmp	.L6
.L186:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$3, 16(%rsp,%rcx,4)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	xorl	%r15d, %ebx
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r15d, %eax
	xorl	%eax, %ebx
	jmp	.L31
.L27:
	movslq	16(%rsp), %rdx
	xorl	%ecx, %eax
	xorl	%ebx, %eax
	xorl	0(%rbp,%rdx,4), %eax
	movl	%eax, %ebx
	jmp	.L31
.L35:
	movl	$2, %eax
	jmp	.L28
.L36:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$3, %eax
	jmp	.L28
.L37:
	movl	$4, %eax
	jmp	.L28
.L187:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$4, 16(%rsp,%rcx,4)
	cmpl	$5, %edx
	jne	.L193
	jmp	.L4
.L188:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$10, 16(%rsp,%rcx,4)
	jmp	.L14
.L189:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$11, 16(%rsp,%rcx,4)
	jmp	.L15
.L190:
	movslq	%eax, %rcx
	addl	$1, %eax
	movl	$12, 16(%rsp,%rcx,4)
	jmp	.L16
.L38:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$5, %eax
	jmp	.L28
.L39:
	movl	$6, %eax
	jmp	.L28
.L40:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$7, %eax
	jmp	.L28
.L41:
	movl	$8, %eax
	jmp	.L28
.L42:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$9, %eax
	jmp	.L28
.L43:
	movl	$10, %eax
	jmp	.L28
.L34:
	movl	$-1, %eax
	jmp	.L2
.L44:
	movl	%edx, %eax
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$11, %eax
	jmp	.L28
.L45:
	movl	$12, %eax
	jmp	.L28
.L46:
	movl	%edx, %ecx
	movl	%eax, %edx
	movl	$13, %eax
	jmp	.L28
.L47:
	movl	%ecx, %edx
	movl	%eax, %ecx
	movl	$14, %eax
	jmp	.L28
.L191:
	movslq	%eax, %rdx
	addl	$1, %eax
	movl	$16, 16(%rsp,%rdx,4)
	jmp	.L4
.L192:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	recursion.part.0, .-recursion.part.0
	.p2align 4
	.globl	recursion
	.type	recursion, @function
recursion:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%edi, %rdx
	leaq	dp(%rip), %rax
	movq	(%rax,%rdx,8), %rax
	testq	%rax, %rax
	jns	.L194
	jmp	recursion.part.0
	.p2align 4,,10
	.p2align 3
.L194:
	ret
	.cfi_endproc
.LFE23:
	.size	recursion, .-recursion
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xorl	%r14d, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	testl	%ebx, %ebx
	jle	.L198
	.p2align 4,,10
	.p2align 3
.L197:
	leaq	a(%rip), %rax
	xorl	%ebp, %ebp
	leaq	(%rax,%r13,4), %r15
	.p2align 4,,10
	.p2align 3
.L199:
	movq	%r15, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	N(%rip), %ebx
	addq	$4, %r15
	cmpl	%ebp, %ebx
	jg	.L199
	addl	$1, %r14d
	cmpl	%r14d, %ebx
	jle	.L198
	addq	$17, %r13
	jmp	.L197
.L198:
	leaq	bit(%rip), %rbp
	movslq	%ebx, %rax
	movq	$0, dp(%rip)
	movl	0(%rbp,%rax,4), %r12d
	cmpl	$1, %r12d
	jle	.L201
	leal	-1(%r12), %edx
	movl	$255, %esi
	leaq	8+dp(%rip), %rdi
	movq	%rdx, %r13
	salq	$3, %rdx
	call	memset@PLT
.L203:
	leaq	sum(%rip), %rsi
	xorl	%ecx, %ecx
	leaq	a(%rip), %r9
	.p2align 4,,10
	.p2align 3
.L202:
	movq	$0, (%rsi)
	testl	%ebx, %ebx
	jle	.L206
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L224:
	movslq	%eax, %rdx
	movl	%ecx, %edi
	andl	0(%rbp,%rdx,4), %edi
	jne	.L297
	addl	$1, %eax
	cmpl	%ebx, %eax
	jl	.L224
.L206:
	addl	$1, %ecx
	addq	$8, %rsi
	cmpl	%r12d, %ecx
	jl	.L202
.L225:
	movslq	%r13d, %rax
	leaq	dp(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	testq	%rdx, %rdx
	jns	.L204
	movl	%r13d, %edi
	call	recursion.part.0
	movq	%rax, %rdx
.L204:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	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
	.p2align 4,,10
	.p2align 3
.L297:
	.cfi_restore_state
	leal	1(%rax), %r8d
	cmpl	%r8d, %ebx
	jle	.L206
	movslq	%r8d, %r10
	movl	%ecx, %edi
	andl	0(%rbp,%r10,4), %edi
	je	.L208
	movq	%rdx, %rdi
	salq	$4, %rdi
	addq	%rdx, %rdi
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L208:
	leal	2(%rax), %edi
	cmpl	%ebx, %edi
	jge	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L210
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L210:
	leal	3(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L211
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L211:
	leal	4(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L212
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L212:
	leal	5(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L213
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L213:
	leal	6(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L214
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L214:
	leal	7(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L215
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L215:
	leal	8(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L216
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L216:
	leal	9(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L217
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L217:
	leal	10(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L218
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L218:
	leal	11(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L219
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L219:
	leal	12(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L220
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L220:
	leal	13(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L221
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L221:
	leal	14(%rax), %edi
	cmpl	%edi, %ebx
	jle	.L223
	movslq	%edi, %rdi
	movl	%ecx, %r10d
	andl	0(%rbp,%rdi,4), %r10d
	je	.L222
	movq	%rdx, %r10
	salq	$4, %r10
	addq	%rdx, %r10
	addq	%r10, %rdi
	movslq	(%r9,%rdi,4), %rdi
	addq	%rdi, (%rsi)
.L222:
	addl	$15, %eax
	cmpl	%eax, %ebx
	jle	.L223
	cltq
	movl	%ecx, %edi
	andl	0(%rbp,%rax,4), %edi
	je	.L223
	movq	%rdx, %rdi
	salq	$4, %rdi
	addq	%rdi, %rdx
	addq	%rdx, %rax
	movslq	(%r9,%rax,4), %rax
	addq	%rax, (%rsi)
	.p2align 4,,10
	.p2align 3
.L223:
	movl	%r8d, %eax
	jmp	.L224
.L201:
	je	.L258
	leal	-1(%r12), %r13d
	jmp	.L225
.L258:
	xorl	%r13d, %r13d
	jmp	.L203
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	sum
	.bss
	.align 32
	.type	sum, @object
	.size	sum, 524288
sum:
	.zero	524288
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 524288
dp:
	.zero	524288
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1156
a:
	.zero	1156
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	bit
	.section	.rodata
	.align 32
	.type	bit, @object
	.size	bit, 68
bit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.long	128
	.long	256
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.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>

const int bit[17] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536};
int N, a[17][17];
long long dp[65536], sum[65536];

long long recursion(int n)
{
	if (dp[n] >= 0) return dp[n];
	else dp[n] = sum[n];
	
	int i, j, k, m, b[17];
	long long tmp;
	for (i = 0, m = 0; i < N; i++) if ((n & bit[i]) == bit[i]) b[m++] = i;
	k = bit[b[0]];
	while (k < bit[b[m-1]]) {
		tmp = recursion(k) + recursion(n ^ k);
		if (tmp > dp[n]) dp[n] = tmp;
		for (i = 0; (k & bit[b[i]]) != 0; i++);
		for (k ^= bit[b[i--]]; i >= 0; k ^= bit[b[i--]]);
	}
	return dp[n];
}
 
int main()
{
	int i, j, k;
	scanf("%d", &N);
	for (i = 0; i < N; i++) {
		for (j = 0; j < N; j++) scanf("%d", &(a[i][j]));
	}
	for (i = 1, dp[0] = 0; i < bit[N]; i++) dp[i] = -1;
	for (k = 0; k < bit[N]; k++) {
		for (i = 0, sum[k] = 0; i < N; i++) {
			if ((k & bit[i]) == 0) continue;
			for (j = i + 1; j < N; j++) if ((k & bit[j]) != 0) sum[k] += a[i][j];
		}
	}
	printf("%lld\n", recursion(bit[N] - 1));
	fflush(stdout);
	return 0;
}
16
0 5 -4 -5 -8 -4 7 2 -4 0 7 0 2 -3 7 7
5 0 8 -9 3 5 2 -7 2 -7 0 -1 -4 1 -1 9
-4 8 0 -9 8 9 3 1 4 9 6 6 -6 1 8 9
-5 -9 -9 0 -7 6 4 -1 9 -3 -5 0 1 2 -4 1
-8 3 8 -7 0 -5 -9 9 1 -9 -6 -3 -8 3 4 3
-4 5 9 6 -5 0 -6 1 -2 2 0 -5 -2 3 1 2
7 2 3 4 -9 -6 0 -2 -2 -9 -3 9 -2 9 2 -5
2 -7 1 -1 9 1 -2 0 -6 0 -6 6 4 -1 -7 8
-4 2 4 9 1 -2 -2 -6 0 8 -6 -2 -4 8 7 7
0 -7 9 -3 -9 2 -9 0 8 0 0 1 -3 3 -6 -6
7 0 6 -5 -6 0 -3 -6 -6 0 0 5 7 -1 -5 3
0 -2 6 0 -3 -5 9 6 -2 1 5 0 -2 7 -8 0
2 -4 -6 1 -8 -2 -2 4 -4 -3 7 -2 0 -9 7 1
-3 1 1 2 3 3 9 -1 8 3 -1 7 -9 0 -6 -8
7 -1 8 -4 4 1 2 -7 7 -6 -5 -8 7 -6 0 -9
7 9 9 1 3 2 -5 8 7 -6 3 0 1 -8 -9 0
 2
0 -10
-6 0
 3
0 10 20
0 0 -100
20 -100 0
 16
0 5 -4 -5 -8 -4 7 2 -4 0 7 0 2 -3 7 7
5 0 8 -9 3 5 2 -7 2 -7 0 -1 -4 1 -1 9
-4 8 0 -9 8 9 3 1 4 9 6 6 -6 1 8 9
-5 -9 -9 0 -7 6 4 -1 9 -3 -5 0 1 2 -4 1
-8 3 8 -7 0 -5 -9 9 1 -9 -6 -3 -8 3 4 3
-4 5 9 6 -5 0 -6 1 -2 2 0 -5 -2 3 1 2
7 2 3 4 -9 -6 0 -2 -2 -9 -3 9 -2 9 2 -5
2 -7 1 -1 9 1 -2 0 -6 0 -6 6 4 -1 -7 8
-4 2 4 9 1 -2 -2 -6 0 8 -6 -2 -4 8 7 7
0 -7 9 -3 -9 2 -9 0 8 0 0 1 -3 3 -6 -6
7 0 6 -5 -6 0 -3 -6 -6 0 0 5 7 -1 -5 3
0 -2 6 0 -3 -5 9 6 -2 1 5 0 -2 7 -8 0
2 -4 0 1 -8 -2 -2 4 -4 -3 7 -2 0 -9 7 1
-3 1 1 2 3 3 9 -1 8 3 -1 7 -9 0 -6 -8
7 -1 8 -4 4 1 2 -7 7 -6 -5 -8 7 -6 0 -9
7 9 9 1 3 2 -5 8 7 -6 3 0 1 -8 -9 0
 2
0 -11
-6 0
 2
0 -11
-12 0
 2
0 -17
-10 0
 16
0 5 -4 -5 -8 -4 7 2 -4 0 7 0 2 -3 7 7
5 0 8 -9 3 5 2 -7 2 -7 0 -1 -4 1 -1 9
-4 8 0 -9 8 9 3 1 4 9 6 6 -6 1 8 9
-5 -9 -9 0 -7 6 4 -1 9 -3 -5 0 1 2 -4 1
-8 3 8 -7 0 -5 -9 9 1 -9 -6 -3 -8 3 4 3
-4 5 9 6 -5 0 -6 1 -2 2 0 -5 -2 3 1 2
7 2 3 4 -9 -6 0 -2 -2 -9 -1 9 -2 9 2 -5
2 -7 1 -1 9 1 -2 0 -6 0 -6 6 4 -1 -7 8
-4 2 4 9 1 -2 -2 -6 0 8 -6 -2 -4 8 7 7
0 -7 9 -3 -9 2 -9 0 8 0 0 1 -3 3 -6 -6
7 0 6 -5 -6 0 -3 -6 -6 0 0 5 7 -1 -5 3
0 -2 6 0 -3 -5 9 6 -2 1 5 0 -2 7 -8 0
2 -4 -6 1 -8 -2 -2 4 -4 -3 7 -2 0 -9 7 1
-3 1 1 2 3 3 9 -1 8 3 -1 7 -9 0 -6 -8
7 -1 8 -4 4 1 2 -7 7 -6 -5 -8 7 -6 0 -9
7 9 9 1 3 2 -5 8 7 -6 3 0 1 -8 -9 0
 2
0 -3
-6 0
 16
0 5 -4 -5 -8 -4 7 2 -4 0 7 0 2 -3 7 7
5 0 8 -9 3 5 2 -7 2 -7 0 -1 -4 1 -1 9
-4 8 0 -9 8 9 3 1 4 9 6 6 -6 1 8 9
-5 -9 -9 0 -7 6 4 -1 9 -3 -5 0 1 2 -4 1
-8 3 8 -7 0 -5 -9 9 1 -9 -6 -3 -8 3 4 3
-4 5 9 4 -5 0 -6 1 -2 2 0 -5 -2 3 1 2
7 2 3 4 -9 -6 0 -2 -2 -9 -3 9 -2 9 2 -5
2 -7 1 -1 9 1 -2 0 -6 0 -6 6 4 -1 -7 8
-4 2 4 9 1 -2 -2 -6 0 8 -6 -2 -4 8 7 7
0 -7 9 -3 -9 2 -9 0 8 0 0 1 -3 3 -6 -6
7 0 6 -5 -6 0 -3 -6 -6 0 0 5 7 -1 -5 3
0 -2 6 0 -3 -5 9 6 -2 1 5 0 -2 7 -8 0
2 -4 0 1 -8 -2 -2 4 -4 -3 7 -2 0 -9 7 1
-3 1 1 2 3 3 9 -1 8 3 -1 7 -9 0 -6 -8
7 -1 8 -4 4 1 2 -7 7 -6 -5 -8 7 -6 0 -9
7 9 9 1 3 2 -5 8 7 -6 3 0 1 -8 -9 0

132
 0
 20
 132
 0
 0
 0
 132
 0
 132

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>

const int bit[17] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536};
int N, a[17][17];
long long dp[65536], sum[65536];

long long recursion(int n)
{
	if (dp[n] >= 0) return dp[n];
	else dp[n] = sum[n];
	
	int i, j, k, m, b[17];
	long long tmp;
	for (i = 0, m = 0; i < N; i++) if ((n & bit[i]) == bit[i]) b[m++] = i;
	k = bit[b[0]];
	while (k < bit[b[m-1]]) {
		tmp = recursion(k) + recursion(n ^ k);
		if (tmp > dp[n]) dp[n] = tmp;
		for (i = 0; (k & bit[b[i]]) != 0; i++);
		for (k ^= bit[b[i--]]; i >= 0; k ^= bit[b[i--]]);
	}
	return dp[n];
}
 
int main()
{
	int i, j, k;
	scanf("%d", &N);
	for (i = 0; i < N; i++) {
		for (j = 0; j < N; j++) scanf("%d", &(a[i][j]));
	}
	for (i = 1, dp[0] = 0; i < bit[N]; i++) dp[i] = -1;
	for (k = 0; k < bit[N]; k++) {
		for (i = 0, sum[k] = 0; i < N; i++) {
			if ((k & bit[i]) == 0) continue;
			for (j = i + 1; j < N; j++) if ((k & bit[j]) != 0) sum[k] += a[i][j];
		}
	}
	printf("%lld\n", recursion(bit[N] - 1));
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bit
	.section	.rodata
	.align 32
	.type	bit, @object
	.size	bit, 68
bit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.long	128
	.long	256
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1156
a:
	.zero	1156
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 524288
dp:
	.zero	524288
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 524288
sum:
	.zero	524288
	.text
	.globl	recursion
	.type	recursion, @function
recursion:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movl	%edi, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	js	.L2
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L14
.L2:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -116(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L4
.L6:
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-132(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	bit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -108(%rbp)
	cltq
	movl	-116(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L5:
	addl	$1, -116(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L6
	movl	-96(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -112(%rbp)
	jmp	.L7
.L13:
	movl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rbx
	movl	-132(%rbp), %eax
	xorl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	addq	%rbx, %rax
	movq	%rax, -104(%rbp)
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -104(%rbp)
	jle	.L8
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rdx
	movq	-104(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L8:
	movl	$0, -116(%rbp)
	jmp	.L9
.L10:
	addl	$1, -116(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-112(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
	jmp	.L11
.L12:
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
.L11:
	cmpl	$0, -116(%rbp)
	jns	.L12
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L13
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L14:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	recursion, .-recursion
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L17
.L20:
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	$1, -12(%rbp)
	movq	$0, dp(%rip)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, -4(%rbp)
	jmp	.L23
.L31:
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L24
.L30:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L33
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L27
.L29:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L28:
	addl	$1, -8(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L29
	jmp	.L26
.L33:
	nop
.L26:
	addl	$1, -12(%rbp)
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L30
	addl	$1, -4(%rbp)
.L23:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L31
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	bit
	.section	.rodata
	.align 32
	.type	bit, @object
	.size	bit, 68
bit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.long	128
	.long	256
	.long	512
	.long	1024
	.long	2048
	.long	4096
	.long	8192
	.long	16384
	.long	32768
	.long	65536
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 1156
a:
	.zero	1156
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 524288
dp:
	.zero	524288
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 524288
sum:
	.zero	524288
	.text
	.globl	recursion
	.type	recursion, @function
recursion:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset 3, -24
	movl	%edi, -132(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	testq	%rax, %rax
	js	.L2
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	jmp	.L14
.L2:
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	$0, -116(%rbp)
	movl	$0, -108(%rbp)
	jmp	.L4
.L6:
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-132(%rbp), %eax
	movl	%eax, %edx
	movl	-116(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	bit(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L5
	movl	-108(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -108(%rbp)
	cltq
	movl	-116(%rbp), %edx
	movl	%edx, -96(%rbp,%rax,4)
.L5:
	addl	$1, -116(%rbp)
.L4:
	movl	N(%rip), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L6
	movl	-96(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -112(%rbp)
	jmp	.L7
.L13:
	movl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rbx
	movl	-132(%rbp), %eax
	xorl	-112(%rbp), %eax
	movl	%eax, %edi
	call	recursion
	addq	%rbx, %rax
	movq	%rax, -104(%rbp)
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -104(%rbp)
	jle	.L8
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	dp(%rip), %rdx
	movq	-104(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
.L8:
	movl	$0, -116(%rbp)
	jmp	.L9
.L10:
	addl	$1, -116(%rbp)
.L9:
	movl	-116(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-112(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
	jmp	.L11
.L12:
	movl	-116(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -116(%rbp)
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	xorl	%eax, -112(%rbp)
.L11:
	cmpl	$0, -116(%rbp)
	jns	.L12
.L7:
	movl	-108(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -112(%rbp)
	jl	.L13
	movl	-132(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
.L14:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	recursion, .-recursion
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L17
.L20:
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -8(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L19
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L20
	movl	$1, -12(%rbp)
	movq	$0, dp(%rip)
	jmp	.L21
.L22:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movq	$-1, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	movl	$0, -4(%rbp)
	jmp	.L23
.L31:
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	$0, (%rdx,%rax)
	jmp	.L24
.L30:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L33
	movl	-12(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L27
.L29:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	je	.L28
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$4, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	addq	%rax, %rcx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	sum(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L28:
	addl	$1, -8(%rbp)
.L27:
	movl	N(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L29
	jmp	.L26
.L33:
	nop
.L26:
	addl	$1, -12(%rbp)
.L24:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L30
	addl	$1, -4(%rbp)
.L23:
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L31
	movl	N(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bit(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	%eax, %edi
	call	recursion
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
