// File: /workspace/github_cpp_makefile_star2_O1/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 $0xe8, %rsp
movl %r8d, %r12d
movq %rdx, 0x60(%rsp)
movq %rdi, 0x58(%rsp)
movq 0x120(%rsp), %r14
movl %r8d, 0x28(%r14)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x2c(%r14)
movl %esi, 0x18(%r14)
movl %ecx, 0x24(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movl %eax, 0x1c(%r14)
movl %eax, 0x10(%r14)
movslq %esi, %rax
leaq -0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movl %edx, 0x14(%r14)
leal -0x1(%rcx), %edx
movl %edx, 0x24(%rsp)
movl %edx, 0x20(%r14)
leal (%r12,%rsi), %edi
cmpl %ecx, %edi
movl %ecx, %edx
movl %edi, 0x48(%rsp)
cmovll %edi, %edx
leal (%r12,%rcx), %edi
cmpl %eax, %edi
movq %rcx, 0x50(%rsp)
cmovll %ecx, %edx
movq %rdx, 0x38(%rsp)
movq %rsi, 0x40(%rsp)
cmovgel %esi, %edi
movq %rdi, 0x18(%rsp)
leal (%r12,%r12), %ecx
testq %r9, %r9
je 0x967b3
movl (%r9), %eax
jmp 0x967ba
movl %ecx, %eax
sarl $0x6, %eax
incl %eax
movl %eax, 0x30(%r14)
cmpl %r12d, 0x3c(%r14)
movl %ecx, 0x10(%rsp)
jge 0x968bf
movl %ecx, %eax
shrl $0x6, %eax
leal (%rax,%rax,2), %eax
leal 0xc(,%rax,4), %eax
movl %eax, 0x3c(%r14)
cmpl 0x38(%r14), %eax
jbe 0x968bb
movq 0x40(%r14), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x40(%r14)
movl 0x3c(%r14), %edx
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rdx, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
shrq $0x23, %rcx
movl %ecx, 0x3c(%r14)
movq %rax, 0x48(%r14)
andl $-0x8, %edx
leaq (%rax,%rdx), %rsi
movq %rsi, 0x50(%r14)
leal (%rcx,%rcx), %esi
leaq (%rax,%rsi,8), %rdi
movq %rdi, 0x58(%r14)
leal (%rcx,%rcx,2), %edi
leaq (%rax,%rdi,8), %rdi
movq %rdi, 0x60(%r14)
leal (,%rcx,4), %edi
leaq (%rax,%rdi,8), %r8
movq %r8, 0x68(%r14)
leal (%rcx,%rcx,4), %r8d
leaq (%rax,%r8,8), %r9
movq %r9, 0x70(%r14)
leal (%rsi,%rsi,2), %r9d
leaq (%rax,%r9,8), %r9
movq %r9, 0x78(%r14)
leal (,%rcx,8), %r9d
subl %ecx, %r9d
leaq (%rax,%r9,8), %r9
movq %r9, 0x80(%r14)
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x88(%r14)
leal (%rcx,%rcx,8), %edx
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x90(%r14)
leal (%rsi,%rsi,4), %edx
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x98(%r14)
leal (%rcx,%r8,2), %edx
leaq (%rax,%rdx,8), %rax
movq %rax, 0xa0(%r14)
leal (%rdi,%rdi,2), %eax
movl %eax, 0x38(%r14)
movl %ecx, 0x34(%r14)
movl %r12d, 0x3c(%r14)
movl 0x30(%r14), %eax
shll $0x3, %eax
movq 0x48(%r14), %rdi
movslq %eax, %rbp
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x50(%r14), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x58(%r14), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x60(%r14), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x68(%r14), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
leal 0x1(%r12), %eax
movq 0x18(%rsp), %rcx
cmpl %ecx, %eax
cmovgel %ecx, %eax
testl %eax, %eax
jle 0x9696d
movl %eax, %eax
movq 0x30(%rsp), %rdx
addq 0x58(%rsp), %rdx
negq %rax
xorl %esi, %esi
leaq 0x1970d6(%rip), %rdi    # 0x22da10
movl %r12d, %ecx
movl $0x1, %r8d
shlq %cl, %r8
movzbl (%rdx,%rsi), %r9d
movzbl (%rdi,%r9), %r9d
movq 0x48(%r14,%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 0x9693d
movq 0x68(%r14), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x20e0
movq 0x80(%r14), %rdi
movslq 0x30(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl %r12d, %eax
sarl $0x6, %eax
movslq %eax, %rbx
cmpl $0x40, %r12d
jb 0x969b9
movq 0x80(%r14), %rdi
leaq (,%rbx,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %r12d, %ecx
andl $0x3f, %ecx
je 0x969d9
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%r14), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x78(%r14), %rdi
movslq 0x30(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl 0x10(%rsp), %ecx
movl %ecx, %eax
sarl $0x6, %eax
movslq %eax, %rbx
cmpl $0x40, %ecx
jb 0x96a17
movq 0x78(%r14), %rdi
leaq (,%rbx,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl 0x10(%rsp), %ecx
movl %ecx, %eax
andl $0x3e, %eax
leal 0x1(%rax), %ecx
movq $-0x1, %rsi
shlq %cl, %rsi
notq %rsi
movq 0x78(%r14), %rdx
movq %rbx, 0xb0(%rsp)
movq %rsi, (%rdx,%rbx,8)
movslq 0x30(%r14), %r15
movl %r15d, %edi
testq %r15, %r15
jle 0x96a61
movq 0x80(%r14), %rcx
xorl %esi, %esi
movq (%rcx,%rsi,8), %r8
xorq %r8, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rdi
jne 0x96a51
movq 0x38(%rsp), %rsi
leal -0x1(%rsi), %ecx
movl %ecx, 0xc(%rsp)
leal (%r12,%r12,2), %ecx
movl %ecx, 0x28(%rsp)
movl $0x1, %r8d
movl %eax, %ecx
shlq %cl, %r8
movq %r8, 0xa8(%rsp)
movq 0x18(%rsp), %rax
leal -0x1(%rax), %r8d
xorl %ebp, %ebp
movl %r12d, %r13d
cmpl $0x2, %esi
movl %r8d, 0x14(%rsp)
movq %r15, 0x78(%rsp)
jl 0x96ec1
movq 0x90(%r14), %rax
movq %rax, 0xd8(%rsp)
movl %r12d, %ecx
movq 0x18(%rsp), %rax
subl %eax, %ecx
incl %ecx
movl %ecx, 0x4c(%rsp)
movq 0x40(%rsp), %rcx
subl %eax, %ecx
movq %rcx, 0x40(%rsp)
movq %r12, %rcx
leal -0x1(%rdi), %r12d
movslq 0x24(%rsp), %rsi
movq %rsi, 0xd0(%rsp)
movslq %ecx, %rsi
movslq %r8d, %r8
movq %r8, 0x90(%rsp)
cltq
movq %rax, 0xc8(%rsp)
movslq 0x30(%rsp), %rax
movq %rax, 0xa0(%rsp)
movl 0xc(%rsp), %eax
movq %rax, 0xc0(%rsp)
leaq 0x1(%rdi), %rax
movq %rax, 0xb8(%rsp)
movl %ecx, %r9d
negl %r9d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movq %rsi, 0x98(%rsp)
movq %rsi, %r10
movq %rcx, 0x88(%rsp)
movl %ecx, %r13d
movq %r10, 0xe0(%rsp)
movq %r9, 0x80(%rsp)
movl %r13d, 0x2c(%rsp)
movq 0xd0(%rsp), %rcx
movq %rbp, 0x70(%rsp)
subq %rbp, %rcx
movq %rcx, 0x68(%rsp)
testl %edi, %edi
jle 0x96c37
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %rsi
movzbl (%rcx,%rsi), %ecx
leaq 0x196e81(%rip), %rsi    # 0x22da10
movzbl (%rsi,%rcx), %ecx
movq 0x120(%rsp), %r8
movq 0x48(%r8,%rcx,8), %r13
movq 0x80(%r8), %rbp
movq 0x88(%r8), %rsi
movq 0x90(%r8), %rcx
movq 0x98(%r8), %r10
movq 0xa0(%r8), %rbx
xorl %r11d, %r11d
xorl %r9d, %r9d
movq (%rbp,%r11,8), %r8
orq (%r13,%r11,8), %r8
movq %r8, (%rsi,%r11,8)
andq (%rdx,%r11,8), %r8
addq %r9, %r8
setb %r9b
movq %r8, (%rcx,%r11,8)
addq (%rdx,%r11,8), %r8
movq %r8, (%rcx,%r11,8)
movq (%rdx,%r11,8), %r15
cmpq %r15, %r8
setb %r14b
xorq %r15, %r8
movq %r8, (%rcx,%r11,8)
orq (%rsi,%r11,8), %r8
orb %r9b, %r14b
movq %r8, (%rcx,%r11,8)
andq (%rdx,%r11,8), %r8
movq %r8, (%r10,%r11,8)
movq (%rcx,%r11,8), %r8
orq (%rdx,%r11,8), %r8
notq %r8
movq %r8, (%rbx,%r11,8)
orq (%rbp,%r11,8), %r8
movzbl %r14b, %r9d
movq %r8, (%rbx,%r11,8)
incq %r11
cmpq %r11, %rdi
jne 0x96bc9
testl %edi, %edi
movq 0x120(%rsp), %r14
jle 0x96cb8
movq 0x90(%r14), %rcx
movq 0x80(%r14), %rsi
movq 0x88(%r14), %r10
movq 0xa0(%r14), %r11
movq 0x98(%r14), %rbx
movq 0xb8(%rsp), %r13
xorl %ebp, %ebp
movq -0x10(%rcx,%r13,8), %r8
shrq %r8
orq %rbp, %r8
movq %r8, -0x10(%r10,%r13,8)
movq -0x10(%rcx,%r13,8), %rbp
andq -0x10(%r11,%r13,8), %r8
movq %r8, -0x10(%rsi,%r13,8)
movq -0x10(%r11,%r13,8), %r8
orq -0x10(%r10,%r13,8), %r8
notq %r8
movq %r8, -0x10(%rdx,%r13,8)
orq -0x10(%rbx,%r13,8), %r8
shlq $0x3f, %rbp
movq %r8, -0x10(%rdx,%r13,8)
decq %r13
cmpq $0x1, %r13
jg 0x96c70
movq 0xd8(%rsp), %rcx
testb $0x1, (%rcx)
movq 0x78(%rsp), %r15
jne 0x96ce9
movl 0x2c(%rsp), %r13d
cmpl 0x28(%rsp), %r13d
movl 0x14(%rsp), %r10d
movq 0x70(%rsp), %rbp
jge 0x970bf
incl %r13d
jmp 0x96cf8
movl 0x2c(%rsp), %r13d
movl 0x14(%rsp), %r10d
movq 0x70(%rsp), %rbp
movl 0x4c(%rsp), %esi
addl %ebp, %esi
movq 0x80(%rsp), %r11
js 0x96db9
cmpl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
jne 0x96d64
movq %rbp, %rcx
subq 0x98(%rsp), %rcx
movl %r13d, %eax
cmpq 0x90(%rsp), %rcx
jge 0x96d97
movq 0x80(%r14), %rcx
xorl %esi, %esi
movl %r13d, %eax
movl %esi, %r8d
shrl $0x6, %r8d
movq (%rdx,%r8,8), %r9
btq %rsi, %r9
adcl $0x0, %eax
movq (%rcx,%r8,8), %r8
btq %rsi, %r8
sbbl $0x0, %eax
leal (%r11,%rsi), %r8d
incl %r8d
incl %esi
cmpl %r10d, %r8d
jl 0x96d37
jmp 0x96d97
movl 0x10(%rsp), %ecx
subl %esi, %ecx
js 0x96d97
movq 0x98(%r14), %rsi
movq 0xa0(%r14), %r8
movl %ecx, %r9d
shrl $0x6, %r9d
movq (%r8,%r9,8), %r8
btq %rcx, %r8
adcl $0x0, %eax
movq (%rsi,%r9,8), %rsi
btq %rcx, %rsi
sbbl $0x0, %eax
cmpl 0x28(%r14), %eax
jg 0x96db9
cmpl 0x2c(%r14), %eax
jge 0x96db9
movl %eax, 0x2c(%r14)
movq 0x40(%rsp), %rcx
movl %ecx, 0x10(%r14)
movq 0x68(%rsp), %rcx
movl %ecx, 0x1c(%r14)
cmpl $0x2, %r15d
jl 0x96e22
movq 0x48(%r14), %rcx
movq 0x50(%r14), %rsi
movq 0x58(%r14), %r8
movq 0x60(%r14), %r10
xorl %r11d, %r11d
movq (%rcx,%r11,8), %r9
movq 0x8(%rcx,%r11,8), %rbx
shldq $0x3f, %r9, %rbx
movq %rbx, (%rcx,%r11,8)
movq (%rsi,%r11,8), %r9
movq 0x8(%rsi,%r11,8), %rbx
shldq $0x3f, %r9, %rbx
movq %rbx, (%rsi,%r11,8)
movq (%r8,%r11,8), %r9
movq 0x8(%r8,%r11,8), %rbx
shldq $0x3f, %r9, %rbx
movq %rbx, (%r8,%r11,8)
movq (%r10,%r11,8), %r9
movq 0x8(%r10,%r11,8), %rbx
shldq $0x3f, %r9, %rbx
movq %rbx, (%r10,%r11,8)
incq %r11
cmpq %r11, %r12
jne 0x96dd2
movq 0x48(%r14), %rcx
shrq -0x8(%rcx,%r15,8)
movq 0x50(%r14), %rcx
shrq -0x8(%rcx,%r15,8)
movq 0x58(%r14), %rcx
shrq -0x8(%rcx,%r15,8)
movq 0x60(%r14), %rcx
shrq -0x8(%rcx,%r15,8)
movq 0xe0(%rsp), %r10
incq %r10
movl $0x4, %ecx
cmpq 0xc8(%rsp), %r10
jge 0x96e7f
movq 0xa0(%rsp), %rcx
subq %r10, %rcx
movq 0x58(%rsp), %rsi
movzbl (%rsi,%rcx), %ecx
leaq 0x196b95(%rip), %rsi    # 0x22da10
movzbl (%rsi,%rcx), %ecx
cmpl $0x3, %ecx
movq 0x80(%rsp), %r9
ja 0x96ea5
movq 0x48(%r14,%rcx,8), %rcx
movq 0xb0(%rsp), %rsi
movq 0xa8(%rsp), %r8
orq %r8, (%rcx,%rsi,8)
incq %rbp
incl %r9d
cmpq 0xc0(%rsp), %rbp
jne 0x96b48
movq 0x88(%rsp), %r12
testl %edi, %edi
jle 0x96f8a
movl 0x24(%rsp), %eax
subl %ebp, %eax
cltq
movq 0x60(%rsp), %rcx
movzbl (%rcx,%rax), %eax
leaq 0x196b2f(%rip), %rcx    # 0x22da10
movzbl (%rcx,%rax), %eax
movq 0x120(%rsp), %r9
movq 0x48(%r9,%rax,8), %rax
movq 0x80(%r9), %rsi
movq 0x88(%r9), %r8
movq 0x90(%r9), %r10
movq 0x98(%r9), %rcx
movq 0xa0(%r9), %r14
xorl %ebx, %ebx
xorl %r9d, %r9d
movq (%rsi,%rbx,8), %r11
orq (%rax,%rbx,8), %r11
movq %r11, (%r8,%rbx,8)
andq (%rdx,%rbx,8), %r11
addq %r9, %r11
setb %r9b
movq %r11, (%r10,%rbx,8)
addq (%rdx,%rbx,8), %r11
movq %r11, (%r10,%rbx,8)
movq (%rdx,%rbx,8), %r15
cmpq %r15, %r11
setb %bpl
xorq %r15, %r11
movq 0x78(%rsp), %r15
movq %r11, (%r10,%rbx,8)
orq (%r8,%rbx,8), %r11
orb %r9b, %bpl
movq %r11, (%r10,%rbx,8)
andq (%rdx,%rbx,8), %r11
movq %r11, (%rcx,%rbx,8)
movq (%r10,%rbx,8), %r11
orq (%rdx,%rbx,8), %r11
notq %r11
movq %r11, (%r14,%rbx,8)
orq (%rsi,%rbx,8), %r11
movzbl %bpl, %r9d
movq %r11, (%r14,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x96f1a
testl %r15d, %r15d
movq 0x120(%rsp), %rbx
jle 0x97008
movq 0x90(%rbx), %rax
movq 0x80(%rbx), %rcx
movq 0x88(%rbx), %rsi
movq 0xa0(%rbx), %r8
movq 0x98(%rbx), %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
jg 0x96fc0
movq 0x90(%rbx), %rax
testb $0x1, (%rax)
movl 0x14(%rsp), %eax
jne 0x97026
cmpl 0x28(%rsp), %r13d
jge 0x970bf
incl %r13d
movq 0x18(%rsp), %r10
movl 0xc(%rsp), %r11d
subl %r12d, %r11d
cmpl %eax, %r11d
jge 0x97099
movq 0x80(%rbx), %rax
movq 0x50(%rsp), %rcx
movq 0x38(%rsp), %rsi
subl %esi, %ecx
addl %r12d, %r10d
subl %esi, %r10d
notl %esi
addl 0x48(%rsp), %esi
xorl %edi, %edi
movl %edi, %r8d
shrl $0x6, %r8d
movq (%rdx,%r8,8), %r9
btq %rdi, %r9
adcl $0x0, %r13d
movq (%rax,%r8,8), %r8
btq %rdi, %r8
sbbl $0x0, %r13d
cmpl %r12d, %r13d
jg 0x9708d
cmpl 0x2c(%rbx), %r13d
jge 0x9708d
movl %r13d, 0x2c(%rbx)
movl %esi, 0x10(%rbx)
movl %ecx, 0x1c(%rbx)
incl %edi
decl %esi
cmpl %edi, %r10d
jne 0x97059
addl %edi, %r11d
cmpl %r12d, %r13d
jg 0x970bf
cmpl 0x2c(%rbx), %r13d
jge 0x970bf
movl %r13d, 0x2c(%rbx)
movq 0x30(%rsp), %rax
subl %r11d, %eax
movl %eax, 0x10(%rbx)
movq 0x50(%rsp), %rax
subl 0x38(%rsp), %eax
movl %eax, 0x1c(%rbx)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq