// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/map-algo.c
// Function: mg_map_frag
void mg_map_frag(const mg_idx_t *gi, int n_segs, const int *qlens, const char **seqs, mg_gchains_t **gcs, mg_tbuf_t *b, const mg_mapopt_t *opt, const char *qname)
{
	int i, l, rep_len, qlen_sum, n_lc, n_gc, n_mini_pos;
	int max_chain_gap_qry, max_chain_gap_ref, is_splice = !!(opt->flag & MG_M_SPLICE), is_sr = !!(opt->flag & MG_M_SR);
	uint32_t hash;
	int64_t n_a;
	uint64_t *u;
	int32_t *mini_pos;
	mg128_t *a;
	mg128_v mv = {0,0,0};
	mg_lchain_t *lc;
	char *seq_cat;
	km_stat_t kmst;
	float tmp, chn_pen_gap, chn_pen_skip;
	double t = 0.0;

	for (i = 0, qlen_sum = 0; i < n_segs; ++i)
		qlen_sum += qlens[i], gcs[i] = 0;

	if (qlen_sum == 0 || n_segs <= 0 || n_segs > MG_MAX_SEG) return;
	if (opt->max_qlen > 0 && qlen_sum > opt->max_qlen) return;

	hash  = qname? kh_hash_str(qname) : 0;
	hash ^= kh_hash_uint32(qlen_sum) + kh_hash_uint32(opt->seed);
	hash  = kh_hash_uint32(hash);

	collect_minimizers(b->km, opt, gi, n_segs, qlens, seqs, &mv);
	if (opt->flag & MG_M_HEAP_SORT) a = collect_seed_hits_heap(b->km, opt, opt->occ_max1, gi, qname, &mv, qlen_sum, &n_a, &rep_len, &n_mini_pos, &mini_pos);
	else a = collect_seed_hits(b->km, opt, opt->occ_max1, gi, qname, &mv, qlen_sum, &n_a, &rep_len, &n_mini_pos, &mini_pos);

	if (mg_dbg_flag & MG_DBG_SEED) {
		fprintf(stderr, "RS\t%d\n", rep_len);
		for (i = 0; i < n_a; ++i)
			fprintf(stderr, "SD\t%s\t%d\t%c\t%d\t%d\t%d\n", gi->g->seg[a[i].x>>33].name, (int32_t)a[i].x, "+-"[a[i].x>>32&1], (int32_t)a[i].y, (int32_t)(a[i].y>>32&0xff),
					i == 0? 0 : ((int32_t)a[i].y - (int32_t)a[i-1].y) - ((int32_t)a[i].x - (int32_t)a[i-1].x));
	}

	// set max chaining gap on the query and the reference sequence
	if (is_sr)
		max_chain_gap_qry = qlen_sum > opt->max_gap? qlen_sum : opt->max_gap;
	else max_chain_gap_qry = opt->max_gap;
	if (opt->max_gap_ref > 0) {
		max_chain_gap_ref = opt->max_gap_ref; // always honor mg_mapopt_t::max_gap_ref if set
	} else if (opt->max_frag_len > 0) {
		max_chain_gap_ref = opt->max_frag_len - qlen_sum;
		if (max_chain_gap_ref < opt->max_gap) max_chain_gap_ref = opt->max_gap;
	} else max_chain_gap_ref = opt->max_gap;

	tmp = expf(-opt->div * gi->k);
	chn_pen_gap = opt->chn_pen_gap * tmp;
	chn_pen_skip = opt->chn_pen_skip * tmp;

	if (mg_dbg_flag & MG_DBG_QNAME) t = realtime();
	if (n_a == 0) {
		if (a) kfree(b->km, a);
		a = 0, n_lc = 0, u = 0;
	} else {
		if (opt->flag & MG_M_RMQ) {
			a = mg_lchain_rmq(opt->max_gap, opt->max_gap_pre, opt->bw, opt->max_lc_skip, opt->rmq_size_cap, opt->min_lc_cnt, opt->min_lc_score,
							  chn_pen_gap, chn_pen_skip, n_a, a, &n_lc, &u, b->km);
		} else {
			a = mg_lchain_dp(max_chain_gap_ref, max_chain_gap_qry, opt->bw, opt->max_lc_skip, opt->max_lc_iter, opt->min_lc_cnt, opt->min_lc_score,
							 chn_pen_gap, chn_pen_skip, is_splice, n_segs, n_a, a, &n_lc, &u, b->km);
		}
	}
	if (mg_dbg_flag & MG_DBG_QNAME) t = print_time(t, 1, qname);

	if (opt->bw_long > opt->bw && (opt->flag & (MG_M_SPLICE|MG_M_SR)) == 0 && n_segs == 1 && n_lc > 1) { // re-chain/long-join for long sequences
		int32_t st = (int32_t)a[0].y, en = (int32_t)a[(int32_t)u[0] - 1].y;
		if (qlen_sum - (en - st) > opt->rmq_rescue_size || qlen_sum - (en - st) > qlen_sum * opt->rmq_rescue_ratio) {
			int32_t i;
			for (i = 0, n_a = 0; i < n_lc; ++i) n_a += (int32_t)u[i];
			kfree(b->km, u);
			radix_sort_128x(a, a + n_a);
			a = mg_lchain_rmq(opt->max_gap, opt->max_gap_pre, opt->bw_long, opt->max_lc_skip, opt->rmq_size_cap, opt->min_lc_cnt, opt->min_lc_score,
							  chn_pen_gap, chn_pen_skip, n_a, a, &n_lc, &u, b->km);
		}
	}

	b->frag_gap = max_chain_gap_ref;
	kfree(b->km, mv.a);

	if (n_lc) {
		lc = mg_lchain_gen(b->km, hash, qlen_sum, n_lc, u, a);
		if (n_lc > 1) {
			int32_t n_lc_new = 0;
			for (i = 0; i < n_lc; ++i) {
				mg_lchain_t *p = &lc[i];
				int32_t cnt = p->cnt, off = p->off;
				mm_fix_bad_ends(a, opt->lc_max_occ, opt->lc_max_trim, &off, &cnt);
				mm_fix_bad_ends_alt(a, p->score, opt->bw, 100, &off, &cnt);
				mm_filter_bad_seeds(b->km, off, cnt, a, 10, 40, opt->max_gap>>1, 10);
				mm_filter_bad_seeds_alt(b->km, off, cnt, a, 30, opt->max_gap>>1);
				//printf("X\t%d\t%d\t%d\t%d\t%d\t%d\n", p->qs, p->qe, p->off, p->cnt, off, cnt);
				p->off = off, p->cnt = cnt;
				if (cnt >= opt->min_lc_cnt) {
					int32_t q_span = a[p->off].y>>32 & 0xff;
					p->rs = (int32_t)a[p->off].x + 1 - q_span;
					p->qs = (int32_t)a[p->off].y + 1 - q_span;
					p->re = (int32_t)a[p->off + p->cnt - 1].x + 1;
					p->qe = (int32_t)a[p->off + p->cnt - 1].y + 1;
					lc[n_lc_new++] = *p;
				}
			}
			n_lc = n_lc_new;
		}
		for (i = 0; i < n_lc; ++i)
			mg_update_anchors(lc[i].cnt, &a[lc[i].off], n_mini_pos, mini_pos);
	} else lc = 0;
	kfree(b->km, mini_pos);
	kfree(b->km, u);
	if (mg_dbg_flag & MG_DBG_QNAME) t = print_time(t, 2, qname);

	if (mg_dbg_flag & MG_DBG_LCHAIN)
		mg_print_lchain(stdout, gi, n_lc, lc, a, qname);

	KMALLOC(b->km, seq_cat, qlen_sum);
	for (i = l = 0; i < n_segs; ++i) {
		strncpy(&seq_cat[l], seqs[i], qlens[i]);
		l += qlens[i];
	}
	n_gc = mg_gchain1_dp(b->km, gi->g, &n_lc, lc, qlen_sum, opt->bw_long, opt->bw_long, opt->bw_long, opt->max_gc_skip, opt->ref_bonus,
						 chn_pen_gap, chn_pen_skip, opt->mask_level, a, &u);
	if (mg_dbg_flag & MG_DBG_QNAME) t = print_time(t, 3, qname);
	gcs[0] = mg_gchain_gen(0, b->km, gi->g, gi->es, n_gc, u, lc, a, hash, opt->min_gc_cnt, opt->min_gc_score, opt->gdp_max_ed, n_segs, seq_cat);
	if (mg_dbg_flag & MG_DBG_QNAME) t = print_time(t, 4, qname);
	gcs[0]->rep_len = rep_len;
	kfree(b->km, a);
	kfree(b->km, lc);
	kfree(b->km, u);

	mg_gchain_set_parent(b->km, opt->mask_level, gcs[0]->n_gc, gcs[0]->gc, opt->sub_diff, 0);
	mg_gchain_flt_sub(opt->pri_ratio, gi->k * 2, opt->best_n, gcs[0]->n_gc, gcs[0]->gc);
	mg_gchain_drop_flt(b->km, gcs[0]);
	mg_gchain_set_mapq(b->km, gcs[0], qlen_sum, mv.n, opt->min_gc_score);
	if ((opt->flag&MG_M_CIGAR) && n_segs == 1) {
		mg_gchain_cigar(b->km, gi->g, gi->es, seq_cat, gcs[0], qname);
		mg_gchain_gen_ds(b->km, gi->g, gi->es, seq_cat, gcs[0]);
	}
	kfree(b->km, seq_cat);
	if (mg_dbg_flag & MG_DBG_QNAME) t = print_time(t, 5, qname);

	if (b->km) {
		km_stat(b->km, &kmst);
		if (mg_dbg_flag & MG_DBG_QNAME)
			fprintf(stderr, "QM\t%s\t%d\tcap=%ld,nCore=%ld,largest=%ld\n", qname, qlen_sum, kmst.capacity, kmst.n_cores, kmst.largest);
		if (kmst.n_blocks != kmst.n_cores) {
			fprintf(stderr, "[E::%s] memory leak at %s\n", __func__, qname);
			abort();
		}
		if (kmst.largest > 1U<<28 || (opt->cap_kalloc > 0 && kmst.capacity > opt->cap_kalloc)) {
			km_destroy(b->km);
			b->km = km_init();
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %r9, 0x8(%rsp)
movq %rcx, 0xe8(%rsp)
movq %rdi, %r9
movq 0x188(%rsp), %rcx
movq 0x180(%rsp), %r10
movq (%r10), %rbx
movl %ebx, %r14d
shrl $0x4, %r14d
xorps %xmm0, %xmm0
movups %xmm0, 0x120(%rsp)
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %r11d
cmovgl %esi, %r11d
xorl %edi, %edi
cmpq %rax, %r11
je 0x1985e
addl (%rdx,%rax,4), %edi
andq $0x0, (%r8,%rax,8)
incq %rax
jmp 0x1984c
leal -0x100(%rsi), %eax
cmpl $0xffffff01, %eax       # imm = 0xFFFFFF01
jb 0x1ada3
testl %edi, %edi
je 0x1ada3
movl 0x14(%r10), %eax
testl %eax, %eax
jle 0x19887
cmpl %eax, %edi
jg 0x1ada3
movq %rbx, 0xb0(%rsp)
movq %rdx, 0xa0(%rsp)
movq %rsi, 0x70(%rsp)
movq %r9, 0x28(%rsp)
xorl %ebx, %ebx
movl $0x0, %ebp
testq %rcx, %rcx
je 0x198ca
movsbl (%rcx), %eax
testl %eax, %eax
je 0x198ca
incq %rcx
movsbl (%rcx), %edx
testl %edx, %edx
je 0x198c8
imull $0x1f, %eax, %eax
addl %edx, %eax
incq %rcx
jmp 0x198b7
movl %eax, %ebp
movq %r11, 0x140(%rsp)
movq %r8, 0xa8(%rsp)
andl $0x1, %r14d
movq %r14, 0x78(%rsp)
movl %edi, 0x14(%rsp)
callq 0x1aeed
movl %eax, %r14d
movq 0x180(%rsp), %rax
movl 0x10(%rax), %edi
callq 0x1aeed
movl %eax, %ecx
addl %r14d, %ecx
movq 0x8(%rsp), %rax
movq (%rax), %r14
leaq 0x118(%rsp), %r12
andq $0x0, (%r12)
xorl %ebp, %ecx
movl %ecx, 0x18(%rsp)
movl 0x70(%rsp), %r13d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq 0xa0(%rsp), %rdx
cmpq %r13, %r15
movq 0x28(%rsp), %rax
je 0x199ae
movq 0xe8(%rsp), %rcx
movq (%rcx,%r15,8), %rsi
movl (%rdx,%r15,4), %edx
movl 0x14(%rax), %ecx
movl 0x18(%rax), %r8d
subq $0x8, %rsp
movq %r14, %rdi
movl %r15d, %r9d
pushq %r12
callq 0xc1e8
popq %rax
popq %rcx
movslq %ebp, %rax
movq 0x118(%rsp), %rbp
movq 0x128(%rsp), %rdx
leal (%rbx,%rbx), %ecx
movslq %ecx, %rcx
movq %rax, %rsi
shlq $0x4, %rsi
addq %rsi, %rdx
addq $0x8, %rdx
cmpq %rbp, %rax
jae 0x1999d
addq %rcx, (%rdx)
incq %rax
addq $0x10, %rdx
jmp 0x1998c
movq 0xa0(%rsp), %rdx
addl (%rdx,%r15,4), %ebx
incq %r15
jmp 0x19931
movl 0x18(%rsp), %edi
callq 0x1aeed
movq %rax, 0xc0(%rsp)
movq 0x180(%rsp), %rcx
testb $0x4, 0x1(%rcx)
movq 0x8(%rsp), %rax
movq (%rax), %rbx
movl 0x1c(%rcx), %edx
movq %rbx, 0x80(%rsp)
jne 0x19c38
subq $0x8, %rsp
leaq 0xc0(%rsp), %rax
leaq 0xa4(%rsp), %r10
leaq 0x74(%rsp), %r11
leaq 0xf8(%rsp), %r14
leaq 0x120(%rsp), %r8
leaq 0x98(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %rbx, %r15
movq 0x30(%rsp), %rbx
movq %rbx, %rcx
movq %r13, %r9
pushq %rax
pushq %r10
pushq %r11
callq 0x1afa3
addq $0x20, %rsp
movq %rax, 0x58(%rsp)
movq (%r13), %rsi
shlq $0x4, %rsi
movq %r15, %rdi
callq 0x266c
movq %rbx, %r9
movq %rax, %r10
movl (%r14), %eax
xorl %ebx, %ebx
testl %eax, %eax
cmovlel %ebx, %eax
movq %rax, 0x88(%rsp)
xorl %eax, %eax
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %r8
movq %r10, 0x20(%rsp)
movabsq $-0x200000000, %r11     # imm = 0xFFFFFFFE00000000
cmpq 0x88(%rsp), %rax
je 0x19d0f
movq %rax, 0x60(%rsp)
imulq $0x18, %rax, %rax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax), %r14
movq 0x10(%rcx,%rax), %rdx
movq %rdx, 0x18(%rsp)
movl (%rcx,%rax), %r12d
movq %r12, %rcx
shlq $0x38, %rcx
cmpq $0xff, %r12
movabsq $-0x100000000000000, %rax # imm = 0xFF00000000000000
cmovaeq %rax, %rcx
movq %rcx, 0x30(%rsp)
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x19c2b
movq 0x18(%rsp), %rax
movq (%rax,%r13,8), %rbp
movl %ebp, %r15d
testq %rdi, %rdi
je 0x19b78
testb $0x40, 0x2(%r8)
je 0x19b78
movq (%r9), %rcx
movq 0x10(%rcx), %rdx
movq %rbp, %rsi
shrq $0x1a, %rsi
andq $-0x40, %rsi
leaq (%rdx,%rsi), %rax
movslq 0x8(%rdx,%rsi), %rdx
testq %rdx, %rdx
js 0x19b37
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x19b37
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl 0xc(%rax), %edx
addl %r15d, %edx
movq %rcx, %rax
jmp 0x19b3e
addq $0x18, %rax
movl %r15d, %edx
cmpl 0x4(%r14), %edx
jne 0x19b78
movq (%rax), %rsi
callq 0x21f0
movabsq $-0x200000000, %r11     # imm = 0xFFFFFFFE00000000
movq 0x20(%rsp), %r10
movq 0x28(%rsp), %r9
movq 0x180(%rsp), %r8
movq 0x188(%rsp), %rdi
testl %eax, %eax
je 0x19c23
shrl %r15d
movl %ebp, %ecx
andl $0x1, %ecx
movl 0x4(%r14), %eax
movl %eax, %edx
andl $0x1, %edx
cmpl %edx, %ecx
jne 0x19b9f
addq %rbp, %rbp
andq %r11, %rbp
movl %r15d, %esi
orq %rbp, %rsi
movl 0x8(%r14), %ecx
jmp 0x19bd4
shrq $0x20, %rbp
movq %rbp, %rdx
shlq $0x21, %rdx
movq (%r9), %rcx
movq 0x10(%rcx), %rcx
shlq $0x6, %rbp
movl (%rcx,%rbp), %esi
movl 0x8(%r14), %ecx
subl %r15d, %esi
addl %ecx, %esi
addl $-0x2, %esi
orq %rdx, %rsi
movabsq $0x100000000, %rdx      # imm = 0x100000000
orq %rdx, %rsi
leaq 0x1(%rbx), %rdx
shlq $0x4, %rbx
addq %r10, %rbx
movq %rsi, (%rbx)
shlq $0x20, %rcx
shrl %eax
orq %rcx, %rax
movq %rax, 0x8(%rbx)
movl 0xc(%r14), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movq %rcx, 0x8(%rbx)
movq %rcx, %rax
movabsq $0x40000000000, %rsi    # imm = 0x40000000000
orq %rsi, %rax
cmpl $0x0, 0xc(%r14)
cmovnsq %rcx, %rax
orq 0x30(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rdx, %rbx
incq %r13
jmp 0x19ad7
movq 0x60(%rsp), %rax
incq %rax
jmp 0x19a85
subq $0x8, %rsp
leaq 0xc0(%rsp), %rax
leaq 0xa4(%rsp), %r10
leaq 0x74(%rsp), %r11
leaq 0xf8(%rsp), %r14
leaq 0x120(%rsp), %r8
leaq 0x98(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq 0x30(%rsp), %rcx
movq %r13, %r9
pushq %rax
pushq %r10
pushq %r11
callq 0x1afa3
addq $0x20, %rsp
movq %rax, %r15
movslq (%r14), %r14
movq %r14, %rsi
shlq $0x4, %rsi
movq %rbx, %rdi
callq 0x266c
movq %rax, %rbp
movq %rbx, %rdi
movq (%r13), %rbx
movq %rbx, %rsi
shlq $0x4, %rsi
movq %rsi, 0x60(%rsp)
callq 0x266c
xorl %ecx, %ecx
testl %r14d, %r14d
movl $0x0, %edx
cmovgl %r14d, %edx
movq %r15, %r13
leaq 0x10(%r15), %r9
shlq $0x20, %rdx
xorl %r12d, %r12d
movslq %r12d, %rdi
cmpq %rcx, %rdx
je 0x19d46
cmpl $0x0, -0x10(%r9)
je 0x19cfc
movq (%r9), %rsi
movq (%rsi), %rsi
movq %rdi, %r8
shlq $0x4, %r8
movq %rsi, (%rbp,%r8)
movq %rcx, 0x8(%rbp,%r8)
incl %edi
movl %edi, %r12d
movabsq $0x100000000, %rsi      # imm = 0x100000000
addq %rsi, %rcx
addq $0x18, %r9
jmp 0x19cd1
movq %rbx, 0x90(%rsp)
movq 0x80(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq %r10, %r14
callq 0x2577
movq %rbx, %rax
shlq $0x4, %rax
movq %r14, %rsi
addq %rax, %rsi
movq %r14, %rdi
callq 0xcb7f
jmp 0x19f3a
movq %rax, 0x20(%rsp)
movq %rbp, %rsi
callq 0x19678
movq %rbp, %rax
addq $-0x10, %rax
movq %rax, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
xorl %r14d, %r14d
testl %r12d, %r12d
movq 0x28(%rsp), %r9
movq 0x20(%rsp), %r10
movabsq $-0x200000000, %r11     # imm = 0xFFFFFFFE00000000
jle 0x19ee0
movl 0xc(%rbp), %eax
imulq $0x18, %rax, %rcx
leaq (%rcx,%r13), %rax
movq (%rbp), %rdx
movl %edx, %esi
shrl %esi
movl %edx, %edi
andl $0x1, %edi
movl 0x4(%r13,%rcx), %ecx
movl %ecx, %r8d
andl $0x1, %r8d
cmpl %r8d, %edi
jne 0x19dd0
leaq 0x1(%r14), %r15
movq %r14, %rdi
shlq $0x4, %rdi
addq %rdx, %rdx
andq %r11, %rdx
movl %esi, %esi
orq %rdx, %rsi
movq %rsi, (%r10,%rdi)
movl 0x8(%rax), %edx
jmp 0x19e28
movq 0x18(%rsp), %r11
incq %r11
movq %rbx, %rdi
movq %r11, 0x18(%rsp)
subq %r11, %rdi
movq %r14, %r15
movq %rdi, %r14
shlq $0x4, %rdi
shrq $0x20, %rdx
movq %rdx, %r8
shlq $0x21, %r8
movq (%r9), %r9
movq 0x10(%r9), %r9
shlq $0x6, %rdx
movl (%r9,%rdx), %r9d
movl 0x8(%rax), %edx
subl %esi, %r9d
leal (%rdx,%r9), %esi
addl $-0x2, %esi
orq %r8, %rsi
movabsq $0x100000000, %r8       # imm = 0x100000000
orq %r8, %rsi
movq %rsi, (%r10,%rdi)
shlq $0x20, %rdx
shrl %ecx
orq %rdx, %rcx
shlq $0x4, %r14
movq %rcx, 0x8(%r10,%r14)
movl 0xc(%rax), %edx
shlq $0x30, %rdx
orq %rcx, %rdx
movq %rdx, 0x8(%r10,%r14)
movq %rdx, %rcx
movabsq $0x40000000000, %rsi    # imm = 0x40000000000
orq %rsi, %rcx
cmpl $0x0, 0xc(%rax)
cmovnsq %rdx, %rcx
movl (%rax), %edx
movq %rdx, %rax
shlq $0x38, %rax
cmpl $0xff, %edx
movabsq $-0x100000000000000, %rsi # imm = 0xFF00000000000000
cmovaeq %rsi, %rax
orq %rcx, %rax
movq %rax, 0x8(%r10,%r14)
movq 0x8(%rbp), %rax
leal -0x1(%rdx), %ecx
cmpl %eax, %ecx
jbe 0x19eb4
incq %rax
movq %rax, 0x8(%rbp)
movq %rax, %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
movq 0x10(%r13,%rcx), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rax
movq %rax, (%rbp)
jmp 0x19ecb
movl %r12d, %eax
shlq $0x4, %rax
movq 0x30(%rsp), %rcx
movups (%rcx,%rax), %xmm0
movups %xmm0, (%rbp)
decl %r12d
movl %r12d, %esi
xorl %edi, %edi
movq %rbp, %rdx
callq 0x195bc
movq %r15, %r14
jmp 0x19d6b
movq 0x80(%rsp), %r15
movq %r15, %rdi
movq %r13, %rsi
callq 0x2577
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2577
movq 0x18(%rsp), %rdx
leaq (%r14,%rdx), %r15
cmpq %r15, %rbx
jle 0x19f3a
shlq $0x4, %r14
movq 0x20(%rsp), %rax
addq %rax, %r14
movq 0x60(%rsp), %rsi
addq %rax, %rsi
shlq $0x4, %rdx
subq %rdx, %rsi
movq %r14, %rdi
callq 0x22d0
movq %r15, 0x90(%rsp)
movq %r15, %rbx
movq 0x28(%rsp), %rsi
leaq 0x14732(%rip), %rax     # 0x2e678
testb $0x4, (%rax)
movq 0x180(%rsp), %rcx
movl 0x14(%rsp), %edx
jne 0x1adb5
movl 0x40(%rcx), %eax
movl 0x44(%rcx), %ebp
cmpl %eax, %edx
movl %eax, %r14d
cmovgl %edx, %r14d
testb $0x20, 0xb0(%rsp)
cmovel %eax, %r14d
testl %ebp, %ebp
jg 0x19f8c
movl 0x48(%rcx), %ebp
testl %ebp, %ebp
jle 0x19f8a
subl %edx, %ebp
cmpl %eax, %ebp
cmovlel %eax, %ebp
jmp 0x19f8c
movl %eax, %ebp
movss 0x4c(%rcx), %xmm1
xorps 0xac98(%rip), %xmm1     # 0x24c30
cvtsi2ssl 0x18(%rsi), %xmm0
mulss %xmm1, %xmm0
callq 0x20a0
movq 0x180(%rsp), %rax
movss 0x50(%rax), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x48(%rsp)
mulss 0x54(%rax), %xmm0
movss %xmm0, 0x4c(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
leaq 0x146a0(%rip), %rcx     # 0x2e678
testb $0x2, (%rcx)
je 0x19ff0
callq 0x37fd
movq 0x180(%rsp), %rax
movsd %xmm0, 0x38(%rsp)
testq %rbx, %rbx
je 0x1a05b
testb $-0x80, 0x1(%rax)
jne 0x1a082
movl 0x28(%rax), %edx
movl 0x58(%rax), %ecx
movl 0x5c(%rax), %r8d
movl 0x64(%rax), %r9d
movl 0x68(%rax), %eax
leaq 0x40(%rsp), %r10
leaq 0x4(%rsp), %r11
movl %ebp, %edi
movl %r14d, %esi
movss 0x48(%rsp), %xmm0
movss 0x4c(%rsp), %xmm1
movq 0x8(%rsp), %r14
pushq (%r14)
pushq %r10
pushq %r11
pushq 0x38(%rsp)
pushq %rbx
movq 0x98(%rsp), %rbx
pushq %rbx
pushq 0xa8(%rsp)
pushq %rax
callq 0x1353e
addq $0x40, %rsp
movq %rax, %r14
jmp 0x1a0d2
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x1a072
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x2577
andl $0x0, 0x4(%rsp)
andq $0x0, 0x40(%rsp)
xorl %r14d, %r14d
jmp 0x1a0cd
movl 0x40(%rax), %edi
movl 0x3c(%rax), %esi
movl 0x58(%rax), %ecx
movl 0x28(%rax), %edx
movl 0x30(%rax), %r8d
movl 0x64(%rax), %r9d
movl 0x68(%rax), %eax
leaq 0x40(%rsp), %r10
leaq 0x4(%rsp), %r11
movss 0x48(%rsp), %xmm0
movss 0x4c(%rsp), %xmm1
movq 0x8(%rsp), %r14
pushq (%r14)
pushq %r10
pushq %r11
pushq 0x38(%rsp)
pushq %rbx
pushq %rax
callq 0x14968
addq $0x30, %rsp
movq %rax, %r14
movq 0x70(%rsp), %rbx
leaq 0x1459f(%rip), %rax     # 0x2e678
testb $0x2, (%rax)
movq 0x188(%rsp), %rsi
je 0x1a0fa
pushq $0x1
popq %rdi
movsd 0x38(%rsp), %xmm0
callq 0x1af18
movsd %xmm0, 0x38(%rsp)
movq 0x180(%rsp), %r8
movl 0x2c(%r8), %eax
cmpl 0x28(%r8), %eax
jle 0x1a210
testb $0x30, (%r8)
sete %al
cmpl $0x1, %ebx
sete %cl
andb %al, %cl
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
setge %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1a210
movl 0x8(%r14), %ecx
movq 0x40(%rsp), %rsi
movq (%rsi), %rdx
shlq $0x20, %rdx
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
addq %rdx, %rdi
sarq $0x1c, %rdi
subl 0x8(%r14,%rdi), %ecx
movl 0x14(%rsp), %edx
addl %edx, %ecx
cmpl 0x34(%r8), %ecx
jg 0x1a17d
cvtsi2ss %ecx, %xmm0
cvtsi2ss %edx, %xmm1
mulss 0x38(%r8), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x1a210
movq %r14, %r12
movl %eax, %eax
xorl %ecx, %ecx
xorl %r14d, %r14d
cmpq %rcx, %rax
je 0x1a198
movslq (%rsi,%rcx,8), %rdx
addq %rdx, %r14
incq %rcx
jmp 0x1a187
movq %r14, 0x90(%rsp)
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movq %r8, %r15
callq 0x2577
shlq $0x4, %r14
addq %r12, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0xcb7f
movl 0x40(%r15), %edi
movl 0x3c(%r15), %esi
movl 0x58(%r15), %ecx
movl 0x2c(%r15), %edx
movl 0x30(%r15), %r8d
movl 0x64(%r15), %r9d
movl 0x68(%r15), %eax
leaq 0x40(%rsp), %r10
leaq 0x4(%rsp), %r11
movss 0x48(%rsp), %xmm0
movss 0x4c(%rsp), %xmm1
pushq (%rbx)
pushq %r10
pushq %r11
pushq %r12
pushq 0xb0(%rsp)
pushq %rax
callq 0x14968
addq $0x30, %rsp
movq %rax, %r14
movq 0x8(%rsp), %rbx
movl %ebp, 0x8(%rbx)
movq (%rbx), %rdi
movq 0x128(%rsp), %rsi
callq 0x2577
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
movq %r14, 0x18(%rsp)
je 0x1a994
movq (%rbx), %rdi
movq 0x40(%rsp), %r8
movq 0xc0(%rsp), %rsi
movl 0x14(%rsp), %edx
movq %r14, %r9
callq 0x15410
movq %rax, 0x50(%rsp)
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
jl 0x1a9a7
leaq -0x8(%r14), %rcx
movq %rcx, 0x130(%rsp)
leaq 0x8(%r14), %rcx
movq %rcx, 0x80(%rsp)
leaq 0x18(%r14), %rcx
movq %rcx, 0xc8(%rsp)
xorl %ecx, %ecx
movl $0x0, 0x68(%rsp)
movq 0x180(%rsp), %r11
cltq
cmpq %rax, %rcx
jge 0x1a99f
movq %rcx, 0xd0(%rsp)
imulq $0x28, %rcx, %rax
movq 0x50(%rsp), %rdx
leaq (%rdx,%rax), %rcx
movq %rcx, 0xd8(%rsp)
movl 0x4(%rdx,%rax), %ecx
addl %ecx, %ecx
sarl %ecx
movslq (%rdx,%rax), %r15
movslq 0x7c(%r11), %rdi
movl 0x78(%r11), %ebx
cmpl %ecx, %ebx
movl %ecx, %ebp
cmovll %ebx, %ebp
leal (%r15,%rcx), %eax
movslq %eax, %r8
xorl %eax, %eax
testl %ebp, %ebp
cmovlel %eax, %ebp
shlq $0x4, %r8
addq 0x130(%rsp), %r8
cmpl %eax, %ebp
je 0x1a312
movzbl 0x7(%r8), %r9d
cmpq %rdi, %r9
jbe 0x1a310
incl %eax
addq $-0x10, %r8
jmp 0x1a2fa
movl %eax, %ebp
movl %ecx, %r8d
subl %ebp, %r8d
cmpl %ebx, %r8d
cmovll %r8d, %ebx
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
movq %r15, %r9
shlq $0x4, %r9
addq 0x80(%rsp), %r9
cmpl %eax, %ebx
je 0x1a34d
movzbl 0x7(%r9), %r10d
cmpq %rdi, %r10
jbe 0x1a34b
incl %eax
addq $0x10, %r9
jmp 0x1a335
movl %eax, %ebx
leal (%r15,%rbx), %esi
movl %r8d, %edx
subl %ebx, %edx
cmpl $0x3, %edx
jge 0x1a365
movq 0x8(%rsp), %rax
jmp 0x1a501
movl %ebp, 0x30(%rsp)
movl 0x28(%r11), %r13d
movq 0xd8(%rsp), %rax
movl 0x1c(%rax), %edi
movq %rsi, %rbx
movslq %ebx, %r9
movq %r9, %r10
shlq $0x4, %r10
movzbl 0xc(%r14,%r10), %ebp
movl %r8d, %eax
addl %r15d, %r8d
movq %r15, 0x20(%rsp)
addl %r15d, %eax
decl %eax
cmpl $0x65, %r13d
pushq $0x64
popq %r11
cmovgel %r13d, %r11d
addl %r13d, %r13d
sarl %edi
cmpl %r11d, %edi
cmovgel %r11d, %edi
movslq %eax, %r11
addq 0xc8(%rsp), %r10
incq %r9
movl %ebp, %r14d
cmpq %r11, %r9
jge 0x1a433
movl -0x8(%r10), %eax
subl -0x18(%r10), %eax
movq (%r10), %r15
movl %r13d, %edx
movl -0x10(%r10), %r13d
movl %r15d, %r12d
subl %r13d, %r12d
cmpl %r12d, %eax
movslq %r12d, %r13
cmovll %eax, %r12d
cltq
subq %r13, %rax
movq %rax, %r13
negq %r13
cmovsq %rax, %r13
leal (%r12,%r14), %eax
sarl %r14d
cmpl %r14d, %r13d
movl %edx, %r13d
cmovgl %r9d, %esi
cmovgl %r9d, %ebx
cmpl %edx, %eax
jge 0x1a433
shrq $0x20, %r15
movzbl %r15b, %r14d
cmpl %r14d, %r12d
cmovll %r12d, %r14d
addl %r14d, %ebp
addq $0x10, %r10
incq %r9
movl %eax, %r14d
cmpl %edi, %ebp
jl 0x1a3c4
movl %r8d, %r12d
subl %ebx, %r12d
shlq $0x4, %r11
movq 0x18(%rsp), %r14
movzbl 0xc(%r14,%r11), %r9d
addl $-0x2, %r8d
movslq %r8d, %r8
movslq %esi, %r10
movq %r8, %r11
shlq $0x4, %r11
addq 0xc8(%rsp), %r11
movq 0x20(%rsp), %rdx
addl %ecx, %edx
movl %r10d, %ecx
notl %ecx
addl %edx, %ecx
subl 0x30(%rsp), %ecx
movl %r9d, %eax
cmpq %r10, %r8
jle 0x1a4dd
movq (%r11), %rdx
movq %rdx, %rbx
shrq $0x20, %rbx
movl -0x8(%r11), %ebp
subl -0x18(%r11), %ebp
subl -0x10(%r11), %edx
cmpl %edx, %ebp
movslq %edx, %r14
cmovll %ebp, %edx
movzbl %bl, %r15d
movslq %ebp, %rbx
subq %r14, %rbx
movq %rbx, %r14
negq %r14
cmovsq %rbx, %r14
leal (%rdx,%rax), %ebx
sarl %eax
cmpl %eax, %r14d
cmovgl %ecx, %r12d
cmpl %r15d, %edx
cmovgel %r15d, %edx
cmpl %r13d, %ebx
jge 0x1a4ec
addq $-0x10, %r11
addl %edx, %r9d
decq %r8
decl %ecx
movl %ebx, %eax
cmpl %edi, %r9d
movq 0x18(%rsp), %r14
jl 0x1a476
movq 0x8(%rsp), %rax
movq 0x180(%rsp), %r11
jmp 0x1a4fe
movq 0x8(%rsp), %rax
movq 0x180(%rsp), %r11
movq 0x18(%rsp), %r14
movq %r12, %rdx
movq %rsi, 0x78(%rsp)
movq (%rax), %rdi
movl 0x40(%r11), %r15d
movq %rdi, 0x138(%rsp)
movq %rdx, 0xe0(%rsp)
movq %r14, %rcx
pushq $0xa
popq %r8
leaq 0xf0(%rsp), %r9
callq 0x1b183
movq 0x78(%rsp), %rsi
movslq %esi, %rcx
movq %rcx, 0x30(%rsp)
testq %rax, %rax
je 0x1a725
sarl %r15d
movl 0xf0(%rsp), %ecx
xorl %r13d, %r13d
pushq $0x1
popq %rdx
movq %rdx, 0x20(%rsp)
xorl %r10d, %r10d
pushq $-0x1
popq %rdx
movl %edx, %r8d
movl %edx, %esi
cmpq %rcx, %r13
movabsq $0x20000000000, %r9     # imm = 0x20000000000
je 0x1a583
movslq %r8d, %rdx
cmpq %rdx, %r13
jge 0x1a583
pushq $-0x1
popq %rdi
jmp 0x1a5d0
testl %r8d, %r8d
jle 0x1a5bc
movslq %esi, %rdx
movslq (%rax,%rdx,4), %rsi
movl %r8d, %edx
movslq (%rax,%rdx,4), %rdi
movq 0x30(%rsp), %rdx
leaq (%rdx,%rsi), %r8
shlq $0x4, %r8
addq 0x80(%rsp), %r8
cmpq %rdi, %rsi
jge 0x1a5bc
orq %r9, (%r8)
incq %rsi
addq $0x10, %r8
jmp 0x1a5ab
xorl %r10d, %r10d
pushq $-0x1
popq %rdi
movl %edi, %r8d
movl %edi, %esi
cmpq %rcx, %r13
je 0x1a710
movl %esi, 0xb0(%rsp)
movl %r10d, 0x88(%rsp)
movl %r8d, 0x58(%rsp)
movslq (%rax,%r13,4), %rdx
addq 0x30(%rsp), %rdx
shlq $0x4, %rdx
movl 0x8(%r14,%rdx), %esi
movl -0x10(%r14,%rdx), %r10d
movl -0x8(%r14,%rdx), %r11d
subl %r11d, %esi
movl %r10d, %r12d
subl (%r14,%rdx), %r12d
addl %esi, %r12d
movl %r12d, %ebx
negl %ebx
xorl %ebp, %ebp
testl %r12d, %r12d
cmovlel %ebp, %r12d
cmovgl %ebp, %ebx
movq %r13, 0x60(%rsp)
leaq 0xa(%r13), %r9
movq 0x20(%rsp), %r8
movl %edi, %esi
cmpl %r8d, %ecx
jle 0x1a6ce
leaq -0x1(%r8), %rdx
cmpq %r9, %rdx
jae 0x1a6ce
movslq (%rax,%r8,4), %r13
addq 0x30(%rsp), %r13
shlq $0x4, %r13
movl 0x8(%r14,%r13), %edi
movl %edi, %edx
subl %r11d, %edx
cmpl %r15d, %edx
jg 0x1a6ce
addq %r14, %r13
movq (%r13), %rdx
movl %edx, %r14d
subl %r10d, %r14d
cmpl %r15d, %r14d
movq 0x18(%rsp), %r14
jg 0x1a6ce
subl -0x8(%r13), %edi
movl -0x10(%r13), %r14d
subl %edx, %r14d
addl %edi, %r14d
testl %r14d, %r14d
movl $0x0, %edx
cmovgl %r14d, %edx
movl $0x0, %edi
cmovnsl %edi, %r14d
addl %edx, %r12d
subl %r14d, %ebx
leal (%r12,%rbx), %edx
movl %r12d, %edi
subl %ebx, %edi
movl %edi, %r14d
negl %r14d
cmovnsl %edi, %r14d
addl %edx, %r14d
cmpl %r14d, %ebp
cmovlel %r14d, %ebp
movq 0x18(%rsp), %r14
cmovll %r8d, %esi
incq %r8
jmp 0x1a62e
cmpl $0x29, %ebp
setge %dl
movl 0x88(%rsp), %r10d
cmpl %r10d, %ebp
setg %dil
testb %dil, %dl
cmovnel %ebp, %r10d
movl 0x58(%rsp), %r8d
cmovnel %esi, %r8d
movq 0x60(%rsp), %r13
movl 0xb0(%rsp), %esi
cmovnel %r13d, %esi
incq %r13
incq 0x20(%rsp)
jmp 0x1a567
movq 0x138(%rsp), %rdi
movq %rax, %rsi
callq 0x2577
movq 0x78(%rsp), %rsi
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq 0x180(%rsp), %rax
movl 0x40(%rax), %r15d
movq %rdi, 0x88(%rsp)
movq 0xe0(%rsp), %rdx
movq %r14, %rcx
pushq $0x1e
popq %r8
leaq 0xf0(%rsp), %r9
callq 0x1b183
testq %rax, %rax
je 0x1a8c6
sarl %r15d
movl 0xf0(%rsp), %ecx
movl %ecx, 0x58(%rsp)
movslq %ecx, %rcx
movq %rcx, 0x20(%rsp)
xorl %esi, %esi
cmpl 0x58(%rsp), %esi
jge 0x1a8b6
movslq %esi, %r9
movslq (%rax,%r9,4), %rdi
movq 0x30(%rsp), %rcx
leaq (%rdi,%rcx), %r8
shlq $0x4, %r8
movl (%r14,%r8), %ebp
movl 0x8(%r14,%r8), %ebx
movl -0x8(%r14,%r8), %ecx
addl %ebp, %ecx
movl %ebx, %edx
subl %ecx, %edx
addl -0x10(%r14,%r8), %edx
movl %edx, %r11d
negl %r11d
cmovsl %edx, %r11d
leal 0x1(%rsi), %ecx
movl %ecx, 0x60(%rsp)
incq %r9
cmpq 0x20(%rsp), %r9
jge 0x1a861
movslq (%rax,%r9,4), %rdx
addq 0x30(%rsp), %rdx
shlq $0x4, %rdx
movl 0x8(%r14,%rdx), %r12d
movl %r12d, %ecx
subl %ebx, %ecx
cmpl %r15d, %ecx
jg 0x1a85d
addq %r14, %rdx
movq (%rdx), %rcx
movl %ecx, %r10d
subl %ebp, %r10d
cmpl %r15d, %r10d
jg 0x1a85d
movq -0x8(%rdx), %r10
movl %r12d, %r14d
subl %r10d, %r14d
movl -0x10(%rdx), %edx
movl %edx, %r13d
subl %ecx, %r13d
addl %r14d, %r13d
movq %r10, %r14
shrq $0x20, %r14
movzbl %r14b, %r14d
subl %ebp, %edx
addl %r14d, %edx
subl %ebx, %r10d
addl %r14d, %r10d
movq 0x18(%rsp), %r14
cmpl %r10d, %edx
cmovll %edx, %r10d
movl %r13d, %edx
negl %edx
cmovsl %r13d, %edx
addl %edx, %r11d
incl %esi
incq %r9
movl %r12d, %ebx
movl %ecx, %ebp
cmpl %r11d, %r10d
movl %edx, %r11d
jle 0x1a7c9
jmp 0x1a867
incl %esi
jmp 0x1a867
movl 0x58(%rsp), %ecx
movl %ecx, %esi
cmpl 0x60(%rsp), %esi
jle 0x1a77e
movslq %esi, %rcx
movslq -0x4(%rax,%rcx,4), %rcx
addq 0x80(%rsp), %r8
movabsq $0x20000000000, %rdx    # imm = 0x20000000000
movq 0x78(%rsp), %r9
cmpq %rcx, %rdi
jge 0x1a8a1
orq %rdx, (%r8)
incq %rdi
addq $0x10, %r8
jmp 0x1a890
addl %r9d, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
orb $0x8, 0xd(%r14,%rcx)
jmp 0x1a77e
movq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x2577
movq 0xd8(%rsp), %rsi
movq 0x78(%rsp), %rdi
movl %edi, (%rsi)
movq 0xe0(%rsp), %r8
movl %r8d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl 0x4(%rsi), %ecx
movl $0x80000000, %edx       # imm = 0x80000000
andl %edx, %ecx
orl %eax, %ecx
movl %ecx, 0x4(%rsi)
movq 0x180(%rsp), %r11
cmpl 0x64(%r11), %r8d
jl 0x1a980
movq 0x30(%rsp), %rdx
shlq $0x4, %rdx
movq 0x8(%r14,%rdx), %rax
movq %rax, %rcx
shrq $0x20, %rcx
movzbl %cl, %ecx
movl (%r14,%rdx), %edx
subl %ecx, %edx
incl %edx
movl %edx, 0xc(%rsi)
subl %ecx, %eax
incl %eax
movl %eax, 0x14(%rsi)
addl %r8d, %r8d
sarl %r8d
leal (%rdi,%r8), %eax
decl %eax
cltq
shlq $0x4, %rax
movl (%r14,%rax), %ecx
incl %ecx
movl %ecx, 0x10(%rsi)
movl 0x8(%r14,%rax), %eax
incl %eax
movl %eax, 0x18(%rsi)
movl 0x68(%rsp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, 0x68(%rsp)
imulq $0x28, %rax, %rax
movq 0x20(%rsi), %rcx
movq 0x50(%rsp), %rdx
movq %rcx, 0x20(%rdx,%rax)
movups (%rsi), %xmm0
movups %xmm0, (%rdx,%rax)
movups 0x10(%rsi), %xmm0
movups %xmm0, 0x10(%rdx,%rax)
movq 0xd0(%rsp), %rcx
incq %rcx
movl 0x4(%rsp), %eax
jmp 0x1a29d
movq $0x0, 0x50(%rsp)
jmp 0x1a9f3
movl 0x68(%rsp), %eax
movl %eax, 0x4(%rsp)
movq 0x50(%rsp), %rbx
addq $0x4, %rbx
xorl %r14d, %r14d
cltq
cmpq %rax, %r14
jge 0x1a9ee
movl (%rbx), %edi
addl %edi, %edi
sarl %edi
movslq -0x4(%rbx), %rsi
shlq $0x4, %rsi
addq 0x18(%rsp), %rsi
movl 0x9c(%rsp), %edx
movq 0xb8(%rsp), %rcx
callq 0x155bb
incq %r14
movl 0x4(%rsp), %eax
addq $0x28, %rbx
jmp 0x1a9b3
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movq 0xb8(%rsp), %rsi
callq 0x2577
movq (%rbx), %rdi
movq 0x40(%rsp), %rsi
callq 0x2577
leaq 0x13c61(%rip), %rbx     # 0x2e678
movl (%rbx), %eax
testb $0x2, %al
je 0x1aa3b
pushq $0x2
popq %rdi
movsd 0x38(%rsp), %xmm0
movq 0x188(%rsp), %rsi
callq 0x1af18
movsd %xmm0, 0x38(%rsp)
movl (%rbx), %eax
movl 0x14(%rsp), %ecx
movq 0x18(%rsp), %r8
testb $0x8, %al
je 0x1aa71
movq 0x13589(%rip), %rax     # 0x2dfd8
movq (%rax), %rdi
movl 0x4(%rsp), %edx
movq 0x28(%rsp), %rsi
movq 0x50(%rsp), %rcx
movq 0x188(%rsp), %r9
callq 0x1bfab
movl 0x14(%rsp), %ecx
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movslq %ecx, %rsi
callq 0x266c
movq %rax, %r15
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0xa0(%rsp), %rcx
cmpq %rbx, 0x140(%rsp)
je 0x1aac8
movslq %r14d, %r14
leaq (%r15,%r14), %rdi
movq 0xe8(%rsp), %rax
movq (%rax,%rbx,8), %rsi
movslq (%rcx,%rbx,4), %rdx
callq 0x2060
movq 0xa0(%rsp), %rcx
addl (%rcx,%rbx,4), %r14d
incq %rbx
jmp 0x1aa91
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x180(%rsp), %rcx
movl 0x2c(%rcx), %r9d
movl 0x60(%rcx), %eax
movl 0x90(%rcx), %r10d
movss 0x80(%rcx), %xmm2
leaq 0x40(%rsp), %r11
leaq 0x4(%rsp), %rdx
movq 0x50(%rsp), %rcx
movl 0x14(%rsp), %r8d
movss 0x48(%rsp), %xmm0
movss 0x4c(%rsp), %xmm1
pushq %r11
movq 0x20(%rsp), %r14
pushq %r14
pushq %r10
pushq %rax
pushq %r9
pushq %r9
callq 0x158fb
addq $0x30, %rsp
movl %eax, %ebx
leaq 0x13b40(%rip), %rax     # 0x2e678
testb $0x2, (%rax)
je 0x1ab59
pushq $0x3
popq %rdi
movsd 0x38(%rsp), %xmm0
movq 0x188(%rsp), %rsi
callq 0x1af18
movsd %xmm0, 0x38(%rsp)
movq 0xa8(%rsp), %r12
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x28(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq 0x40(%rsp), %r9
movq 0x180(%rsp), %rdi
movl 0x6c(%rdi), %eax
movl 0x70(%rdi), %r10d
movl 0x74(%rdi), %r11d
xorl %edi, %edi
movl %ebx, %r8d
pushq %r15
pushq 0x78(%rsp)
pushq %r11
pushq %r10
pushq %rax
pushq 0xe8(%rsp)
pushq %r14
pushq 0x88(%rsp)
callq 0x16a42
addq $0x40, %rsp
movq %rax, (%r12)
leaq 0x13ab7(%rip), %rcx     # 0x2e678
testb $0x2, (%rcx)
je 0x1abe6
pushq $0x4
popq %rdi
movsd 0x38(%rsp), %xmm0
movq 0x188(%rsp), %rsi
callq 0x1af18
movsd %xmm0, 0x38(%rsp)
movq (%r12), %rax
movl 0x6c(%rsp), %ecx
movl %ecx, 0x14(%rax)
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x2577
movq (%rbx), %rdi
movq 0x50(%rsp), %rsi
callq 0x2577
movq (%rbx), %rdi
movq 0x40(%rsp), %rsi
callq 0x2577
movq (%rbx), %rdi
movq 0x180(%rsp), %r14
movss 0x80(%r14), %xmm0
movq (%r12), %rax
movl 0x8(%rax), %esi
movq 0x18(%rax), %rdx
movl 0x84(%r14), %ecx
xorl %r8d, %r8d
callq 0x18d78
movss 0x8c(%r14), %xmm0
movq 0x28(%rsp), %rax
movl 0x18(%rax), %edi
addl %edi, %edi
movl 0x88(%r14), %esi
movq (%r12), %rax
movl 0x8(%rax), %edx
movq 0x18(%rax), %rcx
callq 0x1904b
movq (%rbx), %rdi
movq (%r12), %rsi
callq 0x1911a
movq (%rbx), %rdi
movq (%r12), %rsi
movl 0x118(%rsp), %ecx
movl 0x70(%r14), %r8d
movl 0x14(%rsp), %edx
callq 0x1937b
cmpl $0x1, 0x70(%rsp)
jne 0x1acf7
movq 0x180(%rsp), %rax
movq (%rax), %rax
andl $0x4000000, %eax        # imm = 0x4000000
je 0x1acf7
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
movq 0x28(%rsp), %r12
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0xa8(%rsp), %r14
movq (%r14), %r8
movq %r15, %rcx
movq 0x188(%rsp), %r9
callq 0x17734
movq (%rbx), %rdi
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq (%r14), %r8
movq %r15, %rcx
callq 0x18119
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq %r15, %rsi
callq 0x2577
leaq 0x1396a(%rip), %rbx     # 0x2e678
testb $0x2, (%rbx)
je 0x1ad29
pushq $0x5
popq %rdi
movsd 0x38(%rsp), %xmm0
movq 0x188(%rsp), %rsi
callq 0x1af18
movq 0x8(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x1ada3
leaq 0xf0(%rsp), %rsi
callq 0x286d
testb $0x2, (%rbx)
jne 0x1ae7b
movq 0x100(%rsp), %rax
cmpq 0x108(%rsp), %rax
jne 0x1aec1
cmpq $0x10000000, 0x110(%rsp) # imm = 0x10000000
movq 0x180(%rsp), %rax
ja 0x1ad8e
movq 0x98(%rax), %rax
testq %rax, %rax
jle 0x1ada3
cmpq %rax, 0xf0(%rsp)
jbe 0x1ada3
movq 0x8(%rsp), %rbx
movq (%rbx), %rdi
callq 0x253c
callq 0x2533
movq %rax, (%rbx)
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1323c(%rip), %r15     # 0x2dff8
movq (%r15), %rdi
movl 0x6c(%rsp), %edx
leaq 0x9e76(%rip), %rsi      # 0x24c40
xorl %eax, %eax
callq 0x2210
testq %rbx, %rbx
movl $0x0, %r12d
cmovgq %rbx, %r12
leaq 0x9e62(%rip), %r14      # 0x24c47
movq 0x20(%rsp), %rbp
xorl %r13d, %r13d
cmpq %r13, %r12
movq 0x180(%rsp), %rcx
movl 0x14(%rsp), %edx
movq 0x28(%rsp), %rsi
je 0x19f5b
movq (%rbp), %rcx
movq 0x8(%rbp), %r9
btq $0x20, %rcx
leaq 0x8554(%rip), %rax      # 0x2336f
adcq $0x0, %rax
xorl %r10d, %r10d
testq %r13, %r13
je 0x1ae36
movl -0x8(%rbp), %edx
addl %ecx, %edx
movl %r9d, %r10d
subl %edx, %r10d
addl -0x10(%rbp), %r10d
movq (%r15), %rdi
movq (%rsi), %rdx
movq 0x10(%rdx), %rdx
movq %rcx, %rsi
shrq $0x1b, %rsi
andq $-0x40, %rsi
movq 0x18(%rdx,%rsi), %rdx
movsbl (%rax), %r8d
movq %r9, %rax
shrq $0x20, %rax
movzbl %al, %r11d
movq %r14, %rsi
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x2210
popq %rcx
popq %rdx
incq %r13
addq $0x10, %rbp
jmp 0x1aded
movq 0x13176(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
movq 0xf0(%rsp), %r8
movq 0x108(%rsp), %r9
subq $0x8, %rsp
leaq 0x9dbd(%rip), %rsi      # 0x24c5d
movq 0x190(%rsp), %rdx
movl 0x1c(%rsp), %ecx
xorl %eax, %eax
pushq 0x118(%rsp)
callq 0x2210
popq %rcx
popq %rdx
jmp 0x1ad4c
movq 0x13130(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
leaq 0x9db3(%rip), %rsi      # 0x24c85
leaq 0x9dc7(%rip), %rdx      # 0x24ca0
movq 0x188(%rsp), %rcx
xorl %eax, %eax
callq 0x2210
callq 0x2050