// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/ggsimple.c
// Function: mg_ggsimple_cigar
void mg_ggsimple_cigar(void *km, const mg_ggopt_t *opt, gfa_t *g, int32_t n_seq, const mg_bseq1_t *seq, mg_gchains_t *const* gcs)
{
	int32_t t, i, *soff, *qoff, max_acnt, m_ovlp = 0, *ovlp = 0, n_ins = 0, m_ins, n_inv;
	int32_t l_pseq, m_pseq;
	mg_intv_t *sintv, *qintv;
	double a_dens;
	gfa_ins_t *ins;
	char *pseq;

	max_acnt = mg_gc_index(km, opt->min_mapq, opt->min_map_len, opt->min_depth_len, g, n_seq, gcs, &a_dens, &soff, &qoff, &sintv, &qintv);
	if (max_acnt == 0) return;

	// extract poorly regions
	m_pseq = l_pseq = 0, pseq = 0;
	m_ins = n_ins = 0, ins = 0;
	n_inv = 0;
	for (t = 0; t < n_seq; ++t) {
		const mg_gchains_t *gt = gcs[t];
		for (i = 0; i < gt->n_gc; ++i) {
			const mg_gchain_t *gc = &gt->gc[i];
			int32_t j, n_ss, n_intv, *sc;
			ed_intv_t *intv;
			mg_msseg_t *ss;
			if (gc->id != gc->parent) continue;
			if (gc->p == 0 || gc->blen < opt->min_map_len || gc->mapq < opt->min_mapq) continue;
			assert(gc->cnt > 0);

			n_intv = gg_count_intv(g, gt, i);
			KCALLOC(km, intv, n_intv);
			gg_write_intv(g, gt, i, intv);
			gg_score_intv(n_intv, intv);
			KCALLOC(km, sc, n_intv);
			for (j = 0; j < n_intv; ++j) sc[j] = intv[j].sc;
			ss = mg_mss_all(0, n_intv, sc, opt->min_var_len, 2 * opt->min_var_len, &n_ss);
			gg_merge_seg(intv, n_ss, ss);

			// get regions to insert
			for (j = 0; j < n_ss; ++j) {
				int32_t st, en, pd, k, n_ovlp, min_len, is_inv = 0, ls, le;
				gfa_ins_t I;
				ed_intv_t *is, *ie;

				// find the initial positions
				st = ss[j].st, en = ss[j].en; // this is a CLOSED interval
				if (st == en) continue;
				is = &intv[st], ie = &intv[en - 1];
				assert(is->op != 7 && ie->op != 7);

				ls = is->lc, le = ie->lc;
				I.ctg = t;
				I.v[0] = gt->lc[ls].v;
				I.v[1] = gt->lc[le].v;
				I.voff[0] = is->vo;
				I.voff[1] = ie->vo + (ie->op != 1? ie->len : 0);
				I.coff[0] = is->qo;
				I.coff[1] = ie->qo + (ie->op != 2? ie->len : 0);
				assert(I.voff[0] <= g->seg[I.v[0]>>1].len);
				assert(I.voff[1] <= g->seg[I.v[1]>>1].len);

				if (I.voff[0] == 0) { // if an insert starts at pos 0, make it start at the end of the previous vertex in the chain
					assert(ls - 1 >= gc->off);
					I.v[0] = gt->lc[--ls].v;
					I.voff[0] = g->seg[I.v[0]>>1].len;
				}
				if (I.voff[1] == g->seg[I.v[1]>>1].len) { // if an insert ends at the end of the vertex, make it end at the beginning of the next vertex
					assert(le + 1 < gc->off + gc->cnt);
					I.v[1] = gt->lc[++le].v;
					I.voff[1] = 0;
				}

				pd = ie->po + (ie->op != 1? ie->len : 0) - is->po;
				pd -= gfa_ins_adj(g, opt->ggs_shrink_pen, &I, seq[t].seq);

				min_len = pd > I.coff[1] - I.coff[0]? pd : I.coff[1] - I.coff[0];
				if (I.coff[0] <= min_len || I.coff[1] >= seq[t].l_seq - min_len) continue; // test if the event is close to ends again

				// filtering
				if (I.coff[1] - I.coff[0] < opt->min_var_len && pd < opt->min_var_len)
					continue;
				for (k = I.coff[0]; k < I.coff[1]; ++k) { // test ambiguous bases
					int c = seq[t].seq[k];
					if (c == 'n' || c == 'N') break;
				}
				if (k != I.coff[1]) continue; // no ambiguous bases on the insert
				n_ovlp = mg_intv_overlap(km, qoff[t+1] - qoff[t], &qintv[qoff[t]], I.coff[0], I.coff[1], &ovlp, &m_ovlp); // test overlapping on the query
				if (n_ovlp == 0) fprintf(stderr, "[W::%s] query interval %s:%d-%d is not covered\n", __func__, seq[t].name, I.coff[0], I.coff[1]);
				if (n_ovlp != 1) continue;
				for (k = is->lc; k <= ie->lc; ++k) { // find other mappings overlapping with the insert on the graph
					uint32_t v = gt->lc[k].v, len = g->seg[v>>1].len;
					int32_t s = 0, e = len, tmp;
					if (k == is->lc) s = is->vo;
					if (k == ie->lc) e = ie->vo + (ie->op != 1? ie->len : 0);
					if (v&1) tmp = s, s = len - e, e = len - tmp;
					if (s == e) {
						if (s == 0) ++e;
						else --s;
					}
					n_ovlp = mg_intv_overlap(km, soff[(v>>1)+1] - soff[v>>1], &sintv[soff[v>>1]], s, e, &ovlp, &m_ovlp);
					if (n_ovlp == 0) fprintf(stderr, "[W::%s] graph interval %c%s:%d-%d is not covered by %s:%d-%d\n", __func__, "><"[v&1], g->seg[v>>1].name, s, e, seq[t].name, I.coff[0], I.coff[1]); // this should be an assert()
					if (n_ovlp != 1) break;
				}
				if (k <= ie->lc) continue;
				if (pd - (I.coff[1] - I.coff[0]) < opt->min_var_len && (I.coff[1] - I.coff[0]) - pd < opt->min_var_len) { // if length difference > min_var_len, just insert
					int32_t qd = I.coff[1] - I.coff[0], mlen, blen, score = 0;
					l_pseq = mg_path2seq(km, g, gt, ls, le, I.voff, &pseq, &m_pseq);
					score = mg_wfa_cmp(km, l_pseq, pseq, qd, &seq[t].seq[I.coff[0]], 5000, &mlen, &blen);
					if (score > 0) {
						if (mlen > blen * opt->ggs_max_iden) continue; // make sure k-mer identity is small enough
						if (blen - mlen < opt->min_var_len * opt->ggs_max_iden) continue;
					} else if (!(opt->flag & MG_G_NO_INV)) {
						mg_revcomp_seq(l_pseq, pseq);
						score = mg_wfa_cmp(km, l_pseq, pseq, qd, &seq[t].seq[I.coff[0]], 5000, &mlen, &blen);
						if (score > 0 && mlen > blen * opt->ggs_min_inv_iden) is_inv = 1;
					}
				}
				if (mg_dbg_flag & MG_DBG_INSERT) {
					int32_t mlen, blen, score, qd = I.coff[1] - I.coff[0];
					l_pseq = mg_path2seq(km, g, gt, ls, le, I.voff, &pseq, &m_pseq);
					fprintf(stderr, "IN\t[%c%s:%d,%c%s:%d|%d] <=> %s:[%d,%d|%d] inv:%d\n", "><"[I.v[0]&1], g->seg[I.v[0]>>1].name, I.voff[0], "><"[I.v[1]&1], g->seg[I.v[1]>>1].name, I.voff[1], pd, seq[t].name, I.coff[0], I.coff[1], I.coff[1] - I.coff[0], is_inv);
					fprintf(stderr, "IP\t%s\nIQ\t", pseq);
					fwrite(&seq[t].seq[I.coff[0]], 1, qd, stderr);
					if (pd - qd < opt->min_var_len && qd - pd < opt->min_var_len) {
						score = mg_wfa_cmp(km, l_pseq, pseq, qd, &seq[t].seq[I.coff[0]], 5000, &mlen, &blen);
					} else score = -1, mlen = 0, blen = pd > qd? pd : qd;
					fprintf(stderr, "\nIS\t%d==%d\tnwcmp:%d\tmlen:%d\tblen:%d\n", pd, l_pseq, score, mlen, blen);
					//if (I.voff[0] == 2305301) { for (k = st; k < en; ++k) fprintf(stderr, "%d%c", intv[k].len, "MIDNSHP=XB"[intv[k].op]); fprintf(stderr, "\n"); }
				}
				if (is_inv) { // turn one inversion to two events
					gfa_ins_t I_inv[2];
					I_inv[0].ctg = I_inv[1].ctg = I.ctg;
					// the first event
					I_inv[0].coff[0] = I_inv[0].coff[1] = I.coff[0];
					I_inv[0].v[0] = I.v[0];
					I_inv[0].voff[0] = I.voff[0];
					I_inv[0].v[1] = I.v[1]^1;
					I_inv[0].voff[1] = g->seg[I.v[1]>>1].len - I.voff[1];
					// the second event
					I_inv[1].coff[0] = I_inv[1].coff[1] = I.coff[1];
					I_inv[1].v[0] = I.v[0]^1;
					I_inv[1].voff[0] = g->seg[I.v[0]>>1].len - I.voff[0];
					I_inv[1].v[1] = I.v[1];
					I_inv[1].voff[1] = I.voff[1];
					// insert
					if (n_ins == m_ins) KEXPAND(km, ins, m_ins);
					ins[n_ins++] = I_inv[0];
					if (n_ins == m_ins) KEXPAND(km, ins, m_ins);
					ins[n_ins++] = I_inv[1];
					++n_inv;
				} else {
					if (n_ins == m_ins) KEXPAND(km, ins, m_ins);
					ins[n_ins++] = I;
				}
			}
			kfree(0, ss); // this is allocated from malloc() inside mg_mss_all()
			kfree(km, intv);
			kfree(km, sc);
		}
	}
	kfree(km, pseq);
	kfree(km, ovlp);
	kfree(km, soff); kfree(km, qoff);
	kfree(km, sintv); kfree(km, qintv);

	if (n_ins > 0) {
		char **names, **seqs;
		KMALLOC(km, names, n_seq);
		KMALLOC(km, seqs, n_seq);
		for (i = 0; i < n_seq; ++i)
			names[i] = seq[i].name, seqs[i] = seq[i].seq;
		n_ins = gfa_ins_filter(g, n_ins, ins);
		gfa_augment(g, n_ins, ins, n_seq, (const char*const*)names, (const char*const*)seqs);
		kfree(km, ins);
		kfree(km, names);
		kfree(km, seqs);
	}
	if (mg_verbose >= 3)
		fprintf(stderr, "[M::%s::%.3f*%.2f] inserted %d events, including %d inversions\n", __func__,
				realtime() - mg_realtime0, cputime() / (realtime() - mg_realtime0), n_ins, n_inv);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %r9, %r14
movq %r8, 0xe8(%rsp)
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rax
movl $0x0, 0xc4(%rsp)
movq $0x0, 0xe0(%rsp)
movl 0xc(%rsi), %esi
movq %rax, 0x60(%rsp)
movl 0x14(%rax), %ecx
leaq 0x100(%rsp), %rax
leaq 0x108(%rsp), %rdx
leaq 0x110(%rsp), %r10
leaq 0x118(%rsp), %r11
leaq 0x150(%rsp), %rbx
movq %rdi, 0x10(%rsp)
movq %r15, %r8
movl %ebp, %r9d
pushq %rax
pushq %rdx
pushq %r10
pushq %r11
pushq %rbx
movq %r14, 0x148(%rsp)
pushq %r14
callq 0x2197c
addq $0x30, %rsp
testl %eax, %eax
je 0x2473d
movl $0x0, 0xc0(%rsp)
movq $0x0, 0x98(%rsp)
movl %ebp, %eax
movq %rax, 0xf0(%rsp)
testl %ebp, %ebp
movl %ebp, 0xbc(%rsp)
movq %r15, 0xa0(%rsp)
jle 0x245e4
xorl %esi, %esi
movq $0x0, 0x50(%rsp)
movl $0x0, 0x6c(%rsp)
movl $0x0, 0xa8(%rsp)
movq $0x0, 0x88(%rsp)
movq 0x60(%rsp), %rdx
movq 0x120(%rsp), %rax
movq (%rax,%rsi,8), %rdi
cmpl $0x0, 0x8(%rdi)
jle 0x245d1
leaq (%rsi,%rsi,4), %rax
movq 0xe8(%rsp), %rcx
leaq (%rcx,%rax,8), %r12
xorl %r8d, %r8d
movq %rsi, 0xd8(%rsp)
movq %rdi, 0x8(%rsp)
movq %r12, 0x70(%rsp)
movq 0x18(%rdi), %rax
imulq $0x68, %r8, %r12
movl (%rax,%r12), %ecx
cmpl 0x4(%rax,%r12), %ecx
jne 0x245c1
leaq (%rax,%r12), %r9
cmpq $0x0, 0x48(%r9)
je 0x245c1
movl 0x2c(%r9), %ecx
cmpl 0x10(%rdx), %ecx
jl 0x245c1
movzbl 0x44(%r9), %ecx
cmpl 0xc(%rdx), %ecx
jl 0x245c1
cmpl $0x0, 0xc(%r9)
jle 0x24879
movq 0x48(%rax,%r12), %rax
testq %rax, %rax
je 0x2483b
movq %r8, 0x130(%rsp)
movslq (%rax), %rcx
testq %rcx, %rcx
movq %r9, 0xf8(%rsp)
jle 0x23614
movl 0x8(%r9), %edx
movl 0x24(%r9), %r8d
xorl %esi, %esi
xorl %ebx, %ebx
movq 0x18(%rax,%rsi,8), %rdi
movl %edi, %r9d
andl $0xf, %r9d
leal -0x7(%r9), %r10d
cmpl $0x2, %r10d
movq 0x8(%rsp), %r10
jb 0x235a0
cmpl $0x1, %r9d
je 0x235fe
cmpl $0x2, %r9d
jne 0x247bf
shrq $0x4, %rdi
movq 0x10(%r15), %r9
movq 0x20(%r10), %r10
leal (%r8,%rdi), %ebp
movslq %edx, %r11
leaq (%r11,%r11,4), %r14
movl 0x8(%r10,%r14,4), %r11d
shrl %r11d
shlq $0x6, %r11
movl (%r9,%r11), %r11d
cmpl %r11d, %ebp
jle 0x235fa
leaq (%r10,%r14,4), %r10
addq $0x1c, %r10
subl %r11d, %edi
addl %r8d, %edi
incl %ebx
movl (%r10), %r8d
shrl %r8d
shlq $0x6, %r8
movl (%r9,%r8), %r11d
incl %edx
addq $0x14, %r10
xorl %r8d, %r8d
cmpl %r11d, %edi
jg 0x235d4
jmp 0x23601
movl %ebp, %edi
jmp 0x23601
movl %r8d, %edi
incl %ebx
incq %rsi
movl %edi, %r8d
cmpq %rcx, %rsi
jne 0x23575
jmp 0x23616
xorl %ebx, %ebx
movslq %ebx, %rsi
movl $0x1c, %edx
movq 0x10(%rsp), %rdi
movq %rsi, 0x28(%rsp)
callq 0x3054
movq %rax, %r14
movq 0x8(%rsp), %r10
movq 0x18(%r10), %rax
movq 0x48(%rax,%r12), %rdx
testq %rdx, %rdx
je 0x2485a
addq %r12, %rax
movl 0x18(%rax), %esi
movl 0x24(%rax), %ecx
cmpl $0x0, (%rdx)
movq %r14, 0x80(%rsp)
movq %rax, 0xb0(%rsp)
movl %ecx, 0x58(%rsp)
jle 0x237e5
movl 0x8(%rax), %r8d
leaq 0x14(%r14), %rax
movq %rax, 0x78(%rsp)
xorl %r9d, %r9d
xorl %r11d, %r11d
xorl %edi, %edi
movq %rdx, 0x18(%rsp)
movq %r9, 0x90(%rsp)
movq 0x18(%rdx,%r9,8), %r12
movl %r12d, %r13d
andl $0xf, %r13d
shrq $0x4, %r12
cmpl $0x8, %r13d
ja 0x2375a
movl $0x184, %eax            # imm = 0x184
btl %r13d, %eax
jae 0x2375a
movq 0x10(%r15), %r9
movq 0x20(%r10), %rdx
leal (%rcx,%r12), %eax
movslq %r8d, %r14
leaq (%r14,%r14,4), %rbp
movl 0x8(%rdx,%rbp,4), %r14d
shrl %r14d
shlq $0x6, %r14
movl (%r9,%r14), %r15d
cmpl %r15d, %eax
jle 0x2375a
leal -0x7(%r13), %eax
movslq %r11d, %r14
leaq (%r14,%r14,8), %r10
leaq (%r10,%r10,2), %r10
addq 0x78(%rsp), %r14
addq %r10, %r14
movq 0x8(%rsp), %r10
leaq (%rdx,%rbp,4), %rdx
addq $0x1c, %rdx
subl %ecx, %r15d
xorl %ebp, %ebp
cmpl $0x2, %eax
movl %r8d, -0x14(%r14)
movl %ecx, -0x10(%r14)
movl %esi, -0xc(%r14)
movl %edi, -0x8(%r14)
movl %r15d, -0x4(%r14)
movl %r13d, (%r14)
movl $0x0, %ecx
cmovbl %r15d, %ecx
addl %ecx, %esi
subl %r15d, %r12d
addl %r15d, %edi
movl (%rdx), %ecx
shrl %ecx
shlq $0x6, %rcx
movl (%r9,%rcx), %r15d
addq $0x1c, %r14
incl %r11d
incl %r8d
addq $0x14, %rdx
movl $0x0, %ecx
cmpl %r15d, %r12d
jg 0x23704
jmp 0x2375c
movl %ecx, %ebp
movslq %r11d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
movq 0x80(%rsp), %r14
movl %r8d, (%r14,%rcx)
movl %ebp, 0x4(%r14,%rcx)
movl %esi, 0x8(%r14,%rcx)
movl %edi, 0xc(%r14,%rcx)
movl %r12d, 0x10(%r14,%rcx)
movl %r13d, 0x14(%r14,%rcx)
leal -0x7(%r13), %eax
cmpl $0x1, %eax
ja 0x237a0
addl %r12d, %ebp
addl %r12d, %esi
jmp 0x237b7
cmpl $0x2, %r13d
je 0x237b4
cmpl $0x1, %r13d
jne 0x237ba
addl %esi, %r12d
movl %r12d, %esi
jmp 0x237ba
addl %r12d, %ebp
addl %r12d, %edi
movq 0xa0(%rsp), %r15
movq 0x18(%rsp), %rdx
movq 0x90(%rsp), %r9
incl %r11d
incq %r9
movslq (%rdx), %rax
movl %ebp, %ecx
cmpq %rax, %r9
jl 0x23687
jmp 0x237e7
xorl %edi, %edi
movq 0xb0(%rsp), %rax
cmpl 0x1c(%rax), %esi
jne 0x2481c
movl 0x28(%rax), %eax
subl 0x58(%rsp), %eax
cmpl %eax, %edi
jne 0x2481c
testl %ebx, %ebx
movl $0x0, %edi
movq 0x70(%rsp), %r12
movq 0x28(%rsp), %rsi
jle 0x23851
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rsi, %rax
xorl %ecx, %ecx
movl 0x10(%r14,%rcx), %edx
movl %edx, %r8d
negl %r8d
cmpl $0xa, %edx
cmovll %edi, %r8d
cmpl $0x7, 0x14(%r14,%rcx)
cmovnel %edx, %r8d
movl %r8d, 0x18(%r14,%rcx)
addq $0x1c, %rcx
cmpq %rcx, %rax
jne 0x23827
movl $0x4, %edx
movq 0x10(%rsp), %rdi
callq 0x3054
movq 0x28(%rsp), %rsi
movq %rax, %r9
testl %ebx, %ebx
jle 0x23884
leaq 0x18(%r14), %rax
xorl %ecx, %ecx
movl (%rax), %edx
movl %edx, (%r9,%rcx,4)
incq %rcx
addq $0x1c, %rax
cmpq %rcx, %rsi
jne 0x23872
movq 0x60(%rsp), %rax
movl 0x18(%rax), %ecx
leal (%rcx,%rcx), %r8d
xorl %edi, %edi
movl %ebx, %esi
movq %r9, 0x128(%rsp)
movq %r9, %rdx
leaq 0xac(%rsp), %r9
callq 0x3878
movq %rax, %r13
movslq 0xac(%rsp), %rax
cmpq $0x2, %rax
movsd 0x679d(%rip), %xmm2     # 0x2a060
jl 0x239a3
leaq 0x34(%r14), %rcx
xorl %esi, %esi
movl $0x1, %edx
movslq %esi, %rdi
leaq (%rdi,%rdi,2), %r9
leaq (%rdx,%rdx,2), %rdi
movslq 0x4(%r13,%r9,4), %r10
movl (%r13,%rdi,4), %ebx
leal 0x1(%r10), %r11d
movl $0x0, %r8d
cmpl %ebx, %r11d
jge 0x2391e
movl %r10d, %r11d
notl %r11d
addl %ebx, %r11d
leaq (%r10,%r10,8), %r8
leaq (%r8,%r8,2), %r8
addq %rcx, %r10
addq %r8, %r10
xorl %r8d, %r8d
addl (%r10), %r8d
addq $0x1c, %r10
decl %r11d
jne 0x23912
movl %r8d, %r10d
negl %r10d
xorps %xmm0, %xmm0
cvtsi2sd %r10d, %xmm0
leaq (,%r9,4), %r9
addq %r13, %r9
movl 0x8(%r9), %r10d
xorps %xmm1, %xmm1
cvtsi2sd %r10d, %xmm1
mulsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x23993
leaq (,%rdi,4), %rdi
addq %r13, %rdi
movl 0x8(%rdi), %r11d
xorps %xmm1, %xmm1
cvtsi2sd %r11d, %xmm1
mulsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
movl %edx, %ebx
jbe 0x23995
movl 0x4(%rdi), %ebx
movl %ebx, 0x4(%r9)
addl %r8d, %r10d
addl %r11d, %r10d
movl %r10d, 0x8(%r9)
movl 0x4(%rdi), %r8d
movl %r8d, (%rdi)
movl $0x0, 0x8(%rdi)
movl %esi, %ebx
jmp 0x23995
movl %edx, %ebx
incq %rdx
movl %ebx, %esi
cmpq %rax, %rdx
jne 0x238d4
cmpl $0x0, 0xac(%rsp)
jle 0x24576
xorl %ebp, %ebp
movq 0x8(%rsp), %r9
movq %r13, 0x28(%rsp)
leaq (,%rbp,2), %rcx
addq %rbp, %rcx
movslq (%r13,%rcx,4), %rax
movslq 0x4(%r13,%rcx,4), %rbx
cmpl %ebx, %eax
je 0x23be7
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %r13
addq %rax, %r13
cmpl $0x7, 0x14(%r14,%r13)
je 0x24762
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rax
addq %r14, %rbx
addq %rax, %rbx
cmpl $0x7, -0x8(%rbx)
je 0x24762
addq %r14, %r13
movl (%r13), %r14d
movslq %r14d, %rdx
movl -0x1c(%rbx), %eax
movl %eax, 0x18(%rsp)
cltq
movq 0xd8(%rsp), %rcx
movl %ecx, 0x4c(%rsp)
movq 0x20(%r9), %rcx
leaq (%rdx,%rdx,4), %rdi
movl 0x8(%rcx,%rdi,4), %r10d
movl %r10d, 0x34(%rsp)
leaq (%rax,%rax,4), %rdx
movl 0x8(%rcx,%rdx,4), %edx
movl %edx, 0x38(%rsp)
movl 0x4(%r13), %r8d
movl %r8d, 0x3c(%rsp)
xorl %r9d, %r9d
cmpl $0x1, -0x8(%rbx)
movl $0x0, %esi
je 0x23a60
movl -0xc(%rbx), %esi
addl -0x18(%rbx), %esi
movl %esi, 0x40(%rsp)
movl 0x8(%r13), %r11d
movl %r11d, 0x44(%rsp)
movl -0x14(%rbx), %r11d
cmpl $0x2, -0x8(%rbx)
je 0x23a7e
movl -0xc(%rbx), %r9d
addl %r11d, %r9d
movl %r9d, 0x48(%rsp)
movq 0x10(%r15), %r9
shrl %r10d
shlq $0x6, %r10
cmpl (%r9,%r10), %r8d
jg 0x247a0
shrl %edx
shlq $0x6, %rdx
cmpl (%r9,%rdx), %esi
jg 0x24781
testl %r8d, %r8d
jne 0x23adb
movq 0xf8(%rsp), %r8
cmpl 0x8(%r8), %r14d
jle 0x247fd
decl %r14d
movl -0xc(%rcx,%rdi,4), %edi
movl %edi, 0x34(%rsp)
shrl %edi
shlq $0x6, %rdi
movl (%r9,%rdi), %edi
movl %edi, 0x3c(%rsp)
addq %rdx, %r9
cmpl (%r9), %esi
jne 0x23b14
incq %rax
movq 0xf8(%rsp), %rsi
movl 0xc(%rsi), %edx
addl 0x8(%rsi), %edx
cmpl %edx, %eax
jge 0x247de
leaq (%rax,%rax,4), %rdx
movl 0x8(%rcx,%rdx,4), %ecx
movl %ecx, 0x38(%rsp)
movl $0x0, 0x40(%rsp)
movl %eax, 0x18(%rsp)
movl %r14d, 0xb0(%rsp)
movq %rbp, 0x90(%rsp)
movl -0x10(%rbx), %eax
xorl %edx, %edx
cmpl $0x1, -0x8(%rbx)
je 0x23b32
movl -0xc(%rbx), %edx
addl %eax, %edx
movl 0xc(%r13), %r14d
movq 0x60(%rsp), %rax
movl 0x20(%rax), %esi
movq 0x10(%r12), %rcx
movq %r15, %rbp
movq %r15, %rdi
movq %rdx, %r15
leaq 0x34(%rsp), %rdx
callq 0x9a9f
addl %r14d, %eax
subl %eax, %r15d
movl 0x44(%rsp), %ecx
movl 0x48(%rsp), %r8d
movl %r8d, %eax
subl %ecx, %eax
cmpl %eax, %r15d
movl %eax, %edx
movq %r15, 0x78(%rsp)
cmovgl %r15d, %edx
cmpl %edx, %ecx
jle 0x23bc0
movq %r12, %rdi
movl (%r12), %esi
subl %edx, %esi
cmpl %esi, %r8d
movq 0x8(%rsp), %r9
movq 0x80(%rsp), %r14
movq %rbp, %r15
jge 0x23bd7
movq 0x60(%rsp), %rdx
movl 0x18(%rdx), %edx
cmpl %edx, %eax
movq 0x90(%rsp), %rbp
jge 0x23c00
cmpl %edx, 0x78(%rsp)
jge 0x23c00
movq 0x28(%rsp), %r13
movq %rdi, %r12
jmp 0x23be7
movq 0x8(%rsp), %r9
movq 0x80(%rsp), %r14
movq 0x28(%rsp), %r13
movq %rbp, %r15
jmp 0x23bdf
movq 0x28(%rsp), %r13
movq %rdi, %r12
movq 0x90(%rsp), %rbp
incq %rbp
movslq 0xac(%rsp), %rax
cmpq %rax, %rbp
jl 0x239bd
jmp 0x24576
movl %ecx, %eax
cmpl %ecx, %r8d
movq %rdi, %r12
jle 0x23c2e
movslq %ecx, %rdx
addq 0x10(%r12), %rdx
movl %ecx, %eax
movb (%rdx), %sil
andb $-0x21, %sil
cmpb $0x4e, %sil
je 0x23c2e
incl %eax
incq %rdx
cmpl %eax, %r8d
jne 0x23c14
movl %r8d, %eax
cmpl %r8d, %eax
jne 0x242fa
movq 0x110(%rsp), %rax
movq 0xd8(%rsp), %rdx
movl 0x4(%rax,%rdx,4), %esi
movslq (%rax,%rdx,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0x100(%rsp), %rdx
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
leaq 0xe8(%rsp), %r9
leaq 0xcc(%rsp), %rax
pushq %rax
callq 0x3fb0
addq $0x10, %rsp
cmpl $0x1, %eax
je 0x23ccf
testl %eax, %eax
movq 0x8(%rsp), %r9
movq 0x28(%rsp), %r13
jne 0x23be7
movq 0xe35a(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
movq 0x8(%r12), %rcx
movl 0x44(%rsp), %r8d
movl 0x48(%rsp), %r9d
leaq 0x65f1(%rip), %rsi      # 0x2a2a8
leaq 0x67af(%rip), %rdx      # 0x2a46d
xorl %eax, %eax
callq 0x2210
movq 0x8(%rsp), %r9
jmp 0x23be7
movl (%r13), %edi
movl -0x1c(%rbx), %ecx
cmpl %ecx, %edi
movq 0x8(%rsp), %r9
jg 0x23e39
movslq %edi, %rdi
movq 0x118(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x148(%rsp)
leaq (%rdi,%rdi,4), %rax
leaq 0x8(,%rax,4), %rsi
xorl %edx, %edx
cmpl (%r13), %edi
jne 0x23d1e
movl 0x4(%r13), %edx
movq 0x20(%r9), %rax
movq %rsi, 0xd0(%rsp)
movl (%rax,%rsi), %r8d
movq 0x10(%r15), %rsi
movl %r8d, %eax
shrl %eax
movq %rax, %r9
shlq $0x6, %r9
movq %r9, 0x138(%rsp)
movl (%rsi,%r9), %r12d
movl %r12d, %esi
cmpl %ecx, %edi
jne 0x23d5f
xorl %esi, %esi
cmpl $0x1, -0x8(%rbx)
je 0x23d5c
movl -0xc(%rbx), %esi
addl -0x18(%rbx), %esi
movl %r12d, %r14d
subl %esi, %r14d
subl %edx, %r12d
andq $0x1, %r8
cmovel %esi, %r12d
cmovel %edx, %r14d
cmpl %r12d, %r14d
movq %rdi, 0x58(%rsp)
movq %r8, 0x140(%rsp)
jne 0x23d96
testl %r14d, %r14d
je 0x23d90
decl %r14d
jmp 0x23d96
incl %r12d
xorl %r14d, %r14d
movl %eax, %ecx
movq 0xc8(%rsp), %rdx
movl 0x4(%rdx,%rcx,4), %esi
movslq (%rdx,%rax,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0x148(%rsp), %rdx
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movl %r14d, %ecx
movl %r12d, %r8d
leaq 0xe8(%rsp), %r9
leaq 0xcc(%rsp), %rax
pushq %rax
callq 0x3fb0
addq $0x10, %rsp
cmpl $0x1, %eax
jne 0x23e18
movq 0x58(%rsp), %rdx
leaq 0x1(%rdx), %rax
movslq -0x1c(%rbx), %rcx
movq 0xd0(%rsp), %rsi
addq $0x14, %rsi
cmpq %rcx, %rdx
movq %rax, %rdi
movq 0x8(%rsp), %r9
movq 0x80(%rsp), %r14
jl 0x23d12
jmp 0x23e32
testl %eax, %eax
movq 0x8(%rsp), %r9
movq 0x58(%rsp), %rax
je 0x2448e
movq 0x80(%rsp), %r14
movl %eax, %edi
movq 0x70(%rsp), %r12
cmpl -0x1c(%rbx), %edi
movq 0x28(%rsp), %r13
movq 0x78(%rsp), %rdx
jle 0x23be7
movl 0x48(%rsp), %esi
subl 0x44(%rsp), %esi
movl %edx, %ecx
subl %esi, %ecx
movq 0x60(%rsp), %rax
movl 0x18(%rax), %eax
xorl %ebx, %ebx
cmpl %eax, %ecx
jge 0x24049
movl %esi, %ecx
subl %edx, %ecx
cmpl %eax, %ecx
jge 0x24049
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl %esi, %r14d
movq %r15, %rsi
movq %r9, %rdx
movl 0xb0(%rsp), %ecx
movl 0x18(%rsp), %r8d
leaq 0x3c(%rsp), %r9
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
callq 0x24e25
addq $0x10, %rsp
movl %eax, %r12d
movq 0x98(%rsp), %rdx
movslq 0x44(%rsp), %r8
movq 0x70(%rsp), %rax
addq 0x10(%rax), %r8
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %ecx
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x4267
addq $0x10, %rsp
testl %eax, %eax
jle 0x23f55
movl 0x24(%rsp), %eax
cvtsi2ss %eax, %xmm1
movl 0x20(%rsp), %ecx
cvtsi2ss %ecx, %xmm2
movq 0x60(%rsp), %rdx
movss 0x2c(%rdx), %xmm0
mulss %xmm0, %xmm2
xorl %ebx, %ebx
ucomiss %xmm2, %xmm1
movl $0x0, %r14d
movq 0x8(%rsp), %r9
ja 0x24038
subl %eax, %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
movq 0x60(%rsp), %rax
xorps %xmm2, %xmm2
cvtsi2ssl 0x18(%rax), %xmm2
mulss %xmm2, %xmm0
xorl %ebx, %ebx
ucomiss %xmm1, %xmm0
jbe 0x24035
xorl %r14d, %r14d
jmp 0x24038
movl %r14d, %ecx
movb $0x1, %r14b
xorl %ebx, %ebx
movq 0x60(%rsp), %rax
testb $0x4, (%rax)
leaq 0xe294(%rip), %r10      # 0x32200
jne 0x2402e
movq 0x98(%rsp), %rax
movl %r12d, %r11d
sarl %r11d
testl %r11d, %r11d
jle 0x23fb6
movl %r11d, %edx
leal -0x1(%r12), %esi
xorl %edi, %edi
movslq %esi, %rsi
movsbq (%rax,%rsi), %r8
movzbl (%rax,%rdi), %r9d
movb (%r10,%r9), %r9b
movb %r9b, (%rax,%rsi)
movb (%r10,%r8), %r8b
movb %r8b, (%rax,%rdi)
incq %rdi
decl %esi
cmpq %rdi, %rdx
jne 0x23f8f
testb $0x1, %r12b
je 0x23fca
movslq %r11d, %rsi
movzbl (%rax,%rsi), %edx
movb (%r10,%rdx), %dl
movb %dl, (%rax,%rsi)
movq 0x98(%rsp), %rdx
movslq 0x44(%rsp), %r8
movq 0x70(%rsp), %rax
addq 0x10(%rax), %r8
movq 0x10(%rsp), %rdi
movl %r12d, %esi
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x4267
addq $0x10, %rsp
testl %eax, %eax
jle 0x2402e
cvtsi2ssl 0x24(%rsp), %xmm0
cvtsi2ssl 0x20(%rsp), %xmm1
movq 0x60(%rsp), %rax
mulss 0x30(%rax), %xmm1
ucomiss %xmm1, %xmm0
movq 0x8(%rsp), %r9
jbe 0x24038
movl $0x1, %ebx
jmp 0x24038
movq 0x8(%rsp), %r9
jmp 0x24038
movb $0x1, %r14b
testb %r14b, %r14b
movq 0x80(%rsp), %r14
je 0x242ab
leaq 0xe628(%rip), %rax      # 0x32678
testb $0x10, (%rax)
movq 0x10(%rsp), %rdi
jne 0x24304
movq 0x50(%rsp), %rdx
movslq %edx, %r13
testl %ebx, %ebx
je 0x2413b
movl 0x4c(%rsp), %r8d
movl 0x44(%rsp), %r9d
movl 0x34(%rsp), %r12d
movl 0x38(%rsp), %r10d
movl 0x3c(%rsp), %ebx
movq 0x10(%r15), %rax
movl %r10d, %ecx
shrl %ecx
shlq $0x6, %rcx
movl (%rax,%rcx), %r14d
movl 0x40(%rsp), %r11d
movl 0x48(%rsp), %esi
movl %r12d, %ecx
shrl %ecx
shlq $0x6, %rcx
movl (%rax,%rcx), %eax
movl 0x6c(%rsp), %edi
cmpl %edi, %edx
movl %esi, 0x18(%rsp)
movl %ebx, 0x78(%rsp)
movl %eax, 0xb0(%rsp)
jne 0x2418b
movl %edi, %r15d
sarl %r15d
addl %edi, %r15d
cmpl $0x4, %edi
movl $0x10, %eax
cmovll %eax, %r15d
movslq %r15d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x10(%rsp), %rdi
movq 0x88(%rsp), %rsi
movl %r8d, 0xd0(%rsp)
movq %r13, 0x58(%rsp)
movl %r10d, %r13d
movl %r11d, %ebx
movl %r9d, 0xc8(%rsp)
callq 0x32c4
movl 0xc8(%rsp), %r9d
movl %ebx, %r11d
movl 0x78(%rsp), %ebx
movl %r13d, %r10d
movq 0x58(%rsp), %r13
movl 0xd0(%rsp), %r8d
movl %r15d, %edi
jmp 0x24193
movl 0x6c(%rsp), %eax
cmpl %eax, %edx
jne 0x242b5
movl %eax, %ebx
sarl %ebx
addl %eax, %ebx
cmpl $0x4, %eax
movl $0x10, %eax
cmovll %eax, %ebx
movslq %ebx, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x10(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0x32c4
movq 0x8(%rsp), %r9
movq 0x50(%rsp), %rdx
movl %ebx, 0x6c(%rsp)
jmp 0x242bd
movq 0x88(%rsp), %rax
movl %r10d, %edx
xorl $0x1, %edx
subl %r11d, %r14d
movq 0x50(%rsp), %rcx
leal 0x1(%rcx), %r15d
leaq (,%r13,8), %rcx
addq %r13, %rcx
leaq (%rcx,%rcx,2), %rcx
addq %r13, %rcx
movl %r12d, (%rax,%rcx)
movl %edx, 0x4(%rax,%rcx)
movl %ebx, 0x8(%rax,%rcx)
movl %r14d, 0xc(%rax,%rcx)
movl %r9d, 0x10(%rax,%rcx)
movl %r9d, 0x14(%rax,%rcx)
movl %r8d, 0x18(%rax,%rcx)
cmpl %edi, %r15d
movq %rax, %rdx
jne 0x24233
movl %edi, %r14d
sarl %r14d
addl %edi, %r14d
cmpl $0x4, %edi
movl $0x10, %eax
cmovll %eax, %r14d
movslq %r14d, %rax
movq %rdx, %rsi
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x10(%rsp), %rdi
movl %r8d, %ebx
movl %r10d, %r13d
movl %r11d, 0x58(%rsp)
callq 0x32c4
movl 0x58(%rsp), %r11d
movl %r13d, %r10d
movl %ebx, %r8d
movl 0x78(%rsp), %ebx
movq %rax, %rdx
movl %r14d, 0x6c(%rsp)
jmp 0x24237
movl %edi, 0x6c(%rsp)
movq 0x8(%rsp), %r9
movq 0x80(%rsp), %r14
movq 0x28(%rsp), %r13
movl 0x18(%rsp), %esi
xorl $0x1, %r12d
movl 0xb0(%rsp), %edi
subl %ebx, %edi
movq 0x50(%rsp), %rax
addl $0x2, %eax
movq %rax, 0x50(%rsp)
movslq %r15d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
movl %r12d, (%rdx,%rcx)
movl %r10d, 0x4(%rdx,%rcx)
movl %edi, 0x8(%rdx,%rcx)
movl %r11d, 0xc(%rdx,%rcx)
movl %esi, 0x10(%rdx,%rcx)
movl %esi, 0x14(%rdx,%rcx)
movq %rdx, 0x88(%rsp)
movl %r8d, 0x18(%rdx,%rcx)
incl 0xa8(%rsp)
movq 0xa0(%rsp), %r15
movq 0x70(%rsp), %r12
jmp 0x23be7
movq 0x88(%rsp), %rax
movq 0x70(%rsp), %r12
incl %edx
movq %rdx, 0x50(%rsp)
leaq (,%r13,8), %rcx
addq %r13, %rcx
leaq (%rcx,%rcx,2), %rdx
addq %r13, %rdx
movupd 0x34(%rsp), %xmm0
movupd 0x40(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movq %rax, 0x88(%rsp)
movupd %xmm0, (%rax,%rdx)
movq 0x28(%rsp), %r13
jmp 0x23be7
movslq 0x48(%rsp), %rcx
movslq 0x44(%rsp), %rax
subq %rax, %rcx
movq %rcx, 0x58(%rsp)
movq %r15, %rsi
movq %r9, %rdx
movl 0xb0(%rsp), %ecx
movl 0x18(%rsp), %r8d
leaq 0x3c(%rsp), %r9
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0xa0(%rsp), %rax
pushq %rax
callq 0x24e25
addq $0x10, %rsp
movl %eax, 0x18(%rsp)
movq 0xdca5(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
movl 0x34(%rsp), %eax
movl 0x38(%rsp), %r10d
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x433f(%rip), %rsi      # 0x286aa
movsbl (%rcx,%rsi), %edx
movq 0x10(%r15), %r11
shrl %eax
shlq $0x6, %rax
movq 0x18(%r11,%rax), %rcx
movl 0x3c(%rsp), %r8d
movl %r10d, %eax
andl $0x1, %eax
movsbl (%rax,%rsi), %r9d
shrl %r10d
shlq $0x6, %r10
movl 0x40(%rsp), %r15d
movl 0x44(%rsp), %r12d
movl 0x48(%rsp), %r14d
movl %r14d, %r13d
subl %r12d, %r13d
leaq 0x5f63(%rip), %rsi      # 0x2a314
xorl %eax, %eax
pushq %rbx
pushq %r13
pushq %r14
pushq %r12
movq 0x90(%rsp), %r14
pushq 0x8(%r14)
pushq 0xa0(%rsp)
pushq %r15
pushq 0x18(%r11,%r10)
callq 0x2210
addq $0x40, %rsp
movq 0xdc14(%rip), %r15      # 0x31ff8
movq (%r15), %rdi
movq 0x98(%rsp), %rdx
leaq 0x5f50(%rip), %rsi      # 0x2a346
xorl %eax, %eax
callq 0x2210
movslq 0x44(%rsp), %rdi
addq 0x10(%r14), %rdi
movq (%r15), %rcx
movl $0x1, %esi
movq 0x58(%rsp), %r15
movq %r15, %rdx
callq 0x2340
movq 0x78(%rsp), %rdx
movl %edx, %esi
subl %r15d, %esi
movq 0x60(%rsp), %rax
movl 0x18(%rax), %eax
cmpl %eax, %esi
jge 0x2450e
movl %r15d, %esi
subl %edx, %esi
cmpl %eax, %esi
jge 0x2450e
movq 0x98(%rsp), %rdx
movslq 0x44(%rsp), %r8
addq 0x10(%r14), %r8
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %r14d
movl %r14d, %esi
movl %r15d, %ecx
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x20(%rsp), %rax
pushq %rax
leaq 0x2c(%rsp), %rax
pushq %rax
callq 0x4267
movq 0x88(%rsp), %rdx
addq $0x10, %rsp
movl %eax, %r8d
jmp 0x2452d
movq 0xdb63(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
leaq 0x420b(%rip), %rax      # 0x286aa
movq 0x140(%rsp), %rcx
movsbl (%rcx,%rax), %ecx
movq 0x10(%r15), %rax
movq 0x138(%rsp), %rdx
movq 0x18(%rax,%rdx), %r8
movl 0x44(%rsp), %r10d
movl 0x48(%rsp), %r11d
leaq 0x5fb2(%rip), %rsi      # 0x2a47f
leaq 0x5f99(%rip), %rdx      # 0x2a46d
movl %r14d, %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
movq 0x80(%rsp), %r10
pushq 0x8(%r10)
pushq %r12
movq %r10, %r12
callq 0x2210
movq 0x78(%rsp), %rdi
movq 0x28(%rsp), %r9
addq $0x20, %rsp
movq 0x80(%rsp), %r14
jmp 0x23e39
movl $0x0, 0x24(%rsp)
cmpl %r15d, %edx
cmovgl %edx, %r15d
movl %r15d, 0x20(%rsp)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl 0x18(%rsp), %r14d
movq 0xdac4(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
movl 0x24(%rsp), %r9d
movl 0x20(%rsp), %r10d
subq $0x8, %rsp
leaq 0x5e04(%rip), %rsi      # 0x2a350
movl %r14d, %ecx
xorl %eax, %eax
pushq %r10
callq 0x2210
addq $0x10, %rsp
movq 0xa0(%rsp), %r15
movq 0x8(%rsp), %r9
movq 0x80(%rsp), %r14
jmp 0x2405e
xorl %edi, %edi
movq %r13, %rsi
callq 0x30f6
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x30f6
movq %rbx, %rdi
movq 0x128(%rsp), %rsi
callq 0x30f6
movq 0x8(%rsp), %rdi
movl 0xbc(%rsp), %ebp
movq 0x60(%rsp), %rdx
movq 0xd8(%rsp), %rsi
movq 0x130(%rsp), %r8
incq %r8
movslq 0x8(%rdi), %rax
cmpq %rax, %r8
jl 0x234f3
incq %rsi
cmpq 0xf0(%rsp), %rsi
jne 0x234b8
jmp 0x24604
movq $0x0, 0x88(%rsp)
movl $0x0, 0xa8(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x98(%rsp), %rsi
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x30f6
movq 0xe0(%rsp), %rsi
movq %r15, %rdi
callq 0x30f6
movq 0x118(%rsp), %rsi
movq %r15, %rdi
callq 0x30f6
movq 0x110(%rsp), %rsi
movq %r15, %rdi
callq 0x30f6
movq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x30f6
movq 0x100(%rsp), %rsi
movq %r15, %rdi
callq 0x30f6
cmpl $0x0, 0x50(%rsp)
jle 0x24731
movslq %ebp, %r14
shlq $0x3, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x31c1
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x31c1
movq %rax, %r14
testl %ebp, %ebp
movq 0xe8(%rsp), %rdx
movq 0xf0(%rsp), %rsi
jle 0x246cc
addq $0x10, %rdx
xorl %eax, %eax
movq -0x8(%rdx), %rcx
movq %rcx, (%rbx,%rax,8)
movq (%rdx), %rcx
movq %rcx, (%r14,%rax,8)
incq %rax
addq $0x28, %rdx
cmpq %rax, %rsi
jne 0x246b1
movq 0xa0(%rsp), %r15
movq %r15, %rdi
movq 0x50(%rsp), %rsi
movq 0x88(%rsp), %r12
movq %r12, %rdx
callq 0x9d0c
movq %r15, %rdi
movq %rax, 0x50(%rsp)
movl %eax, %esi
movq %r12, %rdx
movl 0xbc(%rsp), %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x8f07
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x30f6
movq %r15, %rdi
movq %rbx, %rsi
callq 0x30f6
movq %r15, %rdi
movq %r14, %rsi
callq 0x30f6
leaq 0xdcc8(%rip), %rax      # 0x32400
cmpl $0x3, (%rax)
jge 0x2474f
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x50(%rsp), %rdi
movl 0xa8(%rsp), %esi
callq 0x29f6
jmp 0x2473d
leaq 0x5cbc(%rip), %rdi      # 0x2a425
leaq 0x592c(%rip), %rsi      # 0x2a09c
leaq 0x5c3e(%rip), %rcx      # 0x2a3b5
movl $0x1b6, %edx            # imm = 0x1B6
callq 0x2160
leaq 0x5aa5(%rip), %rdi      # 0x2a22d
leaq 0x590d(%rip), %rsi      # 0x2a09c
leaq 0x5c1f(%rip), %rcx      # 0x2a3b5
movl $0x1c1, %edx            # imm = 0x1C1
callq 0x2160
leaq 0x5a63(%rip), %rdi      # 0x2a20a
leaq 0x58ee(%rip), %rsi      # 0x2a09c
leaq 0x5c00(%rip), %rcx      # 0x2a3b5
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2160
leaq 0x5d41(%rip), %rdi      # 0x2a507
leaq 0x58cf(%rip), %rsi      # 0x2a09c
leaq 0x5cef(%rip), %rcx      # 0x2a4c3
movl $0x146, %edx            # imm = 0x146
callq 0x2160
leaq 0x5c6d(%rip), %rdi      # 0x2a452
leaq 0x58b0(%rip), %rsi      # 0x2a09c
leaq 0x5bc2(%rip), %rcx      # 0x2a3b5
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x2160
leaq 0x5c3c(%rip), %rdi      # 0x2a440
leaq 0x5891(%rip), %rsi      # 0x2a09c
leaq 0x5ba3(%rip), %rcx      # 0x2a3b5
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x2160
leaq 0x5d5b(%rip), %rdi      # 0x2a57e
leaq 0x5872(%rip), %rsi      # 0x2a09c
leaq 0x5cff(%rip), %rcx      # 0x2a530
movl $0x169, %edx            # imm = 0x169
callq 0x2160
leaq 0x5c7b(%rip), %rdi      # 0x2a4bd
leaq 0x5853(%rip), %rsi      # 0x2a09c
leaq 0x5c73(%rip), %rcx      # 0x2a4c3
movl $0x143, %edx            # imm = 0x143
callq 0x2160
leaq 0x5c5c(%rip), %rdi      # 0x2a4bd
leaq 0x5834(%rip), %rsi      # 0x2a09c
leaq 0x5cc1(%rip), %rcx      # 0x2a530
movl $0x158, %edx            # imm = 0x158
callq 0x2160
leaq 0x5234(%rip), %rdi      # 0x29ab4
leaq 0x5815(%rip), %rsi      # 0x2a09c
leaq 0x5b27(%rip), %rcx      # 0x2a3b5
movl $0x1a1, %edx            # imm = 0x1A1
callq 0x2160