// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/./Levenshtein_distance.h
// Function: ed_band_cal_extension_infi_1_w_trace(char*, int, char*, int, int, int*, bit_extz_t*)
inline void ed_band_cal_extension_infi_1_w_trace(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, int32_t *nword, bit_extz_t *ez)
{
	int32_t done = 1;//diff
    ez->cigar.n = 0;//diff
	if(ez->err > thre) {//diff
		init_base_ed(*ez, thre, pn, tn); ez->ps = ez->ts = INT32_MAX; ez->pe = pn-1; ez->te = tn-1;
		if(pn > tn + thre) pn = tn + thre;
		else if(tn > pn + thre) tn = pn + thre;
		done = 0;//diff
    } else if(ez->err == 0) {//diff
        push_trace(&(ez->cigar), 0, ez->te+1-ez->ts); return;//diff
    } else {
        pn = ez->pe + 1 - ez->ps; tn = ez->te + 1 - ez->ts; //diff
    }
	int32_t i, err, tn0 = tn - 1, cut = thre+(thre<<1), bd, i_bd, k_bd, wz, wz1, ws, Peq_i; 
    int32_t poff, pe = pn-1, tmp_e = INT32_MAX, k, pidx = ez->pe, tidx = ez->te; w_sig c, ad, Peq_m;
	if(nword) {
        ez->nword = (*nword);
    } else {
        bd = (((thre)<<1)+1); ez->nword = ((bd>>bitw)+(!!(bd&bitz)));
    }
    resize_bit_extz_t((*ez), (thre)); 
	wz = ws = sizeof(*(ez->a))*(ez->nword);//diff
    memset((ez->Peq[0]).a, 0, wz);
    memset((ez->Peq[1]).a, 0, wz);
    memset((ez->Peq[2]).a, 0, wz);
    memset((ez->Peq[3]).a, 0, wz);
    memset((ez->Peq[4]).a, 0, wz);

	bd = thre+1; bd = ((bd<=pn)?bd:pn); i_bd = thre;
	for (i = 0; i < bd; i++, i_bd++) { 
		w_bit((ez->Peq)[seq_nt4_table[(uint8_t)(pstr)[pidx-i]]], (i_bd));
	}
    bd = thre+1, i_bd = thre;

	memset((ez->Peq[4]).a, 0, wz);
    err = thre;
	w_infi_set_bit_lsub(ez->VN, thre, ez->nword); /**VN = (((Word)1)<<(thre))-1;**/ 
    w_infi_set_bit_lsub(ez->VP, (thre<<1)+1, ez->nword); /**VP = (((Word)1)<<((thre<<1)+1))-1;**/
    w_infi_self_xor(ez->VP, ez->VN, ez->nword, wz) /**VP ^= VN;**/

	ez->path.n=(ez->nword*tn*5);//diff
    kv_resize(w_sig, ez->path, ez->path.n); ez->path.n=0;//diff

	i = 0;
	/**for the incoming char/last char; mm = ((Word)1 << (thre<<1))**/
    Peq_i = (((thre<<1))>>bitw); Peq_m = (((w_sig)1)<<(((thre<<1))&bitz));
	while (i < tn0) {
        ed_infi_core(ez->Peq, ez->VP, ez->VN, ez->X, ez->D0, ez->HN, ez->HP, (uint8_t)tstr[tidx-i], c, ad, wz, ez->nword);
        if (!(ez->D0.a[0]&(1ULL))) {
            ++err; if (err>cut) return;
        }

		if(!done) {//diff
            poff = i-thre; k = i+thre-pe;/**poff:[i-thre, i+thre]**/
			if(k >= 0) {
				if(tmp_e == INT32_MAX) {
					tmp_e = err;
					for ((k) = 0; (poff) < (pe); (poff)++, (k)++) {
						bd = (k>>bitw); k_bd = (k&bitz);
						(tmp_e) += (((*ez).VP.a[bd]>>k_bd)&((w_sig)1)); 
						(tmp_e) -= (((*ez).VN.a[bd]>>k_bd)&((w_sig)1));
					} 
				} else {
					k = (thre<<1) - k; 
					if(k >= 0) {
						bd = (k>>bitw); k_bd = (k&bitz);
						(tmp_e) += (((*ez).HP.a[bd]>>k_bd)&((w_sig)1)); 
						(tmp_e) -= (((*ez).HN.a[bd]>>k_bd)&((w_sig)1));
					}
				}
				if((tmp_e) <= (*ez).thre && (tmp_e) < (*ez).err) {
                    (*ez).err = tmp_e; (*ez).ps = pidx - pe; (*ez).ts = tidx-i;
				}
			}
        }
		// if(dbg_ext_err(i, thre, err, pe, &((*ez).VP), &((*ez).VN))!=tmp_e) {
		// 	fprintf(stderr, "i::%d, tmp_e::%d, dbg_ext_err::%d\n", i, tmp_e, dbg_ext_err(i, thre, err, pe, &((*ez).VP), &((*ez).VN)));
		// }

        ed_infi_post_Peq(ez->Peq, wz, wz1, ez->nword);
        ++i; ++i_bd; c = 4;
        if(i_bd < pn) c = seq_nt4_table[(uint8_t)pstr[pidx-i_bd]];
        if(c < 4) ez->Peq[c].a[Peq_i]|=Peq_m;

		memcpy(ez->path.a+ez->path.n, ez->D0.a, ws); ez->path.n += ez->nword;//diff
        memcpy(ez->path.a+ez->path.n, ez->VP.a, ws); ez->path.n += ez->nword;//diff
        memcpy(ez->path.a+ez->path.n, ez->VN.a, ws); ez->path.n += ez->nword;//diff
        memcpy(ez->path.a+ez->path.n, ez->HP.a, ws); ez->path.n += ez->nword;//diff
        memcpy(ez->path.a+ez->path.n, ez->HN.a, ws); ez->path.n += ez->nword;//diff
    }
    ed_infi_core(ez->Peq, ez->VP, ez->VN, ez->X, ez->D0, ez->HN, ez->HP, (uint8_t)tstr[tidx-i], c, ad, wz, ez->nword);
    if (!(ez->D0.a[0]&(1ULL))) {
        ++err; if (err>cut) return;
    }
	memcpy(ez->path.a+ez->path.n, ez->D0.a, ws); ez->path.n += ez->nword;//diff
	memcpy(ez->path.a+ez->path.n, ez->VP.a, ws); ez->path.n += ez->nword;//diff
	memcpy(ez->path.a+ez->path.n, ez->VN.a, ws); ez->path.n += ez->nword;//diff
	memcpy(ez->path.a+ez->path.n, ez->HP.a, ws); ez->path.n += ez->nword;//diff
	memcpy(ez->path.a+ez->path.n, ez->HN.a, ws); ez->path.n += ez->nword;//diff

    int32_t site = tn - 1 - thre;/**up bound; site:[tn - 1 - thre, tn - 1 + thre]**/
	if(!done) {//diff
		for (cut = pn - 1, i = 0; site < cut; i++) {
			bd = (i>>bitw); i_bd = (i&bitz);
			err += (((*ez).VP.a[bd]>>i_bd)&((w_sig)1));
			err -= (((*ez).VN.a[bd]>>i_bd)&((w_sig)1));
			site++;
			if(err <= thre && err < ez->err) {
				ez->err = err; ez->ps = pidx-site; ez->ts = tidx+1-tn;
			}
		}
		if(err <= thre && err < ez->err) {
			ez->err = err; ez->ps = pidx-site; ez->ts = tidx+1-tn;
		}
	}

    if((ez->te-ez->ts+1) != tn) {//diff
        ez->path.n /= tn; ez->path.n *= (ez->te+1-ez->ts);//diff
    }//diff

    poff = ez->ps; ez->ps = pidx - ez->pe; ez->pe = pidx - poff;//diff
    gen_trace(ez, thre, 0);//diff
    poff = ez->ps; ez->ps = pidx - ez->pe; ez->pe = pidx - poff;//diff
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r8d, %r12d
movq %rdx, 0x58(%rsp)
movq 0xe0(%rsp), %rbx
andq $0x0, 0xa8(%rbx)
movq %rdi, 0x50(%rsp)
movl 0x2c(%rbx), %r13d
cmpl %r8d, %r13d
jle 0x5cf59
movl %esi, %r14d
movl %r12d, 0x28(%rbx)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x2c(%rbx)
movl %esi, 0x18(%rbx)
movl %ecx, 0x24(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movl %eax, 0x1c(%rbx)
movl %eax, 0x10(%rbx)
leal -0x1(%r14), %eax
movq %rax, 0x8(%rsp)
movl %eax, 0x14(%rbx)
leal -0x1(%rcx), %eax
movq %rax, 0x28(%rsp)
movl %eax, 0x20(%rbx)
leal (%r12,%rcx), %eax
cmpl %esi, %eax
jge 0x5cf89
movl %eax, %r14d
jmp 0x5cf92
testl %r13d, %r13d
je 0x5daac
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %ecx
negl %eax
movq %rcx, 0x8(%rsp)
leal (%rcx,%rax), %r14d
incl %r14d
movl 0x20(%rbx), %ecx
movl 0x1c(%rbx), %eax
negl %eax
movq %rcx, 0x28(%rsp)
addl %eax, %ecx
incl %ecx
jmp 0x5cf92
leal (%r12,%r14), %eax
cmpl %ecx, %eax
cmovll %eax, %ecx
leal (%r12,%r12), %ebp
testq %r9, %r9
je 0x5cfa0
movl (%r9), %esi
jmp 0x5cfa7
movl %ebp, %esi
sarl $0x6, %esi
incl %esi
movl %esi, 0x30(%rbx)
cmpl %r12d, 0x3c(%rbx)
movq %rcx, 0x20(%rsp)
movl %ebp, 0x18(%rsp)
jge 0x5d09d
movl %ebp, %eax
shrl $0x6, %eax
imull $0xc, %eax, %eax
addl $0xc, %eax
movl %eax, 0x3c(%rbx)
cmpl 0x38(%rbx), %eax
jbe 0x5d099
movq 0x40(%rbx), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq 0x20(%rsp), %rcx
movq %rax, %r8
movq %rax, 0x40(%rbx)
movl 0x30(%rbx), %esi
movl 0x3c(%rbx), %eax
pushq $0xc
popq %rdi
xorl %edx, %edx
divl %edi
movl %eax, 0x3c(%rbx)
movq %r8, 0x48(%rbx)
leal (,%rax,8), %edx
leaq (%r8,%rdx), %rdi
movq %rdi, 0x50(%rbx)
leal (%rax,%rax), %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x58(%rbx)
leal (%rax,%rax,2), %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x60(%rbx)
leal (,%rax,4), %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x68(%rbx)
leal (%rax,%rax,4), %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x70(%rbx)
imull $0x6, %eax, %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x78(%rbx)
imull $0x7, %eax, %edi
leaq (%r8,%rdi,8), %rdi
movq %rdi, 0x80(%rbx)
leaq (%r8,%rdx,8), %rdx
movq %rdx, 0x88(%rbx)
leal (%rax,%rax,8), %edx
leaq (%r8,%rdx,8), %rdx
movq %rdx, 0x90(%rbx)
imull $0xa, %eax, %edx
leaq (%r8,%rdx,8), %rdx
movq %rdx, 0x98(%rbx)
imull $0xb, %eax, %edx
leaq (%r8,%rdx,8), %rdx
movq %rdx, 0xa0(%rbx)
imull $0xc, %eax, %edx
movl %edx, 0x38(%rbx)
movl %eax, 0x34(%rbx)
movl %r12d, 0x3c(%rbx)
leal -0x1(%rcx), %eax
movq %rax, 0x48(%rsp)
leal (%r12,%r12,2), %eax
movl %eax, 0x1c(%rsp)
leal -0x1(%r14), %eax
movl %eax, 0x4(%rsp)
shll $0x3, %esi
movq 0x48(%rbx), %rdi
movslq %esi, %r15
movq %r14, %rbp
xorl %r14d, %r14d
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq 0x50(%rbx), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq 0x58(%rbx), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq 0x60(%rbx), %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
movq 0x68(%rbx), %rdi
xorl %esi, %esi
movq %r15, 0x38(%rsp)
movq %r15, %rdx
callq 0x20e0
leal 0x1(%r12), %eax
cmpl %ebp, %eax
movq %rbp, 0x10(%rsp)
cmovgel %ebp, %eax
movslq 0x8(%rsp), %rdx
testl %eax, %eax
cmovlel %r14d, %eax
negq %rax
movq 0x50(%rsp), %rcx
movq %rdx, 0x80(%rsp)
addq %rcx, %rdx
movl %r12d, %ecx
cmpq %r14, %rax
je 0x5d172
pushq $0x1
popq %rsi
shlq %cl, %rsi
movzbl (%rdx,%r14), %edi
leaq 0x18e9ad(%rip), %r8     # 0x1ebb00
movzbl (%r8,%rdi), %edi
movq 0x48(%rbx,%rdi,8), %rdi
movl %ecx, %r8d
sarl $0x6, %r8d
movslq %r8d, %r8
orq %rsi, (%rdi,%r8,8)
incl %ecx
decq %r14
jmp 0x5d13c
movq 0x68(%rbx), %rdi
xorl %esi, %esi
movq 0x38(%rsp), %rdx
callq 0x20e0
movq 0x80(%rbx), %rdi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %r12d, %eax
sarl $0x6, %eax
movslq %eax, %r15
cmpl $0x40, %r12d
jb 0x5d1c0
movq 0x80(%rbx), %rdi
leaq (,%r15,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %r12d, %ecx
pushq $-0x1
popq %r14
andl $0x3f, %ecx
movl 0x18(%rsp), %ebp
je 0x5d1e4
movq %r14, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
movq 0x78(%rbx), %rdi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %ebp, %eax
sarl $0x6, %eax
cmpl $0x3f, %ebp
movq %r12, 0x30(%rsp)
ja 0x5d20a
movl %eax, %eax
jmp 0x5d226
movq 0x78(%rbx), %rdi
movslq %eax, %r15
leaq (,%r15,8), %rdx
movl $0xff, %esi
callq 0x20e0
movq %r15, %rax
movq 0x20(%rsp), %r8
andl $0x3e, %ebp
leal 0x1(%rbp), %ecx
shlq %cl, %r14
notq %r14
movq 0x78(%rbx), %rcx
movq %rax, 0x78(%rsp)
movq %r14, (%rcx,%rax,8)
movl 0x30(%rbx), %eax
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
movq 0x10(%rsp), %r14
cmpq %rdx, %rsi
je 0x5d271
movq 0x80(%rbx), %rdi
movq (%rdi,%rdx,8), %rdi
xorq %rdi, (%rcx,%rdx,8)
incq %rdx
jmp 0x5d258
imull %r8d, %eax
leal (%rax,%rax,4), %eax
cltq
movq %rax, 0xc0(%rbx)
cmpq %rax, 0xc8(%rbx)
jae 0x5d2e4
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xc8(%rbx)
movq 0xd0(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0xd0(%rbx)
andq $0x0, 0xc0(%rbx)
pushq $0x1
popq %rax
movl %ebp, %ecx
shlq %cl, %rax
movq %rax, 0x70(%rsp)
movq 0x30(%rsp), %rax
movl %eax, %ecx
subl %r14d, %ecx
incl %ecx
movl %ecx, 0x44(%rsp)
movq 0x8(%rsp), %rcx
subl 0x4(%rsp), %ecx
movl %ecx, 0x40(%rsp)
movslq %eax, %r15
movslq %r14d, %rcx
movq %rcx, 0x88(%rsp)
movslq 0x28(%rsp), %rcx
movq %rcx, 0x90(%rsp)
xorl %r12d, %r12d
movq 0x48(%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %edx
cmovgl %ecx, %edx
movq %rdx, 0x60(%rsp)
movl %eax, %ecx
negl %ecx
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl %eax, (%rsp)
cmpq 0x60(%rsp), %r12
je 0x5d768
movq %rcx, 0x10(%rsp)
movq %r15, 0xa0(%rsp)
movl %r13d, %ecx
movq 0x90(%rsp), %rdx
movq %r12, 0x68(%rsp)
subq %r12, %rdx
movq 0x58(%rsp), %rax
movq %rdx, 0x98(%rsp)
movzbl (%rax,%rdx), %eax
leaq 0x18e769(%rip), %rdx    # 0x1ebb00
movzbl (%rdx,%rax), %edx
movl 0x30(%rbx), %eax
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
xorl %edi, %edi
xorl %r9d, %r9d
cmpq %rdi, %rsi
je 0x5d44d
movq 0x48(%rbx,%rdx,8), %r11
movq 0x80(%rbx), %r8
movq (%r8,%rdi,8), %r10
orq (%r11,%rdi,8), %r10
movq 0x88(%rbx), %r11
movq %r10, (%r11,%rdi,8)
movq 0x78(%rbx), %r12
movq 0x90(%rbx), %r14
andq (%r12,%rdi,8), %r10
addq %r9, %r10
setb %r9b
movq %r10, (%r14,%rdi,8)
addq (%r12,%rdi,8), %r10
movq %r10, (%r14,%rdi,8)
movq (%r12,%rdi,8), %r13
cmpq %r13, %r10
setb %r15b
orb %r9b, %r15b
xorq %r13, %r10
movq %r10, (%r14,%rdi,8)
orq (%r11,%rdi,8), %r10
movq %r10, (%r14,%rdi,8)
andq (%r12,%rdi,8), %r10
movq 0x98(%rbx), %r9
movq %r10, (%r9,%rdi,8)
movq (%r14,%rdi,8), %r10
orq (%r12,%rdi,8), %r10
movzbl %r15b, %r9d
notq %r10
movq 0xa0(%rbx), %r11
movq %r10, (%r11,%rdi,8)
orq (%r8,%rdi,8), %r10
movq %r10, (%r11,%rdi,8)
incq %rdi
jmp 0x5d3ad
movq %rax, %rdx
xorl %esi, %esi
movl %ecx, %r13d
movl 0x4(%rsp), %ecx
movq 0xa0(%rsp), %r15
testl %edx, %edx
jle 0x5d4d0
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %r8
movq -0x8(%r8,%rdx,8), %r9
shrq %r9
orq %rsi, %r9
movq %r9, -0x8(%rdi,%rdx,8)
movq -0x8(%r8,%rdx,8), %rsi
movq 0x80(%rbx), %r8
movq 0xa0(%rbx), %r10
andq -0x8(%r10,%rdx,8), %r9
movq %r9, -0x8(%r8,%rdx,8)
movq -0x8(%r10,%rdx,8), %r8
orq -0x8(%rdi,%rdx,8), %r8
notq %r8
movq 0x78(%rbx), %rdi
movq %r8, -0x8(%rdi,%rdx,8)
movq 0x98(%rbx), %r9
orq -0x8(%r9,%rdx,8), %r8
movq %r8, -0x8(%rdi,%rdx,8)
decq %rdx
shlq $0x3f, %rsi
jmp 0x5d461
movq 0x90(%rbx), %rsi
testb $0x1, (%rsi)
jne 0x5d4f5
movl (%rsp), %edx
cmpl 0x1c(%rsp), %edx
movq 0x10(%rsp), %r10
jge 0x5da9a
incl %edx
movl %edx, (%rsp)
jmp 0x5d4fa
movq 0x10(%rsp), %r10
cmpl 0x30(%rsp), %r13d
jle 0x5d5a6
movl 0x44(%rsp), %edi
addl 0x68(%rsp), %edi
js 0x5d5a6
cmpl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
jne 0x5d552
xorl %edx, %edx
movl (%rsp), %ebp
leal (%r10,%rdx), %edi
cmpl %ecx, %edi
jge 0x5d587
movl %edx, %edi
shrl $0x6, %edi
movq 0x78(%rbx), %r8
movq 0x80(%rbx), %r9
movq (%r8,%rdi,8), %r8
btq %rdx, %r8
adcl $0x0, %ebp
movq (%r9,%rdi,8), %rdi
btq %rdx, %rdi
sbbl $0x0, %ebp
incl %edx
jmp 0x5d520
movl 0x18(%rsp), %ecx
movl %ecx, %edx
subl %edi, %edx
js 0x5d587
movq 0x98(%rbx), %rdi
movq 0xa0(%rbx), %r8
movl %edx, %r9d
shrl $0x6, %r9d
movq (%r8,%r9,8), %r8
btq %rdx, %r8
adcl $0x0, %ebp
movq (%rdi,%r9,8), %rdi
btq %rdx, %rdi
sbbl $0x0, %ebp
cmpl 0x28(%rbx), %ebp
jg 0x5d5a6
cmpl 0x2c(%rbx), %ebp
jge 0x5d5a6
movl %ebp, 0x2c(%rbx)
movl 0x40(%rsp), %ecx
movl %ecx, 0x10(%rbx)
movq 0x98(%rsp), %rcx
movl %ecx, 0x1c(%rbx)
movslq %eax, %rcx
pushq $0x1
popq %rdx
cmpq %rcx, %rdx
jge 0x5d612
movq 0x48(%rbx), %rdi
movq -0x8(%rdi,%rdx,8), %r8
movq (%rdi,%rdx,8), %r9
shldq $0x3f, %r8, %r9
movq %r9, -0x8(%rdi,%rdx,8)
movq 0x50(%rbx), %rdi
movq -0x8(%rdi,%rdx,8), %r8
movq (%rdi,%rdx,8), %r9
shldq $0x3f, %r8, %r9
movq %r9, -0x8(%rdi,%rdx,8)
movq 0x58(%rbx), %rdi
movq -0x8(%rdi,%rdx,8), %r8
movq (%rdi,%rdx,8), %r9
shldq $0x3f, %r8, %r9
movq %r9, -0x8(%rdi,%rdx,8)
movq 0x60(%rbx), %rdi
movq -0x8(%rdi,%rdx,8), %r8
movq (%rdi,%rdx,8), %r9
shldq $0x3f, %r8, %r9
movq %r9, -0x8(%rdi,%rdx,8)
incq %rdx
jmp 0x5d5ac
movq 0x48(%rbx), %rcx
cltq
shrq -0x8(%rcx,%rax,8)
movq 0x50(%rbx), %rcx
shrq -0x8(%rcx,%rax,8)
movq 0x58(%rbx), %rcx
shrq -0x8(%rcx,%rax,8)
movq 0x60(%rbx), %rcx
shrq -0x8(%rcx,%rax,8)
incq %r15
cmpq 0x88(%rsp), %r15
jge 0x5d67d
movq 0x80(%rsp), %rax
subq %r15, %rax
movq 0x50(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x18e4a0(%rip), %rcx    # 0x1ebb00
movzbl (%rcx,%rax), %eax
cmpq $0x3, %rax
ja 0x5d67d
movq 0x48(%rbx,%rax,8), %rax
movq 0x78(%rsp), %rcx
movq 0x70(%rsp), %rdx
orq %rdx, (%rax,%rcx,8)
movq 0x68(%rsp), %r12
incq %r12
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x38(%rsp), %r14
movq %r14, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x78(%rbx), %rsi
movq %r14, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x80(%rbx), %rsi
movq %r14, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0xa0(%rbx), %rsi
movq %r14, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq %r14, %rdx
callq 0x2160
movslq 0x30(%rbx), %rax
addq %rax, 0xc0(%rbx)
movq 0x10(%rsp), %rcx
incl %ecx
jmp 0x5d354
movq 0x28(%rsp), %rax
subl 0x60(%rsp), %eax
cltq
movq 0x58(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x18e37d(%rip), %rcx    # 0x1ebb00
movzbl (%rcx,%rax), %ecx
movl 0x30(%rbx), %eax
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
xorl %r8d, %r8d
cmpq %rdx, %rsi
je 0x5d839
movq 0x48(%rbx,%rcx,8), %r10
movq 0x80(%rbx), %rdi
movq (%rdi,%rdx,8), %r9
orq (%r10,%rdx,8), %r9
movq 0x88(%rbx), %r10
movq %r9, (%r10,%rdx,8)
movq 0x78(%rbx), %r11
movq 0x90(%rbx), %r14
andq (%r11,%rdx,8), %r9
addq %r8, %r9
setb %r8b
movq %r9, (%r14,%rdx,8)
addq (%r11,%rdx,8), %r9
movq %r9, (%r14,%rdx,8)
movq (%r11,%rdx,8), %r15
cmpq %r15, %r9
setb %bpl
orb %r8b, %bpl
xorq %r15, %r9
movq %r9, (%r14,%rdx,8)
orq (%r10,%rdx,8), %r9
movq %r9, (%r14,%rdx,8)
andq (%r11,%rdx,8), %r9
movq 0x98(%rbx), %r8
movq %r9, (%r8,%rdx,8)
movq (%r14,%rdx,8), %r9
orq (%r11,%rdx,8), %r9
movzbl %bpl, %r8d
notq %r9
movq 0xa0(%rbx), %r10
movq %r9, (%r10,%rdx,8)
orq (%rdi,%rdx,8), %r9
movq %r9, (%r10,%rdx,8)
incq %rdx
jmp 0x5d799
xorl %ecx, %ecx
movq 0x30(%rsp), %r14
movl (%rsp), %ebp
testl %eax, %eax
jle 0x5d8b2
movq 0x88(%rbx), %rdx
movq 0x90(%rbx), %rsi
movq -0x8(%rsi,%rax,8), %rdi
shrq %rdi
orq %rcx, %rdi
movq %rdi, -0x8(%rdx,%rax,8)
movq -0x8(%rsi,%rax,8), %rcx
movq 0x80(%rbx), %rsi
movq 0xa0(%rbx), %r8
andq -0x8(%r8,%rax,8), %rdi
movq %rdi, -0x8(%rsi,%rax,8)
movq -0x8(%r8,%rax,8), %rsi
orq -0x8(%rdx,%rax,8), %rsi
notq %rsi
movq 0x78(%rbx), %rdx
movq %rsi, -0x8(%rdx,%rax,8)
movq 0x98(%rbx), %rdi
orq -0x8(%rdi,%rax,8), %rsi
movq %rsi, -0x8(%rdx,%rax,8)
decq %rax
shlq $0x3f, %rcx
jmp 0x5d843
movq 0x90(%rbx), %rsi
testb $0x1, (%rsi)
jne 0x5d8cf
cmpl 0x1c(%rsp), %ebp
jge 0x5da9a
incl %ebp
movq 0x30(%rsp), %r14
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x38(%rsp), %r15
movq %r15, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x78(%rbx), %rsi
movq %r15, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x80(%rbx), %rsi
movq %r15, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0xa0(%rbx), %rsi
movq %r15, %rdx
callq 0x2160
movslq 0x30(%rbx), %rdi
addq 0xc0(%rbx), %rdi
movq %rdi, 0xc0(%rbx)
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x98(%rbx), %rsi
movq %r15, %rdx
callq 0x2160
movslq 0x30(%rbx), %rax
addq 0xc0(%rbx), %rax
movq %rax, 0xc0(%rbx)
cmpl %r14d, %r13d
movq 0x20(%rsp), %r10
jle 0x5da42
movq 0x48(%rsp), %r15
subl %r14d, %r15d
movq 0x28(%rsp), %r11
subl %r10d, %r11d
incl %r11d
movq 0x8(%rsp), %rcx
addl %r14d, %ecx
movl %ecx, %esi
subl %r10d, %esi
xorl %edx, %edx
leal (%r15,%rdx), %edi
cmpl 0x4(%rsp), %edi
jge 0x5da27
movl %edx, %edi
shrl $0x6, %edi
movq 0x78(%rbx), %r8
movq 0x80(%rbx), %r9
movq (%r8,%rdi,8), %r8
btq %rdx, %r8
adcl $0x0, %ebp
movq (%r9,%rdi,8), %rdi
btq %rdx, %rdi
sbbl $0x0, %ebp
cmpl %r14d, %ebp
jg 0x5da21
cmpl 0x2c(%rbx), %ebp
jge 0x5da21
movl %ebp, 0x2c(%rbx)
movl %esi, 0x10(%rbx)
movl %r11d, 0x1c(%rbx)
incl %edx
decl %esi
jmp 0x5d9dd
cmpl %r14d, %ebp
jg 0x5da42
cmpl 0x2c(%rbx), %ebp
jge 0x5da42
movl %ebp, 0x2c(%rbx)
subl %r10d, %ecx
subl %edx, %ecx
incl %ecx
movl %ecx, 0x10(%rbx)
movl %r11d, 0x1c(%rbx)
movl 0x20(%rbx), %ecx
subl 0x1c(%rbx), %ecx
incl %ecx
cmpl %r10d, %ecx
je 0x5da65
movslq %r10d, %rsi
xorl %edx, %edx
divq %rsi
movslq %ecx, %rcx
imulq %rax, %rcx
movq %rcx, 0xc0(%rbx)
movq 0x8(%rsp), %r15
movl %r15d, %eax
subl 0x14(%rbx), %eax
movl %r15d, %ecx
subl 0x10(%rbx), %ecx
movl %eax, 0x10(%rbx)
movl %ecx, 0x14(%rbx)
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x65f7b
movl %r15d, %eax
subl 0x14(%rbx), %eax
subl 0x10(%rbx), %r15d
movl %eax, 0x10(%rbx)
movl %r15d, 0x14(%rbx)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa8(%rbx), %rdi
movl 0x20(%rbx), %edx
subl 0x1c(%rbx), %edx
incl %edx
xorl %esi, %esi
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x62885