// File: /workspace/github_c_makefile_star2_O1/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 $0x158, %rsp            # imm = 0x158
movq %rdi, 0x30(%rsp)
movq 0x190(%rsp), %rdi
movq (%rdi), %r14
xorpd %xmm0, %xmm0
movapd %xmm0, 0xd0(%rsp)
movq $0x0, 0xe0(%rsp)
testl %esi, %esi
jle 0x1d0b3
movl %esi, %eax
xorl %r11d, %r11d
xorl %r10d, %r10d
addl (%rdx,%r11,4), %r10d
movq $0x0, (%r8,%r11,8)
incq %r11
cmpq %r11, %rax
jne 0x1d09d
jmp 0x1d0b6
xorl %r10d, %r10d
leal -0x100(%rsi), %eax
cmpl $0xffffff01, %eax       # imm = 0xFFFFFF01
jb 0x1e797
testl %r10d, %r10d
je 0x1e797
movl 0x14(%rdi), %eax
testl %eax, %eax
jle 0x1d0e0
cmpl %eax, %r10d
jg 0x1e797
movq %rdx, 0xa8(%rsp)
movq 0x198(%rsp), %rdx
xorl %eax, %eax
testq %rdx, %rdx
je 0x1d12c
movsbl (%rdx), %r11d
testl %r11d, %r11d
je 0x1d12c
movb 0x1(%rdx), %bl
testb %bl, %bl
je 0x1d129
addq $0x2, %rdx
movl %r11d, %eax
movl %eax, %r11d
shll $0x5, %r11d
subl %eax, %r11d
movsbl %bl, %eax
addl %r11d, %eax
movb (%rdx), %bl
incq %rdx
testb %bl, %bl
jne 0x1d10e
jmp 0x1d12c
movl %r11d, %eax
movq %r14, 0x60(%rsp)
movq %rcx, 0x100(%rsp)
movq %r8, 0xb0(%rsp)
movl %r10d, %ecx
shll $0xf, %ecx
notl %ecx
movl %r10d, 0x2c(%rsp)
addl %r10d, %ecx
movl %ecx, %edx
shrl $0xa, %edx
xorl %ecx, %edx
leal (%rdx,%rdx,8), %ecx
movl %ecx, %edx
shrl $0x6, %edx
xorl %ecx, %edx
movl %edx, %r8d
shll $0xb, %r8d
notl %r8d
addl %edx, %r8d
movl %r8d, %ecx
shrl $0x10, %ecx
xorl %r8d, %ecx
movl 0x10(%rdi), %edx
movl %edx, %edi
shll $0xf, %edi
notl %edi
addl %edx, %edi
movl %edi, %edx
shrl $0xa, %edx
xorl %edi, %edx
leal (%rdx,%rdx,8), %edx
movl %edx, %edi
shrl $0x6, %edi
xorl %edx, %edi
movl %edi, %edx
shll $0xb, %edx
notl %edx
addl %edi, %edx
movl %edx, %edi
shrl $0x10, %edi
xorl %edx, %edi
addl %ecx, %edi
xorl %eax, %edi
movl %edi, %eax
shll $0xf, %eax
notl %eax
addl %edi, %eax
movl %eax, %r15d
shrl $0xa, %r15d
xorl %eax, %r15d
movq %r9, 0x18(%rsp)
movq (%r9), %rbx
movq $0x0, 0xd0(%rsp)
movl %esi, %eax
movq %rax, 0xf8(%rsp)
movq %rsi, 0x98(%rsp)
testl %esi, %esi
movq 0x30(%rsp), %r9
movq 0xa8(%rsp), %rcx
jle 0x1d293
xorl %r14d, %r14d
leaq 0xd0(%rsp), %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x100(%rsp), %rax
movq (%rax,%r14,8), %rsi
movl (%rcx,%r14,4), %edx
movl 0x14(%r9), %ecx
movl 0x18(%r9), %r8d
subq $0x8, %rsp
movq %rbx, %rdi
movl %r14d, %r9d
pushq %r12
callq 0xe4f4
addq $0x10, %rsp
movslq %ebp, %rdx
movq 0xd0(%rsp), %rbp
movq %rbp, %rax
subq %rdx, %rax
jbe 0x1d271
leal (,%r13,2), %ecx
movslq %ecx, %rcx
movq 0xe0(%rsp), %rsi
shlq $0x4, %rdx
addq %rsi, %rdx
addq $0x8, %rdx
addq %rcx, (%rdx)
addq $0x10, %rdx
decq %rax
jne 0x1d265
movq 0xa8(%rsp), %rcx
addl (%rcx,%r14,4), %r13d
incq %r14
cmpq 0xf8(%rsp), %r14
movq 0x30(%rsp), %r9
jne 0x1d207
movq 0x190(%rsp), %rcx
testb $0x4, 0x1(%rcx)
leal (%r15,%r15,8), %r14d
movq 0x18(%rsp), %rax
movq (%rax), %rbp
movl 0x1c(%rcx), %edx
leaq 0x108(%rsp), %rax
jne 0x1d59a
subq $0x8, %rsp
leaq 0xac(%rsp), %r10
leaq 0x9c(%rsp), %r11
leaq 0x118(%rsp), %rbx
leaq 0xd8(%rsp), %r8
leaq 0x58(%rsp), %r12
movq %rbp, %rdi
movq %rbx, %rsi
movq %r9, %rcx
movq %r12, %r9
pushq %rax
pushq %r10
pushq %r11
callq 0x1e9bf
addq $0x20, %rsp
movq %rax, %r15
movq (%r12), %rsi
shlq $0x4, %rsi
movq %rbp, %rdi
callq 0x31c1
movq %rax, %r10
movq $0x0, (%r12)
movslq (%rbx), %rax
movq %rax, 0xc0(%rsp)
testq %rax, %rax
movq %r10, 0x40(%rsp)
jle 0x1d56b
movq %rbp, 0x38(%rsp)
movl %r14d, 0x88(%rsp)
movabsq $-0x200000000, %r11     # imm = 0xFFFFFFFE00000000
movabsq $0x40000000000, %rbp    # imm = 0x40000000000
movq 0x50(%rsp), %r13
xorl %eax, %eax
movq 0x190(%rsp), %rdi
movq 0x198(%rsp), %r8
movq 0x30(%rsp), %r9
movq %r15, 0xb8(%rsp)
movq %rax, 0xc8(%rsp)
leaq (%rax,%rax,2), %rax
movl (%r15,%rax,8), %esi
testq %rsi, %rsi
je 0x1d538
leaq (%r15,%rax,8), %r12
movq 0x10(%r15,%rax,8), %rax
movq %rax, 0x20(%rsp)
movq %rsi, %rcx
shlq $0x38, %rcx
cmpl $0xff, %esi
movabsq $-0x100000000000000, %rax # imm = 0xFF00000000000000
cmovaeq %rax, %rcx
movq %rcx, 0x10(%rsp)
xorl %r15d, %r15d
movq %rsi, 0x80(%rsp)
movq 0x20(%rsp), %rax
movq (%rax,%r15,8), %rbx
movl %ebx, %r14d
testq %r8, %r8
je 0x1d480
testb $0x40, 0x2(%rdi)
je 0x1d480
movq (%r9), %rcx
movq 0x10(%rcx), %rdx
movq %rbx, %rsi
shrq $0x1a, %rsi
andq $-0x40, %rsi
leaq (%rdx,%rsi), %rax
movslq 0x8(%rdx,%rsi), %rdx
testq %rdx, %rdx
js 0x1d425
movq 0x28(%rcx), %rsi
testq %rsi, %rsi
je 0x1d425
leaq (%rdx,%rdx,2), %rdx
movl 0xc(%rax), %ecx
leaq (%rsi,%rdx,8), %rax
addl %r14d, %ecx
jmp 0x1d42c
addq $0x18, %rax
movl %r14d, %ecx
cmpl 0x4(%r12), %ecx
movq 0x80(%rsp), %rsi
jne 0x1d480
movq (%rax), %rsi
movq %r8, %rdi
movq %r11, %rbp
callq 0x21f0
movq 0x80(%rsp), %rsi
movq %rbp, %r11
movabsq $0x40000000000, %rbp    # imm = 0x40000000000
movq 0x40(%rsp), %r10
movq 0x30(%rsp), %r9
movq 0x198(%rsp), %r8
movq 0x190(%rsp), %rdi
testl %eax, %eax
je 0x1d52c
shrl %r14d
movl %ebx, %ecx
andl $0x1, %ecx
movl 0x4(%r12), %eax
movl %eax, %edx
andl $0x1, %edx
cmpl %edx, %ecx
jne 0x1d4a4
addq %rbx, %rbx
andq %r11, %rbx
movl %r14d, %edx
orq %rbx, %rdx
jmp 0x1d4e2
shrq $0x20, %rbx
movq %rbx, %rcx
shlq $0x21, %rcx
movq (%r9), %rdx
movq 0x10(%rdx), %rdx
shlq $0x6, %rbx
movl (%rdx,%rbx), %edx
movl 0x8(%r12), %esi
subl %r14d, %edx
addl %esi, %edx
addl $-0x2, %edx
movq 0x80(%rsp), %rsi
orq %rcx, %rdx
movabsq $0x100000000, %rcx      # imm = 0x100000000
orq %rcx, %rdx
movq %r13, %rcx
shlq $0x4, %rcx
addq %r10, %rcx
movq %rdx, (%rcx)
movl 0x8(%r12), %edx
shlq $0x20, %rdx
shrl %eax
orq %rdx, %rax
movq %rax, 0x8(%rcx)
movl 0xc(%r12), %edx
shlq $0x30, %rdx
orq %rax, %rdx
movq %rdx, 0x8(%rcx)
cmpl $0x0, 0xc(%r12)
jns 0x1d520
orq %rbp, %rdx
movq %rdx, 0x8(%rcx)
incq %r13
movq 0x10(%rsp), %rax
orq %rax, 0x8(%rcx)
incq %r15
cmpq %r15, %rsi
jne 0x1d3cd
movq 0xc8(%rsp), %rax
incq %rax
cmpq 0xc0(%rsp), %rax
movq 0xb8(%rsp), %r15
jne 0x1d37b
movq %r13, 0x50(%rsp)
movl 0x88(%rsp), %r14d
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r10, %rbx
callq 0x30f6
movq 0x50(%rsp), %rax
shlq $0x4, %rax
movq %rbx, %rsi
addq %rax, %rsi
movq %rbx, %rdi
callq 0xeec3
movq 0x60(%rsp), %r13
jmp 0x1d880
movl %r14d, 0x88(%rsp)
movabsq $0x100000000, %r12      # imm = 0x100000000
subq $0x8, %rsp
leaq 0xac(%rsp), %r10
leaq 0x9c(%rsp), %r11
leaq 0x118(%rsp), %rbx
leaq 0xd8(%rsp), %r8
leaq 0x58(%rsp), %r14
movq %rbp, %rdi
movq %rbx, %rsi
movq %r9, %rcx
movq %r14, %r9
pushq %rax
pushq %r10
pushq %r11
callq 0x1e9bf
addq $0x20, %rsp
movq %rax, %r15
movslq (%rbx), %rbx
movq %rbx, %rsi
shlq $0x4, %rsi
movq %rbp, %rdi
callq 0x31c1
movq %rax, %r13
movq (%r14), %rsi
movq %rsi, 0x20(%rsp)
shlq $0x4, %rsi
movq %rbp, 0x38(%rsp)
movq %rbp, %rdi
movq %rsi, 0x10(%rsp)
callq 0x31c1
testq %rbx, %rbx
jle 0x1d66b
shlq $0x3, %rbx
leaq (%rbx,%rbx,2), %r8
xorl %ecx, %ecx
xorl %edx, %edx
xorl %ebp, %ebp
cmpl $0x0, (%r15,%rdx)
je 0x1d65d
movq 0x10(%r15,%rdx), %rsi
movq (%rsi), %rsi
movslq %ebp, %rbp
movq %rbp, %rdi
shlq $0x4, %rdi
movq %rsi, (%r13,%rdi)
movq %rcx, 0x8(%r13,%rdi)
incl %ebp
addq $0x18, %rdx
addq %r12, %rcx
cmpq %rdx, %r8
jne 0x1d638
jmp 0x1d66d
xorl %ebp, %ebp
movq %rax, 0x40(%rsp)
cmpl $0x2, %ebp
jb 0x1d697
movslq %ebp, %r12
movq %r12, %rbx
shrq %rbx
decq %rbx
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1cdec
addq $-0x1, %rbx
jb 0x1d683
testl %ebp, %ebp
jle 0x1d81d
movq %r13, %r14
addq $-0x10, %r14
xorl %eax, %eax
xorl %r12d, %r12d
movl 0xc(%r13), %ecx
leaq (%rcx,%rcx,2), %rdx
leaq (%r15,%rdx,8), %rcx
movq (%r13), %rsi
movl %esi, %edi
shrl %edi
movl %esi, %r8d
andl $0x1, %r8d
movl 0x4(%r15,%rdx,8), %edx
movl %edx, %r9d
andl $0x1, %r9d
cmpl %r9d, %r8d
jne 0x1d702
leaq 0x1(%rax), %rbx
movq %rax, %r8
shlq $0x4, %r8
addq %rsi, %rsi
movabsq $-0x200000000, %r9      # imm = 0xFFFFFFFE00000000
andq %r9, %rsi
movl %edi, %edi
orq %rsi, %rdi
movq 0x40(%rsp), %r9
movq %rdi, (%r9,%r8)
jmp 0x1d761
movq %r12, %r9
incq %r9
movq 0x20(%rsp), %r8
movq %r9, %r12
subq %r9, %r8
movq %rax, %rbx
movq %r8, %rax
shlq $0x4, %r8
shrq $0x20, %rsi
movq %rsi, %r9
shlq $0x21, %r9
movq 0x30(%rsp), %r10
movq (%r10), %r10
movq 0x10(%r10), %r10
shlq $0x6, %rsi
movl (%r10,%rsi), %esi
movl 0x8(%rcx), %r10d
subl %edi, %esi
addl %r10d, %esi
addl $-0x2, %esi
orq %r9, %rsi
movabsq $0x100000000, %rdi      # imm = 0x100000000
orq %rdi, %rsi
movq 0x40(%rsp), %r9
movq %rsi, (%r9,%r8)
movl 0x8(%rcx), %esi
shlq $0x20, %rsi
shrl %edx
orq %rsi, %rdx
shlq $0x4, %rax
leaq (%r9,%rax), %rsi
addq $0x8, %rsi
movq %rdx, 0x8(%r9,%rax)
movl 0xc(%rcx), %edi
shlq $0x30, %rdi
orq %rdx, %rdi
movq %rdi, 0x8(%r9,%rax)
cmpl $0x0, 0xc(%rcx)
jns 0x1d7a3
movabsq $0x40000000000, %rax    # imm = 0x40000000000
orq %rax, %rdi
movq %rdi, (%rsi)
movl (%rcx), %ecx
movq %rcx, %rax
shlq $0x38, %rax
cmpl $0xff, %ecx
movabsq $-0x100000000000000, %rdx # imm = 0xFF00000000000000
cmovaeq %rdx, %rax
orq %rax, (%rsi)
movq 0x8(%r13), %rax
decl %ecx
cmpl %eax, %ecx
jbe 0x1d7f0
incq %rax
movq %rax, 0x8(%r13)
movq %rax, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%r15,%rcx,8), %rcx
movl %eax, %eax
movq (%rcx,%rax,8), %rax
movq %rax, (%r13)
jmp 0x1d804
movl %ebp, %eax
shlq $0x4, %rax
movupd (%r14,%rax), %xmm0
movupd %xmm0, (%r13)
decl %ebp
movl %ebp, %esi
xorl %edi, %edi
movq %r13, %rdx
callq 0x1cdec
movq %rbx, %rax
testl %ebp, %ebp
jg 0x1d6ab
jmp 0x1d822
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x38(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x30f6
movq %r14, %rdi
movq %r13, %rsi
callq 0x30f6
leaq (%rbx,%r12), %r14
cmpq %r14, 0x20(%rsp)
jle 0x1d873
shlq $0x4, %rbx
movq 0x40(%rsp), %rax
addq %rax, %rbx
movq 0x10(%rsp), %rsi
addq %rax, %rsi
shlq $0x4, %r12
subq %r12, %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x22d0
movq %r14, 0x50(%rsp)
movq 0x60(%rsp), %r13
movl 0x88(%rsp), %r14d
movl %r14d, %ebp
shrl $0x6, %ebp
leaq 0x14deb(%rip), %rax     # 0x32678
testb $0x4, (%rax)
movq 0x190(%rsp), %rcx
movl 0x2c(%rsp), %esi
movq 0x30(%rsp), %rdx
jne 0x1e7a9
xorl %r14d, %ebp
movl 0x40(%rcx), %eax
movl 0x44(%rcx), %r15d
cmpl %eax, %esi
movl %eax, %ebx
cmovgl %esi, %ebx
testb $0x20, %r13b
cmovel %eax, %ebx
testl %r15d, %r15d
jg 0x1d8e0
movl 0x48(%rcx), %r15d
testl %r15d, %r15d
jle 0x1d8dc
subl %esi, %r15d
movl 0x40(%rcx), %eax
cmpl %eax, %r15d
cmovlel %eax, %r15d
jmp 0x1d8e0
movl 0x40(%rcx), %r15d
movl %ebp, %r14d
shll $0xb, %r14d
movss 0x4c(%rcx), %xmm1
xorps 0xc2bd(%rip), %xmm1     # 0x29bb0
xorps %xmm0, %xmm0
cvtsi2ssl 0x18(%rdx), %xmm0
mulss %xmm1, %xmm0
callq 0x20a0
movq 0x190(%rsp), %r10
movss 0x50(%r10), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, 0x74(%rsp)
mulss 0x54(%r10), %xmm0
movss %xmm0, 0x78(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
leaq 0x14d40(%rip), %rax     # 0x32678
testb $0x2, (%rax)
je 0x1d950
callq 0x43bd
movq 0x190(%rsp), %r10
movsd %xmm0, 0x48(%rsp)
notl %r14d
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x1d9c5
testb $-0x80, 0x1(%r10)
jne 0x1d9f1
shrl $0x4, %r13d
andl $0x1, %r13d
movl 0x28(%r10), %edx
movl 0x58(%r10), %ecx
movl 0x5c(%r10), %r8d
movl 0x64(%r10), %r9d
movl 0x68(%r10), %r10d
leaq 0x68(%rsp), %r11
leaq 0xc(%rsp), %r12
movl %r15d, %edi
movl %ebx, %esi
movss 0x74(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
movq 0x18(%rsp), %rbx
pushq (%rbx)
pushq %r11
pushq %r12
pushq 0x58(%rsp)
pushq %rax
pushq 0xc0(%rsp)
pushq %r13
pushq %r10
callq 0x160bf
addq $0x40, %rsp
jmp 0x1da3f
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0x1d9dc
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0x30f6
movl $0x0, 0xc(%rsp)
movq $0x0, 0x68(%rsp)
xorl %eax, %eax
jmp 0x1da3f
movl 0x40(%r10), %edi
movl 0x3c(%r10), %esi
movl 0x58(%r10), %ecx
movl 0x28(%r10), %edx
movl 0x30(%r10), %r8d
movl 0x64(%r10), %r9d
movl 0x68(%r10), %r10d
leaq 0x68(%rsp), %r11
leaq 0xc(%rsp), %rbx
movss 0x74(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
movq 0x18(%rsp), %r12
pushq (%r12)
pushq %r11
pushq %rbx
pushq 0x58(%rsp)
pushq %rax
pushq %r10
callq 0x1793d
addq $0x30, %rsp
movq %rax, 0x10(%rsp)
addl %r14d, %ebp
leaq 0x14c2a(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e7d6
movl %ebp, %r14d
shrl $0x10, %r14d
movq 0x190(%rsp), %r9
movl 0x2c(%r9), %eax
cmpl 0x28(%r9), %eax
movq 0x18(%rsp), %r8
jle 0x1dba1
testb $0x30, (%r9)
sete %al
cmpl $0x1, 0x98(%rsp)
sete %cl
andb %al, %cl
movl 0xc(%rsp), %eax
cmpl $0x2, %eax
setge %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1dba1
movq 0x10(%rsp), %r10
movl 0x8(%r10), %ecx
movq 0x68(%rsp), %rsi
movq (%rsi), %rdx
shlq $0x20, %rdx
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
addq %rdx, %rdi
sarq $0x1c, %rdi
subl 0x8(%r10,%rdi), %ecx
addl 0x2c(%rsp), %ecx
cmpl 0x34(%r9), %ecx
jg 0x1daf6
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
xorps %xmm1, %xmm1
cvtsi2ssl 0x2c(%rsp), %xmm1
mulss 0x38(%r9), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x1dba1
movq %r14, %r12
movq $0x0, 0x50(%rsp)
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
xorl %eax, %eax
xorl %ebx, %ebx
movslq (%rsi,%rax,8), %rdx
addq %rdx, %rbx
incq %rax
cmpq %rax, %rcx
jne 0x1db11
movq %rbx, 0x50(%rsp)
movq (%r8), %rdi
callq 0x30f6
shlq $0x4, %rbx
movq 0x10(%rsp), %r14
addq %r14, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xeec3
movq 0x190(%rsp), %rax
movl 0x40(%rax), %edi
movl 0x3c(%rax), %esi
movl 0x58(%rax), %ecx
movl 0x2c(%rax), %edx
movl 0x30(%rax), %r8d
movl 0x64(%rax), %r9d
movl 0x68(%rax), %eax
leaq 0x68(%rsp), %r10
leaq 0xc(%rsp), %r11
movss 0x74(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
movq 0x18(%rsp), %rbx
pushq (%rbx)
pushq %r10
pushq %r11
pushq %r14
pushq 0x70(%rsp)
pushq %rax
callq 0x1793d
movq 0x48(%rsp), %r8
addq $0x30, %rsp
movq %rax, 0x10(%rsp)
movq %r12, %r14
xorl %ebp, %r14d
movl %r15d, 0x8(%r8)
movq (%r8), %rdi
movq 0xe0(%rsp), %rsi
movq %r8, %rbx
callq 0x30f6
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
movq %r14, 0x138(%rsp)
je 0x1e3b9
movq (%rbx), %rdi
movq 0x68(%rsp), %r8
movl %r14d, %esi
movl 0x2c(%rsp), %edx
movq 0x10(%rsp), %r9
callq 0x1851b
movq %rax, 0x58(%rsp)
cmpl $0x2, 0xc(%rsp)
jl 0x1e3d4
cmpl $0x0, 0xc(%rsp)
movq 0x190(%rsp), %rdi
jle 0x1e3c4
movq 0x10(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x140(%rsp)
leaq 0x8(%rax), %rcx
movq %rcx, 0x88(%rsp)
addq $0x18, %rax
movq %rax, 0xe8(%rsp)
xorl %ecx, %ecx
movl $0x0, 0x7c(%rsp)
movq %rcx, 0xf0(%rsp)
leaq (%rcx,%rcx,4), %rsi
movq 0x58(%rsp), %rax
movl 0x4(%rax,%rsi,8), %ecx
addl %ecx, %ecx
sarl %ecx
movslq (%rax,%rsi,8), %rdx
movslq 0x7c(%rdi), %r9
movl 0x78(%rdi), %edi
cmpl %ecx, %edi
movl %ecx, %r8d
cmovll %edi, %r8d
movl $0x0, %eax
testl %r8d, %r8d
jle 0x1dca1
leal (%rcx,%rdx), %eax
movslq %eax, %r10
shlq $0x4, %r10
addq 0x140(%rsp), %r10
xorl %eax, %eax
movzbl 0x7(%r10), %r11d
cmpq %r9, %r11
jbe 0x1dca1
incl %eax
addq $-0x10, %r10
cmpl %eax, %r8d
jne 0x1dc89
movl %r8d, %eax
movl %ecx, %r8d
subl %eax, %r8d
cmpl %edi, %r8d
cmovll %r8d, %edi
testl %edi, %edi
jle 0x1dcdf
movq %rdx, %r11
shlq $0x4, %r11
addq 0x88(%rsp), %r11
xorl %r10d, %r10d
movzbl 0x7(%r11), %ebx
cmpq %r9, %rbx
jbe 0x1dce2
incl %r10d
addq $0x10, %r11
cmpl %r10d, %edi
jne 0x1dcc4
movl %edi, %r10d
jmp 0x1dce2
xorl %r10d, %r10d
movq 0x58(%rsp), %rdi
leaq (%rdi,%rsi,8), %rdi
leal (%rdx,%r10), %r11d
movl %r8d, %esi
subl %r10d, %esi
cmpl $0x3, %esi
movq %rdi, 0x150(%rsp)
jge 0x1dd0c
movq %rsi, 0x38(%rsp)
jmp 0x1dea5
movq 0x190(%rsp), %rsi
movl 0x28(%rsi), %r13d
movl 0x1c(%rdi), %edi
movq %r11, %rsi
movslq %r11d, %r9
movq %r9, %r11
shlq $0x4, %r11
movq 0x10(%rsp), %r10
movzbl 0xc(%r10,%r11), %ebx
movl %r8d, %r10d
addl %edx, %r8d
movq %rdx, 0x20(%rsp)
addl %edx, %r10d
decl %r10d
cmpl $0x65, %r13d
movl $0x64, %ebp
cmovgel %r13d, %ebp
addl %r13d, %r13d
sarl %edi
cmpl %ebp, %edi
cmovgel %ebp, %edi
movslq %r10d, %r10
addq 0xe8(%rsp), %r11
incq %r9
movl %ebx, %r14d
cmpq %r10, %r9
jge 0x1ddd5
movq (%r11), %r15
movq %r15, %r12
shrq $0x20, %r12
movl -0x8(%r11), %ebp
subl -0x18(%r11), %ebp
subl -0x10(%r11), %r15d
cmpl %r15d, %ebp
movl %r13d, %edx
movslq %r15d, %r13
cmovll %ebp, %r15d
movzbl %r12b, %r12d
movslq %ebp, %rbp
subq %r13, %rbp
movq %rbp, %r13
negq %r13
cmovsq %rbp, %r13
leal (%r15,%r14), %ebp
sarl %r14d
cmpl %r14d, %r13d
movl %edx, %r13d
cmovgl %r9d, %esi
cmpl %r12d, %r15d
cmovgel %r12d, %r15d
cmpl %edx, %ebp
jge 0x1ddd5
addl %r15d, %ebx
addq $0x10, %r11
incq %r9
movl %ebp, %r14d
cmpl %edi, %ebx
jl 0x1dd6c
movl %r8d, %r12d
movq %rsi, %r11
subl %r11d, %r12d
addl $-0x2, %r8d
cmpl %r11d, %r8d
jle 0x1dea0
shlq $0x4, %r10
movq 0x10(%rsp), %r9
movq %r11, %rbx
movzbl 0xc(%r9,%r10), %r11d
movslq %r8d, %r8
movslq %ebx, %r9
leaq -0x1(%r8), %r10
shlq $0x4, %r8
addq 0xe8(%rsp), %r8
movq 0x20(%rsp), %rdx
addl %ecx, %edx
notl %eax
addl %edx, %eax
subl %ebx, %eax
movl %r11d, %ecx
movl %r11d, %ebx
movq (%r8), %rdx
movq %rdx, %r11
shrq $0x20, %r11
movl -0x8(%r8), %ebp
subl -0x18(%r8), %ebp
subl -0x10(%r8), %edx
cmpl %edx, %ebp
movslq %edx, %r14
cmovll %ebp, %edx
movzbl %r11b, %r15d
movslq %ebp, %r11
subq %r14, %r11
movq %r11, %r14
negq %r14
cmovsq %r11, %r14
leal (%rdx,%rbx), %r11d
sarl %ebx
cmpl %ebx, %r14d
cmovgl %eax, %r12d
cmpl %r15d, %edx
cmovgel %r15d, %edx
cmpl %r13d, %r11d
jge 0x1de89
addl %edx, %ecx
cmpl %edi, %ecx
jge 0x1de89
addq $-0x10, %r8
leaq -0x1(%r10), %rdx
decl %eax
cmpq %r9, %r10
movq %rdx, %r10
jg 0x1de23
movq %r12, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq 0x190(%rsp), %rcx
movq %rsi, %r11
jmp 0x1deb2
movq %r12, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq 0x190(%rsp), %rcx
movq %r11, 0x60(%rsp)
movq (%rax), %rdi
movl 0x40(%rcx), %r12d
movq %rdi, 0x148(%rsp)
movl %r11d, %esi
movq 0x38(%rsp), %rdx
movq 0x10(%rsp), %rcx
movl $0xa, %r8d
leaq 0x110(%rsp), %r9
callq 0x1ebe6
movq 0x60(%rsp), %rsi
movslq %esi, %rcx
movq %rcx, 0x20(%rsp)
testq %rax, %rax
je 0x1e11d
sarl %r12d
movl 0x110(%rsp), %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r11d, %r11d
movl $0x1, %edx
movq %rdx, 0x80(%rsp)
xorl %ebx, %ebx
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdx
movabsq $0x20000000000, %r9     # imm = 0x20000000000
cmpq %rcx, %r11
je 0x1df40
movslq %r8d, %rsi
cmpq %rsi, %r11
jl 0x1df99
testl %r8d, %r8d
jle 0x1df78
movslq %r10d, %rsi
movslq (%rax,%rsi,4), %rsi
movl %r8d, %edi
movslq (%rax,%rdi,4), %r8
cmpl %r8d, %esi
jge 0x1df78
subq %rsi, %r8
addq 0x20(%rsp), %rsi
shlq $0x4, %rsi
addq 0x88(%rsp), %rsi
orq %r9, (%rsi)
addq $0x10, %rsi
decq %r8
jne 0x1df6c
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %ebx, %ebx
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
movl $0x0, %esi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpq %rcx, %r11
je 0x1e0f1
movl %r10d, 0xb8(%rsp)
movl %ebx, 0xc0(%rsp)
movl %r8d, 0xc8(%rsp)
movslq (%rax,%r11,4), %rsi
addq 0x20(%rsp), %rsi
shlq $0x4, %rsi
movl 0x8(%rdx,%rsi), %edi
movl -0x10(%rdx,%rsi), %r13d
movl -0x8(%rdx,%rsi), %r14d
subl %r14d, %edi
movl %r13d, %r15d
subl (%rdx,%rsi), %r15d
addl %edi, %r15d
movl %r15d, %ebx
negl %ebx
xorl %r10d, %r10d
testl %r15d, %r15d
cmovlel %r10d, %r15d
cmovgl %r10d, %ebx
movq %r11, 0x40(%rsp)
leaq 0xa(%r11), %r8
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq 0x80(%rsp), %rsi
cmpl %esi, %ecx
jle 0x1e0a7
leaq -0x1(%rsi), %rdi
cmpq %r8, %rdi
jae 0x1e0a7
movslq (%rax,%rsi,4), %rdi
addq 0x20(%rsp), %rdi
shlq $0x4, %rdi
movl 0x8(%rdx,%rdi), %r9d
movl %r9d, %ebp
subl %r14d, %ebp
cmpl %r12d, %ebp
jle 0x1e038
xorl %edi, %edi
jmp 0x1e09b
addq %rdx, %rdi
movq (%rdi), %rbp
movl %ebp, %edx
subl %r13d, %edx
cmpl %r12d, %edx
jle 0x1e04c
xorl %edi, %edi
jmp 0x1e096
subl -0x8(%rdi), %r9d
movl -0x10(%rdi), %edx
subl %ebp, %edx
addl %r9d, %edx
testl %edx, %edx
movl $0x0, %edi
cmovgl %edx, %edi
movl $0x0, %r9d
cmovnsl %r9d, %edx
addl %r15d, %edi
subl %edx, %ebx
leal (%rdi,%rbx), %edx
movl %edi, %r9d
subl %ebx, %r9d
movl %r9d, %ebp
negl %ebp
cmovnsl %r9d, %ebp
addl %edx, %ebp
cmpl %ebp, %r10d
cmovlel %ebp, %r10d
movl %edi, %r15d
cmovll %esi, %r11d
movb $0x1, %dil
movq 0x10(%rsp), %rdx
incq %rsi
testb %dil, %dil
jne 0x1e002
cmpl $0x29, %r10d
setge %dl
movl 0xc0(%rsp), %ebx
cmpl %ebx, %r10d
setg %sil
testb %sil, %dl
movq 0x10(%rsp), %rdx
cmovnel %r10d, %ebx
movl 0xc8(%rsp), %r8d
cmovnel %r11d, %r8d
movq 0x40(%rsp), %r11
movl 0xb8(%rsp), %edi
cmovnel %r11d, %edi
movb $0x1, %sil
movabsq $0x20000000000, %r9     # imm = 0x20000000000
incq %r11
incq 0x80(%rsp)
movl %edi, %r10d
testb %sil, %sil
jne 0x1df33
movq 0x148(%rsp), %rdi
movq %rax, %rsi
callq 0x30f6
movq 0x60(%rsp), %rsi
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x190(%rsp), %rax
movl 0x40(%rax), %r12d
movq %rdi, 0x80(%rsp)
movq 0x38(%rsp), %rdx
movq 0x10(%rsp), %rcx
movl $0x1e, %r8d
leaq 0x110(%rsp), %r9
callq 0x1ebe6
testq %rax, %rax
je 0x1e2e7
movl 0x110(%rsp), %ecx
testl %ecx, %ecx
movabsq $0x20000000000, %r9     # imm = 0x20000000000
movq 0x60(%rsp), %r10
jle 0x1e2d7
sarl %r12d
xorl %r8d, %r8d
movslq %r8d, %rdi
movslq (%rax,%rdi,4), %rdx
leal 0x1(%rdi), %esi
movl %esi, %r8d
cmpl %ecx, %esi
jge 0x1e286
leal (%rdx,%r10), %r8d
movslq %r8d, %r10
shlq $0x4, %r10
movq 0x10(%rsp), %r14
movl (%r14,%r10), %r8d
movl 0x8(%r14,%r10), %r9d
movl -0x8(%r14,%r10), %r11d
addl %r8d, %r11d
movl %r9d, %ebx
subl %r11d, %ebx
addl -0x10(%r14,%r10), %ebx
movl %ebx, %r10d
negl %r10d
cmovsl %ebx, %r10d
incq %rdi
movslq (%rax,%rdi,4), %r15
addq 0x20(%rsp), %r15
shlq $0x4, %r15
movq 0x10(%rsp), %r14
movl 0x8(%r14,%r15), %r11d
movl %r11d, %ebx
subl %r9d, %ebx
cmpl %r12d, %ebx
jg 0x1e24b
addq %r14, %r15
movq (%r15), %rbx
movl %ebx, %ebp
subl %r8d, %ebp
cmpl %r12d, %ebp
jg 0x1e24b
movq -0x8(%r15), %r14
movl %r11d, %ebp
subl %r14d, %ebp
movl -0x10(%r15), %r15d
movl %r15d, %r13d
subl %ebx, %r13d
addl %ebp, %r13d
movq %r14, %rbp
shrq $0x20, %rbp
movzbl %bpl, %ebp
subl %r8d, %r15d
addl %ebp, %r15d
subl %r9d, %r14d
addl %ebp, %r14d
cmpl %r14d, %r15d
cmovll %r15d, %r14d
movl %r13d, %r15d
negl %r15d
cmovsl %r13d, %r15d
leal (%r15,%r10), %ebp
cmpl %ebp, %r14d
jle 0x1e261
xorl %r14d, %r14d
testb %r14b, %r14b
je 0x1e26f
incq %rdi
cmpq %rdi, %rcx
jne 0x1e1d1
jmp 0x1e274
movb $0x1, %r14b
movl %r11d, %r9d
movl %ebx, %r8d
movl %r15d, %r10d
jmp 0x1e24e
movl %edi, %r8d
jmp 0x1e277
movl %ecx, %r8d
movabsq $0x20000000000, %r9     # imm = 0x20000000000
movq 0x60(%rsp), %r10
cmpl %esi, %r8d
jle 0x1e2ce
movslq %r8d, %rsi
movslq -0x4(%rax,%rsi,4), %rsi
cmpl %esi, %edx
jge 0x1e2ba
movq %rsi, %rdi
subq %rdx, %rdi
addq 0x20(%rsp), %rdx
shlq $0x4, %rdx
addq 0x88(%rsp), %rdx
orq %r9, (%rdx)
addq $0x10, %rdx
decq %rdi
jne 0x1e2ae
addl %r10d, %esi
movslq %esi, %rdx
shlq $0x4, %rdx
movq 0x10(%rsp), %rsi
orb $0x8, 0xd(%rsi,%rdx)
cmpl %ecx, %r8d
jl 0x1e183
movq 0x80(%rsp), %rdi
movq %rax, %rsi
callq 0x30f6
movq 0x150(%rsp), %rsi
movq 0x60(%rsp), %r8
movl %r8d, (%rsi)
movq 0x38(%rsp), %r9
movl %r9d, %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 0x190(%rsp), %rdi
cmpl 0x64(%rdi), %r9d
jl 0x1e39e
movq 0x20(%rsp), %r10
shlq $0x4, %r10
movq 0x10(%rsp), %rdx
movzbl 0xc(%rdx,%r10), %eax
movl (%rdx,%r10), %ecx
subl %eax, %ecx
incl %ecx
movl %ecx, 0xc(%rsi)
movl 0x8(%rdx,%r10), %ecx
subl %eax, %ecx
incl %ecx
movl %ecx, 0x14(%rsi)
addl %r9d, %r9d
sarl %r9d
leal (%r8,%r9), %eax
decl %eax
cltq
shlq $0x4, %rax
movl (%rdx,%rax), %ecx
incl %ecx
movl %ecx, 0x10(%rsi)
movl 0x8(%rdx,%rax), %eax
incl %eax
movl %eax, 0x18(%rsi)
movl 0x7c(%rsp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, 0x7c(%rsp)
leaq (%rax,%rax,4), %rax
movq 0x20(%rsi), %rcx
movq 0x58(%rsp), %rdx
movq %rcx, 0x20(%rdx,%rax,8)
movups (%rsi), %xmm0
movups %xmm0, (%rdx,%rax,8)
movups 0x10(%rsi), %xmm0
movups %xmm0, 0x10(%rdx,%rax,8)
movq 0xf0(%rsp), %rcx
incq %rcx
movslq 0xc(%rsp), %rax
cmpq %rax, %rcx
jl 0x1dc3e
jmp 0x1e3cc
movq $0x0, 0x58(%rsp)
jmp 0x1e427
movl $0x0, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x1e422
movq 0x58(%rsp), %rbx
addq $0x4, %rbx
xorl %r14d, %r14d
movq 0x10(%rsp), %r15
movl (%rbx), %edi
addl %edi, %edi
sarl %edi
movslq -0x4(%rbx), %rsi
shlq $0x4, %rsi
addq %r15, %rsi
movl 0xa4(%rsp), %edx
movq 0x108(%rsp), %rcx
callq 0x186b9
incq %r14
movslq 0xc(%rsp), %rax
addq $0x28, %rbx
cmpq %rax, %r14
jl 0x1e3ec
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq 0x108(%rsp), %rsi
callq 0x30f6
movq (%rbx), %rdi
movq 0x68(%rsp), %rsi
callq 0x30f6
leaq 0x1422d(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e81d
leaq 0x1421d(%rip), %rax     # 0x32678
testb $0x8, (%rax)
je 0x1e48a
movq 0x13b71(%rip), %rax     # 0x31fd8
movq (%rax), %rdi
movl 0xc(%rsp), %edx
movq 0x30(%rsp), %rsi
movq 0x58(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x198(%rsp), %r9
callq 0x1fe0a
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movslq 0x2c(%rsp), %rsi
callq 0x31c1
movq %rax, %r14
cmpl $0x0, 0x98(%rsp)
movq 0x100(%rsp), %r12
movq 0xa8(%rsp), %rax
movq 0xf8(%rsp), %r13
jle 0x1e4ee
xorl %ebx, %ebx
xorl %r15d, %r15d
movslq %r15d, %r15
leaq (%r14,%r15), %rdi
movq (%r12,%rbx,8), %rsi
movslq (%rax,%rbx,4), %rdx
callq 0x2060
movq 0xa8(%rsp), %rax
addl (%rax,%rbx,4), %r15d
incq %rbx
cmpq %rbx, %r13
jne 0x1e4c6
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rsi
movq 0x190(%rsp), %rcx
movl 0x2c(%rcx), %r9d
movl 0x60(%rcx), %eax
movl 0x90(%rcx), %r10d
movss 0x80(%rcx), %xmm2
leaq 0x68(%rsp), %r11
leaq 0xc(%rsp), %rdx
movq 0x58(%rsp), %rcx
movl 0x2c(%rsp), %r8d
movss 0x74(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
pushq %r11
pushq 0x18(%rsp)
pushq %r10
pushq %rax
pushq %r9
pushq %r9
callq 0x189cb
addq $0x30, %rsp
movl %eax, %ebx
leaq 0x1411d(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e864
movq 0xb0(%rsp), %r15
movq 0x18(%rsp), %rax
movq (%rax), %rsi
movq 0x30(%rsp), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq 0x68(%rsp), %r9
movq 0x190(%rsp), %rdi
movl 0x6c(%rdi), %eax
movl 0x70(%rdi), %r10d
movl 0x74(%rdi), %r11d
xorl %edi, %edi
movl %ebx, %r8d
pushq %r14
pushq 0xa0(%rsp)
pushq %r11
pushq %r10
pushq %rax
pushq 0x160(%rsp)
pushq 0x40(%rsp)
pushq 0x90(%rsp)
callq 0x19e43
addq $0x40, %rsp
movq %rax, (%r15)
leaq 0x140a8(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e8ab
movl 0x94(%rsp), %eax
movq (%r15), %rcx
movl %eax, 0x14(%rcx)
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0x30f6
movq (%rbx), %rdi
movq 0x58(%rsp), %rsi
callq 0x30f6
movq (%rbx), %rdi
movq 0x68(%rsp), %rsi
callq 0x30f6
movq (%rbx), %rdi
movq %r15, %r12
movq 0x190(%rsp), %r15
movss 0x80(%r15), %xmm0
movq (%r12), %rax
movl 0x8(%rax), %esi
movq 0x18(%rax), %rdx
movl 0x84(%r15), %ecx
xorl %r8d, %r8d
callq 0x1c504
movss 0x8c(%r15), %xmm0
movq 0x30(%rsp), %rax
movl 0x18(%rax), %edi
addl %edi, %edi
movl 0x88(%r15), %esi
movq (%r12), %rax
movl 0x8(%rax), %edx
movq 0x18(%rax), %rcx
callq 0x1c809
movq (%rbx), %rdi
movq (%r12), %rsi
callq 0x1c8d9
movq (%rbx), %rdi
movq (%r12), %rsi
movl 0xd0(%rsp), %ecx
movl 0x70(%r15), %r8d
movl 0x2c(%rsp), %edx
callq 0x1cb81
cmpl $0x1, 0x98(%rsp)
jne 0x1e6f8
movq 0x190(%rsp), %rax
movq (%rax), %rax
andl $0x4000000, %eax        # imm = 0x4000000
je 0x1e6f8
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq 0x30(%rsp), %r12
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0xb0(%rsp), %r15
movq (%r15), %r8
movq %r14, %rcx
movq 0x198(%rsp), %r9
callq 0x1ad24
movq (%rbx), %rdi
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq (%r15), %r8
movq %r14, %rcx
callq 0x1b796
movq 0x18(%rsp), %rbx
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x30f6
leaq 0x13f69(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e8f2
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1e797
leaq 0x110(%rsp), %rsi
callq 0x33bd
leaq 0x13f44(%rip), %rax     # 0x32678
testb $0x2, (%rax)
jne 0x1e927
movq 0x120(%rsp), %rax
cmpq 0x128(%rsp), %rax
jne 0x1e96f
cmpq $0x10000000, 0x130(%rsp) # imm = 0x10000000
movq 0x18(%rsp), %rcx
movq 0x190(%rsp), %rax
ja 0x1e784
movq 0x98(%rax), %rax
testq %rax, %rax
jle 0x1e797
cmpq %rax, 0x110(%rsp)
jbe 0x1e797
movq (%rcx), %rdi
movq %rcx, %rbx
callq 0x30b8
callq 0x3097
movq %rax, (%rbx)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x94(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movq 0x40(%rsp), %rcx
callq 0x2811
movq 0x30(%rsp), %rdx
movl 0x2c(%rsp), %esi
movq 0x190(%rsp), %rcx
jmp 0x1d8a7
callq 0x43bd
movsd %xmm0, 0x20(%rsp)
movq 0x13810(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
subsd 0x48(%rsp), %xmm0
leaq 0xb434(%rip), %rsi      # 0x29c2c
movl $0x1, %edx
movq 0x198(%rsp), %rcx
movb $0x1, %al
callq 0x2210
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
jmp 0x1da57
callq 0x43bd
movsd %xmm0, 0x20(%rsp)
movq 0x137c9(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
subsd 0x48(%rsp), %xmm0
leaq 0xb3ed(%rip), %rsi      # 0x29c2c
movl $0x2, %edx
movq 0x198(%rsp), %rcx
movb $0x1, %al
callq 0x2210
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
jmp 0x1e454
callq 0x43bd
movsd %xmm0, 0x20(%rsp)
movq 0x13782(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
subsd 0x48(%rsp), %xmm0
leaq 0xb3a6(%rip), %rsi      # 0x29c2c
movl $0x3, %edx
movq 0x198(%rsp), %rcx
movb $0x1, %al
callq 0x2210
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
jmp 0x1e564
callq 0x43bd
movsd %xmm0, 0x20(%rsp)
movq 0x1373b(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
subsd 0x48(%rsp), %xmm0
leaq 0xb35f(%rip), %rsi      # 0x29c2c
movl $0x4, %edx
movq 0x198(%rsp), %rcx
movb $0x1, %al
callq 0x2210
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
jmp 0x1e5d9
callq 0x43bd
movq 0x136fa(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
subsd 0x48(%rsp), %xmm0
leaq 0xb31e(%rip), %rsi      # 0x29c2c
movl $0x5, %edx
movq 0x198(%rsp), %rcx
movb $0x1, %al
callq 0x2210
jmp 0x1e718
movq 0x136ca(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
movq 0x110(%rsp), %r8
movq 0x128(%rsp), %r9
subq $0x8, %rsp
leaq 0xb291(%rip), %rsi      # 0x29bdd
movq 0x1a0(%rsp), %rdx
movl 0x34(%rsp), %ecx
xorl %eax, %eax
pushq 0x138(%rsp)
callq 0x2210
addq $0x10, %rsp
jmp 0x1e73d
movq 0x198(%rsp), %rdi
callq 0x28de