// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movl %ecx, -0x44(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movl $0x0, -0x78(%rbp)
movq $0x0, -0x80(%rbp)
movl $0x0, -0x84(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rax
movl 0xc(%rax), %esi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x38(%rbp), %rax
movl 0x14(%rax), %ecx
movq -0x40(%rbp), %r8
movl -0x44(%rbp), %r9d
movq -0x58(%rbp), %r15
leaq -0xb0(%rbp), %r14
leaq -0x68(%rbp), %rbx
leaq -0x70(%rbp), %r11
leaq -0xa0(%rbp), %r10
leaq -0xa8(%rbp), %rax
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x339d0
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jne 0x36126
jmp 0x3769f
movl $0x0, -0x90(%rbp)
movl $0x0, -0x94(%rbp)
movq $0x0, -0xc0(%rbp)
movl $0x0, -0x84(%rbp)
movl $0x0, -0x88(%rbp)
movq $0x0, -0xb8(%rbp)
movl $0x0, -0x8c(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x44(%rbp), %eax
jge 0x374a4
movq -0x58(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xc8(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
movq -0xc8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x37494
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x60(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movl (%rax), %eax
movq -0xd0(%rbp), %rcx
cmpl 0x4(%rcx), %eax
je 0x361e5
jmp 0x37486
movq -0xd0(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x3621e
movq -0xd0(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jl 0x3621e
movq -0xd0(%rbp), %rax
movl 0x44(%rax), %eax
andl $0xff, %eax
movq -0x38(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x36223
jmp 0x37486
movq -0xd0(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jle 0x36232
jmp 0x36251
leaq 0x77e3(%rip), %rdi      # 0x3da1c
leaq 0x7d9c(%rip), %rsi      # 0x3dfdc
movl $0x1a1, %edx            # imm = 0x1A1
leaq 0x80a9(%rip), %rcx      # 0x3e2f5
callq 0x2170
movq -0x40(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movl -0x60(%rbp), %edx
callq 0x376c0
movl %eax, -0xdc(%rbp)
movq -0x30(%rbp), %rdi
movslq -0xdc(%rbp), %rsi
movl $0x1c, %edx
callq 0x2540
movq %rax, -0xf0(%rbp)
movq -0x40(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movl -0x60(%rbp), %edx
movq -0xf0(%rbp), %rcx
callq 0x37890
movl -0xdc(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x37b90
movq -0x30(%rbp), %rdi
movslq -0xdc(%rbp), %rsi
movl $0x4, %edx
callq 0x2540
movq %rax, -0xe8(%rbp)
movl $0x0, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0xdc(%rbp), %eax
jge 0x36320
movq -0xf0(%rbp), %rax
movslq -0xd4(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %edx
movq -0xe8(%rbp), %rax
movslq -0xd4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x362d8
movl -0xdc(%rbp), %esi
movq -0xe8(%rbp), %rdx
movq -0x38(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x38(%rbp), %rax
movl 0x18(%rax), %r8d
shll %r8d
xorl %eax, %eax
movl %eax, %edi
leaq -0xd8(%rbp), %r9
callq 0x3520
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
movl -0xd8(%rbp), %esi
movq -0xf8(%rbp), %rdx
callq 0x37c40
movl $0x0, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
cmpl -0xd8(%rbp), %eax
jge 0x37456
movl $0x0, -0x114(%rbp)
movq -0xf8(%rbp), %rax
movslq -0xd4(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0xfc(%rbp)
movq -0xf8(%rbp), %rax
movslq -0xd4(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x100(%rbp)
movl -0xfc(%rbp), %eax
cmpl -0x100(%rbp), %eax
jne 0x363e3
jmp 0x37442
movq -0xf0(%rbp), %rax
movslq -0xfc(%rbp), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x140(%rbp)
movq -0xf0(%rbp), %rax
movl -0x100(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rax
cmpl $0x7, 0x14(%rax)
je 0x3643c
movq -0x148(%rbp), %rax
cmpl $0x7, 0x14(%rax)
je 0x3643c
jmp 0x3645b
leaq 0x7f22(%rip), %rdi      # 0x3e365
leaq 0x7b92(%rip), %rsi      # 0x3dfdc
movl $0x1b6, %edx            # imm = 0x1B6
leaq 0x7e9f(%rip), %rcx      # 0x3e2f5
callq 0x2170
movq -0x140(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x118(%rbp)
movq -0x148(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x11c(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x120(%rbp)
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x118(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x138(%rbp)
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x11c(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x134(%rbp)
movq -0x140(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x130(%rbp)
movq -0x148(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x1d4(%rbp)
movq -0x148(%rbp), %rax
cmpl $0x1, 0x14(%rax)
je 0x36505
movq -0x148(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1d8(%rbp)
jmp 0x3650f
xorl %eax, %eax
movl %eax, -0x1d8(%rbp)
jmp 0x3650f
movl -0x1d4(%rbp), %eax
movl -0x1d8(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x12c(%rbp)
movq -0x140(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x128(%rbp)
movq -0x148(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x1dc(%rbp)
movq -0x148(%rbp), %rax
cmpl $0x2, 0x14(%rax)
je 0x36562
movq -0x148(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1e0(%rbp)
jmp 0x3656c
xorl %eax, %eax
movl %eax, -0x1e0(%rbp)
jmp 0x3656c
movl -0x1dc(%rbp), %eax
movl -0x1e0(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x124(%rbp)
movl -0x130(%rbp), %eax
movq -0x40(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x138(%rbp), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jg 0x365a5
jmp 0x365c4
leaq 0x7b9e(%rip), %rdi      # 0x3e14a
leaq 0x7a29(%rip), %rsi      # 0x3dfdc
movl $0x1c0, %edx            # imm = 0x1C0
leaq 0x7d36(%rip), %rcx      # 0x3e2f5
callq 0x2170
movl -0x12c(%rbp), %eax
movq -0x40(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x134(%rbp), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jg 0x365e9
jmp 0x36608
leaq 0x7b7d(%rip), %rdi      # 0x3e16d
leaq 0x79e5(%rip), %rsi      # 0x3dfdc
movl $0x1c1, %edx            # imm = 0x1C1
leaq 0x7cf2(%rip), %rcx      # 0x3e2f5
callq 0x2170
cmpl $0x0, -0x130(%rbp)
jne 0x36699
movl -0x118(%rbp), %eax
subl $0x1, %eax
movq -0xd0(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jl 0x3662c
jmp 0x3664b
leaq 0x7d4d(%rip), %rdi      # 0x3e380
leaq 0x79a2(%rip), %rsi      # 0x3dfdc
movl $0x1c4, %edx            # imm = 0x1C4
leaq 0x7caf(%rip), %rcx      # 0x3e2f5
callq 0x2170
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x118(%rbp), %ecx
addl $-0x1, %ecx
movl %ecx, -0x118(%rbp)
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x138(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x138(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x130(%rbp)
movl -0x12c(%rbp), %eax
movq -0x40(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x134(%rbp), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jne 0x36735
movl -0x11c(%rbp), %eax
addl $0x1, %eax
movq -0xd0(%rbp), %rcx
movl 0x8(%rcx), %ecx
movq -0xd0(%rbp), %rdx
addl 0xc(%rdx), %ecx
cmpl %ecx, %eax
jge 0x366df
jmp 0x366fe
leaq 0x7cac(%rip), %rdi      # 0x3e392
leaq 0x78ef(%rip), %rsi      # 0x3dfdc
movl $0x1c9, %edx            # imm = 0x1C9
leaq 0x7bfc(%rip), %rcx      # 0x3e2f5
callq 0x2170
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x11c(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x11c(%rbp)
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x134(%rbp)
movl $0x0, -0x12c(%rbp)
movq -0x148(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x1e4(%rbp)
movq -0x148(%rbp), %rax
cmpl $0x1, 0x14(%rax)
je 0x36764
movq -0x148(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1e8(%rbp)
jmp 0x3676e
xorl %eax, %eax
movl %eax, -0x1e8(%rbp)
jmp 0x3676e
movl -0x1e4(%rbp), %eax
movl -0x1e8(%rbp), %ecx
addl %ecx, %eax
movq -0x140(%rbp), %rcx
subl 0xc(%rcx), %eax
movl %eax, -0x104(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rax
movl 0x20(%rax), %esi
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rcx
leaq -0x138(%rbp), %rdx
callq 0xc9c0
movl %eax, %ecx
movl -0x104(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x104(%rbp)
movl -0x104(%rbp), %eax
movl -0x124(%rbp), %ecx
subl -0x128(%rbp), %ecx
cmpl %ecx, %eax
jle 0x367ea
movl -0x104(%rbp), %eax
movl %eax, -0x1ec(%rbp)
jmp 0x367fc
movl -0x124(%rbp), %eax
subl -0x128(%rbp), %eax
movl %eax, -0x1ec(%rbp)
movl -0x1ec(%rbp), %eax
movl %eax, -0x110(%rbp)
movl -0x128(%rbp), %eax
cmpl -0x110(%rbp), %eax
jle 0x36837
movl -0x124(%rbp), %eax
movq -0x50(%rbp), %rcx
movslq -0x5c(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
subl -0x110(%rbp), %ecx
cmpl %ecx, %eax
jl 0x3683c
jmp 0x37442
movl -0x124(%rbp), %eax
subl -0x128(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x36865
movl -0x104(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x36865
jmp 0x37442
movl -0x128(%rbp), %eax
movl %eax, -0x108(%rbp)
movl -0x108(%rbp), %eax
cmpl -0x124(%rbp), %eax
jge 0x368ca
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movslq -0x108(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -0x14c(%rbp)
cmpl $0x6e, -0x14c(%rbp)
je 0x368b5
cmpl $0x4e, -0x14c(%rbp)
jne 0x368b7
jmp 0x368ca
jmp 0x368b9
movl -0x108(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x108(%rbp)
jmp 0x36871
movl -0x108(%rbp), %eax
cmpl -0x124(%rbp), %eax
je 0x368dd
jmp 0x37442
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rax
movl -0x5c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movq -0x70(%rbp), %rax
movslq -0x5c(%rbp), %rcx
subl (%rax,%rcx,4), %esi
movq -0xa8(%rbp), %rdx
movq -0x70(%rbp), %rax
movslq -0x5c(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rdx
movl -0x128(%rbp), %ecx
movl -0x124(%rbp), %r8d
leaq -0x80(%rbp), %r9
leaq -0x78(%rbp), %rax
movq %rax, (%rsp)
callq 0x4220
movl %eax, -0x10c(%rbp)
cmpl $0x0, -0x10c(%rbp)
jne 0x36983
movq 0xe6ae(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
movl -0x128(%rbp), %r8d
movl -0x124(%rbp), %r9d
leaq 0x7873(%rip), %rsi      # 0x3e1e8
leaq 0x7a31(%rip), %rdx      # 0x3e3ad
movb $0x0, %al
callq 0x2210
cmpl $0x1, -0x10c(%rbp)
je 0x36991
jmp 0x37442
movq -0x140(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x108(%rbp)
movl -0x108(%rbp), %eax
movq -0x148(%rbp), %rcx
cmpl (%rcx), %eax
jg 0x36c31
movq -0xc8(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x108(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x150(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x150(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x154(%rbp)
movl $0x0, -0x158(%rbp)
movl -0x154(%rbp), %eax
movl %eax, -0x15c(%rbp)
movl -0x108(%rbp), %eax
movq -0x140(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x36a2f
movq -0x140(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x158(%rbp)
movl -0x108(%rbp), %eax
movq -0x148(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x36a8d
movq -0x148(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x1f0(%rbp)
movq -0x148(%rbp), %rax
cmpl $0x1, 0x14(%rax)
je 0x36a6f
movq -0x148(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x1f4(%rbp)
jmp 0x36a79
xorl %eax, %eax
movl %eax, -0x1f4(%rbp)
jmp 0x36a79
movl -0x1f0(%rbp), %eax
movl -0x1f4(%rbp), %ecx
addl %ecx, %eax
movl %eax, -0x15c(%rbp)
movl -0x150(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x36acb
movl -0x158(%rbp), %eax
movl %eax, -0x160(%rbp)
movl -0x154(%rbp), %eax
subl -0x15c(%rbp), %eax
movl %eax, -0x158(%rbp)
movl -0x154(%rbp), %eax
subl -0x160(%rbp), %eax
movl %eax, -0x15c(%rbp)
movl -0x158(%rbp), %eax
cmpl -0x15c(%rbp), %eax
jne 0x36b04
cmpl $0x0, -0x158(%rbp)
jne 0x36af3
movl -0x15c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x15c(%rbp)
jmp 0x36b02
movl -0x158(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x158(%rbp)
jmp 0x36b04
movq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rax
movl -0x150(%rbp), %ecx
shrl %ecx
addl $0x1, %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %esi
movq -0x68(%rbp), %rax
movl -0x150(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
subl (%rax,%rcx,4), %esi
movq -0xa0(%rbp), %rdx
movq -0x68(%rbp), %rax
movl -0x150(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rdx
movl -0x158(%rbp), %ecx
movl -0x15c(%rbp), %r8d
leaq -0x80(%rbp), %r9
leaq -0x78(%rbp), %rax
movq %rax, (%rsp)
callq 0x4220
movl %eax, -0x10c(%rbp)
cmpl $0x0, -0x10c(%rbp)
jne 0x36c10
movq 0xe473(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movl -0x150(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x5af0(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %ecx
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x150(%rbp), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rax
movq 0x18(%rax), %r8
movl -0x158(%rbp), %r9d
movl -0x15c(%rbp), %ebx
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq 0x8(%rax), %r11
movl -0x128(%rbp), %r10d
movl -0x124(%rbp), %eax
leaq 0x77ce(%rip), %rsi      # 0x3e3bf
leaq 0x77b5(%rip), %rdx      # 0x3e3ad
movl %ebx, (%rsp)
movq %r11, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movb $0x0, %al
callq 0x2210
cmpl $0x1, -0x10c(%rbp)
je 0x36c1b
jmp 0x36c31
jmp 0x36c1d
movl -0x108(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x108(%rbp)
jmp 0x369a0
movl -0x108(%rbp), %eax
movq -0x148(%rbp), %rcx
cmpl (%rcx), %eax
jg 0x36c47
jmp 0x37442
movl -0x104(%rbp), %eax
movl -0x124(%rbp), %ecx
subl -0x128(%rbp), %ecx
subl %ecx, %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x36e5f
movl -0x124(%rbp), %eax
subl -0x128(%rbp), %eax
subl -0x104(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x36e5f
movl -0x124(%rbp), %eax
subl -0x128(%rbp), %eax
movl %eax, -0x164(%rbp)
movl $0x0, -0x170(%rbp)
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movl -0x118(%rbp), %ecx
movl -0x11c(%rbp), %r8d
leaq -0x138(%rbp), %r9
addq $0x8, %r9
leaq -0xc0(%rbp), %r10
leaq -0x94(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x38640
movl %eax, -0x90(%rbp)
movq -0x30(%rbp), %rdi
movl -0x90(%rbp), %esi
movq -0xc0(%rbp), %rdx
movl -0x164(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %r8
imulq $0x28, %r8, %r8
addq %r8, %rax
movq 0x10(%rax), %r8
movslq -0x128(%rbp), %rax
addq %rax, %r8
movl $0x1388, %r9d           # imm = 0x1388
leaq -0x168(%rbp), %r10
leaq -0x16c(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4710
movl %eax, -0x170(%rbp)
cmpl $0x0, -0x170(%rbp)
jle 0x36da5
cvtsi2ssl -0x168(%rbp), %xmm0
cvtsi2ssl -0x16c(%rbp), %xmm1
movq -0x38(%rbp), %rax
mulss 0x2c(%rax), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x36d74
jmp 0x37442
movl -0x16c(%rbp), %eax
subl -0x168(%rbp), %eax
cvtsi2ss %eax, %xmm1
movq -0x38(%rbp), %rax
cvtsi2ssl 0x18(%rax), %xmm0
movq -0x38(%rbp), %rax
mulss 0x2c(%rax), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x36da0
jmp 0x37442
jmp 0x36e5d
movq -0x38(%rbp), %rax
movq (%rax), %rax
andq $0x4, %rax
cmpq $0x0, %rax
jne 0x36e5b
movl -0x90(%rbp), %edi
movq -0xc0(%rbp), %rsi
callq 0x35fb0
movq -0x30(%rbp), %rdi
movl -0x90(%rbp), %esi
movq -0xc0(%rbp), %rdx
movl -0x164(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %r8
imulq $0x28, %r8, %r8
addq %r8, %rax
movq 0x10(%rax), %r8
movslq -0x128(%rbp), %rax
addq %rax, %r8
movl $0x1388, %r9d           # imm = 0x1388
leaq -0x168(%rbp), %r10
leaq -0x16c(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4710
movl %eax, -0x170(%rbp)
cmpl $0x0, -0x170(%rbp)
jle 0x36e59
cvtsi2ssl -0x168(%rbp), %xmm0
cvtsi2ssl -0x16c(%rbp), %xmm1
movq -0x38(%rbp), %rax
mulss 0x30(%rax), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x36e59
movl $0x1, -0x114(%rbp)
jmp 0x36e5b
jmp 0x36e5d
jmp 0x36e5f
leaq 0xe822(%rip), %rax      # 0x45688
movl (%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x37122
movl -0x124(%rbp), %eax
subl -0x128(%rbp), %eax
movl %eax, -0x180(%rbp)
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0xc8(%rbp), %rdx
movl -0x118(%rbp), %ecx
movl -0x11c(%rbp), %r8d
leaq -0x138(%rbp), %r9
addq $0x8, %r9
leaq -0xc0(%rbp), %r10
leaq -0x94(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x38640
movl %eax, -0x90(%rbp)
movq 0xe122(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movl -0x138(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x579f(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x138(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
movl -0x130(%rbp), %r8d
movl -0x134(%rbp), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x5763(%rip), %rax      # 0x3c68c
movsbl (%rax,%rsi), %r9d
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x134(%rbp), %esi
shrl %esi
movl %esi, %esi
shlq $0x6, %rsi
addq %rsi, %rax
movq 0x18(%rax), %r13
movl -0x12c(%rbp), %r12d
movl -0x104(%rbp), %r15d
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rsi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movq 0x8(%rax), %r14
movl -0x128(%rbp), %ebx
movl -0x124(%rbp), %r11d
movl -0x124(%rbp), %r10d
subl -0x128(%rbp), %r10d
movl -0x114(%rbp), %eax
leaq 0x72c0(%rip), %rsi      # 0x3e254
movq %r13, (%rsp)
movl %r12d, 0x8(%rsp)
movl %r15d, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movl %ebx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movb $0x0, %al
callq 0x2210
movq 0xe031(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movq -0xc0(%rbp), %rdx
leaq 0x72ae(%rip), %rsi      # 0x3e286
movb $0x0, %al
callq 0x2210
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
movslq -0x128(%rbp), %rax
addq %rax, %rdi
movslq -0x180(%rbp), %rdx
movq 0xdfee(%rip), %rax      # 0x44ff8
movq (%rax), %rcx
movl $0x1, %esi
callq 0x2340
movl -0x104(%rbp), %eax
subl -0x180(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x3709f
movl -0x180(%rbp), %eax
subl -0x104(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x3709f
movq -0x30(%rbp), %rdi
movl -0x90(%rbp), %esi
movq -0xc0(%rbp), %rdx
movl -0x180(%rbp), %ecx
movq -0x50(%rbp), %rax
movslq -0x5c(%rbp), %r8
imulq $0x28, %r8, %r8
addq %r8, %rax
movq 0x10(%rax), %r8
movslq -0x128(%rbp), %rax
addq %rax, %r8
movl $0x1388, %r9d           # imm = 0x1388
leaq -0x174(%rbp), %r10
leaq -0x178(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x4710
movl %eax, -0x17c(%rbp)
jmp 0x370e7
movl $0xffffffff, -0x17c(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x174(%rbp)
movl -0x104(%rbp), %eax
cmpl -0x180(%rbp), %eax
jle 0x370cf
movl -0x104(%rbp), %eax
movl %eax, -0x1f8(%rbp)
jmp 0x370db
movl -0x180(%rbp), %eax
movl %eax, -0x1f8(%rbp)
movl -0x1f8(%rbp), %eax
movl %eax, -0x178(%rbp)
movq 0xdf0a(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movl -0x104(%rbp), %edx
movl -0x90(%rbp), %ecx
movl -0x17c(%rbp), %r8d
movl -0x174(%rbp), %r9d
movl -0x178(%rbp), %eax
leaq 0x7178(%rip), %rsi      # 0x3e290
movl %eax, (%rsp)
movb $0x0, %al
callq 0x2210
cmpl $0x0, -0x114(%rbp)
je 0x37387
movl -0x120(%rbp), %eax
movl %eax, -0x18c(%rbp)
movl %eax, -0x1a8(%rbp)
movl -0x128(%rbp), %eax
movl %eax, -0x1ac(%rbp)
movl %eax, -0x1b0(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x1c0(%rbp)
movl -0x130(%rbp), %eax
movl %eax, -0x1b8(%rbp)
movl -0x134(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x1bc(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x134(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
subl -0x12c(%rbp), %eax
movl %eax, -0x1b4(%rbp)
movl -0x124(%rbp), %eax
movl %eax, -0x190(%rbp)
movl %eax, -0x194(%rbp)
movl -0x138(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x1a4(%rbp)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x138(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
subl -0x130(%rbp), %eax
movl %eax, -0x19c(%rbp)
movl -0x134(%rbp), %eax
movl %eax, -0x1a0(%rbp)
movl -0x12c(%rbp), %eax
movl %eax, -0x198(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x88(%rbp), %eax
jne 0x3726f
jmp 0x37211
cmpl $0x4, -0x88(%rbp)
jl 0x37232
movl -0x88(%rbp), %eax
movl -0x88(%rbp), %ecx
sarl %ecx
addl %ecx, %eax
movl %eax, -0x1fc(%rbp)
jmp 0x3723f
movl $0x10, %eax
movl %eax, -0x1fc(%rbp)
jmp 0x3723f
movl -0x1fc(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movslq -0x88(%rbp), %rax
imulq $0x1c, %rax, %rdx
callq 0x2ae0
movq %rax, -0xb8(%rbp)
jmp 0x3726f
movq -0xb8(%rbp), %rax
movl -0x84(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x84(%rbp)
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0x1c0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1b8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x1b0(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x1a8(%rbp), %ecx
movl %ecx, 0x18(%rax)
movl -0x84(%rbp), %eax
cmpl -0x88(%rbp), %eax
jne 0x37328
jmp 0x372ca
cmpl $0x4, -0x88(%rbp)
jl 0x372eb
movl -0x88(%rbp), %eax
movl -0x88(%rbp), %ecx
sarl %ecx
addl %ecx, %eax
movl %eax, -0x200(%rbp)
jmp 0x372f8
movl $0x10, %eax
movl %eax, -0x200(%rbp)
jmp 0x372f8
movl -0x200(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movslq -0x88(%rbp), %rax
imulq $0x1c, %rax, %rdx
callq 0x2ae0
movq %rax, -0xb8(%rbp)
jmp 0x37328
movq -0xb8(%rbp), %rax
movl -0x84(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x84(%rbp)
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0x1a4(%rbp), %rcx
movq %rcx, (%rax)
movq -0x19c(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x194(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x18c(%rbp), %ecx
movl %ecx, 0x18(%rax)
movl -0x8c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8c(%rbp)
jmp 0x37440
movl -0x84(%rbp), %eax
cmpl -0x88(%rbp), %eax
jne 0x373f5
jmp 0x37397
cmpl $0x4, -0x88(%rbp)
jl 0x373b8
movl -0x88(%rbp), %eax
movl -0x88(%rbp), %ecx
sarl %ecx
addl %ecx, %eax
movl %eax, -0x204(%rbp)
jmp 0x373c5
movl $0x10, %eax
movl %eax, -0x204(%rbp)
jmp 0x373c5
movl -0x204(%rbp), %eax
movl %eax, -0x88(%rbp)
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movslq -0x88(%rbp), %rax
imulq $0x1c, %rax, %rdx
callq 0x2ae0
movq %rax, -0xb8(%rbp)
jmp 0x373f5
movq -0xb8(%rbp), %rax
movl -0x84(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x84(%rbp)
movslq %ecx, %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0x138(%rbp), %rcx
movq %rcx, (%rax)
movq -0x130(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x128(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x120(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x37442
movl -0xd4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd4(%rbp)
jmp 0x36379
movq -0xf8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x2670
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x3619b
jmp 0x37496
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x36175
movq -0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0xa8(%rbp), %rsi
callq 0x2670
cmpl $0x0, -0x84(%rbp)
jle 0x37609
movq -0x30(%rbp), %rdi
movslq -0x44(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2890
movq %rax, -0x1c8(%rbp)
movq -0x30(%rbp), %rdi
movslq -0x44(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2890
movq %rax, -0x1d0(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
cmpl -0x44(%rbp), %eax
jge 0x37596
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdx
movq -0x1c8(%rbp), %rax
movslq -0x60(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x50(%rbp), %rax
movslq -0x60(%rbp), %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdx
movq -0x1d0(%rbp), %rax
movslq -0x60(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x3753f
movq -0x40(%rbp), %rdi
movl -0x84(%rbp), %esi
movq -0xb8(%rbp), %rdx
callq 0xccc0
movl %eax, -0x84(%rbp)
movq -0x40(%rbp), %rdi
movl -0x84(%rbp), %esi
movq -0xb8(%rbp), %rdx
movl -0x44(%rbp), %ecx
movq -0x1c8(%rbp), %r8
movq -0x1d0(%rbp), %r9
callq 0xb990
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
callq 0x2670
movq -0x30(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
callq 0x2670
leaq 0xdde0(%rip), %rax      # 0x453f0
cmpl $0x3, (%rax)
jl 0x3769f
movq 0xd9d8(%rip), %rax      # 0x44ff8
movq (%rax), %rax
movq %rax, -0x218(%rbp)
callq 0x48e0
leaq 0xe05a(%rip), %rax      # 0x45690
subsd (%rax), %xmm0
movsd %xmm0, -0x210(%rbp)
callq 0x4850
movsd %xmm0, -0x220(%rbp)
callq 0x48e0
movsd -0x220(%rbp), %xmm1
movq -0x218(%rbp), %rdi
movaps %xmm0, %xmm2
movsd -0x210(%rbp), %xmm0
leaq 0xe01b(%rip), %rax      # 0x45690
subsd (%rax), %xmm2
divsd %xmm2, %xmm1
movl -0x84(%rbp), %ecx
movl -0x8c(%rbp), %r8d
leaq 0x6c24(%rip), %rsi      # 0x3e2b5
leaq 0x6d15(%rip), %rdx      # 0x3e3ad
movb $0x2, %al
callq 0x2210
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)