// File: /workspace/github_c_makefile_star2_O0/lh3[P]partig/sketch.c
// Function: pt_sketch
void pt_sketch(const char *str, int len, int w, int k, uint32_t rid, int is_hpc, pt_mz1_v *p)
{
	static const pt_mz1_t dummy = { UINT64_MAX, (1<<28) - 1, 0, 0 };
	uint64_t shift1 = k - 1, mask = (1ULL<<k) - 1, kmer[4] = {0,0,0,0};
	int i, j, l, buf_pos, min_pos, kmer_span = 0;
	pt_mz1_t buf[256], min = dummy;
	tiny_queue_t tq;

	assert(len > 0 && len < 1<<27 && rid < 1<<28 && (w > 0 && w < 256) && (k > 0 && k <= 63));

	memset(buf, 0xff, w * sizeof(pt_mz1_t));
	memset(&tq, 0, sizeof(tiny_queue_t));
	kv_resize(pt_mz1_t, *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]];
		pt_mz1_t info = dummy;
		if (c < 4) { // not an ambiguous base
			int z;
			if (is_hpc) {
				int skip_len = 1;
				if (i + 1 < len && seq_nt4_table[(uint8_t)str[i + 1]] == c) {
					for (skip_len = 2; i + skip_len < len; ++skip_len)
						if (seq_nt4_table[(uint8_t)str[i + skip_len]] != c)
							break;
					i += skip_len - 1; // put $i at the end of the current homopolymer run
				}
				tq_push(&tq, skip_len);
				kmer_span += skip_len;
				if (tq.count > k) kmer_span -= tq_shift(&tq);
			} else kmer_span = l + 1 < k? l + 1 : k; 

			kmer[0] = (kmer[0] << 1 | (c&1))  & mask;                  // forward k-mer
			kmer[1] = (kmer[1] << 1 | (c>>1)) & mask;
			kmer[2] = kmer[2] >> 1 | (uint64_t)(1 - (c&1))  << shift1; // reverse k-mer
			kmer[3] = kmer[3] >> 1 | (uint64_t)(1 - (c>>1)) << shift1;
			if (kmer[1] == kmer[3]) continue; // skip "symmetric k-mers" as we don't know its strand
			z = kmer[1] < kmer[3]? 0 : 1; // strand
			++l;
			if (l >= k && kmer_span < 256) {
				uint64_t y;
				y = yak_hash64_64(kmer[z<<1|0]) + yak_hash64_64(kmer[z<<1|1]);
				info.x = y, info.rid = rid, info.pos = i, info.rev = z, info.span = kmer_span; // initially pt_mz1_t::rid keeps the k-mer count
			}
		} else l = 0, tq.count = tq.front = 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 (mzcmp(&min, &buf[j]) == 0 && buf[j].pos != min.pos) kv_push(pt_mz1_t, *p, buf[j]);
			for (j = 0; j < buf_pos; ++j)
				if (mzcmp(&min, &buf[j]) == 0 && buf[j].pos != min.pos) kv_push(pt_mz1_t, *p, buf[j]);
		}
		///three cases: 1. 
		if (info.x <= min.x) { // a new minimum; then write the old min
			if (l >= w + k && min.x != UINT64_MAX) kv_push(pt_mz1_t, *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(pt_mz1_t, *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 (mzcmp(&min, &buf[j]) >= 0) 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 (mzcmp(&min, &buf[j]) >= 0) 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 (mzcmp(&min, &buf[j]) == 0 && min.pos != buf[j].pos) kv_push(pt_mz1_t, *p, buf[j]);
				for (j = 0; j <= buf_pos; ++j)
					if (mzcmp(&min, &buf[j]) == 0 && min.pos != buf[j].pos) kv_push(pt_mz1_t, *p, buf[j]);
			}
		}
		if (++buf_pos == w) buf_pos = 0;
	}
	if (min.x != UINT64_MAX)
		kv_push(pt_mz1_t, *p, min);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x11e0, %rsp           # imm = 0x11E0
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
movl -0x14(%rbp), %eax
subl $0x1, %eax
cltq
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x1120
movl $0x0, -0x68(%rbp)
movq 0x487d(%rip), %rax      # 0xd5b0
movq %rax, -0x1080(%rbp)
movq 0x4877(%rip), %rax      # 0xd5b8
movq %rax, -0x1078(%rbp)
cmpl $0x0, -0xc(%rbp)
jle 0x8d7d
cmpl $0x8000000, -0xc(%rbp)  # imm = 0x8000000
jge 0x8d7d
cmpl $0x10000000, -0x18(%rbp) # imm = 0x10000000
jae 0x8d7d
cmpl $0x0, -0x10(%rbp)
jle 0x8d7d
cmpl $0x100, -0x10(%rbp)     # imm = 0x100
jge 0x8d7d
cmpl $0x0, -0x14(%rbp)
jle 0x8d7d
cmpl $0x3f, -0x14(%rbp)
jg 0x8d7d
jmp 0x8d9c
leaq 0x483c(%rip), %rdi      # 0xd5c0
leaq 0x4887(%rip), %rsi      # 0xd612
movl $0x53, %edx
leaq 0x4884(%rip), %rcx      # 0xd61b
callq 0x1100
leaq -0x1070(%rbp), %rdi
movslq -0x10(%rbp), %rdx
shlq $0x4, %rdx
movl $0xff, %esi
callq 0x1120
leaq -0x1188(%rbp), %rdi
xorl %esi, %esi
movl $0x108, %edx            # imm = 0x108
callq 0x1120
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x11b4(%rbp)
movq 0x10(%rbp), %rax
movl (%rax), %ecx
movl -0xc(%rbp), %eax
cltd
idivl -0x10(%rbp)
movl %eax, %edx
movl -0x11b4(%rbp), %eax
addl %edx, %ecx
cmpl %ecx, %eax
jae 0x8eac
movq 0x10(%rbp), %rax
movl (%rax), %ecx
movl -0xc(%rbp), %eax
cltd
idivl -0x10(%rbp)
addl %eax, %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
shrl %ecx
movq 0x10(%rbp), %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
shrl $0x2, %ecx
movq 0x10(%rbp), %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
shrl $0x4, %ecx
movq 0x10(%rbp), %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
shrl $0x8, %ecx
movq 0x10(%rbp), %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
shrl $0x10, %ecx
movq 0x10(%rbp), %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x8eae
movl $0x0, -0x64(%rbp)
movl $0x0, -0x60(%rbp)
movl $0x0, -0x5c(%rbp)
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x9a3e
movq -0x8(%rbp), %rax
movslq -0x54(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x45b5(%rip), %rax      # 0xd4a0
movzbl (%rax,%rcx), %eax
movl %eax, -0x118c(%rbp)
movq 0x46b4(%rip), %rax      # 0xd5b0
movq %rax, -0x11a0(%rbp)
movq 0x46ae(%rip), %rax      # 0xd5b8
movq %rax, -0x1198(%rbp)
cmpl $0x4, -0x118c(%rbp)
jge 0x9217
cmpl $0x0, -0x1c(%rbp)
je 0x900d
movl $0x1, -0x11a8(%rbp)
movl -0x54(%rbp), %eax
addl $0x1, %eax
cmpl -0xc(%rbp), %eax
jge 0x8fcc
movq -0x8(%rbp), %rax
movl -0x54(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x4545(%rip), %rax      # 0xd4a0
movzbl (%rax,%rcx), %eax
cmpl -0x118c(%rbp), %eax
jne 0x8fcc
movl $0x2, -0x11a8(%rbp)
movl -0x54(%rbp), %eax
addl -0x11a8(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x8fbd
movq -0x8(%rbp), %rax
movl -0x54(%rbp), %ecx
addl -0x11a8(%rbp), %ecx
movslq %ecx, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x4504(%rip), %rax      # 0xd4a0
movzbl (%rax,%rcx), %eax
cmpl -0x118c(%rbp), %eax
je 0x8faa
jmp 0x8fbd
jmp 0x8fac
movl -0x11a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x11a8(%rbp)
jmp 0x8f71
movl -0x11a8(%rbp), %eax
subl $0x1, %eax
addl -0x54(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x11a8(%rbp), %esi
leaq -0x1188(%rbp), %rdi
callq 0x9b00
movl -0x11a8(%rbp), %eax
addl -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x1184(%rbp), %eax
cmpl -0x14(%rbp), %eax
jle 0x900b
leaq -0x1188(%rbp), %rdi
callq 0x9b40
movl %eax, %ecx
movl -0x68(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x68(%rbp)
jmp 0x9038
movl -0x5c(%rbp), %eax
addl $0x1, %eax
cmpl -0x14(%rbp), %eax
jge 0x9026
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x11b8(%rbp)
jmp 0x902f
movl -0x14(%rbp), %eax
movl %eax, -0x11b8(%rbp)
movl -0x11b8(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x50(%rbp), %rax
shlq %rax
movl -0x118c(%rbp), %ecx
andl $0x1, %ecx
movslq %ecx, %rcx
orq %rcx, %rax
andq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
shlq %rax
movl -0x118c(%rbp), %ecx
sarl %ecx
movslq %ecx, %rcx
orq %rcx, %rax
andq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
shrq %rax
movl -0x118c(%rbp), %edx
andl $0x1, %edx
movl $0x1, %ecx
subl %edx, %ecx
movslq %ecx, %rdx
movq -0x28(%rbp), %rcx
shlq %cl, %rdx
movq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
shrq %rax
movl -0x118c(%rbp), %edx
sarl %edx
movl $0x1, %ecx
subl %edx, %ecx
movslq %ecx, %rdx
movq -0x28(%rbp), %rcx
shlq %cl, %rdx
movq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x90d7
jmp 0x9a30
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rsi
movl $0x1, %eax
xorl %ecx, %ecx
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, -0x11a4(%rbp)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jl 0x9215
cmpl $0x100, -0x68(%rbp)     # imm = 0x100
jge 0x9215
movl -0x11a4(%rbp), %eax
shll %eax
orl $0x0, %eax
cltq
movq -0x50(%rbp,%rax,8), %rdi
callq 0x9ba0
movq %rax, -0x11c0(%rbp)
movl -0x11a4(%rbp), %eax
shll %eax
orl $0x1, %eax
cltq
movq -0x50(%rbp,%rax,8), %rdi
callq 0x9ba0
movq %rax, %rcx
movq -0x11c0(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x11b0(%rbp)
movq -0x11b0(%rbp), %rax
movq %rax, -0x11a0(%rbp)
movl -0x18(%rbp), %eax
movl %eax, %ecx
movq -0x1198(%rbp), %rax
andq $0xfffffff, %rcx        # imm = 0xFFFFFFF
andq $-0x10000000, %rax      # imm = 0xF0000000
orq %rcx, %rax
movq %rax, -0x1198(%rbp)
movslq -0x54(%rbp), %rcx
movq -0x1198(%rbp), %rax
andq $0x7ffffff, %rcx        # imm = 0x7FFFFFF
shlq $0x1c, %rcx
movabsq $-0x7ffffff0000001, %rdx # imm = 0xFF8000000FFFFFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, -0x1198(%rbp)
movslq -0x11a4(%rbp), %rcx
movq -0x1198(%rbp), %rax
andq $0x1, %rcx
shlq $0x37, %rcx
movabsq $-0x80000000000001, %rdx # imm = 0xFF7FFFFFFFFFFFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, -0x1198(%rbp)
movslq -0x68(%rbp), %rcx
movq -0x1198(%rbp), %rax
andq $0xff, %rcx
shlq $0x38, %rcx
movabsq $0xffffffffffffff, %rdx # imm = 0xFFFFFFFFFFFFFF
andq %rdx, %rax
orq %rcx, %rax
movq %rax, -0x1198(%rbp)
jmp 0x9239
movl $0x0, -0x5c(%rbp)
movl $0x0, -0x1188(%rbp)
movl $0x0, -0x1184(%rbp)
movl $0x0, -0x68(%rbp)
movslq -0x60(%rbp), %rcx
leaq -0x1070(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x11a0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1198(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl -0x5c(%rbp), %eax
movl -0x10(%rbp), %ecx
addl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x94e4
cmpq $-0x1, -0x1080(%rbp)
je 0x94e4
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x93b3
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jne 0x93a3
movslq -0x58(%rbp), %rcx
leaq -0x1070(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
shrq $0x1c, %rax
andq $0x7ffffff, %rax        # imm = 0x7FFFFFF
movq -0x1078(%rbp), %rcx
shrq $0x1c, %rcx
andq $0x7ffffff, %rcx        # imm = 0x7FFFFFF
cmpl %ecx, %eax
je 0x93a3
jmp 0x92fa
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9363
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9324
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11c4(%rbp)
jmp 0x9331
movl $0x2, %eax
movl %eax, -0x11c4(%rbp)
jmp 0x9331
movl -0x11c4(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x93a3
jmp 0x93a5
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x928b
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x60(%rbp), %eax
jge 0x94e2
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jne 0x94d2
movslq -0x58(%rbp), %rcx
leaq -0x1070(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
shrq $0x1c, %rax
andq $0x7ffffff, %rax        # imm = 0x7FFFFFF
movq -0x1078(%rbp), %rcx
shrq $0x1c, %rcx
andq $0x7ffffff, %rcx        # imm = 0x7FFFFFF
cmpl %ecx, %eax
je 0x94d2
jmp 0x9429
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9492
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9453
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11c8(%rbp)
jmp 0x9460
movl $0x2, %eax
movl %eax, -0x11c8(%rbp)
jmp 0x9460
movl -0x11c8(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x94d2
jmp 0x94d4
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x93ba
jmp 0x94e4
movq -0x11a0(%rbp), %rax
cmpq -0x1080(%rbp), %rax
ja 0x95de
movl -0x5c(%rbp), %eax
movl -0x10(%rbp), %ecx
addl -0x14(%rbp), %ecx
cmpl %ecx, %eax
jl 0x95b7
cmpq $-0x1, -0x1080(%rbp)
je 0x95b7
jmp 0x9519
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9582
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9543
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11cc(%rbp)
jmp 0x9550
movl $0x2, %eax
movl %eax, -0x11cc(%rbp)
jmp 0x9550
movl -0x11cc(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1080(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1078(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x95b7
movq -0x11a0(%rbp), %rax
movq %rax, -0x1080(%rbp)
movq -0x1198(%rbp), %rax
movq %rax, -0x1078(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x64(%rbp)
jmp 0x9a19
movl -0x60(%rbp), %eax
cmpl -0x64(%rbp), %eax
jne 0x9a17
movl -0x5c(%rbp), %eax
movl -0x10(%rbp), %ecx
addl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x96ac
cmpq $-0x1, -0x1080(%rbp)
je 0x96ac
jmp 0x960e
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9677
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9638
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11d0(%rbp)
jmp 0x9645
movl $0x2, %eax
movl %eax, -0x11d0(%rbp)
jmp 0x9645
movl -0x11d0(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1080(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1078(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x96ac
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movq $-0x1, -0x1080(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x9725
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jl 0x9718
movslq -0x58(%rbp), %rcx
leaq -0x1070(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x1080(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1078(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x64(%rbp)
jmp 0x971a
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x96c0
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x60(%rbp), %eax
jg 0x9791
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jl 0x9784
movslq -0x58(%rbp), %rcx
leaq -0x1070(%rbp), %rax
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movq %rcx, -0x1080(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x1078(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x64(%rbp)
jmp 0x9786
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x972c
movl -0x5c(%rbp), %eax
movl -0x10(%rbp), %ecx
addl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jl 0x9a15
cmpq $-0x1, -0x1080(%rbp)
je 0x9a15
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x98e4
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jne 0x98d4
movq -0x1078(%rbp), %rax
shrq $0x1c, %rax
andq $0x7ffffff, %rax        # imm = 0x7FFFFFF
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rcx
shrq $0x1c, %rcx
andq $0x7ffffff, %rcx        # imm = 0x7FFFFFF
cmpl %ecx, %eax
je 0x98d4
jmp 0x982b
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9894
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9855
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11d4(%rbp)
jmp 0x9862
movl $0x2, %eax
movl %eax, -0x11d4(%rbp)
jmp 0x9862
movl -0x11d4(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x98d4
jmp 0x98d6
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x97bc
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
cmpl -0x60(%rbp), %eax
jg 0x9a13
movslq -0x58(%rbp), %rax
leaq -0x1070(%rbp), %rsi
shlq $0x4, %rax
addq %rax, %rsi
leaq -0x1080(%rbp), %rdi
callq 0x9c50
cmpl $0x0, %eax
jne 0x9a03
movq -0x1078(%rbp), %rax
shrq $0x1c, %rax
andq $0x7ffffff, %rax        # imm = 0x7FFFFFF
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rcx
shrq $0x1c, %rcx
andq $0x7ffffff, %rcx        # imm = 0x7FFFFFF
cmpl %ecx, %eax
je 0x9a03
jmp 0x995a
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x99c3
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9984
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11d8(%rbp)
jmp 0x9991
movl $0x2, %eax
movl %eax, -0x11d8(%rbp)
jmp 0x9991
movl -0x11d8(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x58(%rbp), %rdx
leaq -0x1070(%rbp), %rcx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
jmp 0x9a03
jmp 0x9a05
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x98eb
jmp 0x9a15
jmp 0x9a17
jmp 0x9a19
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
cmpl -0x10(%rbp), %eax
jne 0x9a2e
movl $0x0, -0x60(%rbp)
jmp 0x9a30
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x8eca
cmpq $-0x1, -0x1080(%rbp)
je 0x9aec
jmp 0x9a4e
movq 0x10(%rbp), %rax
movl (%rax), %eax
movq 0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x9ab7
movq 0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x9a78
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
shll %eax
movl %eax, -0x11dc(%rbp)
jmp 0x9a85
movl $0x2, %eax
movl %eax, -0x11dc(%rbp)
jmp 0x9a85
movl -0x11dc(%rbp), %ecx
movq 0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x11b0
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rbp), %rdx
movl (%rdx), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, (%rdx)
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq -0x1080(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1078(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x9aec
addq $0x11e0, %rsp           # imm = 0x11E0
popq %rbp
retq
nopw %cs:(%rax,%rax)