// File: /workspace/github_cpp_makefile_star2_O3/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 $0xc8, %rsp
movl %r8d, %ebp
movq %rdx, 0x80(%rsp)
movq %rdi, 0x70(%rsp)
movq 0x100(%rsp), %r12
movq $0x0, 0xa8(%r12)
movl 0x2c(%r12), %ebx
cmpl %r8d, %ebx
jle 0x91e66
movl %ebp, 0x28(%r12)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x2c(%r12)
movl %esi, 0x18(%r12)
movl %ecx, 0x24(%r12)
pxor %xmm0, %xmm0
movdqu %xmm0, (%r12)
movl %eax, 0x1c(%r12)
movl %eax, 0x10(%r12)
leal -0x1(%rsi), %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x14(%r12)
leal -0x1(%rcx), %eax
movq %rax, 0x18(%rsp)
movl %eax, 0x20(%r12)
leal (%rcx,%rbp), %eax
cmpl %esi, %eax
jge 0x91e9b
movl %eax, %esi
jmp 0x91ea3
testl %ebx, %ebx
je 0x92c83
movl 0x10(%r12), %eax
movl 0x14(%r12), %ecx
negl %eax
movq %rcx, 0x10(%rsp)
leal (%rcx,%rax), %esi
incl %esi
movl 0x20(%r12), %ecx
movl 0x1c(%r12), %eax
negl %eax
movq %rcx, 0x18(%rsp)
addl %eax, %ecx
incl %ecx
jmp 0x91ea3
leal (%rsi,%rbp), %eax
cmpl %ecx, %eax
cmovll %eax, %ecx
leal (,%rbp,2), %r15d
testq %r9, %r9
je 0x91eb5
movl (%r9), %r11d
jmp 0x91ebf
movl %r15d, %r11d
sarl $0x6, %r11d
incl %r11d
movl %r11d, 0x30(%r12)
cmpl %ebp, 0x3c(%r12)
movq %rcx, 0x30(%rsp)
movq %rsi, 0x40(%rsp)
jge 0x91fea
movl %r15d, %eax
shrl $0x6, %eax
leal (%rax,%rax,2), %eax
leal 0xc(,%rax,4), %eax
movl %eax, 0x3c(%r12)
cmpl 0x38(%r12), %eax
jbe 0x91fe5
movq 0x40(%r12), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x40(%r12)
movl 0x30(%r12), %r11d
movl 0x3c(%r12), %esi
movl $0xaaaaaaab, %edx       # imm = 0xAAAAAAAB
imulq %rsi, %rdx
movq %rdx, %rsi
shrq $0x20, %rsi
shrq $0x23, %rdx
movl %edx, 0x3c(%r12)
movq %rax, 0x48(%r12)
andl $-0x8, %esi
leaq (%rax,%rsi), %rdi
movq %rdi, 0x50(%r12)
leal (%rdx,%rdx), %edi
leaq (%rax,%rdi,8), %r8
movq %r8, 0x58(%r12)
leal (%rdx,%rdx,2), %r8d
leaq (%rax,%r8,8), %r8
movq %r8, 0x60(%r12)
leal (,%rdx,4), %r8d
leaq (%rax,%r8,8), %r9
movq %r9, 0x68(%r12)
leal (%rdx,%rdx,4), %r9d
leaq (%rax,%r9,8), %r10
movq %r10, 0x70(%r12)
leal (%rdi,%rdi,2), %r10d
leaq (%rax,%r10,8), %r10
movq %r10, 0x78(%r12)
leal (,%rdx,8), %r10d
subl %edx, %r10d
leaq (%rax,%r10,8), %r10
movq %r10, 0x80(%r12)
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x88(%r12)
leal (%rdx,%rdx,8), %esi
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x90(%r12)
leal (%rdi,%rdi,4), %esi
leaq (%rax,%rsi,8), %rsi
movq %rsi, 0x98(%r12)
leal (%rdx,%r9,2), %esi
leaq (%rax,%rsi,8), %rax
movq %rax, 0xa0(%r12)
leal (%r8,%r8,2), %eax
movl %eax, 0x38(%r12)
movl %edx, 0x34(%r12)
movl %ebp, 0x3c(%r12)
shll $0x3, %r11d
movq 0x48(%r12), %rdi
movslq %r11d, %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x50(%r12), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x58(%r12), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x60(%r12), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x68(%r12), %rdi
xorl %esi, %esi
movq %r14, 0x48(%rsp)
movq %r14, %rdx
callq 0x20e0
leal 0x1(%rbp), %ecx
movq 0x40(%rsp), %rax
cmpl %eax, %ecx
movl %ecx, 0x2c(%rsp)
cmovll %ecx, %eax
movslq 0x10(%rsp), %rcx
movq %rcx, 0x68(%rsp)
testl %eax, %eax
jle 0x920ad
movl %eax, %eax
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
addq %rcx, %rdx
negq %rax
xorl %esi, %esi
leaq 0x1a7ba5(%rip), %rdi    # 0x239c20
movl %ebp, %ecx
movl $0x1, %r8d
shlq %cl, %r8
movzbl (%rdx,%rsi), %r9d
movzbl (%rdi,%r9), %r9d
movq 0x48(%r12,%r9,8), %r9
movl %ecx, %r10d
sarl $0x6, %r10d
movslq %r10d, %r10
orq %r8, (%r9,%r10,8)
incl %ecx
decq %rsi
cmpq %rsi, %rax
jne 0x9207d
movq 0x68(%r12), %rdi
xorl %esi, %esi
movq 0x48(%rsp), %rdx
callq 0x20e0
movq 0x80(%r12), %rdi
movslq 0x30(%r12), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %ebp, %eax
sarl $0x6, %eax
movslq %eax, %r14
cmpl $0x40, %ebp
jb 0x920fd
movq 0x80(%r12), %rdi
leaq (,%r14,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %ebp, %ecx
andl $0x3f, %ecx
je 0x9211d
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%r12), %rcx
movq %rax, (%rcx,%r14,8)
movq 0x78(%r12), %rdi
movslq 0x30(%r12), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %r15d, %eax
sarl $0x6, %eax
cmpl $0x3f, %r15d
movl %ebx, 0x4(%rsp)
ja 0x92146
movl %eax, %ebx
jmp 0x92160
movq 0x78(%r12), %rdi
movslq %eax, %rbx
leaq (,%rbx,8), %rdx
movl $0xff, %esi
callq 0x20e0
movq 0x30(%rsp), %r8
movl %r15d, 0x58(%rsp)
andl $0x3e, %r15d
leal 0x1(%r15), %ecx
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x78(%r12), %rcx
movq %rax, (%rcx,%rbx,8)
movslq 0x30(%r12), %r14
testq %r14, %r14
jle 0x921ac
movq 0x80(%r12), %rdx
xorl %esi, %esi
movq (%rdx,%rsi,8), %rdi
xorq %rdi, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %r14
jne 0x9219c
movl %r8d, %ecx
imull %r14d, %ecx
leal (%rcx,%rcx,4), %ecx
movslq %ecx, %rcx
movq %rcx, 0xc0(%r12)
cmpq %rcx, 0xc8(%r12)
jae 0x92232
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(%r12)
movq 0xd0(%r12), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2370
movq 0x30(%rsp), %r8
movq %rax, 0xd0(%r12)
movl 0x30(%r12), %r14d
leal -0x1(%r8), %esi
leal (%rbp,%rbp,2), %eax
movl %eax, 0x24(%rsp)
movl $0x1, %eax
movl %r15d, %ecx
shlq %cl, %rax
movq %rax, 0xa8(%rsp)
movq 0x40(%rsp), %rdx
leal -0x1(%rdx), %r9d
movq $0x0, 0xc0(%r12)
xorl %ecx, %ecx
cmpl $0x2, %r8d
movq %rbp, 0x78(%rsp)
movl %esi, 0x20(%rsp)
movl %r9d, 0x28(%rsp)
jl 0x928ca
movq %rbx, 0xa0(%rsp)
movl %ebp, %eax
subl %edx, %eax
incl %eax
movl %eax, 0x5c(%rsp)
movq 0x10(%rsp), %rax
subl %r9d, %eax
movl %eax, 0x54(%rsp)
movslq 0x18(%rsp), %rax
movq %rax, 0xc0(%rsp)
movslq %ebp, %rax
movslq %r9d, %rcx
movslq %edx, %rdx
movq %rdx, 0xb8(%rsp)
movl %esi, %edx
movq %rdx, 0xb0(%rsp)
movq %rax, 0x90(%rsp)
addq %rax, %rcx
movq %rcx, 0x98(%rsp)
movl $0x1, %eax
subl %ebp, %eax
movl $0x7fffffff, 0xc(%rsp)  # imm = 0x7FFFFFFF
xorl %ecx, %ecx
movdqa 0x19efed(%rip), %xmm9   # 0x2312e0
movdqa 0x19f244(%rip), %xmm10  # 0x231540
pcmpeqd %xmm11, %xmm11
pxor %xmm12, %xmm12
movaps 0x19e8c2(%rip), %xmm13  # 0x230bd0
movdqa 0x19f239(%rip), %xmm14  # 0x231550
movl %ebp, %r13d
movl 0x4(%rsp), %r15d
movl %r13d, 0x8(%rsp)
cmpl %r9d, %eax
movl %r9d, %edx
movl %eax, 0x64(%rsp)
cmovgl %eax, %edx
movl %edx, 0x60(%rsp)
movl %ecx, %edi
subl %ebp, %edi
incl %edi
cmpl %r9d, %edi
cmovlel %r9d, %edi
movq 0xc0(%rsp), %rax
movq %rcx, 0x38(%rsp)
subq %rcx, %rax
movq %rax, 0x88(%rsp)
movq 0x90(%r12), %rsi
movq %r14, %rdx
testl %r14d, %r14d
jle 0x924b6
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
movzbl (%rax,%rcx), %ecx
leaq 0x1a7897(%rip), %rax    # 0x239c20
movzbl (%rax,%rcx), %ecx
movq 0x48(%r12,%rcx,8), %r9
movq 0x78(%r12), %r10
movq 0x80(%r12), %r11
movq 0x88(%r12), %r13
movq 0x98(%r12), %r14
movq 0xa0(%r12), %rbp
movl %edx, %r8d
xorl %ecx, %ecx
xorl %r12d, %r12d
movq (%r11,%rcx,8), %rbx
orq (%r9,%rcx,8), %rbx
movq %rbx, (%r13,%rcx,8)
andq (%r10,%rcx,8), %rbx
addq %r12, %rbx
setb %r12b
movq %rbx, (%rsi,%rcx,8)
addq (%r10,%rcx,8), %rbx
movq %rbx, (%rsi,%rcx,8)
movq (%r10,%rcx,8), %r15
cmpq %r15, %rbx
setb %al
xorq %r15, %rbx
movq %rbx, (%rsi,%rcx,8)
orq (%r13,%rcx,8), %rbx
orb %r12b, %al
movq %rbx, (%rsi,%rcx,8)
andq (%r10,%rcx,8), %rbx
movq %rbx, (%r14,%rcx,8)
movq (%rsi,%rcx,8), %rbx
orq (%r10,%rcx,8), %rbx
notq %rbx
movq %rbx, (%rbp,%rcx,8)
orq (%r11,%rcx,8), %rbx
movzbl %al, %r12d
movq %rbx, (%rbp,%rcx,8)
incq %rcx
cmpq %rcx, %r8
jne 0x923bf
testl %edx, %edx
movq 0x100(%rsp), %r12
movq 0x78(%rsp), %rbp
movl 0x4(%rsp), %r15d
jle 0x924b6
movq 0x88(%r12), %rcx
movq 0xa0(%r12), %r9
movq 0x78(%r12), %r10
movq 0x80(%r12), %r11
movq 0x98(%r12), %r14
incq %r8
xorl %r13d, %r13d
movq -0x10(%rsi,%r8,8), %rax
shrq %rax
orq %r13, %rax
movq %rax, -0x10(%rcx,%r8,8)
movq -0x10(%rsi,%r8,8), %r13
andq -0x10(%r9,%r8,8), %rax
movq %rax, -0x10(%r11,%r8,8)
movq -0x10(%r9,%r8,8), %rax
orq -0x10(%rcx,%r8,8), %rax
notq %rax
movq %rax, -0x10(%r10,%r8,8)
orq -0x10(%r14,%r8,8), %rax
shlq $0x3f, %r13
movq %rax, -0x10(%r10,%r8,8)
decq %r8
cmpq $0x1, %r8
ja 0x9246e
testb $0x1, (%rsi)
jne 0x924d0
movl 0x8(%rsp), %r13d
cmpl 0x24(%rsp), %r13d
jge 0x92c71
incl %r13d
jmp 0x924d5
movl 0x8(%rsp), %r13d
cmpl %ebp, %r15d
movq %rdx, %rbx
jle 0x926a4
movl 0x5c(%rsp), %r8d
addl 0x38(%rsp), %r8d
js 0x926a4
movl 0xc(%rsp), %edx
cmpl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
jne 0x9263d
movl %r13d, %edx
movq 0x38(%rsp), %rax
cmpq 0x98(%rsp), %rax
jge 0x92677
movl 0x60(%rsp), %edx
addl 0x2c(%rsp), %edx
andl $-0x2, %edx
movl %ebp, %eax
subl 0x38(%rsp), %eax
addl %eax, %edi
movq 0x78(%r12), %r8
movq 0x80(%r12), %r9
decl %edi
movd %r13d, %xmm4
movd %edi, %xmm0
pshufd $0x50, %xmm0, %xmm0     # xmm0 = xmm0[0,0,1,1]
xorl %edi, %edi
pxor %xmm9, %xmm0
movq 0x19efba(%rip), %xmm3   # 0x231510
movdqa %xmm4, %xmm2
movdqa %xmm3, %xmm1
pxor %xmm9, %xmm1
pcmpgtd %xmm0, %xmm1
movl %edi, %ecx
shrl $0x6, %ecx
movd %xmm1, %r10d
notl %r10d
testb $0x1, %r10b
je 0x92580
movq (%r8,%rcx,8), %xmm4
movdqa %xmm1, %xmm5
pxor %xmm11, %xmm5
pextrw $0x2, %xmm5, %r11d
testb $0x1, %r11b
je 0x9259f
movq (%r8,%rcx,8), %xmm5
punpcklqdq %xmm5, %xmm4    # xmm4 = xmm4[0],xmm5[0]
testb $0x1, %r10b
je 0x925ab
movq (%r9,%rcx,8), %xmm5
testb $0x1, %r11b
je 0x925bb
movq (%r9,%rcx,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, %edi
paddd %xmm14, %xmm3
cmpl %edi, %edx
jne 0x92556
pand %xmm1, %xmm2
pandn %xmm4, %xmm1
por %xmm2, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
paddd %xmm1, %xmm0
movd %xmm0, %edx
jmp 0x92677
movl 0x58(%rsp), %eax
movl %eax, %ecx
subl %r8d, %ecx
js 0x92677
movq 0x98(%r12), %rax
movq 0xa0(%r12), %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
btq %rcx, %rax
sbbl $0x0, %edx
cmpl 0x28(%r12), %edx
movl %edx, 0xc(%rsp)
jg 0x926a4
cmpl 0x2c(%r12), %edx
jge 0x926a4
movl %edx, 0x2c(%r12)
movl 0x54(%rsp), %eax
movl %eax, 0x10(%r12)
movq 0x88(%rsp), %rax
movl %eax, 0x1c(%r12)
leal -0x1(%rbx), %ecx
movq 0x48(%r12), %rdx
movq 0x50(%r12), %rdi
movq 0x58(%r12), %r8
movq 0x60(%r12), %r9
cmpl $0x2, %ebx
jl 0x92715
movl %ecx, %eax
xorl %r10d, %r10d
movq (%rdx,%r10,8), %r11
movq 0x8(%rdx,%r10,8), %rbx
shldq $0x3f, %r11, %rbx
movq %rbx, (%rdx,%r10,8)
movq (%rdi,%r10,8), %r11
movq 0x8(%rdi,%r10,8), %rbx
shldq $0x3f, %r11, %rbx
movq %rbx, (%rdi,%r10,8)
movq (%r8,%r10,8), %r11
movq 0x8(%r8,%r10,8), %rbx
shldq $0x3f, %r11, %rbx
movq %rbx, (%r8,%r10,8)
movq (%r9,%r10,8), %r11
movq 0x8(%r9,%r10,8), %rbx
shldq $0x3f, %r11, %rbx
movq %rbx, (%r9,%r10,8)
incq %r10
cmpq %r10, %rax
jne 0x926c5
movslq %ecx, %rax
shrq (%rdx,%rax,8)
shrq (%rdi,%rax,8)
shrq (%r8,%rax,8)
shrq (%r9,%rax,8)
movq 0x90(%rsp), %rdi
incq %rdi
cmpq 0xb8(%rsp), %rdi
jge 0x92778
movq 0x68(%rsp), %rax
subq %rdi, %rax
movq 0x70(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x1a74cb(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
cmpq $0x3, %rax
ja 0x92778
movq 0x48(%r12,%rax,8), %rax
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rdx
orq %rdx, (%rax,%rcx,8)
movq %rdi, 0x90(%rsp)
movq 0x38(%rsp), %r14
incq %r14
movq 0xc0(%r12), %rdi
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x48(%rsp), %rbx
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x78(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x80(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0xa0(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x98(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movq %r14, %rcx
movslq 0x30(%r12), %r14
addq %r14, 0xc0(%r12)
movl 0x64(%rsp), %eax
incl %eax
decl 0x2c(%rsp)
cmpq 0xb0(%rsp), %rcx
movl 0x28(%rsp), %r9d
movdqa 0x19ea46(%rip), %xmm9   # 0x2312e0
movdqa 0x19ec9d(%rip), %xmm10  # 0x231540
pcmpeqd %xmm11, %xmm11
pxor %xmm12, %xmm12
movaps 0x19e31b(%rip), %xmm13  # 0x230bd0
movdqa 0x19ec92(%rip), %xmm14  # 0x231550
jne 0x9231f
movl 0x20(%rsp), %ecx
jmp 0x928d2
movl %ebp, %r13d
movl 0x4(%rsp), %r15d
testl %r14d, %r14d
jle 0x92a39
movl %r13d, 0x8(%rsp)
movq 0x18(%rsp), %rax
subl %ecx, %eax
cltq
movq 0x80(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x1a7324(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
movq 0x48(%r12,%rax,8), %rdx
movq 0x78(%r12), %rsi
movq 0x80(%r12), %rdi
movq 0x88(%r12), %r8
movq 0x90(%r12), %r9
movq 0x98(%r12), %r10
movq 0xa0(%r12), %r11
movq %r14, %r13
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 %bl
movq %rax, (%r9,%r14,8)
addq (%rsi,%r14,8), %rax
movq %rax, (%r9,%r14,8)
movq (%rsi,%r14,8), %r15
cmpq %r15, %rax
setb %bpl
xorq %r15, %rax
movq %rax, (%r9,%r14,8)
orq (%r8,%r14,8), %rax
orb %bl, %bpl
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 %bpl, %r15d
movq %rax, (%r11,%r14,8)
incq %r14
cmpq %r14, %rcx
jne 0x9293e
testl %r13d, %r13d
movq 0x78(%rsp), %rbp
movl 0x4(%rsp), %r15d
movl 0x8(%rsp), %r13d
jle 0x92a39
movq 0x90(%r12), %rsi
movq 0x88(%r12), %rax
movq 0xa0(%r12), %rdx
movq 0x78(%r12), %rdi
movq 0x80(%r12), %r8
movq 0x98(%r12), %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 0x929ef
jmp 0x92a41
movq 0x90(%r12), %rsi
testb $0x1, (%rsi)
jne 0x92a54
cmpl 0x24(%rsp), %r13d
jge 0x92c71
incl %r13d
movq 0xc0(%r12), %rdi
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x48(%rsp), %rbx
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x78(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x80(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0xa0(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rdi
addq 0xc0(%r12), %rdi
movq %rdi, 0xc0(%r12)
shlq $0x3, %rdi
addq 0xd0(%r12), %rdi
movq 0x98(%r12), %rsi
movq %rbx, %rdx
callq 0x2160
movslq 0x30(%r12), %rax
addq 0xc0(%r12), %rax
movq %rax, 0xc0(%r12)
cmpl %ebp, %r15d
movq 0x30(%rsp), %r11
movl 0x20(%rsp), %r14d
jle 0x92c0a
subl %ebp, %r14d
cmpl 0x28(%rsp), %r14d
jge 0x92bdd
movq 0x78(%r12), %rcx
movq 0x80(%r12), %rdx
movq 0x18(%rsp), %rsi
subl %r11d, %esi
incl %esi
movq 0x40(%rsp), %rbx
addl %ebp, %ebx
subl %r11d, %ebx
movq 0x10(%rsp), %rdi
addl %ebp, %edi
subl %r11d, %edi
xorl %r8d, %r8d
movl %r8d, %r9d
shrl $0x6, %r9d
movq (%rcx,%r9,8), %r10
btq %r8, %r10
adcl $0x0, %r13d
movq (%rdx,%r9,8), %r9
btq %r8, %r9
sbbl $0x0, %r13d
cmpl %ebp, %r13d
jg 0x92bd0
cmpl 0x2c(%r12), %r13d
jge 0x92bd0
movl %r13d, 0x2c(%r12)
movl %edi, 0x10(%r12)
movl %esi, 0x1c(%r12)
incl %r8d
decl %edi
cmpl %r8d, %ebx
jne 0x92b96
addl %r8d, %r14d
cmpl %ebp, %r13d
jg 0x92c0a
cmpl 0x2c(%r12), %r13d
jge 0x92c0a
movl %r13d, 0x2c(%r12)
movq 0x10(%rsp), %rcx
subl %r14d, %ecx
movl %ecx, 0x10(%r12)
movq 0x18(%rsp), %rcx
subl %r11d, %ecx
incl %ecx
movl %ecx, 0x1c(%r12)
movl 0x20(%r12), %ecx
subl 0x1c(%r12), %ecx
incl %ecx
cmpl %r11d, %ecx
je 0x92c32
movslq %r11d, %rsi
xorl %edx, %edx
divq %rsi
movslq %ecx, %rcx
imulq %rax, %rcx
movq %rcx, 0xc0(%r12)
movq 0x10(%rsp), %rbx
movl %ebx, %eax
subl 0x14(%r12), %eax
movl %ebx, %ecx
subl 0x10(%r12), %ecx
movl %eax, 0x10(%r12)
movl %ecx, 0x14(%r12)
movq %r12, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x9cb86
movl %ebx, %eax
subl 0x14(%r12), %eax
subl 0x10(%r12), %ebx
movl %eax, 0x10(%r12)
movl %ebx, 0x14(%r12)
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x20(%r12), %ebp
subl 0x1c(%r12), %ebp
incl %ebp
cmpl $0x3fff, %ebp           # imm = 0x3FFF
jb 0x92d04
movq 0xb8(%r12), %rax
xorl %edx, %edx
movl $0x2, %r14d
cmpq 0xb0(%r12), %rdx
jne 0x92cdf
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
cmoveq %r14, %rsi
movq %rsi, 0xb0(%r12)
addq %rsi, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xb8(%r12)
movq 0xa8(%r12), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0xa8(%r12)
movw $0x3fff, (%rax,%rdx,2)  # imm = 0x3FFF
addl $0xffffc001, %ebp       # imm = 0xFFFFC001
movq %rcx, %rdx
cmpl $0x3ffe, %ebp           # imm = 0x3FFE
ja 0x92ca7
jmp 0x92d06
xorl %ecx, %ecx
testl %ebp, %ebp
je 0x92c71
cmpq 0xb0(%r12), %rcx
jne 0x92d52
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %esi
cmovneq %rax, %rsi
movq %rsi, 0xb0(%r12)
movq 0xb8(%r12), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0xb8(%r12)
movq 0xa8(%r12), %rcx
jmp 0x92d5a
movq 0xb8(%r12), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0xa8(%r12)
movw %bp, (%rax,%rcx,2)
jmp 0x92c71