// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/./Levenshtein_distance.h
// Function: ed_band_cal_extension_infi_1_w(char*, int, char*, int, int, int*, bit_extz_t*)
inline void ed_band_cal_extension_infi_1_w(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, int32_t *nword, bit_extz_t *ez)
{
	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;
	int32_t i, err, tn0 = tn - 1, cut = thre+(thre<<1), bd, i_bd, k_bd, wz, wz1, 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 = sizeof(*(ez->a))*(ez->nword);
    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;**/

	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;
        }

		{
            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;
    }
    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;
    }

    int32_t site = tn - 1 - thre;/**up bound; site:[tn - 1 - thre, tn - 1 + thre]**/
    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;
    }
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movl %r8d, %r13d
movq %rdx, 0x60(%rsp)
movq %rdi, 0x58(%rsp)
movq 0x110(%rsp), %r12
movl %r8d, 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)
movslq %esi, %rax
leaq -0x1(%rax), %r14
movl %r14d, 0x14(%r12)
leal -0x1(%rcx), %edx
movl %edx, 0x1c(%rsp)
movl %edx, 0x20(%r12)
leal (%rsi,%r13), %edi
cmpl %ecx, %edi
movl %ecx, %edx
movl %edi, 0x3c(%rsp)
cmovll %edi, %edx
leal (%rcx,%r13), %ebx
cmpl %eax, %ebx
movq %rcx, 0x50(%rsp)
cmovll %ecx, %edx
movq %rdx, 0x28(%rsp)
movq %rsi, 0x30(%rsp)
cmovgel %esi, %ebx
leal (,%r13,2), %eax
testq %r9, %r9
je 0x97162
movl (%r9), %ecx
jmp 0x97169
movl %eax, %ecx
sarl $0x6, %ecx
incl %ecx
movl %ecx, 0x30(%r12)
cmpl %r13d, 0x3c(%r12)
movl %eax, 0x8(%rsp)
jge 0x9728b
shrl $0x6, %eax
leal (%rax,%rax,2), %eax
leal 0xc(,%rax,4), %eax
movl %eax, 0x3c(%r12)
cmpl 0x38(%r12), %eax
jbe 0x97286
movq 0x40(%r12), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x40(%r12)
movl 0x30(%r12), %ecx
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 %r13d, 0x3c(%r12)
shll $0x3, %ecx
movq 0x48(%r12), %rdi
movslq %ecx, %rbp
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x50(%r12), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x58(%r12), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x60(%r12), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x68(%r12), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
leal 0x1(%r13), %r15d
cmpl %ebx, %r15d
movq %rbx, 0x10(%rsp)
movl %ebx, %eax
cmovll %r15d, %eax
testl %eax, %eax
jle 0x9733b
movl %eax, %eax
movq %r14, %rdx
addq 0x58(%rsp), %rdx
negq %rax
xorl %esi, %esi
leaq 0x1a2918(%rip), %rdi    # 0x239c20
movl %r13d, %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 0x9730b
movq 0x68(%r12), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x80(%r12), %rdi
movslq 0x30(%r12), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %r13d, %eax
sarl $0x6, %eax
movslq %eax, %rbx
cmpl $0x40, %r13d
jb 0x9738b
movq 0x80(%r12), %rdi
leaq (,%rbx,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %r13d, %ecx
andl $0x3f, %ecx
je 0x973ac
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%r12), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x78(%r12), %rdi
movslq 0x30(%r12), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl 0x8(%rsp), %ecx
movl %ecx, %eax
sarl $0x6, %eax
cmpl $0x3f, %ecx
ja 0x973d3
movl %eax, %ebp
jmp 0x973f1
movq 0x78(%r12), %rdi
movslq %eax, %rbp
leaq (,%rbp,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl 0x8(%rsp), %ecx
movq 0x10(%rsp), %rbx
movl %ecx, %eax
andl $0x3e, %eax
leal 0x1(%rax), %ecx
movq $-0x1, %rsi
shlq %cl, %rsi
notq %rsi
movq 0x78(%r12), %rdx
movq %rbp, 0x80(%rsp)
movq %rsi, (%rdx,%rbp,8)
movl 0x30(%r12), %edi
testl %edi, %edi
jle 0x9743f
movq 0x80(%r12), %rcx
xorl %esi, %esi
movq (%rcx,%rsi,8), %r8
xorq %r8, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rdi
jne 0x9742f
movq 0x28(%rsp), %rsi
leal -0x1(%rsi), %r8d
leal (%r13,%r13,2), %ecx
movl %ecx, 0x20(%rsp)
movl $0x1, %r9d
movl %eax, %ecx
shlq %cl, %r9
movq %r9, 0x78(%rsp)
leal -0x1(%rbx), %eax
movl %eax, 0xc(%rsp)
xorl %eax, %eax
movl %r13d, %ebp
cmpl $0x2, %esi
movq %r14, 0x70(%rsp)
movl %r8d, 0x4(%rsp)
jl 0x979c2
movq 0x90(%r12), %r10
movl %r13d, %eax
subl %ebx, %eax
incl %eax
movl %eax, 0x40(%rsp)
movq 0x30(%rsp), %rax
subl %ebx, %eax
movq %rax, 0x30(%rsp)
leal -0x1(%rdi), %esi
movslq %esi, %rax
movq %rax, 0xb8(%rsp)
movslq 0x1c(%rsp), %rax
movq %rax, 0xc0(%rsp)
movslq %r13d, %r9
movslq 0xc(%rsp), %rax
movslq %ebx, %rcx
movq %rcx, 0xb0(%rsp)
movslq %r14d, %rcx
movq %rcx, 0x98(%rsp)
movl %r8d, %ecx
movq %rcx, 0xa8(%rsp)
addq %r9, %rax
movq %rax, 0x88(%rsp)
leaq 0x1(%rdi), %rax
movq %rax, 0x90(%rsp)
movl $0x1, %ecx
subl %r13d, %ecx
movl $0x7fffffff, 0x24(%rsp) # imm = 0x7FFFFFFF
xorl %r8d, %r8d
movq 0x199ffb(%rip), %xmm0   # 0x231510
movdqa 0x199dc3(%rip), %xmm1   # 0x2312e0
movdqa 0x19a01b(%rip), %xmm2   # 0x231540
pcmpeqd %xmm3, %xmm3
pxor %xmm4, %xmm4
movaps 0x19969c(%rip), %xmm5   # 0x230bd0
movdqa 0x19a014(%rip), %xmm6   # 0x231550
movl %r13d, %ebp
movq %r13, 0xa0(%rsp)
movq %r9, 0xd0(%rsp)
movl %r15d, 0x4c(%rsp)
movl %ebp, (%rsp)
movl 0xc(%rsp), %eax
cmpl %eax, %ecx
movl %eax, %r9d
movl %ecx, 0x48(%rsp)
cmovgl %ecx, %r9d
movl %r9d, 0x44(%rsp)
movl %r8d, %r14d
subl %r13d, %r14d
incl %r14d
cmpl %eax, %r14d
cmovlel %eax, %r14d
movq 0xc0(%rsp), %r9
movq %r8, 0x68(%rsp)
subq %r8, %r9
testl %edi, %edi
jle 0x976d6
movq 0x60(%rsp), %rax
movq %r9, 0xc8(%rsp)
movzbl (%rax,%r9), %eax
leaq 0x1a2672(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
movq 0x48(%r12,%rax,8), %r8
movq 0x80(%r12), %rbx
movq 0x88(%r12), %rbp
movq 0x98(%r12), %r11
movq 0xa0(%r12), %r15
xorl %eax, %eax
xorl %r12d, %r12d
movq (%rbx,%rax,8), %r9
orq (%r8,%rax,8), %r9
movq %r9, (%rbp,%rax,8)
andq (%rdx,%rax,8), %r9
addq %r12, %r9
setb %r12b
movq %r9, (%r10,%rax,8)
addq (%rdx,%rax,8), %r9
movq %r9, (%r10,%rax,8)
movq (%rdx,%rax,8), %r13
cmpq %r13, %r9
setb %cl
xorq %r13, %r9
movq %r9, (%r10,%rax,8)
orq (%rbp,%rax,8), %r9
orb %r12b, %cl
movq %r9, (%r10,%rax,8)
andq (%rdx,%rax,8), %r9
movq %r9, (%r11,%rax,8)
movq (%r10,%rax,8), %r9
orq (%rdx,%rax,8), %r9
notq %r9
movq %r9, (%r15,%rax,8)
orq (%rbx,%rax,8), %r9
movzbl %cl, %r12d
movq %r9, (%r15,%rax,8)
incq %rax
cmpq %rax, %rdi
jne 0x975dc
testl %edi, %edi
movq 0x110(%rsp), %r12
movq 0xa0(%rsp), %r13
movq 0xc8(%rsp), %r9
jle 0x976d6
movq 0x80(%r12), %rax
movq 0x88(%r12), %r8
movq 0xa0(%r12), %r11
movq 0x98(%r12), %rbx
movq 0x90(%rsp), %r15
xorl %ebp, %ebp
movq -0x10(%r10,%r15,8), %rcx
shrq %rcx
orq %rbp, %rcx
movq %rcx, -0x10(%r8,%r15,8)
movq -0x10(%r10,%r15,8), %rbp
andq -0x10(%r11,%r15,8), %rcx
movq %rcx, -0x10(%rax,%r15,8)
movq -0x10(%r11,%r15,8), %rcx
orq -0x10(%r8,%r15,8), %rcx
notq %rcx
movq %rcx, -0x10(%rdx,%r15,8)
orq -0x10(%rbx,%r15,8), %rcx
shlq $0x3f, %rbp
movq %rcx, -0x10(%rdx,%r15,8)
decq %r15
cmpq $0x1, %r15
jg 0x9768e
testb $0x1, (%r10)
jne 0x976ed
movl (%rsp), %ebp
cmpl 0x20(%rsp), %ebp
jge 0x97bc6
incl %ebp
jmp 0x976f0
movl (%rsp), %ebp
movl 0x40(%rsp), %r8d
movq 0x68(%rsp), %rcx
addl %ecx, %r8d
movl 0x4c(%rsp), %r15d
movl 0x24(%rsp), %ebx
js 0x978c7
cmpl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
jne 0x97865
movl %ebp, %ebx
cmpq 0x88(%rsp), %rcx
jge 0x978a1
movl 0x44(%rsp), %r8d
addl %r15d, %r8d
andl $-0x2, %r8d
movl %r13d, %eax
subl %ecx, %eax
movl %r8d, %ecx
addl %eax, %r14d
movq 0x80(%r12), %r11
decl %r14d
movd %ebp, %xmm11
movd %r14d, %xmm7
pshufd $0x50, %xmm7, %xmm7     # xmm7 = xmm7[0,0,1,1]
xorl %r14d, %r14d
pxor %xmm1, %xmm7
movdqa %xmm0, %xmm10
movdqa %xmm11, %xmm9
movdqa %xmm10, %xmm8
pxor %xmm1, %xmm8
pcmpgtd %xmm7, %xmm8
movl %r14d, %eax
shrl $0x6, %eax
movd %xmm8, %r8d
notl %r8d
testb $0x1, %r8b
je 0x97793
movq (%rdx,%rax,8), %xmm11
movdqa %xmm8, %xmm12
pxor %xmm3, %xmm12
pextrw $0x2, %xmm12, %ebx
testb $0x1, %bl
je 0x977b3
movq (%rdx,%rax,8), %xmm12
punpcklqdq %xmm12, %xmm11  # xmm11 = xmm11[0],xmm12[0]
testb $0x1, %r8b
je 0x977bf
movq (%r11,%rax,8), %xmm12
testb $0x1, %bl
je 0x977cf
movq (%r11,%rax,8), %xmm13
punpcklqdq %xmm13, %xmm12  # xmm12 = xmm12[0],xmm13[0]
movdqa %xmm10, %xmm13
pand %xmm2, %xmm13
movdqa %xmm13, %xmm14
punpckldq %xmm4, %xmm14   # xmm14 = xmm14[0],xmm4[0],xmm14[1],xmm4[1]
movdqa %xmm11, %xmm15
psrlq %xmm14, %xmm15
psrlq $0x20, %xmm13
psrlq %xmm13, %xmm11
movsd %xmm15, %xmm11          # xmm11 = xmm15[0],xmm11[1]
shufps $0xe8, %xmm11, %xmm11   # xmm11 = xmm11[0,2,2,3]
movdqa %xmm12, %xmm13
psrlq %xmm14, %xmm13
andps %xmm5, %xmm11
pshufd $0xee, %xmm14, %xmm14   # xmm14 = xmm14[2,3,2,3]
psrlq %xmm14, %xmm12
paddd %xmm9, %xmm11
movsd %xmm13, %xmm12          # xmm12 = xmm13[0],xmm12[1]
shufps $0xe8, %xmm12, %xmm12   # xmm12 = xmm12[0,2,2,3]
andps %xmm5, %xmm12
psubd %xmm12, %xmm11
addl $0x2, %r14d
paddd %xmm6, %xmm10
cmpl %r14d, %ecx
jne 0x97765
pand %xmm8, %xmm9
pandn %xmm11, %xmm8
por %xmm9, %xmm8
pshufd $0x55, %xmm8, %xmm7     # xmm7 = xmm8[1,1,1,1]
paddd %xmm8, %xmm7
movd %xmm7, %ebx
jmp 0x978a1
movl 0x8(%rsp), %eax
subl %r8d, %eax
js 0x978a1
movq 0x98(%r12), %rcx
movq 0xa0(%r12), %r8
movq %r9, %r11
movl %eax, %r9d
shrl $0x6, %r9d
movq (%r8,%r9,8), %r8
btq %rax, %r8
adcl $0x0, %ebx
movq (%rcx,%r9,8), %rcx
movq %r11, %r9
btq %rax, %rcx
sbbl $0x0, %ebx
cmpl 0x28(%r12), %ebx
movl %ebx, 0x24(%rsp)
jg 0x978c7
cmpl 0x2c(%r12), %ebx
jge 0x978c7
movl %ebx, 0x2c(%r12)
movq 0x30(%rsp), %rax
movl %eax, 0x10(%r12)
movl %r9d, 0x1c(%r12)
movq 0x48(%r12), %rax
movq 0x50(%r12), %rcx
movq 0x58(%r12), %r8
movq 0x60(%r12), %r11
cmpl $0x2, %edi
jl 0x97932
xorl %ebx, %ebx
movq (%rax,%rbx,8), %r9
movq 0x8(%rax,%rbx,8), %r14
shldq $0x3f, %r9, %r14
movq %r14, (%rax,%rbx,8)
movq (%rcx,%rbx,8), %r9
movq 0x8(%rcx,%rbx,8), %r14
shldq $0x3f, %r9, %r14
movq %r14, (%rcx,%rbx,8)
movq (%r8,%rbx,8), %r9
movq 0x8(%r8,%rbx,8), %r14
shldq $0x3f, %r9, %r14
movq %r14, (%r8,%rbx,8)
movq (%r11,%rbx,8), %r9
movq 0x8(%r11,%rbx,8), %r14
shldq $0x3f, %r9, %r14
movq %r14, (%r11,%rbx,8)
incq %rbx
cmpq %rbx, %rsi
jne 0x978e2
movq 0xb8(%rsp), %r9
shrq (%rax,%r9,8)
shrq (%rcx,%r9,8)
shrq (%r8,%r9,8)
shrq (%r11,%r9,8)
movq 0xd0(%rsp), %r9
incq %r9
cmpq 0xb0(%rsp), %r9
jge 0x9799a
movq 0x98(%rsp), %rax
subq %r9, %rax
movq 0x58(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x1a22a6(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
cmpq $0x3, %rax
ja 0x9799a
movq 0x48(%r12,%rax,8), %rax
movq 0x80(%rsp), %rcx
movq 0x78(%rsp), %r8
orq %r8, (%rax,%rcx,8)
movq 0x68(%rsp), %r8
incq %r8
movl 0x48(%rsp), %ecx
incl %ecx
decl %r15d
cmpq 0xa8(%rsp), %r8
jne 0x97547
movl 0x4(%rsp), %eax
movq 0x10(%rsp), %rbx
testl %edi, %edi
jle 0x97b09
movl %ebp, (%rsp)
movl 0x1c(%rsp), %ecx
subl %eax, %ecx
movslq %ecx, %rax
movq 0x60(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x1a223a(%rip), %rcx    # 0x239c20
movzbl (%rcx,%rax), %eax
movq 0x48(%r12,%rax,8), %rcx
movq 0x80(%r12), %rsi
movq 0x88(%r12), %r8
movq 0x90(%r12), %r9
movq 0x98(%r12), %r10
movq 0xa0(%r12), %r11
xorl %ebx, %ebx
xorl %eax, %eax
movq (%rsi,%rbx,8), %r14
orq (%rcx,%rbx,8), %r14
movq %r14, (%r8,%rbx,8)
andq (%rdx,%rbx,8), %r14
addq %rax, %r14
setb %al
movq %r14, (%r9,%rbx,8)
addq (%rdx,%rbx,8), %r14
movq %r14, (%r9,%rbx,8)
movq (%rdx,%rbx,8), %r15
cmpq %r15, %r14
setb %bpl
xorq %r15, %r14
movq %r14, (%r9,%rbx,8)
orq (%r8,%rbx,8), %r14
orb %al, %bpl
movq %r14, (%r9,%rbx,8)
andq (%rdx,%rbx,8), %r14
movq %r14, (%r10,%rbx,8)
movq (%r9,%rbx,8), %r14
orq (%rdx,%rbx,8), %r14
notq %r14
movq %r14, (%r11,%rbx,8)
orq (%rsi,%rbx,8), %r14
movzbl %bpl, %eax
movq %r14, (%r11,%rbx,8)
incq %rbx
cmpq %rbx, %rdi
jne 0x97a1b
testl %edi, %edi
movq 0x10(%rsp), %rbx
movl (%rsp), %ebp
jle 0x97b09
movq 0x90(%r12), %rax
movq 0x80(%r12), %rcx
movq 0x88(%r12), %rsi
movq 0xa0(%r12), %r8
movq 0x98(%r12), %r9
incq %rdi
xorl %r10d, %r10d
movq -0x10(%rax,%rdi,8), %r11
shrq %r11
orq %r10, %r11
movq %r11, -0x10(%rsi,%rdi,8)
movq -0x10(%rax,%rdi,8), %r10
andq -0x10(%r8,%rdi,8), %r11
movq %r11, -0x10(%rcx,%rdi,8)
movq -0x10(%r8,%rdi,8), %r11
orq -0x10(%rsi,%rdi,8), %r11
notq %r11
movq %r11, -0x10(%rdx,%rdi,8)
orq -0x10(%r9,%rdi,8), %r11
shlq $0x3f, %r10
movq %r11, -0x10(%rdx,%rdi,8)
decq %rdi
cmpq $0x1, %rdi
ja 0x97abf
jmp 0x97b11
movq 0x90(%r12), %rax
testb $0x1, (%rax)
jne 0x97b27
cmpl 0x20(%rsp), %ebp
jge 0x97bc6
incl %ebp
movq 0x10(%rsp), %rbx
movl 0x4(%rsp), %r10d
subl %r13d, %r10d
cmpl 0xc(%rsp), %r10d
jge 0x97b9a
movq 0x80(%r12), %rcx
movq 0x50(%rsp), %rax
movq 0x28(%rsp), %rsi
subl %esi, %eax
addl %r13d, %ebx
subl %esi, %ebx
notl %esi
addl 0x3c(%rsp), %esi
xorl %edi, %edi
movl %edi, %r8d
shrl $0x6, %r8d
movq (%rdx,%r8,8), %r9
btq %rdi, %r9
adcl $0x0, %ebp
movq (%rcx,%r8,8), %r8
btq %rdi, %r8
sbbl $0x0, %ebp
cmpl %r13d, %ebp
jg 0x97b8f
cmpl 0x2c(%r12), %ebp
jge 0x97b8f
movl %ebp, 0x2c(%r12)
movl %esi, 0x10(%r12)
movl %eax, 0x1c(%r12)
incl %edi
decl %esi
cmpl %edi, %ebx
jne 0x97b57
addl %edi, %r10d
cmpl %r13d, %ebp
jg 0x97bc6
cmpl 0x2c(%r12), %ebp
jge 0x97bc6
movl %ebp, 0x2c(%r12)
movq 0x70(%rsp), %rax
subl %r10d, %eax
movl %eax, 0x10(%r12)
movq 0x50(%rsp), %rax
subl 0x28(%rsp), %eax
movl %eax, 0x1c(%r12)
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq