// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/./Levenshtein_distance.h
// Function: ed_band_cal_extension_infi_0_w_trace(char*, int, char*, int, int, int*, bit_extz_t*)
inline void ed_band_cal_extension_infi_0_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 = 0; ez->pe = ez->te = -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; w_sig c, ad, Peq_m;
    int32_t poff, pe = pn-1, tmp_e = INT32_MAX, k;
	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;
    ed_init_core(i, bd, i_bd, pstr, ez->Peq);
    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));
	//for debug
	// memset((ez->X).a, 0, sizeof(*(ez->a))*(ez->nword));
	// memset((ez->D0).a, 0, sizeof(*(ez->a))*(ez->nword));
	// memset((ez->HN).a, 0, sizeof(*(ez->a))*(ez->nword));
	// memset((ez->HP).a, 0, sizeof(*(ez->a))*(ez->nword));
	while (i < tn0) {
		// fprintf(stderr, "i::%d\n", i);
		// prt_bit_extz_t((*ez), ((thre<<1)+1));
        ed_infi_core(ez->Peq, ez->VP, ez->VN, ez->X, ez->D0, ez->HN, ez->HP, (uint8_t)tstr[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).pe = pe; (*ez).te = 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[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[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->pe = site; ez->te = tn-1;
			}
		}
		if(err <= thre && err < ez->err) {
			ez->err = err; ez->pe = site; ez->te = tn-1;
		}
	}

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r8d, %r13d
movq %rdx, 0x70(%rsp)
movq 0xe0(%rsp), %rbx
movq $0x0, 0xa8(%rbx)
movl 0x2c(%rbx), %ebp
cmpl %r8d, %ebp
jle 0x91023
movl %esi, %r14d
movl %r13d, 0x28(%rbx)
movl $0x7fffffff, 0x2c(%rbx) # imm = 0x7FFFFFFF
movl %esi, 0x18(%rbx)
movl %ecx, 0x24(%rbx)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, 0x1c(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
leal (%rcx,%r13), %eax
cmpl %esi, %eax
jge 0x91040
movl %eax, %r14d
jmp 0x91049
testl %ebp, %ebp
je 0x91cf1
movl 0x14(%rbx), %r14d
movl 0x20(%rbx), %ecx
subl 0x10(%rbx), %r14d
incl %r14d
subl 0x1c(%rbx), %ecx
incl %ecx
jmp 0x91049
leal (%r14,%r13), %eax
cmpl %ecx, %eax
cmovll %eax, %ecx
leal (,%r13,2), %eax
testq %r9, %r9
je 0x9105b
movl (%r9), %r11d
jmp 0x91065
movl %eax, %r11d
sarl $0x6, %r11d
incl %r11d
movl %r11d, 0x30(%rbx)
cmpl %r13d, 0x3c(%rbx)
movq %rcx, 0x30(%rsp)
movq %rdi, 0x68(%rsp)
movl %eax, 0x18(%rsp)
jge 0x91173
shrl $0x6, %eax
leal (%rax,%rax,2), %eax
leal 0xc(,%rax,4), %eax
movl %eax, 0x3c(%rbx)
cmpl 0x38(%rbx), %eax
jbe 0x9116f
movq 0x40(%rbx), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x40(%rbx)
movl 0x30(%rbx), %r11d
movl 0x3c(%rbx), %esi
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rsi, %rdx
movq %rdx, %rsi
shrq $0x20, %rsi
shrq $0x23, %rdx
movl %edx, 0x3c(%rbx)
movq %rax, 0x48(%rbx)
andl $-0x8, %esi
leaq (%rax,%rsi), %rdi
movq %rdi, 0x50(%rbx)
leal (%rdx,%rdx), %edi
leaq (%rax,%rdi,8), %r8
movq %r8, 0x58(%rbx)
leal (%rdx,%rdx,2), %r8d
leaq (%rax,%r8,8), %r8
movq %r8, 0x60(%rbx)
leal (,%rdx,4), %r8d
leaq (%rax,%r8,8), %r9
movq %r9, 0x68(%rbx)
leal (%rdx,%rdx,4), %r9d
leaq (%rax,%r9,8), %r10
movq %r10, 0x70(%rbx)
leal (%rdi,%rdi,2), %r10d
leaq (%rax,%r10,8), %r10
movq %r10, 0x78(%rbx)
leal (,%rdx,8), %r10d
subl %edx, %r10d
leaq (%rax,%r10,8), %r10
movq %r10, 0x80(%rbx)
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x88(%rbx)
leal (%rdx,%rdx,8), %esi
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x90(%rbx)
leal (%rdi,%rdi,4), %esi
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x98(%rbx)
leal (%rdx,%r9,2), %esi
leaq (%rax,%rsi,8), %rax
movq %rax, 0xa0(%rbx)
leal (%r8,%r8,2), %eax
movl %eax, 0x38(%rbx)
movl %edx, 0x34(%rbx)
movl %r13d, 0x3c(%rbx)
shll $0x3, %r11d
movq 0x48(%rbx), %rdi
movslq %r11d, %r15
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, 0x50(%rsp)
movq %r15, %rdx
callq 0x20e0
leal 0x1(%r13), %ecx
cmpl %r14d, %ecx
movq %r14, 0x28(%rsp)
movl %r14d, %eax
movl %ecx, 0x44(%rsp)
cmovll %ecx, %eax
testl %eax, %eax
movq 0x68(%rsp), %r10
jle 0x9121f
movl %eax, %eax
movl %r13d, %edx
xorl %esi, %esi
leaq 0x1a8a2e(%rip), %rdi    # 0x239c20
leal (%rdx,%rsi), %ecx
movl $0x1, %r8d
shlq %cl, %r8
movzbl (%r10,%rsi), %r9d
movzbl (%rdi,%r9), %r9d
movq 0x48(%rbx,%r9,8), %r9
sarl $0x6, %ecx
movslq %ecx, %rcx
orq %r8, (%r9,%rcx,8)
incq %rsi
cmpq %rsi, %rax
jne 0x911f2
movq 0x68(%rbx), %rdi
xorl %esi, %esi
movq 0x50(%rsp), %rdx
callq 0x20e0
movq 0x80(%rbx), %rdi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %r13d, %eax
sarl $0x6, %eax
movslq %eax, %r14
cmpl $0x40, %r13d
jb 0x9126d
movq 0x80(%rbx), %rdi
leaq (,%r14,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %r13d, %ecx
andl $0x3f, %ecx
je 0x9128d
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x78(%rbx), %rdi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl 0x18(%rsp), %ecx
movl %ecx, %eax
sarl $0x6, %eax
cmpl $0x3f, %ecx
movl %ebp, 0x40(%rsp)
ja 0x912b6
movl %eax, %ebp
jmp 0x912d3
movq 0x78(%rbx), %rdi
movslq %eax, %rbp
leaq (,%rbp,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl 0x18(%rsp), %ecx
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r14
movl %ecx, %r12d
andl $0x3e, %r12d
leal 0x1(%r12), %ecx
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x78(%rbx), %rcx
movq %rax, (%rcx,%rbp,8)
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x91320
movq 0x80(%rbx), %rdx
xorl %esi, %esi
movq (%rdx,%rsi,8), %rdi
xorq %rdi, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rax
jne 0x91310
movl %r8d, %ecx
imull %eax, %ecx
leal (%rcx,%rcx,4), %ecx
movslq %ecx, %rcx
movq %rcx, 0xc0(%rbx)
cmpq %rcx, 0xc8(%rbx)
jae 0x9139e
decq %rcx
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc8(%rbx)
movq 0xd0(%rbx), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2370
movq 0x30(%rsp), %r8
movq %rax, 0xd0(%rbx)
movl 0x30(%rbx), %eax
movq %rax, %rdx
leal -0x1(%r8), %eax
leal (%r13,%r13,2), %ecx
movl %ecx, 0x38(%rsp)
leal -0x1(%r14), %r15d
movq $0x0, 0xc0(%rbx)
movl $0x1, %esi
movl %r12d, %ecx
shlq %cl, %rsi
movq %rsi, 0x90(%rsp)
cmpl $0x2, %r8d
movl %r15d, 0x3c(%rsp)
movl %eax, 0x58(%rsp)
jl 0x919b5
movq %rbp, 0x88(%rsp)
movl %r13d, %ecx
subl %r14d, %ecx
incl %ecx
movl %ecx, 0x5c(%rsp)
movslq %r13d, %rcx
movslq %r14d, %rsi
movq %rsi, 0xa0(%rsp)
movslq %r15d, %rsi
movl %eax, %eax
movq %rax, 0x48(%rsp)
movq %rcx, 0x78(%rsp)
addq %rcx, %rsi
movq %rsi, 0x80(%rsp)
movl $0x1, %ecx
subl %r13d, %ecx
movl $0x7fffffff, 0xc(%rsp)  # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movdqa 0x19fea6(%rip), %xmm9   # 0x2312e0
movdqa 0x1a00fd(%rip), %xmm10  # 0x231540
pcmpeqd %xmm11, %xmm11
pxor %xmm12, %xmm12
movaps 0x19f77b(%rip), %xmm13  # 0x230bd0
movdqa 0x1a00f2(%rip), %xmm14  # 0x231550
movl %r13d, %r12d
movq %rdx, %rax
movq %r13, 0x98(%rsp)
cmpl %r15d, %ecx
movl %r15d, %edx
movl %ecx, 0x64(%rsp)
cmovgl %ecx, %edx
movl %edx, 0x60(%rsp)
movq %rbp, 0x20(%rsp)
movl %ebp, %edx
subl %r13d, %edx
incl %edx
cmpl %r15d, %edx
cmovlel %r15d, %edx
movq 0x90(%rbx), %rsi
movq %rax, 0x10(%rsp)
testl %eax, %eax
jle 0x915dc
movl %r12d, 0x1c(%rsp)
movq 0x70(%rsp), %rax
movq 0x20(%rsp), %rcx
movzbl (%rax,%rcx), %edi
leaq 0x1a8762(%rip), %rax    # 0x239c20
movzbl (%rax,%rdi), %edi
movq 0x48(%rbx,%rdi,8), %r8
movq 0x78(%rbx), %r9
movq 0x80(%rbx), %r10
movq 0x88(%rbx), %r11
movq 0x98(%rbx), %r13
movq 0xa0(%rbx), %r14
movl 0x10(%rsp), %edi
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%r10,%r15,8), %r12
orq (%r8,%r15,8), %r12
movq %r12, (%r11,%r15,8)
andq (%r9,%r15,8), %r12
addq %rbp, %r12
setb %bpl
movq %r12, (%rsi,%r15,8)
addq (%r9,%r15,8), %r12
movq %r12, (%rsi,%r15,8)
movq (%r9,%r15,8), %rax
cmpq %rax, %r12
setb %cl
xorq %rax, %r12
movq %r12, (%rsi,%r15,8)
orq (%r11,%r15,8), %r12
orb %bpl, %cl
movq %r12, (%rsi,%r15,8)
andq (%r9,%r15,8), %r12
movq %r12, (%r13,%r15,8)
movq (%rsi,%r15,8), %rax
orq (%r9,%r15,8), %rax
notq %rax
movq %rax, (%r14,%r15,8)
orq (%r10,%r15,8), %rax
movzbl %cl, %ebp
movq %rax, (%r14,%r15,8)
incq %r15
cmpq %r15, %rdi
jne 0x914f0
cmpl $0x0, 0x10(%rsp)
movq 0x98(%rsp), %r13
movl 0x1c(%rsp), %r12d
jle 0x915dc
movq 0x88(%rbx), %r8
movq 0xa0(%rbx), %r9
movq 0x78(%rbx), %r10
movq 0x80(%rbx), %r11
movq 0x98(%rbx), %r14
incq %rdi
xorl %r15d, %r15d
movq -0x10(%rsi,%rdi,8), %rax
shrq %rax
orq %r15, %rax
movq %rax, -0x10(%r8,%rdi,8)
movq -0x10(%rsi,%rdi,8), %r15
andq -0x10(%r9,%rdi,8), %rax
movq %rax, -0x10(%r11,%rdi,8)
movq -0x10(%r9,%rdi,8), %rax
orq -0x10(%r8,%rdi,8), %rax
notq %rax
movq %rax, -0x10(%r10,%rdi,8)
orq -0x10(%r14,%rdi,8), %rax
shlq $0x3f, %r15
movq %rax, -0x10(%r10,%rdi,8)
decq %rdi
cmpq $0x1, %rdi
ja 0x91594
testb $0x1, (%rsi)
jne 0x915ef
cmpl 0x38(%rsp), %r12d
jge 0x91dc3
incl %r12d
cmpl %r13d, 0x40(%rsp)
movl 0x3c(%rsp), %r15d
movq 0x10(%rsp), %rax
jle 0x917c3
movl 0x5c(%rsp), %edi
addl 0x20(%rsp), %edi
js 0x917c3
cmpl $0x7fffffff, 0xc(%rsp)  # imm = 0x7FFFFFFF
jne 0x9175d
movl %r12d, %edi
movq 0x20(%rsp), %rcx
cmpq 0x80(%rsp), %rcx
jge 0x917a6
movl 0x60(%rsp), %ecx
addl 0x44(%rsp), %ecx
andl $-0x2, %ecx
movl %r13d, %eax
subl 0x20(%rsp), %eax
addl %eax, %edx
movq 0x78(%rbx), %rdi
movq 0x80(%rbx), %r8
decl %edx
movd %r12d, %xmm4
movd %edx, %xmm0
pshufd $0x50, %xmm0, %xmm0     # xmm0 = xmm0[0,0,1,1]
xorl %edx, %edx
pxor %xmm9, %xmm0
movq 0x19fe9c(%rip), %xmm3   # 0x231510
movdqa %xmm4, %xmm2
movdqa %xmm3, %xmm1
pxor %xmm9, %xmm1
pcmpgtd %xmm0, %xmm1
movl %edx, %r9d
shrl $0x6, %r9d
movd %xmm1, %r10d
notl %r10d
testb $0x1, %r10b
je 0x916a0
movq (%rdi,%r9,8), %xmm4
movdqa %xmm1, %xmm5
pxor %xmm11, %xmm5
pextrw $0x2, %xmm5, %r11d
testb $0x1, %r11b
je 0x916bf
movq (%rdi,%r9,8), %xmm5
punpcklqdq %xmm5, %xmm4    # xmm4 = xmm4[0],xmm5[0]
testb $0x1, %r10b
je 0x916cb
movq (%r8,%r9,8), %xmm5
testb $0x1, %r11b
je 0x916db
movq (%r8,%r9,8), %xmm6
punpcklqdq %xmm6, %xmm5    # xmm5 = xmm5[0],xmm6[0]
movdqa %xmm3, %xmm6
pand %xmm10, %xmm6
movdqa %xmm6, %xmm7
punpckldq %xmm12, %xmm7   # xmm7 = xmm7[0],xmm12[0],xmm7[1],xmm12[1]
movdqa %xmm4, %xmm8
psrlq %xmm7, %xmm8
psrlq $0x20, %xmm6
psrlq %xmm6, %xmm4
movsd %xmm8, %xmm4            # xmm4 = xmm8[0],xmm4[1]
shufps $0xe8, %xmm4, %xmm4     # xmm4 = xmm4[0,2,2,3]
movdqa %xmm5, %xmm6
psrlq %xmm7, %xmm6
andps %xmm13, %xmm4
pshufd $0xee, %xmm7, %xmm7     # xmm7 = xmm7[2,3,2,3]
psrlq %xmm7, %xmm5
paddd %xmm2, %xmm4
movsd %xmm6, %xmm5            # xmm5 = xmm6[0],xmm5[1]
shufps $0xe8, %xmm5, %xmm5     # xmm5 = xmm5[0,2,2,3]
andps %xmm13, %xmm5
psubd %xmm5, %xmm4
addl $0x2, %edx
paddd %xmm14, %xmm3
cmpl %edx, %ecx
jne 0x91674
pand %xmm1, %xmm2
pandn %xmm4, %xmm1
por %xmm2, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
paddd %xmm1, %xmm0
movd %xmm0, %edi
jmp 0x91796
movl 0x18(%rsp), %eax
movl %eax, %ecx
subl %edi, %ecx
js 0x9179d
movq 0x98(%rbx), %rax
movq 0xa0(%rbx), %rdx
movl %ecx, %edi
shrl $0x6, %edi
movq (%rdx,%rdi,8), %rdx
btq %rcx, %rdx
movl 0xc(%rsp), %edx
adcl $0x0, %edx
movq (%rax,%rdi,8), %rax
movl %edx, %edi
btq %rcx, %rax
sbbl $0x0, %edi
movq 0x10(%rsp), %rax
jmp 0x917a6
movq 0x10(%rsp), %rax
movl 0xc(%rsp), %edi
cmpl 0x28(%rbx), %edi
movl %edi, 0xc(%rsp)
jg 0x917c3
cmpl 0x2c(%rbx), %edi
jge 0x917c3
movl %edi, 0x2c(%rbx)
movl %r15d, 0x14(%rbx)
movq 0x20(%rsp), %rcx
movl %ecx, 0x20(%rbx)
leal -0x1(%rax), %ecx
movq 0x48(%rbx), %rdx
movq 0x50(%rbx), %rdi
movq 0x58(%rbx), %r8
movq 0x60(%rbx), %r9
cmpl $0x2, %eax
jl 0x91830
movl %ecx, %eax
xorl %r10d, %r10d
movq (%rdx,%r10,8), %r11
movq 0x8(%rdx,%r10,8), %r14
shldq $0x3f, %r11, %r14
movq %r14, (%rdx,%r10,8)
movq (%rdi,%r10,8), %r11
movq 0x8(%rdi,%r10,8), %r14
shldq $0x3f, %r11, %r14
movq %r14, (%rdi,%r10,8)
movq (%r8,%r10,8), %r11
movq 0x8(%r8,%r10,8), %r14
shldq $0x3f, %r11, %r14
movq %r14, (%r8,%r10,8)
movq (%r9,%r10,8), %r11
movq 0x8(%r9,%r10,8), %r14
shldq $0x3f, %r11, %r14
movq %r14, (%r9,%r10,8)
incq %r10
cmpq %r10, %rax
jne 0x917e0
movslq %ecx, %rax
shrq (%rdx,%rax,8)
shrq (%rdi,%rax,8)
shrq (%r8,%rax,8)
shrq (%r9,%rax,8)
movq 0x78(%rsp), %rdi
incq %rdi
cmpq 0xa0(%rsp), %rdi
jge 0x91888
movq 0x68(%rsp), %rax
movzbl (%rax,%rdi), %eax
leaq 0x1a83bb(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
cmpq $0x3, %rax
ja 0x91888
movq 0x48(%rbx,%rax,8), %rax
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %rdx
orq %rdx, (%rax,%rcx,8)
movq %rdi, 0x78(%rsp)
movq 0x20(%rsp), %rbp
incq %rbp
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x50(%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)
movl 0x64(%rsp), %ecx
incl %ecx
decl 0x44(%rsp)
cmpq 0x48(%rsp), %rbp
movdqa 0x19f95c(%rip), %xmm9   # 0x2312e0
movdqa 0x19fbb3(%rip), %xmm10  # 0x231540
pcmpeqd %xmm11, %xmm11
pxor %xmm12, %xmm12
movaps 0x19f231(%rip), %xmm13  # 0x230bd0
movdqa 0x19fba8(%rip), %xmm14  # 0x231550
jne 0x9146c
movq 0x28(%rsp), %r14
jmp 0x919c4
movq $0x0, 0x48(%rsp)
movl %r13d, %r12d
movq %rdx, %rax
testl %eax, %eax
jle 0x91b1a
movl %r12d, 0x1c(%rsp)
movq %rax, %r14
movq 0x70(%rsp), %rax
movq 0x48(%rsp), %rcx
movzbl (%rax,%rcx), %eax
leaq 0x1a8237(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
movq 0x48(%rbx,%rax,8), %rdx
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdi
movq 0x88(%rbx), %r8
movq 0x90(%rbx), %r9
movq 0x98(%rbx), %r10
movq 0xa0(%rbx), %r11
movq %r14, 0x10(%rsp)
movl %r14d, %ecx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rdi,%r14,8), %rax
orq (%rdx,%r14,8), %rax
movq %rax, (%r8,%r14,8)
andq (%rsi,%r14,8), %rax
addq %r15, %rax
setb %bpl
movq %rax, (%r9,%r14,8)
addq (%rsi,%r14,8), %rax
movq %rax, (%r9,%r14,8)
movq (%rsi,%r14,8), %r15
cmpq %r15, %rax
setb %r12b
xorq %r15, %rax
movq %rax, (%r9,%r14,8)
orq (%r8,%r14,8), %rax
orb %bpl, %r12b
movq %rax, (%r9,%r14,8)
andq (%rsi,%r14,8), %rax
movq %rax, (%r10,%r14,8)
movq (%r9,%r14,8), %rax
orq (%rsi,%r14,8), %rax
notq %rax
movq %rax, (%r11,%r14,8)
orq (%rdi,%r14,8), %rax
movzbl %r12b, %r15d
movq %rax, (%r11,%r14,8)
incq %r14
cmpq %r14, %rcx
jne 0x91a27
cmpl $0x0, 0x10(%rsp)
movq 0x28(%rsp), %r14
movl 0x1c(%rsp), %r12d
jle 0x91b1a
movq 0x90(%rbx), %rsi
movq 0x88(%rbx), %rax
movq 0xa0(%rbx), %rdx
movq 0x78(%rbx), %rdi
movq 0x80(%rbx), %r8
movq 0x98(%rbx), %r9
incq %rcx
xorl %r10d, %r10d
movq -0x10(%rsi,%rcx,8), %r11
shrq %r11
orq %r10, %r11
movq %r11, -0x10(%rax,%rcx,8)
movq -0x10(%rsi,%rcx,8), %r10
andq -0x10(%rdx,%rcx,8), %r11
movq %r11, -0x10(%r8,%rcx,8)
movq -0x10(%rdx,%rcx,8), %r11
orq -0x10(%rax,%rcx,8), %r11
notq %r11
movq %r11, -0x10(%rdi,%rcx,8)
orq -0x10(%r9,%rcx,8), %r11
shlq $0x3f, %r10
movq %r11, -0x10(%rdi,%rcx,8)
decq %rcx
cmpq $0x1, %rcx
ja 0x91ad0
jmp 0x91b21
movq 0x90(%rbx), %rsi
testb $0x1, (%rsi)
jne 0x91b39
cmpl 0x38(%rsp), %r12d
jge 0x91dc3
incl %r12d
movq 0x28(%rsp), %r14
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x50(%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 %r13d, 0x40(%rsp)
movq 0x30(%rsp), %rdi
movl 0x58(%rsp), %ebp
jle 0x91cae
movl %ebp, %ecx
subl %r13d, %ecx
cmpl 0x3c(%rsp), %ecx
jge 0x91c99
movq 0x78(%rbx), %rdx
movq 0x80(%rbx), %rsi
subl %r13d, %edi
movl %edi, %r9d
subl %r14d, %r9d
xorl %r8d, %r8d
movl %r8d, %r10d
shrl $0x6, %r10d
movq (%rdx,%r10,8), %r11
btq %r8, %r11
adcl $0x0, %r12d
movq (%rsi,%r10,8), %r10
btq %r8, %r10
sbbl $0x0, %r12d
cmpl %r13d, %r12d
jg 0x91c86
cmpl 0x2c(%rbx), %r12d
jge 0x91c86
leal (%rdi,%r8), %r10d
movl %r12d, 0x2c(%rbx)
movl %r10d, 0x14(%rbx)
movl %ebp, 0x20(%rbx)
incl %r8d
movl %r9d, %r10d
addl %r8d, %r10d
jne 0x91c4d
addl %r8d, %ecx
movq 0x30(%rsp), %rdi
cmpl %r13d, %r12d
jg 0x91cae
cmpl 0x2c(%rbx), %r12d
jge 0x91cae
movl %r12d, 0x2c(%rbx)
movl %ecx, 0x14(%rbx)
movl %ebp, 0x20(%rbx)
movl 0x20(%rbx), %ecx
subl 0x1c(%rbx), %ecx
incl %ecx
cmpl %edi, %ecx
je 0x91cd0
movslq %edi, %rsi
xorl %edx, %edx
divq %rsi
movslq %ecx, %rcx
imulq %rax, %rcx
movq %rcx, 0xc0(%rbx)
movq %rbx, %rdi
movl %r13d, %esi
movl $0x1, %edx
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9cb86
movl 0x20(%rbx), %ebp
subl 0x1c(%rbx), %ebp
incl %ebp
cmpl $0x3fff, %ebp           # imm = 0x3FFF
jb 0x91d68
movq 0xb8(%rbx), %rax
xorl %edx, %edx
movl $0x2, %r14d
cmpq 0xb0(%rbx), %rdx
jne 0x91d44
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
cmoveq %r14, %rsi
movq %rsi, 0xb0(%rbx)
addq %rsi, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xb8(%rbx)
movq 0xa8(%rbx), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0xa8(%rbx)
movw $0x3fff, (%rax,%rdx,2)  # imm = 0x3FFF
addl $0xffffc001, %ebp       # imm = 0xFFFFC001
movq %rcx, %rdx
cmpl $0x3ffe, %ebp           # imm = 0x3FFE
ja 0x91d10
jmp 0x91d6a
xorl %ecx, %ecx
testl %ebp, %ebp
je 0x91dc3
cmpq 0xb0(%rbx), %rcx
jne 0x91dad
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %esi
cmovneq %rax, %rsi
movq %rsi, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0xb8(%rbx)
movq 0xa8(%rbx), %rcx
jmp 0x91db4
movq 0xb8(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0xa8(%rbx)
movw %bp, (%rax,%rcx,2)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq