// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/extract.cpp
// Function: ha_extract_print(All_reads const*, int, int, char**)
void ha_extract_print(const All_reads *rs, int n_rounds, int n, char **list)
{
	hm64_t *h;
	khint_t k;
	int i, absent, m, l;
	uint64_t j;
	const ma_hit_t_alloc *ov[2] = { rs->paf, rs->reverse_paf };
	FILE *fp = stdout;

	if (n > 0) {
		int max_len = 0;
		char *s = 0;
		strset_t *ss;
		ss = ss_init();
		for (i = 0; i < n; ++i)
			ss_put(ss, list[i], &absent);
		for (j = 0; j < rs->total_reads; ++j)
			if (max_len < (int)Get_NAME_LENGTH(*rs, j))
				max_len = Get_NAME_LENGTH(*rs, j);
		GFA_MALLOC(s, max_len + 1);
		h = h64_init();
		for (j = 0; j < rs->total_reads; ++j) {
			strncpy(s, Get_NAME(*rs, j), Get_NAME_LENGTH(*rs, j));
			s[Get_NAME_LENGTH(*rs, j)] = 0;
			if (ss_get(ss, s) != kh_end(ss)) {
				k = h64_put(h, j, &absent);
				kh_val(h, k) = -1;
			}
		}
		free(s);
		ss_destroy(ss);
	} else return;

	for (m = 0; m < n_rounds; ++m) {
		for (j = 0; j < rs->total_reads; ++j) {
			for (l = 0; l < 2; ++l) {
				const ma_hit_t_alloc *o = &ov[l][j];
				for (i = 0; i < (int)o->length; ++i) {
					uint64_t q = Get_qn(o->buffer[i]);
					uint64_t t = Get_tn(o->buffer[i]);
					int q_hit = 0, t_hit = 0;
					k = h64_get(h, q);
					q_hit = (k < kh_end(h) && kh_val(h, k) < m);
					k = h64_get(h, t);
					t_hit = (k < kh_end(h) && kh_val(h, k) < m);
					if ((!q_hit && !t_hit) || (q_hit && t_hit)) continue;
					if (!q_hit) {
						k = h64_put(h, q, &absent);
						if (absent) kh_val(h, k) = m;
					}
					if (!t_hit) {
						k = h64_put(h, t, &absent);
						if (absent) kh_val(h, k) = m;
					}
				}
			}
		}
	}

	for (j = 0; j < rs->total_reads; ++j) {
		for (l = 0; l < 2; ++l) {
			const ma_hit_t_alloc *o = &ov[l][j];
			for (i = 0; i < (int)o->length; ++i) {
				uint64_t q = Get_qn(o->buffer[i]);
				uint64_t t = Get_tn(o->buffer[i]);
				int q_hit = 0, t_hit = 0;
				q_hit = (h64_get(h, q) < kh_end(h));
				t_hit = (h64_get(h, t) < kh_end(h));
				if (!q_hit && !t_hit) continue;
				fwrite(Get_NAME(*rs, q), 1, Get_NAME_LENGTH(*rs, q), fp);
				fwrite("\t", 1, 1, fp);
				fprintf(fp, "%lu\t", (unsigned long)Get_READ_LENGTH(*rs, q));
				fprintf(fp, "%d\t", Get_qs(o->buffer[i]));
				fprintf(fp, "%d\t", Get_qe(o->buffer[i]));
				fputs(o->buffer[i].rev? "-\t" : "+\t", fp);
				fwrite(Get_NAME(*rs, t), 1, Get_NAME_LENGTH(*rs, t), fp);
				fwrite("\t", 1, 1, fp);
				fprintf(fp, "%lu\t", (unsigned long)Get_READ_LENGTH(*rs, t));
				fprintf(fp, "%d\t", Get_ts(o->buffer[i]));
				fprintf(fp, "%d\t%d\t%d\t%d\n", Get_te(o->buffer[i]), o->buffer[i].ml, o->buffer[i].bl, !l);
			}
		}
	}

	h64_destroy(h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, 0x28(%rsp)
movl %esi, 0x44(%rsp)
movq 0x78(%rdi), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rdi), %rax
movq %rax, 0x58(%rsp)
testl %edx, %edx
jle 0x12ff71
movl %edx, %ebp
movq %rdi, 0x38(%rsp)
movq 0x15ac05(%rip), %rax    # 0x289fb8
movq (%rax), %rax
movq %rax, 0x70(%rsp)
movl $0x1, %edi
movl $0x18, %esi
callq 0x2120
movq %rax, %r14
movq 0x10(%rax), %r15
movl 0x4(%rax), %edi
movl %ebp, %eax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
movq %r14, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rcx, 0x18(%rsp)
movq (%rax,%rcx,8), %rsi
movsbl (%rsi), %edx
movl $0x0, %r13d
testl %edx, %edx
je 0x12f429
movb 0x1(%rsi), %al
testb %al, %al
je 0x12f426
leaq 0x2(%rsi), %rcx
movl %edx, %r13d
movl %r13d, %edx
shll $0x5, %edx
subl %r13d, %edx
movsbl %al, %r13d
addl %edx, %r13d
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x12f40b
jmp 0x12f429
movl %edx, %r13d
testq %r15, %r15
je 0x12f43c
movb (%r14), %cl
movl $0x1, %r12d
shll %cl, %r12d
jmp 0x12f43f
xorl %r12d, %r12d
movl %r12d, %eax
shrl %eax
movl %r12d, %ecx
shrl $0x2, %ecx
addl %eax, %ecx
cmpl %ecx, %edi
movl %edi, 0x8(%rsp)
jb 0x12f67a
leal 0x1(%r12), %ecx
bsrl %ecx, %eax
cmpl $0x2, %ecx
movl $0x0, %edx
cmovbl %edx, %eax
andl %r12d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %eax
cmpl $0x3, %eax
movl $0x2, %ecx
cmovael %eax, %ecx
movl $0x1, %ebp
shll %cl, %ebp
movl %ebp, %r8d
shrl %r8d
movl %ebp, %edx
shrl $0x2, %edx
addl %r8d, %edx
cmpl %edx, %edi
ja 0x12f66e
movl %ecx, 0x24(%rsp)
movq %rsi, 0x68(%rsp)
movq %rbp, 0x48(%rsp)
shrl $0x3, %ebp
andl $-0x4, %ebp
cmpl $0x5, %eax
movl $0x4, %eax
cmovbl %eax, %ebp
movq %rbp, %rdi
callq 0x2280
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r12, %r12
je 0x12f703
testq %r15, %r15
je 0x12f4f4
movb (%r14), %cl
movl $0x1, %r14d
shll %cl, %r14d
jmp 0x12f4f7
xorl %r14d, %r14d
movq 0x48(%rsp), %rax
cmpl %eax, %r14d
jae 0x12f53b
movl $0xc, %esi
movl 0x24(%rsp), %ecx
shlq %cl, %rsi
movq %r15, %rdi
callq 0x2370
movq %rax, %rbp
testq %rax, %rax
jne 0x12f52e
movq %r12, %rdi
movq %rax, %rbp
callq 0x2220
movq %rbp, %rax
movq %r15, %rbp
testq %rax, %rax
jne 0x12f53e
movq %rbp, %r15
jmp 0x12f6fe
movq %r15, %rbp
testl %r14d, %r14d
je 0x12f626
movq 0x48(%rsp), %rax
leal -0x1(%rax), %edi
movl $0x20, %eax
subl 0x24(%rsp), %eax
movl %r14d, %ecx
movq %rcx, (%rsp)
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %r9
xorl %edx, %edx
movl %edx, %esi
shrl $0x5, %esi
movl (%r9,%rsi,4), %r8d
movl $0x1, %ebx
movl %edx, %ecx
shll %cl, %ebx
btl %edx, %r8d
jae 0x12f619
leaq (%rdx,%rdx,2), %rcx
movq (%rbp,%rcx,4), %r11
movl 0x8(%rbp,%rcx,4), %r10d
notl %ebx
andl %ebx, %r8d
movl %r8d, (%r9,%rsi,4)
imull $0x9e3779b9, %r10d, %esi # imm = 0x9E3779B9
movl %eax, %ecx
shrl %cl, %esi
movl %esi, %ebx
shrl $0x5, %ebx
movl (%r12,%rbx,4), %r8d
movl $0x1, %r15d
movl %esi, %ecx
shll %cl, %r15d
btl %esi, %r8d
jae 0x12f5c8
incl %esi
andl %edi, %esi
jmp 0x12f5a8
orl %r15d, %r8d
movl %r8d, (%r12,%rbx,4)
movl %esi, %ecx
cmpl %r14d, %esi
jae 0x12f605
testl %r15d, (%r9,%rbx,4)
je 0x12f605
leaq (%rcx,%rcx,2), %rcx
movq (%rbp,%rcx,4), %rsi
movl 0x8(%rbp,%rcx,4), %r8d
movq %r11, (%rbp,%rcx,4)
movl %r10d, 0x8(%rbp,%rcx,4)
notl %r15d
andl %r15d, (%r9,%rbx,4)
movb $0x1, %cl
movl %r8d, %r10d
movq %rsi, %r11
jmp 0x12f615
leaq (%rcx,%rcx,2), %rcx
movq %r11, (%rbp,%rcx,4)
movl %r10d, 0x8(%rbp,%rcx,4)
xorl %ecx, %ecx
testb %cl, %cl
jne 0x12f59d
incq %rdx
cmpq (%rsp), %rdx
jne 0x12f56a
cmpl 0x48(%rsp), %r14d
jbe 0x12f64d
movl $0xc, %esi
movl 0x24(%rsp), %ebx
movl %ebx, %ecx
shlq %cl, %rsi
movq %rbp, %rdi
callq 0x2370
movq %rax, %rbp
movq 0x10(%rsp), %r14
jmp 0x12f656
movq 0x10(%rsp), %r14
movl 0x24(%rsp), %ebx
movq 0x8(%r14), %rdi
callq 0x2220
movq %r12, 0x8(%r14)
movl %ebx, (%r14)
movq %rbp, %r15
movq 0x68(%rsp), %rsi
movb (%r14), %cl
movl $0x1, %r12d
shll %cl, %r12d
imull $0x9e3779b9, %r13d, %edx # imm = 0x9E3779B9
movb (%r14), %al
xorl %ecx, %ecx
subb %al, %cl
shrl %cl, %edx
decl %r12d
movq 0x8(%r14), %rdi
movl %edx, %ebp
movq %rdi, (%rsp)
movl %ebp, %eax
shrl $0x5, %eax
movl (%rdi,%rax,4), %eax
btl %ebp, %eax
jae 0x12f6e6
movl %ebp, %eax
leaq (%rax,%rax,2), %rax
cmpl %r13d, 0x8(%r15,%rax,4)
jne 0x12f6dd
leaq (%r15,%rax,4), %rax
movq (%rax), %rdi
movq %r15, %r14
movq %rsi, %r15
movl %r13d, %ebx
movl %edx, %r13d
callq 0x2290
movl %r13d, %edx
movl %ebx, %r13d
movq (%rsp), %rdi
movq %r15, %rsi
movq %r14, %r15
testl %eax, %eax
je 0x12f6e6
incl %ebp
andl %r12d, %ebp
cmpl %edx, %ebp
jne 0x12f697
movl %ebp, %eax
movl $0x1, %edx
movl %ebp, %ecx
shll %cl, %edx
shrl $0x5, %eax
movl (%rdi,%rax,4), %ecx
xorl %ebx, %ebx
btl %ebp, %ecx
jae 0x12f709
movq 0x10(%rsp), %r14
movl 0x8(%rsp), %edi
jmp 0x12f72b
movl %ebp, %ecx
leaq (%rcx,%rcx,2), %rcx
movq %rsi, (%r15,%rcx,4)
movl %r13d, 0x8(%r15,%rcx,4)
orl %edx, (%rdi,%rax,4)
movl 0x8(%rsp), %edi
incl %edi
movl $0x1, %ebx
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rcx
incq %rcx
cmpq 0x30(%rsp), %rcx
jne 0x12f3e2
movq %r15, 0x10(%r14)
movl %edi, 0x4(%r14)
movl %ebx, 0x20(%rsp)
movq 0x38(%rsp), %rbx
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x12f77e
movq 0x40(%rbx), %rcx
xorl %edx, %edx
xorl %edi, %edi
movl %edi, %esi
movl 0x8(%rcx,%rdx,8), %edi
subl (%rcx,%rdx,8), %edi
leaq 0x1(%rdx), %r8
cmpl %edi, %esi
cmovgl %esi, %edi
movq %r8, %rdx
cmpq %r8, %rax
jne 0x12f760
incl %edi
jmp 0x12f783
movl $0x1, %edi
callq 0x2280
movq %rax, (%rsp)
movl $0x1, %edi
movl $0x18, %esi
callq 0x2120
movq %rax, %r15
cmpq $0x0, 0x50(%rbx)
je 0x12f916
movq 0x10(%r14), %rdx
movq (%rsp), %rax
addq $0x2, %rax
movq %rax, 0x30(%rsp)
xorl %r13d, %r13d
movq %rdx, 0x8(%rsp)
movq %rbx, %rcx
movq 0x40(%rbx), %rbx
movq (%rbx,%r13,8), %rax
movq 0x8(%rbx,%r13,8), %rdx
movq 0x8(%rcx), %rsi
addq %rax, %rsi
subq %rax, %rdx
movq (%rsp), %r12
movq %r12, %rdi
callq 0x20d0
movq 0x8(%rbx,%r13,8), %rax
subq (%rbx,%r13,8), %rax
movb $0x0, (%r12,%rax)
movsbl (%r12), %edx
movl $0x0, %ebp
testl %edx, %edx
je 0x12f82f
movq (%rsp), %rax
movb 0x1(%rax), %al
testb %al, %al
je 0x12f82d
movq 0x30(%rsp), %rcx
movl %edx, %ebp
movl %ebp, %edx
shll $0x5, %edx
subl %ebp, %edx
movsbl %al, %ebp
addl %edx, %ebp
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x12f816
jmp 0x12f82f
movl %edx, %ebp
xorl %eax, %eax
movl $0x0, %esi
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x12f8bc
movq %r13, 0x18(%rsp)
movb (%r14), %cl
movl $0x1, %eax
shll %cl, %eax
imull $0x9e3779b9, %ebp, %r13d # imm = 0x9E3779B9
negb %cl
shrl %cl, %r13d
movq %rax, 0x28(%rsp)
leal -0x1(%rax), %r12d
movq 0x8(%r14), %rbx
movl %r13d, %r14d
movl %r14d, %eax
shrl $0x5, %eax
movl (%rbx,%rax,4), %eax
btl %r14d, %eax
jae 0x12f8ab
movl %r14d, %eax
leaq (%rax,%rax,2), %rax
cmpl %ebp, 0x8(%rdx,%rax,4)
jne 0x12f8a0
leaq (%rdx,%rax,4), %rax
movq (%rax), %rdi
movq (%rsp), %rsi
callq 0x2290
movq 0x8(%rsp), %rdx
testl %eax, %eax
je 0x12f905
incl %r14d
andl %r12d, %r14d
cmpl %r13d, %r14d
jne 0x12f86b
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r13
xorl %eax, %eax
movq 0x28(%rsp), %rsi
testq %rdx, %rdx
je 0x12f8cb
movb (%r14), %cl
movl $0x1, %eax
shll %cl, %eax
cmpl %eax, %esi
movq 0x38(%rsp), %rbx
je 0x12f8f6
movq %r15, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %rdx
callq 0x12ff80
movq 0x10(%r15), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movl $0xffffffff, 0x8(%rcx,%rax,4) # imm = 0xFFFFFFFF
incq %r13
cmpq 0x50(%rbx), %r13
jb 0x12f7c2
jmp 0x12f916
movl %r14d, %esi
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %r13
xorl %eax, %eax
jmp 0x12f8bc
movq (%rsp), %rdi
callq 0x2220
testq %r14, %r14
je 0x12f93e
movq 0x10(%r14), %rdi
callq 0x2220
movq 0x8(%r14), %rdi
callq 0x2220
movq %r14, %rdi
callq 0x2220
cmpl $0x0, 0x44(%rsp)
jle 0x12fbc9
xorl %ebp, %ebp
cmpq $0x0, 0x50(%rbx)
je 0x12fbbd
xorl %eax, %eax
movq %rax, 0x18(%rsp)
leaq (%rax,%rax,2), %rax
movq %rax, 0x8(%rsp)
xorl %eax, %eax
movq %rax, (%rsp)
movq 0x50(%rsp,%rax,8), %rax
movq 0x8(%rsp), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
jle 0x12fb95
movq 0x8(%rsp), %rcx
leaq (%rax,%rcx,8), %rbx
xorl %r12d, %r12d
movq (%rbx), %rdi
leaq (%r12,%r12,4), %r8
movl 0x4(%rdi,%r8,8), %esi
movq 0x10(%r15), %rax
xorl %r11d, %r11d
movl $0x0, %r10d
testq %rax, %rax
je 0x12fa3d
movb (%r15), %cl
movl $0x1, %r10d
shll %cl, %r10d
movq %rsi, %rdx
notq %rdx
movq %rsi, %r9
shlq $0x15, %r9
addq %rdx, %r9
movq %r9, %rdx
shrq $0x18, %rdx
xorq %r9, %rdx
imulq $0x109, %rdx, %rdx      # imm = 0x109
movq %rdx, %r9
shrq $0xe, %r9
xorq %rdx, %r9
leaq (%r9,%r9,4), %rdx
leaq (%r9,%rdx,4), %rdx
movq %rdx, %r9
shrq $0x1c, %r9
xorl %edx, %r9d
imull $0x1e3779b9, %r9d, %edx # imm = 0x1E3779B9
negb %cl
shrl %cl, %edx
leal -0x1(%r10), %ecx
movq 0x8(%r15), %r14
movl %edx, %r9d
movl %r9d, %r13d
shrl $0x5, %r13d
movl (%r14,%r13,4), %r13d
btl %r9d, %r13d
jae 0x12fa3d
movl %r9d, %r13d
leaq (%r13,%r13,2), %r13
cmpq %rsi, (%rax,%r13,4)
je 0x12fa3a
incl %r9d
andl %ecx, %r9d
cmpl %edx, %r9d
jne 0x12fa0e
jmp 0x12fa3d
movl %r9d, %r10d
testq %rax, %rax
je 0x12fa4e
movb (%r15), %cl
movl $0x1, %r11d
shll %cl, %r11d
xorl %r9d, %r9d
movl $0x0, %edx
cmpl %r11d, %r10d
jae 0x12fa69
movl %r10d, %ecx
leaq (%rcx,%rcx,2), %rcx
cmpl %ebp, 0x8(%rax,%rcx,4)
setl %dl
movl 0xc(%rdi,%r8,8), %r13d
testq %rax, %rax
je 0x12fb04
movb (%r15), %cl
movl $0x1, %r9d
shll %cl, %r9d
movq %r13, %rdi
notq %rdi
movq %r13, %r8
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorl %edi, %r8d
imull $0x1e3779b9, %r8d, %edi # imm = 0x1E3779B9
negb %cl
shrl %cl, %edi
leal -0x1(%r9), %ecx
movq 0x8(%r15), %r10
movl %edi, %r8d
movl %r8d, %r11d
shrl $0x5, %r11d
movl (%r10,%r11,4), %r11d
btl %r8d, %r11d
jae 0x12fb04
movl %r8d, %r11d
leaq (%r11,%r11,2), %r11
cmpq %r13, (%rax,%r11,4)
je 0x12fb01
incl %r8d
andl %ecx, %r8d
cmpl %edi, %r8d
jne 0x12fad6
jmp 0x12fb04
movl %r8d, %r9d
testq %rax, %rax
je 0x12fb15
movb (%r15), %cl
movl $0x1, %edi
shll %cl, %edi
jmp 0x12fb17
xorl %edi, %edi
cmpl %edi, %r9d
jae 0x12fb2d
movl %r9d, %ecx
leaq (%rcx,%rcx,2), %rcx
cmpl %ebp, 0x8(%rax,%rcx,4)
setl %r14b
jmp 0x12fb30
xorl %r14d, %r14d
cmpb %r14b, %dl
je 0x12fb85
testb %dl, %dl
jne 0x12fb5b
movq %r15, %rdi
leaq 0x20(%rsp), %rdx
callq 0x12ff80
cmpl $0x0, 0x20(%rsp)
je 0x12fb5b
movq 0x10(%r15), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movl %ebp, 0x8(%rcx,%rax,4)
testb %r14b, %r14b
jne 0x12fb85
movq %r15, %rdi
movq %r13, %rsi
leaq 0x20(%rsp), %rdx
callq 0x12ff80
cmpl $0x0, 0x20(%rsp)
je 0x12fb85
movq 0x10(%r15), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movl %ebp, 0x8(%rcx,%rax,4)
incq %r12
movslq 0xc(%rbx), %rax
cmpq %rax, %r12
jl 0x12f98d
movq (%rsp), %rcx
leaq 0x1(%rcx), %rax
testq %rcx, %rcx
je 0x12f968
movq 0x18(%rsp), %rax
incq %rax
movq 0x38(%rsp), %rbx
cmpq 0x50(%rbx), %rax
jb 0x12f958
incl %ebp
cmpl 0x44(%rsp), %ebp
jne 0x12f94b
cmpq $0x0, 0x50(%rbx)
je 0x12ff44
xorl %ecx, %ecx
movq %rcx, 0x30(%rsp)
leaq (%rcx,%rcx,2), %rax
movq %rax, 0x28(%rsp)
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp,%rax,8), %rax
movq 0x28(%rsp), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
jle 0x12ff1b
movq 0x28(%rsp), %rcx
leaq (%rax,%rcx,8), %r12
movq 0x10(%r15), %rbp
movq 0x10(%rsp), %rax
xorl $0x1, %eax
movl %eax, 0x18(%rsp)
xorl %r13d, %r13d
movq %r12, (%rsp)
xorl %eax, %eax
movq (%r12), %rsi
leaq (,%r13,4), %rdi
addq %r13, %rdi
movl 0x4(%rsi,%rdi,8), %ebx
movl $0x0, %edx
testq %rbp, %rbp
je 0x12fccf
movb (%r15), %cl
movl $0x1, %edx
shll %cl, %edx
movq %rbx, %r8
notq %r8
movq %rbx, %r9
shlq $0x15, %r9
addq %r8, %r9
movq %r9, %r8
shrq $0x18, %r8
xorq %r9, %r8
imulq $0x109, %r8, %r8        # imm = 0x109
movq %r8, %r9
shrq $0xe, %r9
xorq %r8, %r9
leaq (%r9,%r9,4), %r8
leaq (%r9,%r8,4), %r8
movq %r8, %r9
shrq $0x1c, %r9
xorl %r8d, %r9d
imull $0x1e3779b9, %r9d, %r8d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r8d
leal -0x1(%rdx), %ecx
movq 0x8(%r15), %r10
movl %r8d, %r9d
movl %r9d, %r11d
shrl $0x5, %r11d
movl (%r10,%r11,4), %r11d
btl %r9d, %r11d
jae 0x12fccf
movl %r9d, %r11d
leaq (%r11,%r11,2), %r11
cmpq %rbx, (%rbp,%r11,4)
je 0x12fccc
incl %r9d
andl %ecx, %r9d
cmpl %r8d, %r9d
jne 0x12fca0
jmp 0x12fccf
movl %r9d, %edx
testq %rbp, %rbp
je 0x12fcde
movb (%r15), %cl
movl $0x1, %eax
shll %cl, %eax
movl 0xc(%rsi,%rdi,8), %r14d
xorl %esi, %esi
movl $0x0, %edi
testq %rbp, %rbp
je 0x12fd7f
movb (%r15), %cl
movl $0x1, %edi
shll %cl, %edi
movq %r14, %r8
notq %r8
movq %r14, %r9
shlq $0x15, %r9
addq %r8, %r9
movq %r9, %r8
shrq $0x18, %r8
xorq %r9, %r8
imulq $0x109, %r8, %r8        # imm = 0x109
movq %r8, %r9
shrq $0xe, %r9
xorq %r8, %r9
leaq (%r9,%r9,4), %r8
leaq (%r9,%r8,4), %r8
movq %r8, %r9
shrq $0x1c, %r9
xorl %r8d, %r9d
imull $0x1e3779b9, %r9d, %r8d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r8d
leal -0x1(%rdi), %ecx
movq 0x8(%r15), %r10
movl %r8d, %r9d
movl %r9d, %r11d
shrl $0x5, %r11d
movl (%r10,%r11,4), %r11d
btl %r9d, %r11d
jae 0x12fd7f
movl %r9d, %r11d
leaq (%r11,%r11,2), %r11
cmpq %r14, (%rbp,%r11,4)
je 0x12fd7c
incl %r9d
andl %ecx, %r9d
cmpl %r8d, %r9d
jne 0x12fd50
jmp 0x12fd7f
movl %r9d, %edi
testq %rbp, %rbp
je 0x12fd8e
movb (%r15), %cl
movl $0x1, %esi
shll %cl, %esi
cmpl %eax, %edx
jb 0x12fd9a
cmpl %esi, %edi
jae 0x12ff0a
movq 0x38(%rsp), %r12
movq 0x40(%r12), %rax
movq (%rax,%rbx,8), %rcx
movq 0x8(%rax,%rbx,8), %rdx
movq 0x8(%r12), %rdi
addq %rcx, %rdi
subq %rcx, %rdx
movl $0x1, %esi
movq %r13, 0x8(%rsp)
movq 0x70(%rsp), %r13
movq %r13, %rcx
callq 0x2410
movl $0x9, %edi
movq %r13, %rsi
callq 0x2270
movq 0x18(%r12), %rax
movq (%rax,%rbx,8), %rdx
movq %r13, %rdi
leaq 0x10376c(%rip), %rsi    # 0x23355b
xorl %eax, %eax
callq 0x22b0
movq (%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
leaq (,%rcx,8), %rcx
leaq (%rcx,%rcx,4), %rbx
movl (%rax,%rbx), %edx
movq %r13, %rdi
leaq 0xf5004(%rip), %rsi     # 0x224e1f
xorl %eax, %eax
callq 0x22b0
movq (%rsp), %rax
movq (%rax), %rax
movl 0x8(%rax,%rbx), %edx
movq %r13, %rdi
leaq 0xf4fe8(%rip), %rsi     # 0x224e1f
xorl %eax, %eax
callq 0x22b0
movq (%rsp), %rax
movq (%rax), %rax
cmpl $0x0, 0x18(%rax,%rbx)
leaq 0xf4fd2(%rip), %rdi     # 0x224e23
leaq 0xf4fce(%rip), %rax     # 0x224e26
cmovnsq %rax, %rdi
movq %r13, %rsi
callq 0x21d0
movq 0x40(%r12), %rax
movq (%rax,%r14,8), %rcx
movq 0x8(%rax,%r14,8), %rdx
movq 0x8(%r12), %rdi
addq %rcx, %rdi
subq %rcx, %rdx
movl $0x1, %esi
movq %r13, %rcx
callq 0x2410
movl $0x9, %edi
movq %r13, %rsi
callq 0x2270
movq 0x18(%r12), %rax
movq (%rsp), %r12
movq (%rax,%r14,8), %rdx
movq %r13, %rdi
leaq 0x1036ad(%rip), %rsi    # 0x23355b
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rax
movl 0x10(%rax,%rbx), %edx
movq %r13, %rdi
leaq 0xf4f58(%rip), %rsi     # 0x224e1f
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rax
movl 0x14(%rax,%rbx), %edx
movq 0x18(%rax,%rbx), %r8
movl %r8d, %ecx
shrl $0x1e, %ecx
andl $0x1, %ecx
shrq $0x20, %r8
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq %r13, %rdi
movq 0x8(%rsp), %r13
leaq 0xff0a3(%rip), %rsi     # 0x22efa1
movl 0x18(%rsp), %r9d
xorl %eax, %eax
callq 0x22b0
incq %r13
movslq 0xc(%r12), %rax
cmpq %rax, %r13
jl 0x12fc20
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rax
testq %rcx, %rcx
je 0x12fbe6
movq 0x30(%rsp), %rcx
incq %rcx
movq 0x38(%rsp), %rax
cmpq 0x50(%rax), %rcx
jb 0x12fbd6
testq %r15, %r15
je 0x12ff71
movq 0x10(%r15), %rdi
callq 0x2220
movq 0x8(%r15), %rdi
callq 0x2220
movq %r15, %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq