// File: chhylp123[P]hifiasm/anchor.cpp
// Function: lchain_qgen_mcopy_fast(Candidates_list*, overlap_region_alloc*, unsigned int, unsigned long, All_reads*, unsigned int, unsigned long, long, long, long, double, double, double, long, unsigned int, long, double, unsigned int, unsigned int, st_mt_t*, unsigned long)
void lchain_qgen_mcopy_fast(Candidates_list* cl, overlap_region_alloc* ol, uint32_t rid, uint64_t rl, All_reads* rdb, 
				uint32_t apend_be, uint64_t max_n_chain, int64_t max_skip, int64_t max_iter, 
				int64_t max_dis, double chn_pen_gap, double chn_pen_skip, double bw_rate, int64_t quick_check, 
				uint32_t gen_off, int64_t mcopy_num, double mcopy_rate, uint32_t chain_cutoff, uint32_t mcopy_khit_cut, st_mt_t *sp, uint64_t ocv_w)
{
	// fprintf(stderr, "+[M::%s] chain_cutoff::%u\n", __func__, chain_cutoff);
	uint64_t i, k, l, m, cn = cl->length, yid, ol0, lch, *cc = NULL, cwn = 0, cws, cwe, os, oe, rs, re, cw0, cw1/**, dbgn = 0**/; overlap_region *r, t; ///srt = 0
	clear_overlap_region_alloc(ol);

	for (l = 0, k = 1, m = 0, lch = 0; k <= cn; k++) {
		if((k == cn) || (cl->list[k].readID != cl->list[l].readID)) {
			if(cl->list[l].readID != rid) {
				yid = cl->list[l].readID; ol0 = ol->length;
				m += lchain_qdp_mcopy_fast(cl, l, k-l, m, &(cl->chainDP), ol, max_skip, max_iter, max_dis, chn_pen_gap, chn_pen_skip, bw_rate, 
				rid, rl, Get_READ_LENGTH((*rdb), yid), quick_check, apend_be, gen_off, mcopy_num, mcopy_rate, mcopy_khit_cut, 1);
				if((chain_cutoff >= 2) && (!lch)) {
					for (i = ol0; (i<ol->length) && (!lch); i++) {
						if(ol->list[i].align_length < chain_cutoff) lch = 1;
					}
				}
			}
			l = k;
		}
	}
	cl->length = m;

	// fprintf(stderr, "[M::%s::] rn::%lu\tmax_n_chain::%lu\n", __func__, ol->length, max_n_chain);
	// for (k = 0; k < ol->length; k++) {
	// 	fprintf(stderr, "---[M::%s::%.*s(qid::%u)] q[%d, %d), t[%d, %d), sc::%d, type::%d\n", __func__, 
	// 	(int32_t)Get_NAME_LENGTH(R_INF, ol->list[k].y_id), Get_NAME(R_INF, ol->list[k].y_id), ol->list[k].y_id,
	// 	ol->list[k].x_pos_s, ol->list[k].x_pos_e+1, ol->list[k].y_pos_s, ol->list[k].y_pos_e+1, ol->list[k].shared_seed, ha_ov_type(&(ol->list[k]), rl));
	// }

	k = ol->length;
	if (ol->length > max_n_chain) {
		int32_t w, n[4], s[4]; 
		n[0] = n[1] = n[2] = n[3] = 0, s[0] = s[1] = s[2] = s[3] = 0; 
		ks_introsort_or_ss(ol->length, ol->list); 
		for (i = 0; i < ol->length; ++i) {
			r = &(ol->list[i]);
			w = ha_ov_type(r, rl);
			++n[w];
			if (((uint64_t)n[w]) == max_n_chain) s[w] = r->shared_seed;
		}
		// fprintf(stderr, "[M::%s::] s[0]::%d, s[1]::%d, s[2]::%d, s[3]::%d\n", __func__, s[0], s[1], s[2], s[3]);
		if (s[0] > 0 || s[1] > 0 || s[2] > 0 || s[3] > 0) {
			if((((uint64_t)n[3]) >= max_n_chain) && (rl >= ocv_w)) {
				cwn = (rl/ocv_w) + ((rl % ocv_w)?(1):(0));
				kv_resize(uint64_t, (*sp), (cwn));
				cc = sp->a;
				for (i = cws = cwe = 0; i < cwn; i++) {
					cwe = cws + ocv_w; if(cwe > rl) cwe = rl;
					assert(cwe > cws);
					cc[i] = (cwe - cws)*(max_n_chain>>1); 
					// fprintf(stderr, "[M::%s::] cw::[%lu, %lu), cc::%lu\n", __func__, cws, cwe, cc[i]);
					if(cc[i] > UINT32_MAX) cc[i] = UINT32_MAX; cc[i] <<= 32;
					cws += ocv_w;
				}
			}
			for (i = 0, k = 0, lch = 0; i < ol->length; ++i) {
				r = &(ol->list[i]);
				w = ha_ov_type(r, rl);
				// ++n[w];
				// if (((int)n[w] <= max_n_chain) || (r->shared_seed >= s[w] && s[w] >= (asm_opt.k_mer_length<<1))) {
				if (r->shared_seed >= s[w]) {
					if(cwn) {
						m = (ol->list[i].x_pos_s/ocv_w); 
						rs = ol->list[i].x_pos_s; re = ol->list[i].x_pos_e + 1;
						for (cws = m*ocv_w; m < cwn; m++) {
							cwe = cws + ocv_w; if(cwe > rl) cwe = rl;
							os = ((rs >= cws)? rs : cws);
        					oe = ((re <= cwe)? re : cwe);
							if(oe <= os) break;
							if(((uint32_t)cc[m]) + (oe - os) < UINT32_MAX) {
								cc[m] += (oe - os);
							} else {
								cc[m] >>= 32; cc[m] <<= 32; cc[m] |= UINT32_MAX;
							}
							cws += ocv_w;
						}
					}
					if (k != i) {
						t = ol->list[k];
						ol->list[k] = ol->list[i];
						ol->list[i] = t;
					}
					if(ol->list[k].align_length < chain_cutoff) lch = 1;
					++k;
				} else if(w == 3 && cwn > 0) {
					m = (ol->list[i].x_pos_s/ocv_w); cw0 = cw1 = 0;
					rs = ol->list[i].x_pos_s; re = ol->list[i].x_pos_e + 1;
					for (cws = m*ocv_w; m < cwn; m++) {
						cwe = cws + ocv_w; if(cwe > rl) cwe = rl;
						os = ((rs >= cws)? rs : cws);
						oe = ((re <= cwe)? re : cwe);
						if(oe <= os) break;
						// fprintf(stderr, "+++[M::%s::%.*s(qid::%u)] o[%lu, %lu), cur::%lu, max::%lu\n", __func__, 
						// 	(int32_t)Get_NAME_LENGTH(R_INF, ol->list[i].y_id), Get_NAME(R_INF, ol->list[i].y_id), ol->list[i].y_id,
						// 	os, oe, ((uint64_t)((uint32_t)cc[m])), (cc[m]>>32));
						if((oe - os) + ((uint64_t)((uint32_t)cc[m])) >= (cc[m]>>32)) {
							cw1 += (oe - os);
						} else {
							cw0 += (oe - os);
						}
						cws += ocv_w;
					}

					if(cw0 >= ((cw0 + cw1)*0.7)) {
						m = (ol->list[i].x_pos_s/ocv_w); 
						rs = ol->list[i].x_pos_s; re = ol->list[i].x_pos_e + 1;
						for (cws = m*ocv_w; m < cwn; m++) {
							cwe = cws + ocv_w; if(cwe > rl) cwe = rl;
							os = ((rs >= cws)? rs : cws);
        					oe = ((re <= cwe)? re : cwe);
							if(oe <= os) break;
							if(((uint32_t)cc[m]) + (oe - os) < UINT32_MAX) {
								cc[m] += (oe - os);
							} else {
								cc[m] >>= 32; cc[m] <<= 32; cc[m] |= UINT32_MAX;
							}
							cws += ocv_w;
						}
						if (k != i) {
							t = ol->list[k];
							ol->list[k] = ol->list[i];
							ol->list[i] = t;
						}
						if(ol->list[k].align_length < chain_cutoff) lch = 1;
						++k;
						// dbgn++;
						// fprintf(stderr, "+++[M::%s::%.*s(qid::%u)] q[%d, %d), t[%d, %d), sc::%d, type::%d, cw0::%lu, cw1::%lu\n", __func__, 
						// 	(int32_t)Get_NAME_LENGTH(R_INF, ol->list[k].y_id), Get_NAME(R_INF, ol->list[k].y_id), ol->list[k].y_id,
						// 	ol->list[k].x_pos_s, ol->list[k].x_pos_e+1, ol->list[k].y_pos_s, ol->list[k].y_pos_e+1, ol->list[k].shared_seed, ha_ov_type(&(ol->list[k]), rl), cw0, cw1);
					}
				}
			}
			ol->length = k;
		}
	} 
	
	ks_introsort_or_xs(ol->length, ol->list);
	if(lch) {
		//@brief r485
		uint64_t zs, ze, rs, re, ob, os, oe, ocn, pp, kn, ms, me; int64_t osc;
		for (i = l = 0, cn = cl->length; i < ol->length; ++i) {
			if(ol->list[i].align_length < chain_cutoff) {
				zs = ol->list[i].x_pos_s; ze = ol->list[i].x_pos_e + 1;
				ob = (ze - zs)*OFL; if(ob < 16) ob = 16;
				osc = ol->list[i].shared_seed*CH_SC;
				ocn = ol->list[i].align_length<<CH_OCC;
				for (k = 0; (k < ol->length) && (ze > ol->list[k].x_pos_s); k++) {
					if(ol->list[k].align_length < chain_cutoff) continue;
					if(ol->list[k].align_length < ocn) continue;
					if(ol->list[k].shared_seed < osc) continue;
					rs = ol->list[k].x_pos_s; re = ol->list[k].x_pos_e + 1;
					os = ((rs>=zs)?rs:zs); oe = ((re<=ze)?re:ze);
					if((oe > os) && (oe - os) >= ob) {
						m = ol->list[k].non_homopolymer_errors;
						pp = cl->list[m].readID; kn = 0;
						for (; (m < cn) && (cl->list[m].readID == pp) && (kn < ocn); m++) {
							me = cl->list[m].self_offset; ms = me - (cl->list[m].cnt&(0xffu)); 
							if((ms >= os) && (me <= oe)) kn++;
						}
						if(kn >= ocn) break;
					}
				}
				if((k < ol->length) && (ze > ol->list[k].x_pos_s)) continue;
			}
			if (l != i) {
				t = ol->list[l];
				ol->list[l] = ol->list[i];
				ol->list[i] = t;
			}
			l++;
		}
		ol->length = l;
	} 

	for (i = 0; i < ol->length; ++i) ol->list[i].align_length = 0;
	// fprintf(stderr, "+[M::%s] rid::%u, ol->length0::%lu, dbgn::%lu\n", __func__, rid, ol->length, dbgn);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq 0x60(%rbp), %rax
movq 0x58(%rbp), %rax
movl 0x50(%rbp), %eax
movl 0x48(%rbp), %eax
movq 0x40(%rbp), %rax
movl 0x38(%rbp), %eax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movl %edx, -0x3c(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movl %r9d, -0x54(%rbp)
movsd %xmm0, -0x60(%rbp)
movsd %xmm1, -0x68(%rbp)
movsd %xmm2, -0x70(%rbp)
movsd %xmm3, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa0(%rbp)
movq $0x0, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1e120
movq $0x0, -0x90(%rbp)
movq $0x1, -0x88(%rbp)
movq $0x0, -0x98(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0x88(%rbp), %rax
cmpq -0xa0(%rbp), %rax
ja 0x1aae88
movq -0x88(%rbp), %rax
cmpq -0xa0(%rbp), %rax
je 0x1aac77
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x90(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
je 0x1aae6f
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x90(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl -0x3c(%rbp), %eax
je 0x1aae61
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x90(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movq %rax, -0xa8(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xb0(%rbp)
movq -0x30(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
subq -0x90(%rbp), %rdx
movq -0x98(%rbp), %rcx
movq -0x30(%rbp), %r8
addq $0x18, %r8
movq -0x38(%rbp), %r9
movq 0x18(%rbp), %rax
movq %rax, -0x268(%rbp)
movq 0x20(%rbp), %rax
movq %rax, -0x260(%rbp)
movq 0x28(%rbp), %rax
movq %rax, -0x258(%rbp)
movsd -0x60(%rbp), %xmm0
movsd -0x68(%rbp), %xmm1
movsd -0x70(%rbp), %xmm2
movl -0x3c(%rbp), %r13d
movq -0x48(%rbp), %r12
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq -0xa8(%rbp), %r10
movq (%rax,%r10,8), %r15
movq 0x30(%rbp), %r14
movl -0x54(%rbp), %ebx
movl 0x38(%rbp), %eax
movl %eax, %r11d
movq 0x40(%rbp), %r10
movsd -0x78(%rbp), %xmm3
movl 0x50(%rbp), %eax
movq %rax, -0x250(%rbp)
movq -0x268(%rbp), %rax
movq %rax, (%rsp)
movq -0x260(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x258(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0x250(%rbp), %rax
movl %r13d, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movl %ebx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
movq $0x1, 0x58(%rsp)
callq 0x275f0
addq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
cmpl $0x2, 0x48(%rbp)
jb 0x1aae5f
cmpq $0x0, -0xb8(%rbp)
jne 0x1aae5f
movq -0xb0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rcx
movq -0x38(%rbp), %rdx
xorl %eax, %eax
cmpq 0x10(%rdx), %rcx
movb %al, -0x269(%rbp)
jae 0x1aae1c
cmpq $0x0, -0xb8(%rbp)
setne %al
xorb $-0x1, %al
movb %al, -0x269(%rbp)
movb -0x269(%rbp), %al
testb $0x1, %al
jne 0x1aae28
jmp 0x1aae5d
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpl 0x48(%rbp), %eax
jae 0x1aae4d
movq $0x1, -0xb8(%rbp)
jmp 0x1aae4f
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1aadf3
jmp 0x1aae5f
jmp 0x1aae61
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0x1aae71
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x1aac12
movq -0x98(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
cmpq 0x10(%rbp), %rax
jbe 0x1abb2b
movl $0x0, -0x1c4(%rbp)
movl $0x0, -0x1c8(%rbp)
movl $0x0, -0x1cc(%rbp)
movl $0x0, -0x1d0(%rbp)
movl $0x0, -0x1d4(%rbp)
movl $0x0, -0x1d8(%rbp)
movl $0x0, -0x1dc(%rbp)
movl $0x0, -0x1e0(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rsi
callq 0x19e350
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1aafbf
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
movq -0x48(%rbp), %rax
movl %eax, %esi
callq 0x1a08b0
movl %eax, -0x1bc(%rbp)
movslq -0x1bc(%rbp), %rax
movl -0x1d0(%rbp,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, -0x1d0(%rbp,%rax,4)
movslq -0x1bc(%rbp), %rax
movslq -0x1d0(%rbp,%rax,4), %rax
cmpq 0x10(%rbp), %rax
jne 0x1aafac
movq -0x110(%rbp), %rax
movl 0x24(%rax), %ecx
movslq -0x1bc(%rbp), %rax
movl %ecx, -0x1e0(%rbp,%rax,4)
jmp 0x1aafae
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1aaf24
cmpl $0x0, -0x1e0(%rbp)
jg 0x1aafe7
cmpl $0x0, -0x1dc(%rbp)
jg 0x1aafe7
cmpl $0x0, -0x1d8(%rbp)
jg 0x1aafe7
cmpl $0x0, -0x1d4(%rbp)
jle 0x1abb29
movslq -0x1c4(%rbp), %rax
cmpq 0x10(%rbp), %rax
jb 0x1ab252
movq -0x48(%rbp), %rax
cmpq 0x60(%rbp), %rax
jb 0x1ab252
movq -0x48(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x60(%rbp)
movq %rax, -0x278(%rbp)
movq -0x48(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x60(%rbp)
movq -0x278(%rbp), %rax
movq %rdx, %rsi
xorl %ecx, %ecx
movl $0x1, %edx
cmpq $0x0, %rsi
cmovnel %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0xc8(%rbp), %rax
jae 0x1ab129
movq -0xc8(%rbp), %rcx
movq 0x58(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
shrq %rcx
movq 0x58(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2, %rcx
movq 0x58(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x4, %rcx
movq 0x58(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x8, %rcx
movq 0x58(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x10, %rcx
movq 0x58(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x58(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x58(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x58(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1ab12b
movq 0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xc0(%rbp)
movq $0x0, -0xd8(%rbp)
movq $0x0, -0xd0(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq -0xc8(%rbp), %rax
jae 0x1ab250
movq -0xd0(%rbp), %rax
addq 0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq -0x48(%rbp), %rax
jbe 0x1ab193
movq -0x48(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jbe 0x1ab1a5
jmp 0x1ab1c4
leaq 0x1e08b5(%rip), %rdi    # 0x38ba61
leaq 0x1e06ec(%rip), %rsi    # 0x38b89f
movl $0x7b4, %edx            # imm = 0x7B4
leaq 0x1e08ac(%rip), %rcx    # 0x38ba6b
callq 0x2130
movq -0xd8(%rbp), %rdx
subq -0xd0(%rbp), %rdx
movq 0x10(%rbp), %rax
shrq %rax
imulq %rax, %rdx
movq -0xc0(%rbp), %rax
movq -0x80(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rdx, (%rax,%rcx,8)
jbe 0x1ab216
movq -0xc0(%rbp), %rax
movq -0x80(%rbp), %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rbp), %rax
addq -0xd0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1ab158
jmp 0x1ab252
movq $0x0, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0x80(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1abb1a
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rdi
movq -0x48(%rbp), %rax
movl %eax, %esi
callq 0x1a08b0
movl %eax, -0x1bc(%rbp)
movq -0x110(%rbp), %rax
movl 0x24(%rax), %eax
movslq -0x1bc(%rbp), %rcx
cmpl -0x1e0(%rbp,%rcx,4), %eax
jl 0x1ab5b8
cmpq $0x0, -0xc8(%rbp)
je 0x1ab4f2
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x60(%rbp)
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0xf0(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0xf8(%rbp)
movq -0x98(%rbp), %rax
imulq 0x60(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
cmpq -0xc8(%rbp), %rax
jae 0x1ab4f0
movq -0xd0(%rbp), %rax
addq 0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq -0x48(%rbp), %rax
jbe 0x1ab391
movq -0x48(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jb 0x1ab3b1
movq -0xf0(%rbp), %rax
movq %rax, -0x280(%rbp)
jmp 0x1ab3bf
movq -0xd0(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0xd8(%rbp), %rax
ja 0x1ab3ed
movq -0xf8(%rbp), %rax
movq %rax, -0x288(%rbp)
jmp 0x1ab3fb
movq -0xd8(%rbp), %rax
movq %rax, -0x288(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0xe0(%rbp), %rax
ja 0x1ab41e
jmp 0x1ab4f0
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movq -0xe8(%rbp), %rcx
subq -0xe0(%rbp), %rcx
addq %rcx, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jae 0x1ab473
movq -0xe8(%rbp), %rdx
subq -0xe0(%rbp), %rdx
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x1ab4c7
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movabsq $0xffffffff, %rdx       # imm = 0xFFFFFFFF
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rbp), %rax
addq -0xd0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x1ab353
jmp 0x1ab4f2
movq -0x88(%rbp), %rax
cmpq -0x80(%rbp), %rax
je 0x1ab579
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x88(%rbp), %rax
addq %rax, %rsi
leaq -0x1b8(%rbp), %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x88(%rbp), %rax
addq %rax, %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rdi
leaq -0x1b8(%rbp), %rsi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpl 0x48(%rbp), %eax
jae 0x1ab5a1
movq $0x1, -0xb8(%rbp)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x1abb07
cmpl $0x3, -0x1bc(%rbp)
jne 0x1abb05
cmpq $0x0, -0xc8(%rbp)
jbe 0x1abb05
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x60(%rbp)
movq %rax, -0x98(%rbp)
movq $0x0, -0x108(%rbp)
movq $0x0, -0x100(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0xf0(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0xf8(%rbp)
movq -0x98(%rbp), %rax
imulq 0x60(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
cmpq -0xc8(%rbp), %rax
jae 0x1ab7cb
movq -0xd0(%rbp), %rax
addq 0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq -0x48(%rbp), %rax
jbe 0x1ab69b
movq -0x48(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jb 0x1ab6bb
movq -0xf0(%rbp), %rax
movq %rax, -0x290(%rbp)
jmp 0x1ab6c9
movq -0xd0(%rbp), %rax
movq %rax, -0x290(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0xd8(%rbp), %rax
ja 0x1ab6f7
movq -0xf8(%rbp), %rax
movq %rax, -0x298(%rbp)
jmp 0x1ab705
movq -0xd8(%rbp), %rax
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0xe0(%rbp), %rax
ja 0x1ab728
jmp 0x1ab7cb
movq -0xe8(%rbp), %rax
subq -0xe0(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq -0x98(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
addq %rcx, %rax
movq -0xc0(%rbp), %rcx
movq -0x98(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
jb 0x1ab786
movq -0xe8(%rbp), %rax
subq -0xe0(%rbp), %rax
addq -0x108(%rbp), %rax
movq %rax, -0x108(%rbp)
jmp 0x1ab7a2
movq -0xe8(%rbp), %rax
subq -0xe0(%rbp), %rax
addq -0x100(%rbp), %rax
movq %rax, -0x100(%rbp)
movq 0x60(%rbp), %rax
addq -0xd0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x1ab65d
movq -0x100(%rbp), %rax
movq %rax, %xmm0
movaps 0x1d6832(%rip), %xmm3   # 0x382010
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1d6836(%rip), %xmm2   # 0x382020
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x108(%rbp), %rcx
addq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
movsd 0x1d6a05(%rip), %xmm2   # 0x382228
mulsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1abb03
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
xorl %ecx, %ecx
movl %ecx, %edx
divq 0x60(%rbp)
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0xf0(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0xf8(%rbp)
movq -0x98(%rbp), %rax
imulq 0x60(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
cmpq -0xc8(%rbp), %rax
jae 0x1aba42
movq -0xd0(%rbp), %rax
addq 0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
cmpq -0x48(%rbp), %rax
jbe 0x1ab8e3
movq -0x48(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xd0(%rbp), %rax
jb 0x1ab903
movq -0xf0(%rbp), %rax
movq %rax, -0x2a0(%rbp)
jmp 0x1ab911
movq -0xd0(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0xd8(%rbp), %rax
ja 0x1ab93f
movq -0xf8(%rbp), %rax
movq %rax, -0x2a8(%rbp)
jmp 0x1ab94d
movq -0xd8(%rbp), %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0xe0(%rbp), %rax
ja 0x1ab970
jmp 0x1aba42
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movq -0xe8(%rbp), %rcx
subq -0xe0(%rbp), %rcx
addq %rcx, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jae 0x1ab9c5
movq -0xe8(%rbp), %rdx
subq -0xe0(%rbp), %rdx
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x1aba19
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xc0(%rbp), %rax
movq -0x98(%rbp), %rcx
movabsq $0xffffffff, %rdx       # imm = 0xFFFFFFFF
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rbp), %rax
addq -0xd0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x1ab8a5
movq -0x88(%rbp), %rax
cmpq -0x80(%rbp), %rax
je 0x1abac9
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x88(%rbp), %rax
addq %rax, %rsi
leaq -0x1b8(%rbp), %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x88(%rbp), %rax
addq %rax, %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rdi
leaq -0x1b8(%rbp), %rsi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpl 0x48(%rbp), %eax
jae 0x1abaf1
movq $0x1, -0xb8(%rbp)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x1abb05
jmp 0x1abb07
jmp 0x1abb09
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1ab270
movq -0x88(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x1abb2b
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rsi
callq 0x19d6c0
cmpq $0x0, -0xb8(%rbp)
je 0x1ac0d5
movq $0x0, -0x90(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x80(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1ac0c6
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpl 0x48(%rbp), %eax
jae 0x1ac01c
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x80(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
movl 0x4(%rax,%rcx), %eax
movq %rax, -0x1e8(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x80(%rbp), %rcx
imulq $0xa8, %rcx, %rcx
movl 0x8(%rax,%rcx), %eax
incl %eax
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rax
movq -0x1e8(%rbp), %rcx
subq %rcx, %rax
movq %rax, %xmm0
movaps 0x1d6418(%rip), %xmm1   # 0x382010
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x1d641c(%rip), %xmm1   # 0x382020
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x1d6605(%rip), %xmm1   # 0x382220
mulsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x1d63c2(%rip), %xmm1   # 0x381ff8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x208(%rbp)
cmpq $0x10, -0x208(%rbp)
jae 0x1abc61
movq $0x10, -0x208(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x24(%rax), %eax
shll $0x4, %eax
cltq
movq %rax, -0x248(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
shll $0x4, %eax
movl %eax, %eax
movq %rax, -0x220(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq -0x38(%rbp), %rdx
xorl %eax, %eax
cmpq 0x10(%rdx), %rcx
movb %al, -0x2a9(%rbp)
jae 0x1abcf2
movq -0x1f0(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
imulq $0xa8, -0x88(%rbp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
cmpq %rcx, %rax
seta %al
movb %al, -0x2a9(%rbp)
movb -0x2a9(%rbp), %al
testb $0x1, %al
jne 0x1abd01
jmp 0x1abfe0
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpl 0x48(%rbp), %eax
jae 0x1abd23
jmp 0x1abfc9
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x28(%rax), %eax
cmpq -0x220(%rbp), %rax
jae 0x1abd49
jmp 0x1abfc9
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movslq 0x24(%rax), %rax
cmpq -0x248(%rbp), %rax
jge 0x1abd70
jmp 0x1abfc9
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x1f8(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0x200(%rbp)
movq -0x1f8(%rbp), %rax
cmpq -0x1e8(%rbp), %rax
jb 0x1abdd3
movq -0x1f8(%rbp), %rax
movq %rax, -0x2b8(%rbp)
jmp 0x1abde1
movq -0x1e8(%rbp), %rax
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x200(%rbp), %rax
cmpq -0x1f0(%rbp), %rax
ja 0x1abe0f
movq -0x200(%rbp), %rax
movq %rax, -0x2c0(%rbp)
jmp 0x1abe1d
movq -0x1f0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
cmpq -0x210(%rbp), %rax
jbe 0x1abfc7
movq -0x218(%rbp), %rax
subq -0x210(%rbp), %rax
cmpq -0x208(%rbp), %rax
jb 0x1abfc7
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x30(%rax), %eax
movq %rax, -0x98(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movq %rax, -0x228(%rbp)
movq $0x0, -0x230(%rbp)
movq -0x98(%rbp), %rcx
xorl %eax, %eax
cmpq -0xa0(%rbp), %rcx
movb %al, -0x2c1(%rbp)
jae 0x1abf09
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x228(%rbp), %rcx
movb %al, -0x2c1(%rbp)
jne 0x1abf09
movq -0x230(%rbp), %rax
cmpq -0x220(%rbp), %rax
setb %al
movb %al, -0x2c1(%rbp)
movb -0x2c1(%rbp), %al
testb $0x1, %al
jne 0x1abf18
jmp 0x1abfb3
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x98(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rax
movq -0x30(%rbp), %rcx
movq (%rcx), %rcx
movq -0x98(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl 0xc(%rcx), %ecx
andl $0xff, %ecx
movl %ecx, %ecx
subq %rcx, %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
cmpq -0x210(%rbp), %rax
jb 0x1abf9a
movq -0x240(%rbp), %rax
cmpq -0x218(%rbp), %rax
ja 0x1abf9a
movq -0x230(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x230(%rbp)
jmp 0x1abf9c
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x1abea9
movq -0x230(%rbp), %rax
cmpq -0x220(%rbp), %rax
jb 0x1abfc5
jmp 0x1abfe0
jmp 0x1abfc7
jmp 0x1abfc9
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x1abcae
movq -0x88(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1ac01a
movq -0x1f0(%rbp), %rax
movq -0x38(%rbp), %rcx
movq (%rcx), %rcx
imulq $0xa8, -0x88(%rbp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
cmpq %rcx, %rax
jbe 0x1ac01a
jmp 0x1ac0b5
jmp 0x1ac01c
movq -0x90(%rbp), %rax
cmpq -0x80(%rbp), %rax
je 0x1ac0a3
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x90(%rbp), %rax
addq %rax, %rsi
leaq -0x1b8(%rbp), %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x90(%rbp), %rax
addq %rax, %rdi
movl $0xa8, %edx
callq 0x2180
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x80(%rbp), %rax
addq %rax, %rdi
leaq -0x1b8(%rbp), %rsi
movl $0xa8, %edx
callq 0x2180
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1abb6f
movq -0x90(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x1ac112
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x80(%rbp), %rcx
addq %rcx, %rax
movl $0x0, 0x28(%rax)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x1ac0dd
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)