// File: chhylp123[P]hifiasm/inter.cpp
// Function: debug_ll_chains(ul_idx_t const*, unsigned long*, long, long, long, mg_lchain_t*, kv_ul_ov_t*, kv_ul_ov_t*, unsigned long*, long, double, long)
void debug_ll_chains(const ul_idx_t *uref, uint64_t *ix, int64_t ix_n, int64_t p_sidx, int64_t p_eidx, mg_lchain_t *chain_a,
kv_ul_ov_t *raw_idx, kv_ul_ov_t *raw_chn, uint64_t *b, int64_t bw, double diff_ec_ul, int64_t qlen)
{
	int64_t k, i, z, a_n, ss, ee, b_n; uint64_t qs, qe, ts, te; uint32_t mk = 0x80000000; mg_lchain_t nn;
	int64_t iqs, iqe, its, ite, tsc;
	
	for (k = p_sidx; k < p_eidx; k++) {
		i = raw_idx->a[chain_a[k].off].qn; 
		qs = raw_chn->a[i].qs; qe = raw_chn->a[i].qe;
		ts = raw_chn->a[i].ts; te = raw_chn->a[i].te;
		// fprintf(stderr, "++++++++++++[M::%s::idx:%ld]\n", __func__, i);
		for (;i>=0;) {
			// fprintf(stderr, "--[M::%s::i->%ld]\n", __func__, i);
			if(raw_chn->a[i].qs < qs) qs = raw_chn->a[i].qs;
        	if(raw_chn->a[i].ts < ts) ts = raw_chn->a[i].ts;
        	if(raw_chn->a[i].qe > qe) qe = raw_chn->a[i].qe;
        	if(raw_chn->a[i].te > te) te = raw_chn->a[i].te;
			raw_chn->a[i].qs |= mk;

			if(raw_chn->a[i].tn == (uint32_t)-1) i = -1;
			else i = raw_chn->a[i].tn;
		}
		assert(raw_idx->a[chain_a[k].off].qs == qs && raw_idx->a[chain_a[k].off].qe == qe && 
				raw_idx->a[chain_a[k].off].ts == ts && raw_idx->a[chain_a[k].off].te == te);
	}


	///dedup
	for (z = a_n = 0; z < ix_n; ++z) {
		ss = a_n; ee = a_n + ((uint32_t)ix[z]); tsc = 0;
		/**if(ss != p_sidx || ee != p_eidx)**/ {
			for (k = ss; k < ee; k++) {
				i = raw_idx->a[chain_a[k].off].qn; b_n = 0;
				qs = ((raw_chn->a[i].qs<<1)>>1); qe = raw_chn->a[i].qe;
				ts = raw_chn->a[i].ts; te = raw_chn->a[i].te;
				// fprintf(stderr, "++++++++++++[M::%s::idx:%ld]\n", __func__, i);
				for (;i>=0;) {
					// fprintf(stderr, "--[M::%s::i->%ld]\n", __func__, i);
					if(((raw_chn->a[i].qs<<1)>>1) < qs) qs = ((raw_chn->a[i].qs<<1)>>1);
					if(raw_chn->a[i].ts < ts) ts = raw_chn->a[i].ts;
					if(raw_chn->a[i].qe > qe) qe = raw_chn->a[i].qe;
					if(raw_chn->a[i].te > te) te = raw_chn->a[i].te;
					// raw_chn->a[i].qs |= mk;
					//update here!!!!!!!
					// if(!(raw_chn->a[i].qs&mk)) b[b_n++] = i;
					b[b_n++] = i;
					if(raw_chn->a[i].tn == (uint32_t)-1) i = -1;
					else i = raw_chn->a[i].tn;
				}
				assert(raw_idx->a[chain_a[k].off].qs == qs && raw_idx->a[chain_a[k].off].qe == qe && 
						raw_idx->a[chain_a[k].off].ts == ts && raw_idx->a[chain_a[k].off].te == te);
				
				update_exist_chain(uref, raw_chn->a, b, b_n, raw_idx->a[chain_a[k].off].tn, bw, diff_ec_ul, &nn);
				nn.v = (raw_idx->a[chain_a[k].off].tn<<1)|raw_idx->a[chain_a[k].off].rev;
				extend_end_coord(&nn, NULL, qlen, uref->ug->g->seq[raw_idx->a[chain_a[k].off].tn].len, 
				&iqs, &iqe, &its, &ite);
				nn.qs = iqs; nn.qe = iqe; nn.rs = its; nn.re = ite;
				if(!(chain_a[k].score == nn.score && chain_a[k].qs == nn.qs && chain_a[k].qe == nn.qe 
															&& chain_a[k].rs == nn.rs && chain_a[k].re == nn.re)){
					fprintf(stderr, "[M::%s::] chain_a[k].score->%d, nn.score->%d\n", __func__, chain_a[k].score, nn.score);
					fprintf(stderr, "[M::%s::] chain_a[k].qs->%d, nn.qs->%d, chain_a[k].qe->%d, nn.qe->%d, chain_a[k].rs->%d, nn.rs->%d, chain_a[k].re->%d, nn.re->%d\n", __func__, 
					chain_a[k].qs, nn.qs, chain_a[k].qe, nn.qe, chain_a[k].rs, nn.rs, chain_a[k].re, nn.re);
				}
				assert(chain_a[k].score == nn.score && chain_a[k].qs == nn.qs && chain_a[k].qe == nn.qe 
															&& chain_a[k].rs == nn.rs && chain_a[k].re == nn.re);
				tsc += nn.score;
			}
			assert(tsc >= ((int64_t)(ix[z]>>32)));
		}

		a_n += ((uint32_t)ix[z]);
	}



	for (k = p_sidx; k < p_eidx; k++) {
		i = raw_idx->a[chain_a[k].off].qn; 
		qs = ((raw_chn->a[i].qs<<1)>>1); qe = raw_chn->a[i].qe;
		ts = raw_chn->a[i].ts; te = raw_chn->a[i].te;
		for (;i>=0;) {
			// fprintf(stderr, "--[M::%s::i->%ld]\n", __func__, i);
			if(raw_chn->a[i].qs&mk) raw_chn->a[i].qs -= mk;
			if(raw_chn->a[i].qs < qs) qs = raw_chn->a[i].qs;
        	if(raw_chn->a[i].ts < ts) ts = raw_chn->a[i].ts;
        	if(raw_chn->a[i].qe > qe) qe = raw_chn->a[i].qe;
        	if(raw_chn->a[i].te > te) te = raw_chn->a[i].te;
			

			if(raw_chn->a[i].tn == (uint32_t)-1) i = -1;
			else i = raw_chn->a[i].tn;
		}
		assert(raw_idx->a[chain_a[k].off].qs == qs && raw_idx->a[chain_a[k].off].qe == qe && 
				raw_idx->a[chain_a[k].off].ts == ts && raw_idx->a[chain_a[k].off].te == te);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movsd %xmm0, -0x48(%rbp)
movl $0x80000000, -0xa4(%rbp) # imm = 0x80000000
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x38(%rbp), %rax
jge 0x2d5663
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0x58(%rbp)
jl 0x2d5556
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
cmpq -0x88(%rbp), %rax
jae 0x2d5465
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
cmpq -0x98(%rbp), %rax
jae 0x2d5499
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x90(%rbp), %rax
jbe 0x2d54cd
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
jbe 0x2d5501
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
movl -0xa4(%rbp), %ecx
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rdx
addq %rdx, %rax
orl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2d553b
movq $-0x1, -0x58(%rbp)
jmp 0x2d5551
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq %rax, -0x58(%rbp)
jmp 0x2d5426
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x88(%rbp), %rcx
movb %al, -0xf9(%rbp)
jne 0x2d5623
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x90(%rbp), %rcx
movb %al, -0xf9(%rbp)
jne 0x2d5623
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x98(%rbp), %rcx
movb %al, -0xf9(%rbp)
jne 0x2d5623
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
sete %al
movb %al, -0xf9(%rbp)
movb -0xf9(%rbp), %al
testb $0x1, %al
jne 0x2d562f
jmp 0x2d5631
jmp 0x2d5650
leaq 0xbdd60(%rip), %rdi     # 0x393398
leaq 0xbb1f0(%rip), %rsi     # 0x39082f
movl $0x39c5, %edx           # imm = 0x39C5
leaq 0xbdde6(%rip), %rcx     # 0x393431
callq 0x2130
jmp 0x2d5652
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2d5391
movq $0x0, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x60(%rbp), %rax
cmpq -0x28(%rbp), %rax
jge 0x2d5d5d
movq -0x68(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rax
movq -0x20(%rbp), %rcx
movq -0x60(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq $0x0, -0xf8(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x78(%rbp), %rax
jge 0x2d5cf9
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq %rax, -0x58(%rbp)
movq $0x0, -0x80(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
shll %eax
shrl %eax
movl %eax, %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0x58(%rbp)
jl 0x2d5894
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
shll %eax
shrl %eax
movl %eax, %eax
cmpq -0x88(%rbp), %rax
jae 0x2d57a3
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
shll %eax
shrl %eax
movl %eax, %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
cmpq -0x98(%rbp), %rax
jae 0x2d57d7
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x90(%rbp), %rax
jbe 0x2d580b
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
jbe 0x2d583f
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
movq -0x58(%rbp), %rdx
movq 0x20(%rbp), %rax
movq -0x80(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x80(%rbp)
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2d5879
movq $-0x1, -0x58(%rbp)
jmp 0x2d588f
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq %rax, -0x58(%rbp)
jmp 0x2d5758
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x88(%rbp), %rcx
movb %al, -0xfa(%rbp)
jne 0x2d5961
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x90(%rbp), %rcx
movb %al, -0xfa(%rbp)
jne 0x2d5961
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x98(%rbp), %rcx
movb %al, -0xfa(%rbp)
jne 0x2d5961
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
sete %al
movb %al, -0xfa(%rbp)
movb -0xfa(%rbp), %al
testb $0x1, %al
jne 0x2d596d
jmp 0x2d596f
jmp 0x2d598e
leaq 0xbda22(%rip), %rdi     # 0x393398
leaq 0xbaeb2(%rip), %rsi     # 0x39082f
movl $0x39e0, %edx           # imm = 0x39E0
leaq 0xbdaa8(%rip), %rcx     # 0x393431
callq 0x2130
movq -0x18(%rbp), %rdi
movq 0x18(%rbp), %rax
movq (%rax), %rsi
movq 0x20(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %r8
imulq $0x28, -0x50(%rbp), %r9
addq %r9, %r8
movslq (%r8), %r8
imulq $0x1c, %r8, %r8
addq %r8, %rax
movl 0xc(%rax), %eax
movl %eax, %r8d
movq 0x28(%rbp), %r9
movsd -0x48(%rbp), %xmm0
leaq -0xcc(%rbp), %rax
movq %rax, (%rsp)
callq 0x2d4d30
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shll %eax
movq 0x10(%rbp), %rcx
movq (%rcx), %rcx
movq -0x40(%rbp), %rdx
imulq $0x28, -0x50(%rbp), %rsi
addq %rsi, %rdx
movslq (%rdx), %rdx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
orl %ecx, %eax
movl %eax, -0xc4(%rbp)
movq 0x30(%rbp), %rdx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rbp), %rcx
movq (%rcx), %rcx
movq -0x40(%rbp), %rsi
imulq $0x28, -0x50(%rbp), %rdi
addq %rdi, %rsi
movslq (%rsi), %rsi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rcx
movl 0xc(%rcx), %ecx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %ecx
leaq -0xcc(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq -0xd8(%rbp), %r8
leaq -0xe0(%rbp), %r9
leaq -0xe8(%rbp), %r10
leaq -0xf0(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x2d2ba0
movq -0xd8(%rbp), %rax
movl %eax, -0xb8(%rbp)
movq -0xe0(%rbp), %rax
movl %eax, -0xb4(%rbp)
movq -0xe8(%rbp), %rax
movl %eax, -0xc0(%rbp)
movq -0xf0(%rbp), %rax
movl %eax, -0xbc(%rbp)
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
cmpl -0xb0(%rbp), %eax
jne 0x2d5b49
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpl -0xb8(%rbp), %eax
jne 0x2d5b49
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
cmpl -0xb4(%rbp), %eax
jne 0x2d5b49
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl -0xc0(%rbp), %eax
jne 0x2d5b49
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
cmpl -0xbc(%rbp), %eax
je 0x2d5c0c
movq 0xee490(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x1c(%rax), %ecx
movl -0xb0(%rbp), %r8d
leaq 0xbd960(%rip), %rsi     # 0x3934d0
leaq 0xbd987(%rip), %rdx     # 0x3934fe
movb $0x0, %al
callq 0x22a0
movq 0xee45b(%rip), %rax     # 0x3c3fe0
movq (%rax), %rdi
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
movl -0xb8(%rbp), %r8d
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rax
movl 0x18(%rax), %r9d
movl -0xb4(%rbp), %r14d
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %ebx
movl -0xc0(%rbp), %r11d
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rax
movl 0x10(%rax), %r10d
movl -0xbc(%rbp), %eax
leaq 0xbd926(%rip), %rsi     # 0x39350e
leaq 0xbd90f(%rip), %rdx     # 0x3934fe
movl %r14d, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq 0x22a0
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x1c(%rax), %ecx
xorl %eax, %eax
cmpl -0xb0(%rbp), %ecx
movb %al, -0xfb(%rbp)
jne 0x2d5ca6
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
xorl %eax, %eax
cmpl -0xb8(%rbp), %ecx
movb %al, -0xfb(%rbp)
jne 0x2d5ca6
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %ecx
xorl %eax, %eax
cmpl -0xb4(%rbp), %ecx
movb %al, -0xfb(%rbp)
jne 0x2d5ca6
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
xorl %eax, %eax
cmpl -0xc0(%rbp), %ecx
movb %al, -0xfb(%rbp)
jne 0x2d5ca6
movq -0x40(%rbp), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
cmpl -0xbc(%rbp), %eax
sete %al
movb %al, -0xfb(%rbp)
movb -0xfb(%rbp), %al
testb $0x1, %al
jne 0x2d5cb2
jmp 0x2d5cb4
jmp 0x2d5cd3
leaq 0xbd8d5(%rip), %rdi     # 0x393590
leaq 0xbab6d(%rip), %rsi     # 0x39082f
movl $0x39ee, %edx           # imm = 0x39EE
leaq 0xbd763(%rip), %rcx     # 0x393431
callq 0x2130
movslq -0xb0(%rbp), %rax
addq -0xf8(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2d56b5
movq -0xf8(%rbp), %rax
movq -0x20(%rbp), %rcx
movq -0x60(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
jl 0x2d5d17
jmp 0x2d5d36
leaq 0xbd8f7(%rip), %rdi     # 0x393615
leaq 0xbab0a(%rip), %rsi     # 0x39082f
movl $0x39f1, %edx           # imm = 0x39F1
leaq 0xbd700(%rip), %rcx     # 0x393431
callq 0x2130
movq -0x20(%rbp), %rax
movq -0x60(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
addq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x2d5673
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x38(%rbp), %rax
jge 0x2d605c
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
shll %eax
shrl %eax
movl %eax, %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
cmpq $0x0, -0x58(%rbp)
jl 0x2d5f4f
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
andl -0xa4(%rbp), %eax
cmpl $0x0, %eax
je 0x2d5e45
movl -0xa4(%rbp), %edx
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
cmpq -0x88(%rbp), %rax
jae 0x2d5e79
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x88(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
cmpq -0x98(%rbp), %rax
jae 0x2d5ead
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x90(%rbp), %rax
jbe 0x2d5ee1
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
jbe 0x2d5f15
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0xa0(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2d5f34
movq $-0x1, -0x58(%rbp)
jmp 0x2d5f4a
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0x1c, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq %rax, -0x58(%rbp)
jmp 0x2d5e00
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x88(%rbp), %rcx
movb %al, -0xfc(%rbp)
jne 0x2d601c
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x90(%rbp), %rcx
movb %al, -0xfc(%rbp)
jne 0x2d601c
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, %ecx
xorl %eax, %eax
cmpq -0x98(%rbp), %rcx
movb %al, -0xfc(%rbp)
jne 0x2d601c
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
cmpq -0xa0(%rbp), %rax
sete %al
movb %al, -0xfc(%rbp)
movb -0xfc(%rbp), %al
testb $0x1, %al
jne 0x2d6028
jmp 0x2d602a
jmp 0x2d6049
leaq 0xbd367(%rip), %rdi     # 0x393398
leaq 0xba7f7(%rip), %rsi     # 0x39082f
movl $0x3a0a, %edx           # imm = 0x3A0A
leaq 0xbd3ed(%rip), %rcx     # 0x393431
callq 0x2130
jmp 0x2d604b
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
jmp 0x2d5d65
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax,%rax)