// File: /workspace/github_c_makefile_star2_O3/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 $0x148, %rsp            # imm = 0x148
movq %r9, %r14
movq %r8, 0xd8(%rsp)
movl %ecx, %ebp
movq %rdx, %r8
movq %rsi, %rax
movq %rdi, %r15
movl $0x0, 0xbc(%rsp)
movq $0x0, 0xd0(%rsp)
movl 0xc(%rsi), %esi
movq %rax, 0x58(%rsp)
movl 0x14(%rax), %ecx
leaq 0xf0(%rsp), %rax
leaq 0xf8(%rsp), %rdx
leaq 0x100(%rsp), %r10
leaq 0x108(%rsp), %r11
leaq 0x140(%rsp), %rbx
movq %r8, 0x60(%rsp)
movl %ebp, %r9d
pushq %rax
pushq %rdx
pushq %r10
pushq %r11
pushq %rbx
movq %r14, 0x138(%rsp)
pushq %r14
callq 0x21984
addq $0x30, %rsp
testl %eax, %eax
je 0x245de
movl $0x0, 0xb8(%rsp)
movq $0x0, 0x90(%rsp)
movl %ebp, %esi
testl %ebp, %ebp
movl %ebp, 0xb4(%rsp)
movq %rsi, 0xe0(%rsp)
movq %r15, 0x28(%rsp)
jle 0x24497
xorl %ecx, %ecx
movq $0x0, 0x78(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x98(%rsp)
movq $0x0, 0x70(%rsp)
movq 0x110(%rsp), %rax
movq (%rax,%rcx,8), %rdx
movq %rcx, %rax
movq %rdx, 0x68(%rsp)
movl 0x8(%rdx), %ecx
testl %ecx, %ecx
movq %rax, 0xc8(%rsp)
jle 0x24474
leaq (%rax,%rax,4), %rax
movq 0xd8(%rsp), %rdx
leaq (%rdx,%rax,8), %r12
xorl %r8d, %r8d
movq %r12, 0xa0(%rsp)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %r9
imulq $0x68, %r8, %r12
movl (%r9,%r12), %eax
cmpl 0x4(%r9,%r12), %eax
jne 0x24465
addq %r12, %r9
movq 0x48(%r9), %rax
testq %rax, %rax
je 0x24465
movl 0x2c(%r9), %edx
movq 0x58(%rsp), %rdi
cmpl 0x10(%rdi), %edx
jl 0x24465
movzbl 0x44(%r9), %edx
cmpl 0xc(%rdi), %edx
jl 0x24465
cmpl $0x0, 0xc(%r9)
jle 0x246f9
movq %r8, 0x120(%rsp)
movslq (%rax), %rcx
testq %rcx, %rcx
movq %r9, 0xe8(%rsp)
jle 0x23566
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
jb 0x234e8
cmpl $0x1, %r9d
je 0x23550
cmpl $0x2, %r9d
jne 0x2465e
shrq $0x4, %rdi
movq 0x60(%rsp), %r9
movq 0x10(%r9), %r9
movq 0x68(%rsp), %r10
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 0x2354c
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 0x23526
jmp 0x23553
movl %ebp, %edi
jmp 0x23553
movl %r8d, %edi
incl %ebx
incq %rsi
movl %edi, %r8d
cmpq %rcx, %rsi
jne 0x234c2
jmp 0x23568
xorl %ebx, %ebx
movslq %ebx, %rsi
movl $0x1c, %edx
movq %r15, %rdi
movq %rsi, 0x80(%rsp)
callq 0x2f84
movq %rax, %r14
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x48(%rax,%r12), %rdx
testq %rdx, %rdx
je 0x246da
addq %r12, %rax
movl 0x18(%rax), %esi
movl 0x24(%rax), %ecx
cmpl $0x0, (%rdx)
movq %r14, 0x88(%rsp)
movq %rax, 0x20(%rsp)
movl %ecx, 0xa8(%rsp)
jle 0x23736
movl 0x8(%rax), %r8d
leaq 0x14(%r14), %rax
movq %rax, 0x50(%rsp)
xorl %r9d, %r9d
xorl %r11d, %r11d
movl %ecx, %r15d
xorl %edi, %edi
movq %rdx, (%rsp)
movq %r9, 0x8(%rsp)
movq 0x18(%rdx,%r9,8), %r12
movl %r12d, %r13d
andl $0xf, %r13d
shrq $0x4, %r12
cmpl $0x8, %r13d
ja 0x236b5
movl $0x184, %eax            # imm = 0x184
btl %r13d, %eax
jae 0x236b5
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x68(%rsp), %rax
movq 0x20(%rax), %rdx
leal (%r15,%r12), %eax
movslq %r8d, %r9
leaq (%r9,%r9,4), %rbp
movl 0x8(%rdx,%rbp,4), %r9d
shrl %r9d
shlq $0x6, %r9
movl (%rcx,%r9), %r14d
cmpl %r14d, %eax
jle 0x236b5
leal -0x7(%r13), %r9d
movslq %r11d, %rax
leaq (%rax,%rax,8), %r10
leaq (%r10,%r10,2), %r10
addq 0x50(%rsp), %rax
addq %r10, %rax
leaq (%rdx,%rbp,4), %rdx
addq $0x1c, %rdx
subl %r15d, %r14d
xorl %ebp, %ebp
cmpl $0x2, %r9d
movl %r8d, -0x14(%rax)
movl %r15d, -0x10(%rax)
movl %esi, -0xc(%rax)
movl %edi, -0x8(%rax)
movl %r14d, -0x4(%rax)
movl %r13d, (%rax)
movl $0x0, %r10d
cmovbl %r14d, %r10d
addl %r10d, %esi
subl %r14d, %r12d
addl %r14d, %edi
movl (%rdx), %r10d
shrl %r10d
shlq $0x6, %r10
movl (%rcx,%r10), %r14d
addq $0x1c, %rax
incl %r11d
incl %r8d
addq $0x14, %rdx
movl $0x0, %r15d
cmpl %r14d, %r12d
jg 0x2365b
jmp 0x236b8
movl %r15d, %ebp
movslq %r11d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
movq 0x88(%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 0x236fc
addl %r12d, %ebp
addl %r12d, %esi
jmp 0x23713
cmpl $0x2, %r13d
je 0x23710
cmpl $0x1, %r13d
jne 0x23716
addl %esi, %r12d
movl %r12d, %esi
jmp 0x23716
addl %r12d, %ebp
addl %r12d, %edi
movq (%rsp), %rdx
movq 0x8(%rsp), %r9
incl %r11d
incq %r9
movslq (%rdx), %rax
movl %ebp, %r15d
cmpq %rax, %r9
jl 0x235dc
jmp 0x23738
xorl %edi, %edi
movq 0x20(%rsp), %rax
cmpl 0x1c(%rax), %esi
movq 0x28(%rsp), %r15
jne 0x246bb
movl 0x28(%rax), %eax
subl 0xa8(%rsp), %eax
cmpl %eax, %edi
jne 0x246bb
testl %ebx, %ebx
movq 0xa0(%rsp), %r12
movq 0x80(%rsp), %rsi
jle 0x237df
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rsi, %rax
xorl %ecx, %ecx
xorl %edi, %edi
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 0x23780
movl $0x4, %edx
movq %r15, %rdi
callq 0x2f84
movq %rax, %rdx
testl %ebx, %ebx
jle 0x237ef
leaq 0x18(%r14), %rax
xorl %ecx, %ecx
movq 0x80(%rsp), %rdi
movl (%rax), %esi
movl %esi, (%rdx,%rcx,4)
incq %rcx
addq $0x1c, %rax
cmpq %rcx, %rdi
jne 0x237cc
jmp 0x237ef
movl $0x4, %edx
movq %r15, %rdi
callq 0x2f84
movq %rax, %rdx
movq 0x58(%rsp), %rax
movl 0x18(%rax), %ecx
leal (%rcx,%rcx), %r8d
xorl %edi, %edi
movl %ebx, %esi
movq %rdx, 0x118(%rsp)
leaq 0x9c(%rsp), %r9
callq 0x3794
movq %rax, %rbp
movslq 0x9c(%rsp), %rax
cmpq $0x2, %rax
movsd 0x68cd(%rip), %xmm2     # 0x2a0f8
jl 0x2390c
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(%rbp,%r9,4), %r10
movl (%rbp,%rdi,4), %ebx
leal 0x1(%r10), %r11d
movl $0x0, %r8d
cmpl %ebx, %r11d
jge 0x23885
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 0x23879
movl %r8d, %r10d
negl %r10d
xorps %xmm0, %xmm0
cvtsi2sd %r10d, %xmm0
leaq (,%r9,4), %r9
addq %rbp, %r9
movl 0x8(%r9), %r10d
xorps %xmm1, %xmm1
cvtsi2sd %r10d, %xmm1
mulsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x238f5
leaq (,%rdi,4), %rdi
addq %rbp, %rdi
movl 0x8(%rdi), %r11d
xorps %xmm1, %xmm1
cvtsi2sd %r11d, %xmm1
mulsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
movl %edx, %ebx
jbe 0x238f7
movl 0x4(%rdi), %ebx
movl %ebx, 0x4(%r9)
addl %r8d, %r10d
addl %r11d, %r10d
movl %r10d, 0x8(%r9)
movl %ebx, (%rdi)
movl $0x0, 0x8(%rdi)
movl %esi, %ebx
jmp 0x238f7
movl %edx, %ebx
incq %rdx
movl %ebx, %esi
cmpq %rax, %rdx
jne 0x2383c
movl 0x9c(%rsp), %eax
testl %eax, %eax
jle 0x24423
xorl %r13d, %r13d
movq %rbp, (%rsp)
leaq (,%r13,2), %rcx
addq %r13, %rcx
movslq (%rbp,%rcx,4), %rax
movslq 0x4(%rbp,%rcx,4), %rbx
cmpl %ebx, %eax
je 0x23b40
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rbp
addq %rax, %rbp
cmpl $0x7, 0x14(%r14,%rbp)
je 0x24601
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rax
addq %r14, %rbx
addq %rax, %rbx
cmpl $0x7, -0x8(%rbx)
je 0x24601
addq %r14, %rbp
movl (%rbp), %r14d
movslq %r14d, %rdx
movl -0x1c(%rbx), %r15d
movslq %r15d, %rax
movq 0xc8(%rsp), %rcx
movl %ecx, 0x4c(%rsp)
movq 0x68(%rsp), %rcx
movq 0x20(%rcx), %rcx
leaq (%rdx,%rdx,4), %rdi
movl 0x8(%rcx,%rdi,4), %r9d
movl %r9d, 0x34(%rsp)
leaq (%rax,%rax,4), %rdx
movl 0x8(%rcx,%rdx,4), %esi
movl %esi, 0x38(%rsp)
movl 0x4(%rbp), %r8d
movl %r8d, 0x3c(%rsp)
xorl %r10d, %r10d
cmpl $0x1, -0x8(%rbx)
movl $0x0, %edx
je 0x239c1
movl -0xc(%rbx), %edx
addl -0x18(%rbx), %edx
movl %edx, 0x40(%rsp)
movl 0x8(%rbp), %r11d
movl %r11d, 0x44(%rsp)
movl -0x14(%rbx), %r11d
cmpl $0x2, -0x8(%rbx)
je 0x239df
movl -0xc(%rbx), %r10d
addl %r11d, %r10d
movl %r10d, 0x48(%rsp)
movq 0x60(%rsp), %r10
movq 0x10(%r10), %r10
shrl %r9d
shlq $0x6, %r9
cmpl (%r10,%r9), %r8d
jg 0x2463f
shrl %esi
shlq $0x6, %rsi
movl (%r10,%rsi), %r9d
cmpl %r9d, %edx
jg 0x24620
testl %r8d, %r8d
jne 0x23a4a
movq 0xe8(%rsp), %r8
cmpl 0x8(%r8), %r14d
jle 0x2469c
addq %r10, %rsi
decl %r14d
movl -0xc(%rcx,%rdi,4), %edi
movl %edi, 0x34(%rsp)
shrl %edi
shlq $0x6, %rdi
movl (%r10,%rdi), %edi
movl %edi, 0x3c(%rsp)
movl (%rsi), %r9d
cmpl %r9d, %edx
jne 0x23a7f
incq %rax
movq 0xe8(%rsp), %rsi
movl 0xc(%rsi), %edx
addl 0x8(%rsi), %edx
cmpl %edx, %eax
jge 0x2467d
leaq (%rax,%rax,4), %rdx
movl 0x8(%rcx,%rdx,4), %ecx
movl %ecx, 0x38(%rsp)
movl $0x0, 0x40(%rsp)
movl %eax, %r15d
movl %r15d, 0x80(%rsp)
movl %r14d, 0x50(%rsp)
movl -0x10(%rbx), %eax
xorl %r15d, %r15d
cmpl $0x1, -0x8(%rbx)
je 0x23a9c
movl -0xc(%rbx), %r15d
addl %eax, %r15d
movl 0xc(%rbp), %r14d
movq 0x58(%rsp), %rax
movl 0x20(%rax), %esi
movq 0x10(%r12), %rcx
movq 0x60(%rsp), %rdi
leaq 0x34(%rsp), %rdx
callq 0x9eaa
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, 0x8(%rsp)
cmovgl %r15d, %edx
cmpl %edx, %ecx
jle 0x23b34
movl (%r12), %esi
subl %edx, %esi
cmpl %esi, %r8d
movq 0x88(%rsp), %r14
jge 0x23b3c
movq 0x58(%rsp), %rdx
movl 0x18(%rdx), %edx
cmpl %edx, %eax
jge 0x23b0a
cmpl %edx, 0x8(%rsp)
jl 0x23b3c
movl %ecx, %eax
cmpl %ecx, %r8d
jle 0x23b59
movslq %ecx, %rdx
addq 0x10(%r12), %rdx
movl %ecx, %eax
movb (%rdx), %sil
andb $-0x21, %sil
cmpb $0x4e, %sil
je 0x23b59
incl %eax
incq %rdx
cmpl %eax, %r8d
jne 0x23b1b
jmp 0x23b5e
movq 0x88(%rsp), %r14
movq (%rsp), %rbp
incq %r13
movslq 0x9c(%rsp), %rax
cmpq %rax, %r13
jl 0x2391b
jmp 0x24423
cmpl %r8d, %eax
jne 0x23b3c
movq 0x100(%rsp), %rax
movq 0xc8(%rsp), %rdx
movl 0x4(%rax,%rdx,4), %esi
movslq (%rax,%rdx,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0xf0(%rsp), %rdx
subq $0x8, %rsp
movq 0x30(%rsp), %rdi
leaq 0xd8(%rsp), %r9
leaq 0xc4(%rsp), %rax
pushq %rax
callq 0x3e98
addq $0x10, %rsp
cmpl $0x1, %eax
je 0x23be7
testl %eax, %eax
movq (%rsp), %rbp
jne 0x23b40
movq 0xe43d(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
movq 0x8(%r12), %rcx
movl 0x44(%rsp), %r8d
movl 0x48(%rsp), %r9d
leaq 0x676c(%rip), %rsi      # 0x2a340
leaq 0x692a(%rip), %rdx      # 0x2a505
xorl %eax, %eax
callq 0x2210
jmp 0x23b40
movl (%rbp), %r8d
movl -0x1c(%rbx), %eax
cmpl %eax, %r8d
jg 0x23d6b
movslq %r8d, %rdx
movq 0x108(%rsp), %rcx
movq %rcx, 0x138(%rsp)
movq 0xf8(%rsp), %rcx
movq %rcx, 0x130(%rsp)
leaq (%rdx,%rdx,4), %rcx
decq %rdx
leaq 0x8(,%rcx,4), %rsi
movq %rdx, 0xa8(%rsp)
xorl %edx, %edx
cmpl (%rbp), %r8d
jne 0x23c3c
movl 0x4(%rbp), %edx
movq 0x68(%rsp), %rcx
movq 0x20(%rcx), %rcx
movq %rsi, 0xc0(%rsp)
movl (%rcx,%rsi), %r15d
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rsi
movl %r15d, %ecx
shrl %ecx
movq %rcx, %rdi
shlq $0x6, %rdi
movq %rdi, 0x128(%rsp)
movl (%rsi,%rdi), %esi
movl %esi, %edi
cmpl %eax, %r8d
jne 0x23c86
xorl %edi, %edi
cmpl $0x1, -0x8(%rbx)
je 0x23c83
movl -0xc(%rbx), %edi
addl -0x18(%rbx), %edi
movl %r8d, 0x20(%rsp)
movl %esi, %eax
subl %edi, %eax
subl %edx, %esi
andq $0x1, %r15
cmovel %edi, %esi
cmovel %edx, %eax
cmpl $0x1, %esi
movl %esi, %r12d
adcl $0x0, %r12d
movl %esi, %r14d
subl $0x1, %r14d
movl $0x0, %edx
cmovbl %edx, %r14d
cmpl %esi, %eax
cmovnel %esi, %r12d
cmovnel %eax, %r14d
movl %ecx, %eax
movq 0x138(%rsp), %rdx
movl 0x4(%rdx,%rax,4), %esi
movslq (%rdx,%rcx,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0x130(%rsp), %rdx
subq $0x8, %rsp
movq 0x30(%rsp), %rdi
movl %r14d, %ecx
movl %r12d, %r8d
leaq 0xd8(%rsp), %r9
leaq 0xc4(%rsp), %rax
pushq %rax
callq 0x3e98
addq $0x10, %rsp
cmpl $0x1, %eax
movq 0xa8(%rsp), %rcx
jne 0x23d4e
movslq -0x1c(%rbx), %rax
incq %rcx
movl 0x20(%rsp), %r8d
incl %r8d
movq 0xc0(%rsp), %rsi
addq $0x14, %rsi
cmpq %rax, %rcx
movq 0xa0(%rsp), %r12
movq 0x88(%rsp), %r14
movq %rcx, %rdx
jl 0x23c29
jmp 0x23d6b
testl %eax, %eax
movl 0x20(%rsp), %r8d
je 0x2435c
movq 0xa0(%rsp), %r12
movq 0x88(%rsp), %r14
cmpl -0x1c(%rbx), %r8d
jle 0x23b3c
movl 0x48(%rsp), %r15d
subl 0x44(%rsp), %r15d
movq 0x8(%rsp), %rdx
movl %edx, %ecx
subl %r15d, %ecx
movq 0x58(%rsp), %rax
movl 0x18(%rax), %eax
xorl %ebx, %ebx
cmpl %eax, %ecx
movq (%rsp), %rbp
jge 0x23f4e
movl %r15d, %ecx
subl %edx, %ecx
cmpl %eax, %ecx
movl 0x50(%rsp), %ecx
jge 0x23f52
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, 0x20(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movl 0x80(%rsp), %r8d
leaq 0x3c(%rsp), %r9
leaq 0xb8(%rsp), %rax
pushq %rax
leaq 0x98(%rsp), %rax
pushq %rax
callq 0x24ca6
addq $0x10, %rsp
movl %eax, %r15d
movq 0x90(%rsp), %rdx
movslq 0x44(%rsp), %r8
addq 0x10(%r12), %r8
movq %rbx, %rdi
movl 0x20(%rsp), %ebx
movl %eax, %esi
movl %ebx, %ecx
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x18(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
callq 0x4157
addq $0x10, %rsp
testl %eax, %eax
jle 0x23e7f
movl 0x1c(%rsp), %eax
cvtsi2ss %eax, %xmm1
movl 0x18(%rsp), %ecx
cvtsi2ss %ecx, %xmm2
movq 0x58(%rsp), %rdx
movss 0x2c(%rdx), %xmm0
mulss %xmm0, %xmm2
ucomiss %xmm2, %xmm1
ja 0x23b40
subl %eax, %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
movq 0x58(%rsp), %rax
xorps %xmm2, %xmm2
cvtsi2ssl 0x18(%rax), %xmm2
mulss %xmm2, %xmm0
xorl %ebx, %ebx
ucomiss %xmm1, %xmm0
ja 0x23b40
jmp 0x23f4e
movl %ebx, %ecx
xorl %ebx, %ebx
movq 0x58(%rsp), %rax
testb $0x4, (%rax)
jne 0x23f4e
movq 0x90(%rsp), %rax
movl %r15d, %r11d
sarl %r11d
testl %r11d, %r11d
leaq 0xe357(%rip), %r10      # 0x32200
jle 0x23edb
movl %r11d, %edx
leal -0x1(%r15), %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 0x23eb4
testb $0x1, %r15b
je 0x23ef5
movslq %r11d, %rdi
movzbl (%rax,%rdi), %edx
leaq 0xe311(%rip), %rsi      # 0x32200
movb (%rsi,%rdx), %dl
movb %dl, (%rax,%rdi)
movq 0x90(%rsp), %rdx
movslq 0x44(%rsp), %r8
addq 0x10(%r12), %r8
movq 0x28(%rsp), %rdi
movl %r15d, %esi
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x18(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
callq 0x4157
addq $0x10, %rsp
testl %eax, %eax
jle 0x23f4e
cvtsi2ssl 0x1c(%rsp), %xmm0
cvtsi2ssl 0x18(%rsp), %xmm1
movq 0x58(%rsp), %rax
mulss 0x30(%rax), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x23f4e
movl $0x1, %ebx
movl 0x50(%rsp), %ecx
leaq 0xe71f(%rip), %rax      # 0x32678
testb $0x10, (%rax)
jne 0x241c6
movq 0x78(%rsp), %rcx
movslq %ecx, %r15
testl %ebx, %ebx
je 0x24040
movl 0x4c(%rsp), %esi
movl 0x44(%rsp), %r8d
movl 0x34(%rsp), %r14d
movl 0x38(%rsp), %edi
movl 0x3c(%rsp), %r10d
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movl %edi, %ecx
shrl %ecx
shlq $0x6, %rcx
movl (%rax,%rcx), %ebp
movl 0x40(%rsp), %r9d
movl 0x48(%rsp), %edx
movl %r14d, %ecx
shrl %ecx
shlq $0x6, %rcx
movl (%rax,%rcx), %eax
movq 0x78(%rsp), %rcx
cmpl 0x14(%rsp), %ecx
movl %edi, 0x8(%rsp)
movl %edx, 0x50(%rsp)
movl %esi, 0x80(%rsp)
movl %eax, 0x20(%rsp)
jne 0x24086
movl %ecx, %ebx
sarl %ebx
addl %ecx, %ebx
cmpl $0x4, %ecx
movl $0x10, %eax
cmovll %eax, %ebx
movslq %ebx, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x28(%rsp), %rdi
movq 0x70(%rsp), %rsi
movl %r9d, %r12d
movq %r15, 0xa8(%rsp)
movl %r10d, 0xc0(%rsp)
movl %r8d, %r15d
callq 0x31ed
movl %r15d, %r8d
movl 0xc0(%rsp), %r10d
movq 0xa8(%rsp), %r15
movl %r12d, %r9d
movl 0x8(%rsp), %edi
movl 0x80(%rsp), %esi
movq 0x78(%rsp), %rcx
jmp 0x2408f
cmpl 0x14(%rsp), %ecx
jne 0x2418e
movl %ecx, %edx
sarl %edx
addl %ecx, %edx
cmpl $0x4, %ecx
movl $0x10, %eax
cmovll %eax, %edx
movl %edx, 0x14(%rsp)
movslq %edx, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x28(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x31ed
movq 0x78(%rsp), %rcx
jmp 0x24193
movq 0x70(%rsp), %rax
movl 0x14(%rsp), %ebx
movl %edi, %edx
xorl $0x1, %edx
subl %r9d, %ebp
leal 0x1(%rcx), %r12d
leaq (%r15,%r15,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %r15, %rcx
movl %r14d, (%rax,%rcx)
movl %edx, 0x4(%rax,%rcx)
movl %r10d, 0x8(%rax,%rcx)
movl %ebp, 0xc(%rax,%rcx)
movl %r8d, 0x10(%rax,%rcx)
movl %r8d, 0x14(%rax,%rcx)
movl %esi, 0x18(%rax,%rcx)
cmpl %ebx, %r12d
jne 0x24116
movl %ebx, %ebp
sarl %ebp
addl %ebx, %ebp
cmpl $0x4, %ebx
movl $0x10, %ecx
cmovll %ecx, %ebp
movq %rax, %rsi
movslq %ebp, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %rax, %rdx
movq 0x28(%rsp), %rdi
movl %r9d, %ebx
movl %r10d, %r15d
callq 0x31ed
movl %r15d, %r10d
movl %ebx, %r9d
movl 0x8(%rsp), %edi
movl 0x80(%rsp), %esi
movq %rax, %rdx
movl %ebp, 0x14(%rsp)
jmp 0x2411d
movl %ebx, 0x14(%rsp)
movq %rax, %rdx
movq (%rsp), %rbp
movl 0x50(%rsp), %r8d
movl 0x20(%rsp), %r11d
xorl $0x1, %r14d
subl %r10d, %r11d
movq 0x78(%rsp), %rax
addl $0x2, %eax
movq %rax, 0x78(%rsp)
movslq %r12d, %rax
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rcx
movl %r14d, (%rdx,%rcx)
movl %edi, 0x4(%rdx,%rcx)
movl %r11d, 0x8(%rdx,%rcx)
movl %r9d, 0xc(%rdx,%rcx)
movl %r8d, 0x10(%rdx,%rcx)
movl %r8d, 0x14(%rdx,%rcx)
movq %rdx, 0x70(%rsp)
movl %esi, 0x18(%rdx,%rcx)
incl 0x98(%rsp)
movq 0xa0(%rsp), %r12
movq 0x88(%rsp), %r14
jmp 0x23b40
movq 0x70(%rsp), %rax
incl %ecx
movq %rcx, 0x78(%rsp)
leaq (%r15,%r15,8), %rcx
leaq (%rcx,%rcx,2), %rdx
addq %r15, %rdx
movupd 0x34(%rsp), %xmm0
movupd 0x40(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movq %rax, 0x70(%rsp)
movupd %xmm0, (%rax,%rdx)
jmp 0x23b40
movslq 0x48(%rsp), %rdx
movslq 0x44(%rsp), %rax
subq %rax, %rdx
movq %rdx, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %r14
movq %r14, %rsi
movq 0x68(%rsp), %rdx
movl 0x80(%rsp), %r8d
leaq 0x3c(%rsp), %r9
leaq 0xb8(%rsp), %rax
pushq %rax
leaq 0x98(%rsp), %rax
pushq %rax
callq 0x24ca6
addq $0x10, %rsp
movl %eax, 0x50(%rsp)
movq 0xdddb(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
movl 0x34(%rsp), %eax
movl 0x38(%rsp), %r10d
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x4475(%rip), %rsi      # 0x286aa
movsbl (%rcx,%rsi), %edx
movq 0x10(%r14), %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, %ebp
subl %r12d, %ebp
leaq 0x6131(%rip), %rsi      # 0x2a3ac
xorl %eax, %eax
pushq %rbx
pushq %rbp
pushq %r14
pushq %r12
movq 0xc0(%rsp), %r12
pushq 0x8(%r12)
pushq 0x30(%rsp)
pushq %r15
pushq 0x18(%r11,%r10)
callq 0x2210
addq $0x40, %rsp
movq 0xdd4d(%rip), %r14      # 0x31ff8
movq (%r14), %rdi
movq 0x90(%rsp), %rdx
leaq 0x6121(%rip), %rsi      # 0x2a3de
xorl %eax, %eax
callq 0x2210
movslq 0x44(%rsp), %rdi
addq 0x10(%r12), %rdi
movq (%r14), %rcx
movl $0x1, %esi
movq 0x20(%rsp), %r14
movq %r14, %rdx
callq 0x2340
movq 0x8(%rsp), %rdx
movl %edx, %ecx
subl %r14d, %ecx
movq 0x58(%rsp), %rax
movl 0x18(%rax), %eax
cmpl %eax, %ecx
jge 0x243cd
movl %r14d, %ecx
subl %edx, %ecx
cmpl %eax, %ecx
jge 0x243cd
movq 0x90(%rsp), %rdx
movslq 0x44(%rsp), %r8
addq 0x10(%r12), %r8
movq 0x28(%rsp), %rdi
movl 0x50(%rsp), %ebp
movl %ebp, %esi
movl %r14d, %ecx
movl $0x1388, %r9d           # imm = 0x1388
leaq 0x18(%rsp), %rax
pushq %rax
leaq 0x24(%rsp), %rax
pushq %rax
callq 0x4157
movq 0x18(%rsp), %rdx
addq $0x10, %rsp
movl %eax, %r8d
movl 0x1c(%rsp), %r9d
movl 0x18(%rsp), %r14d
jmp 0x243ee
movq 0xdc95(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
leaq 0x433d(%rip), %rax      # 0x286aa
movsbl (%r15,%rax), %ecx
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x128(%rsp), %rdx
movq 0x18(%rax,%rdx), %r8
movl 0x44(%rsp), %r10d
movl 0x48(%rsp), %r11d
leaq 0x617e(%rip), %rsi      # 0x2a517
leaq 0x6165(%rip), %rdx      # 0x2a505
movl %r14d, %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
movq 0xb0(%rsp), %r10
pushq 0x8(%r10)
pushq %r12
movq %r10, %r12
callq 0x2210
movl 0x40(%rsp), %r8d
addq $0x20, %rsp
jmp 0x23d63
cmpl %r14d, %edx
cmovgl %edx, %r14d
movl $0x0, 0x1c(%rsp)
movl %r14d, 0x18(%rsp)
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
movl 0x50(%rsp), %ebp
movq 0xdc03(%rip), %rax      # 0x31ff8
movq (%rax), %rdi
subq $0x8, %rsp
leaq 0x5fe5(%rip), %rsi      # 0x2a3e8
movl %ebp, %ecx
xorl %eax, %eax
pushq %r14
callq 0x2210
addq $0x10, %rsp
movq 0x88(%rsp), %r14
movq (%rsp), %rbp
jmp 0x23f62
xorl %edi, %edi
movq %rbp, %rsi
callq 0x301f
movq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x301f
movq %r15, %rdi
movq 0x118(%rsp), %rsi
callq 0x301f
movq 0x68(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0xe0(%rsp), %rsi
movq 0x120(%rsp), %r8
incq %r8
movslq %ecx, %rax
cmpq %rax, %r8
jl 0x23443
movq 0xc8(%rsp), %rcx
incq %rcx
cmpq %rsi, %rcx
jne 0x23401
movq 0x90(%rsp), %rsi
movq 0x78(%rsp), %rbx
jmp 0x244af
xorl %esi, %esi
movq $0x0, 0x70(%rsp)
movl $0x0, 0x98(%rsp)
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x301f
movq 0xd0(%rsp), %rsi
movq %r15, %rdi
callq 0x301f
movq 0x108(%rsp), %rsi
movq %r15, %rdi
callq 0x301f
movq 0x100(%rsp), %rsi
movq %r15, %rdi
callq 0x301f
movq 0xf8(%rsp), %rsi
movq %r15, %rdi
callq 0x301f
movq 0xf0(%rsp), %rsi
movq %r15, %rdi
callq 0x301f
movq %rbx, %r13
testl %ebx, %ebx
jle 0x245d2
movl 0xb4(%rsp), %ebp
movslq %ebp, %r14
shlq $0x3, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x30e5
movq %rax, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x30e5
movq %rax, %r14
testl %ebp, %ebp
movq 0xd8(%rsp), %rcx
movq 0xe0(%rsp), %rsi
jle 0x24577
addq $0x10, %rcx
xorl %eax, %eax
movq %rcx, %rdx
movq -0x8(%rcx), %rcx
movq %rcx, (%rbx,%rax,8)
movq (%rdx), %rcx
movq %rcx, (%r14,%rax,8)
movq %rdx, %rcx
incq %rax
addq $0x28, %rcx
cmpq %rax, %rsi
jne 0x24556
movq 0x60(%rsp), %r12
movq %r12, %rdi
movl %r13d, %esi
movq 0x70(%rsp), %rbp
movq %rbp, %rdx
callq 0xa103
movq %r12, %rdi
movq %rax, %r13
movl %eax, %esi
movq %rbp, %rdx
movl 0xb4(%rsp), %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x9307
movq 0x28(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq 0x301f
movq %r15, %rdi
movq %rbx, %rsi
callq 0x301f
movq %r15, %rdi
movq %r14, %rsi
callq 0x301f
leaq 0xde27(%rip), %rax      # 0x32400
cmpl $0x3, (%rax)
jge 0x245f0
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %edi
movl 0x98(%rsp), %esi
callq 0x292c
jmp 0x245de
leaq 0x5eb5(%rip), %rdi      # 0x2a4bd
leaq 0x5b25(%rip), %rsi      # 0x2a134
leaq 0x5e37(%rip), %rcx      # 0x2a44d
movl $0x1b6, %edx            # imm = 0x1B6
callq 0x2160
leaq 0x5c9e(%rip), %rdi      # 0x2a2c5
leaq 0x5b06(%rip), %rsi      # 0x2a134
leaq 0x5e18(%rip), %rcx      # 0x2a44d
movl $0x1c1, %edx            # imm = 0x1C1
callq 0x2160
leaq 0x5c5c(%rip), %rdi      # 0x2a2a2
leaq 0x5ae7(%rip), %rsi      # 0x2a134
leaq 0x5df9(%rip), %rcx      # 0x2a44d
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2160
leaq 0x5f3a(%rip), %rdi      # 0x2a59f
leaq 0x5ac8(%rip), %rsi      # 0x2a134
leaq 0x5ee8(%rip), %rcx      # 0x2a55b
movl $0x146, %edx            # imm = 0x146
callq 0x2160
leaq 0x5e66(%rip), %rdi      # 0x2a4ea
leaq 0x5aa9(%rip), %rsi      # 0x2a134
leaq 0x5dbb(%rip), %rcx      # 0x2a44d
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x2160
leaq 0x5e35(%rip), %rdi      # 0x2a4d8
leaq 0x5a8a(%rip), %rsi      # 0x2a134
leaq 0x5d9c(%rip), %rcx      # 0x2a44d
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x2160
leaq 0x5f54(%rip), %rdi      # 0x2a616
leaq 0x5a6b(%rip), %rsi      # 0x2a134
leaq 0x5ef8(%rip), %rcx      # 0x2a5c8
movl $0x169, %edx            # imm = 0x169
callq 0x2160
leaq 0x5e74(%rip), %rdi      # 0x2a555
leaq 0x5a4c(%rip), %rsi      # 0x2a134
leaq 0x5ed9(%rip), %rcx      # 0x2a5c8
movl $0x158, %edx            # imm = 0x158
callq 0x2160
leaq 0x5460(%rip), %rdi      # 0x29b60
leaq 0x5a2d(%rip), %rsi      # 0x2a134
leaq 0x5d3f(%rip), %rcx      # 0x2a44d
movl $0x1a1, %edx            # imm = 0x1A1
callq 0x2160