// File: /workspace/github_c_makefile_star2_O0/lh3[P]minigraph/sketch.c
// Function: mg_sketch
void mg_sketch(void *km, const char *str, int len, int w, int k, uint32_t rid, mg128_v *p)
{
	uint64_t shift1 = 2 * (k - 1), mask = (1ULL<<2*k) - 1, kmer[2] = {0,0};
	int i, j, l, buf_pos, min_pos, kmer_span = 0;
	mg128_t buf[256], min = { UINT64_MAX, UINT64_MAX };

	assert(len > 0 && (w > 0 && w < 256) && (k > 0 && k <= 28)); // 56 bits for k-mer; could use long k-mers, but 28 enough in practice
	memset(buf, 0xff, w * 16);
	kv_resize(mg128_t, km, *p, p->n + len/w);

	for (i = l = buf_pos = min_pos = 0; i < len; ++i) {
		int c = seq_nt4_table[(uint8_t)str[i]];
		mg128_t info = { UINT64_MAX, UINT64_MAX };
		if (c < 4) { // not an ambiguous base
			int z;
			kmer_span = l + 1 < k? l + 1 : k;
			kmer[0] = (kmer[0] << 2 | c) & mask;           // forward k-mer
			kmer[1] = (kmer[1] >> 2) | (3ULL^c) << shift1; // reverse k-mer
			if (kmer[0] == kmer[1]) continue; // skip "symmetric k-mers" as we don't know it strand
			z = kmer[0] < kmer[1]? 0 : 1; // strand
			++l;
			if (l >= k && kmer_span < 256) {
				info.x = hash64(kmer[z], mask) << 8 | kmer_span;
				info.y = (uint64_t)rid<<32 | (uint32_t)i<<1 | z;
			}
		} else l = 0, kmer_span = 0;
		buf[buf_pos] = info; // need to do this here as appropriate buf_pos and buf[buf_pos] are needed below
		if (l == w + k - 1 && min.x != UINT64_MAX) { // special case for the first window - because identical k-mers are not stored yet
			for (j = buf_pos + 1; j < w; ++j)
				if (min.x == buf[j].x && buf[j].y != min.y) kv_push(mg128_t, km, *p, buf[j]);
			for (j = 0; j < buf_pos; ++j)
				if (min.x == buf[j].x && buf[j].y != min.y) kv_push(mg128_t, km, *p, buf[j]);
		}
		if (info.x <= min.x) { // a new minimum; then write the old min
			if (l >= w + k && min.x != UINT64_MAX) kv_push(mg128_t, km, *p, min);
			min = info, min_pos = buf_pos;
		} else if (buf_pos == min_pos) { // old min has moved outside the window
			if (l >= w + k - 1 && min.x != UINT64_MAX) kv_push(mg128_t, km, *p, min);
			for (j = buf_pos + 1, min.x = UINT64_MAX; j < w; ++j) // the two loops are necessary when there are identical k-mers
				if (min.x >= buf[j].x) min = buf[j], min_pos = j; // >= is important s.t. min is always the closest k-mer
			for (j = 0; j <= buf_pos; ++j)
				if (min.x >= buf[j].x) min = buf[j], min_pos = j;
			if (l >= w + k - 1 && min.x != UINT64_MAX) { // write identical k-mers
				for (j = buf_pos + 1; j < w; ++j) // these two loops make sure the output is sorted
					if (min.x == buf[j].x && min.y != buf[j].y) kv_push(mg128_t, km, *p, buf[j]);
				for (j = 0; j <= buf_pos; ++j)
					if (min.x == buf[j].x && min.y != buf[j].y) kv_push(mg128_t, km, *p, buf[j]);
			}
		}
		if (++buf_pos == w) buf_pos = 0;
	}
	if (min.x != UINT64_MAX)
		kv_push(mg128_t, km, *p, min);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10e0, %rsp           # imm = 0x10E0
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
shll %eax
cltq
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
shll %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x2190
movl $0x0, -0x58(%rbp)
movq 0x27a96(%rip), %rax     # 0x3c8c0
movq %rax, -0x1070(%rbp)
movq 0x27a90(%rip), %rax     # 0x3c8c8
movq %rax, -0x1068(%rbp)
cmpl $0x0, -0x14(%rbp)
jle 0x14e62
cmpl $0x0, -0x18(%rbp)
jle 0x14e62
cmpl $0x100, -0x18(%rbp)     # imm = 0x100
jge 0x14e62
cmpl $0x0, -0x1c(%rbp)
jle 0x14e62
cmpl $0x1c, -0x1c(%rbp)
jg 0x14e62
jmp 0x14e81
leaq 0x27a67(%rip), %rdi     # 0x3c8d0
leaq 0x27a94(%rip), %rsi     # 0x3c904
movl $0x3e, %edx
leaq 0x27a91(%rip), %rcx     # 0x3c90d
callq 0x2170
leaq -0x1060(%rbp), %rdi
movl -0x18(%rbp), %eax
shll $0x4, %eax
movslq %eax, %rdx
movl $0xff, %esi
callq 0x2190
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x1098(%rbp)
movq 0x10(%rbp), %rax
movq (%rax), %rcx
movl -0x14(%rbp), %eax
cltd
idivl -0x18(%rbp)
movl %eax, %edx
movq -0x1098(%rbp), %rax
movslq %edx, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x14faa
movq 0x10(%rbp), %rax
movq (%rax), %rcx
movl -0x14(%rbp), %eax
cltd
idivl -0x18(%rbp)
cltq
addq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x14fac
movl $0x0, -0x54(%rbp)
movl $0x0, -0x50(%rbp)
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x15901
movq -0x10(%rbp), %rax
movslq -0x44(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x30307(%rip), %rax     # 0x452f0
movzbl (%rax,%rcx), %eax
movl %eax, -0x1074(%rbp)
movq 0x278c6(%rip), %rax     # 0x3c8c0
movq %rax, -0x1088(%rbp)
movq 0x278c0(%rip), %rax     # 0x3c8c8
movq %rax, -0x1080(%rbp)
cmpl $0x4, -0x1074(%rbp)
jge 0x15114
movl -0x4c(%rbp), %eax
addl $0x1, %eax
cmpl -0x1c(%rbp), %eax
jge 0x15035
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x109c(%rbp)
jmp 0x1503e
movl -0x1c(%rbp), %eax
movl %eax, -0x109c(%rbp)
movl -0x109c(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x40(%rbp), %rax
shlq $0x2, %rax
movslq -0x1074(%rbp), %rcx
orq %rcx, %rax
andq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
shrq $0x2, %rax
movslq -0x1074(%rbp), %rdx
xorq $0x3, %rdx
movq -0x28(%rbp), %rcx
shlq %cl, %rdx
movq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x15094
jmp 0x158f3
movq -0x40(%rbp), %rdx
movq -0x38(%rbp), %rsi
movl $0x1, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, -0x108c(%rbp)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jl 0x15112
cmpl $0x100, -0x58(%rbp)     # imm = 0x100
jge 0x15112
movslq -0x108c(%rbp), %rax
movq -0x40(%rbp,%rax,8), %rdi
movq -0x30(%rbp), %rsi
callq 0x159d0
shlq $0x8, %rax
movslq -0x58(%rbp), %rcx
orq %rcx, %rax
movq %rax, -0x1088(%rbp)
movl -0x20(%rbp), %eax
shlq $0x20, %rax
movl -0x44(%rbp), %ecx
shll %ecx
movl %ecx, %ecx
orq %rcx, %rax
movslq -0x108c(%rbp), %rcx
orq %rcx, %rax
movq %rax, -0x1080(%rbp)
jmp 0x15122
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x58(%rbp)
movslq -0x50(%rbp), %rcx
leaq -0x1060(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1088(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1080(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x4c(%rbp), %eax
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x153b1
cmpq $-0x1, -0x1070(%rbp)
je 0x153b1
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x1528e
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jne 0x1527e
movslq -0x48(%rbp), %rcx
leaq -0x1060(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
cmpq -0x1068(%rbp), %rax
je 0x1527e
jmp 0x151c7
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x1523c
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x151f7
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10a8(%rbp)
jmp 0x15205
movl $0x2, %eax
movq %rax, -0x10a8(%rbp)
jmp 0x15205
movq -0x10a8(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x1527e
jmp 0x15280
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x15174
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x153af
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jne 0x1539f
movslq -0x48(%rbp), %rcx
leaq -0x1060(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
cmpq -0x1068(%rbp), %rax
je 0x1539f
jmp 0x152e8
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x1535d
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x15318
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10b0(%rbp)
jmp 0x15326
movl $0x2, %eax
movq %rax, -0x10b0(%rbp)
jmp 0x15326
movq -0x10b0(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x1539f
jmp 0x153a1
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x15295
jmp 0x153b1
movq -0x1088(%rbp), %rax
cmpq -0x1070(%rbp), %rax
ja 0x154b9
movl -0x4c(%rbp), %eax
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
cmpl %ecx, %eax
jl 0x15492
cmpq $-0x1, -0x1070(%rbp)
je 0x15492
jmp 0x153e6
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x1545b
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x15416
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10b8(%rbp)
jmp 0x15424
movl $0x2, %eax
movq %rax, -0x10b8(%rbp)
jmp 0x15424
movq -0x10b8(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1070(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1068(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x15492
movq -0x1088(%rbp), %rax
movq %rax, -0x1070(%rbp)
movq -0x1080(%rbp), %rax
movq %rax, -0x1068(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x158dc
movl -0x50(%rbp), %eax
cmpl -0x54(%rbp), %eax
jne 0x158da
movl -0x4c(%rbp), %eax
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x15595
cmpq $-0x1, -0x1070(%rbp)
je 0x15595
jmp 0x154e9
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x1555e
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x15519
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10c0(%rbp)
jmp 0x15527
movl $0x2, %eax
movq %rax, -0x10c0(%rbp)
jmp 0x15527
movq -0x10c0(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1070(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1068(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x15595
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movq $-0x1, -0x1070(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x15609
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jb 0x155fc
movslq -0x48(%rbp), %rcx
leaq -0x1060(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x1070(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1068(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x155fe
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x155a9
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x50(%rbp), %eax
jg 0x15670
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jb 0x15663
movslq -0x48(%rbp), %rcx
leaq -0x1060(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x1070(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1068(%rbp)
movl -0x48(%rbp), %eax
movl %eax, -0x54(%rbp)
jmp 0x15665
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x15610
movl -0x4c(%rbp), %eax
movl -0x18(%rbp), %ecx
addl -0x1c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x158d8
cmpq $-0x1, -0x1070(%rbp)
je 0x158d8
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x157b5
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jne 0x157a5
movq -0x1068(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
je 0x157a5
jmp 0x156ee
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x15763
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1571e
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10c8(%rbp)
jmp 0x1572c
movl $0x2, %eax
movq %rax, -0x10c8(%rbp)
jmp 0x1572c
movq -0x10c8(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x157a5
jmp 0x157a7
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1569b
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x50(%rbp), %eax
jg 0x158d6
movq -0x1070(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq (%rcx), %rax
jne 0x158c6
movq -0x1068(%rbp), %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq 0x8(%rcx), %rax
je 0x158c6
jmp 0x1580f
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x15884
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x1583f
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10d0(%rbp)
jmp 0x1584d
movl $0x2, %eax
movq %rax, -0x10d0(%rbp)
jmp 0x1584d
movq -0x10d0(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x48(%rbp), %rdx
leaq -0x1060(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x158c6
jmp 0x158c8
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x157bc
jmp 0x158d8
jmp 0x158da
jmp 0x158dc
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
cmpl -0x18(%rbp), %eax
jne 0x158f1
movl $0x0, -0x50(%rbp)
jmp 0x158f3
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x14fc8
cmpq $-0x1, -0x1070(%rbp)
je 0x159bd
jmp 0x15911
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x15986
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x15941
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x10d8(%rbp)
jmp 0x1594f
movl $0x2, %eax
movq %rax, -0x10d8(%rbp)
jmp 0x1594f
movq -0x10d8(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rdi
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdx
shlq $0x4, %rdx
callq 0x2ae0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1070(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1068(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x159bd
addq $0x10e0, %rsp           # imm = 0x10E0
popq %rbp
retq
nopw %cs:(%rax,%rax)