// File: /workspace/github_cpp_makefile_star2_O1/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 $0x98, %rsp
movl %r8d, %r13d
movq %rdx, 0x38(%rsp)
movq %rdi, %r12
movq 0xd0(%rsp), %rbx
movq $0x0, 0xa8(%rbx)
movl 0x2c(%rbx), %eax
cmpl %r8d, %eax
jle 0x914d9
movl %esi, %r15d
movl %eax, 0xc(%rsp)
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)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rax, 0x10(%rbx)
leal (%rcx,%r13), %eax
cmpl %esi, %eax
jge 0x914fa
movl %eax, %r15d
jmp 0x91503
testl %eax, %eax
je 0x91f9f
movl %eax, 0xc(%rsp)
movl 0x14(%rbx), %r15d
movl 0x20(%rbx), %ecx
subl 0x10(%rbx), %r15d
incl %r15d
subl 0x1c(%rbx), %ecx
incl %ecx
jmp 0x91503
leal (%r15,%r13), %eax
cmpl %ecx, %eax
cmovll %eax, %ecx
leal (,%r13,2), %edx
testq %r9, %r9
je 0x91515
movl (%r9), %eax
jmp 0x9151c
movl %edx, %eax
sarl $0x6, %eax
incl %eax
movl %eax, 0x30(%rbx)
cmpl %r13d, 0x3c(%rbx)
movq %rcx, 0x18(%rsp)
movl %edx, 0x8(%rsp)
jge 0x9161f
movl %edx, %eax
shrl $0x6, %eax
leal (%rax,%rax,2), %eax
leal 0xc(,%rax,4), %eax
movl %eax, 0x3c(%rbx)
cmpl 0x38(%rbx), %eax
jbe 0x9161b
movq 0x40(%rbx), %rdi
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x40(%rbx)
movl 0x3c(%rbx), %edx
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rdx, %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
shrq $0x23, %rcx
movl %ecx, 0x3c(%rbx)
movq %rax, 0x48(%rbx)
andl $-0x8, %edx
leaq (%rax,%rdx), %rsi
movq %rsi, 0x50(%rbx)
leal (%rcx,%rcx), %esi
leaq (%rax,%rsi,8), %rdi
movq %rdi, 0x58(%rbx)
leal (%rcx,%rcx,2), %edi
leaq (%rax,%rdi,8), %rdi
movq %rdi, 0x60(%rbx)
leal (,%rcx,4), %edi
leaq (%rax,%rdi,8), %r8
movq %r8, 0x68(%rbx)
leal (%rcx,%rcx,4), %r8d
leaq (%rax,%r8,8), %r9
movq %r9, 0x70(%rbx)
leal (%rsi,%rsi,2), %r9d
leaq (%rax,%r9,8), %r9
movq %r9, 0x78(%rbx)
leal (,%rcx,8), %r9d
subl %ecx, %r9d
leaq (%rax,%r9,8), %r9
movq %r9, 0x80(%rbx)
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x88(%rbx)
leal (%rcx,%rcx,8), %edx
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x90(%rbx)
leal (%rsi,%rsi,4), %edx
leaq (%rax,%rdx,8), %rdx
movq %rdx, 0x98(%rbx)
leal (%rcx,%r8,2), %edx
leaq (%rax,%rdx,8), %rax
movq %rax, 0xa0(%rbx)
leal (%rdi,%rdi,2), %eax
movl %eax, 0x38(%rbx)
movl %ecx, 0x34(%rbx)
movl %r13d, 0x3c(%rbx)
movl 0x30(%rbx), %eax
shll $0x3, %eax
movq 0x48(%rbx), %rdi
movslq %eax, %r14
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x50(%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x58(%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x60(%rbx), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
movq 0x68(%rbx), %rdi
xorl %esi, %esi
movq %r14, 0x28(%rsp)
movq %r14, %rdx
callq 0x20e0
leal 0x1(%r13), %eax
cmpl %r15d, %eax
cmovgel %r15d, %eax
testl %eax, %eax
jle 0x916bd
movl %eax, %eax
movl %r13d, %edx
xorl %esi, %esi
leaq 0x19c380(%rip), %rdi    # 0x22da10
leal (%rdx,%rsi), %ecx
movl $0x1, %r8d
shlq %cl, %r8
movzbl (%r12,%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 0x91690
movq 0x68(%rbx), %rdi
xorl %esi, %esi
movq 0x28(%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 0x9170b
movq 0x80(%rbx), %rdi
leaq (,%r14,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl %r13d, %ecx
andl $0x3f, %ecx
je 0x9172b
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
movq 0x80(%rbx), %rcx
movq %rax, (%rcx,%r14,8)
movq %r12, 0x70(%rsp)
movq %r15, 0x20(%rsp)
movq 0x78(%rbx), %rdi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x20e0
movl 0x8(%rsp), %ecx
movl %ecx, %eax
sarl $0x6, %eax
movslq %eax, %r14
cmpl $0x40, %ecx
jb 0x91773
movq 0x78(%rbx), %rdi
leaq (,%r14,8), %rdx
movl $0xff, %esi
callq 0x20e0
movl 0x8(%rsp), %ecx
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,%r14,8)
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x917b6
movq 0x80(%rbx), %rdx
xorl %esi, %esi
movq (%rdx,%rsi,8), %rdi
xorq %rdi, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rax
jne 0x917a6
movq 0x18(%rsp), %rdx
imull %edx, %eax
leal (%rax,%rax,4), %eax
cltq
movq %rax, 0xc0(%rbx)
cmpq %rax, 0xc8(%rbx)
jae 0x91832
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 0x18(%rsp), %rdx
movq %rax, 0xd0(%rbx)
leal -0x1(%rdx), %esi
leal (%r13,%r13,2), %eax
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rax
leal -0x1(%rax), %edi
movq $0x0, 0xc0(%rbx)
movl $0x1, %r8d
movl %r12d, %ecx
shlq %cl, %r8
movq %r8, 0x68(%rsp)
cmpl $0x2, %edx
movl %edi, 0x14(%rsp)
movl %esi, 0x4(%rsp)
jl 0x91cd0
movq %r14, 0x60(%rsp)
movl %r13d, %ecx
subl %eax, %ecx
incl %ecx
movl %ecx, 0x34(%rsp)
movslq %r13d, %rcx
cltq
movq %rax, 0x80(%rsp)
movslq %edi, %rax
movq %rax, 0x50(%rsp)
movl %esi, %eax
movq %rax, 0x78(%rsp)
movl %r13d, %r15d
negl %r15d
movl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movq %rcx, 0x58(%rsp)
movq %rcx, 0x40(%rsp)
movl %r13d, (%rsp)
movq %r13, 0x88(%rsp)
movq %rbp, 0x48(%rsp)
movq %r15, 0x90(%rsp)
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x91993
movq 0x38(%rsp), %rcx
movq 0x48(%rsp), %rdx
movzbl (%rcx,%rdx), %ecx
leaq 0x19c11e(%rip), %rdx    # 0x22da10
movzbl (%rdx,%rcx), %ecx
movq 0x48(%rbx,%rcx,8), %rcx
movq 0x78(%rbx), %rdx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %r8
movq 0x98(%rbx), %r9
movq 0xa0(%rbx), %r10
xorl %r11d, %r11d
xorl %r13d, %r13d
movq (%rsi,%r11,8), %rbp
orq (%rcx,%r11,8), %rbp
movq %rbp, (%rdi,%r11,8)
andq (%rdx,%r11,8), %rbp
addq %r13, %rbp
setb %r13b
movq %rbp, (%r8,%r11,8)
addq (%rdx,%r11,8), %rbp
movq %rbp, (%r8,%r11,8)
movq (%rdx,%r11,8), %r15
cmpq %r15, %rbp
setb %r14b
xorq %r15, %rbp
movq %rbp, (%r8,%r11,8)
orq (%rdi,%r11,8), %rbp
orb %r13b, %r14b
movq %rbp, (%r8,%r11,8)
andq (%rdx,%r11,8), %rbp
movq %rbp, (%r9,%r11,8)
movq (%r8,%r11,8), %r15
orq (%rdx,%r11,8), %r15
notq %r15
movq %r15, (%r10,%r11,8)
orq (%rsi,%r11,8), %r15
movzbl %r14b, %r13d
movq %r15, (%r10,%r11,8)
incq %r11
cmpq %r11, %rax
jne 0x91928
testl %eax, %eax
jle 0x91a0d
movq 0x90(%rbx), %rcx
movq 0x88(%rbx), %rdx
movq 0xa0(%rbx), %rsi
movq 0x78(%rbx), %rdi
movq 0x80(%rbx), %r8
movq 0x98(%rbx), %r9
leaq 0x1(%rax), %r10
xorl %r11d, %r11d
movq -0x10(%rcx,%r10,8), %r14
shrq %r14
orq %r11, %r14
movq %r14, -0x10(%rdx,%r10,8)
movq -0x10(%rcx,%r10,8), %r11
andq -0x10(%rsi,%r10,8), %r14
movq %r14, -0x10(%r8,%r10,8)
movq -0x10(%rsi,%r10,8), %r14
orq -0x10(%rdx,%r10,8), %r14
notq %r14
movq %r14, -0x10(%rdi,%r10,8)
orq -0x10(%r9,%r10,8), %r14
shlq $0x3f, %r11
movq %r14, -0x10(%rdi,%r10,8)
decq %r10
cmpq $0x1, %r10
jg 0x919c5
movq 0x90(%rbx), %rsi
testb $0x1, (%rsi)
movq 0x88(%rsp), %r13
jne 0x91a35
movl (%rsp), %r10d
cmpl 0x10(%rsp), %r10d
jge 0x92078
incl %r10d
jmp 0x91a39
movl (%rsp), %r10d
cmpl %r13d, 0xc(%rsp)
movl 0x14(%rsp), %r11d
movq 0x90(%rsp), %r15
movq 0x48(%rsp), %rbp
movl %r10d, (%rsp)
jle 0x91b0c
movl 0x34(%rsp), %edx
addl %ebp, %edx
js 0x91b0c
cmpl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
jne 0x91ac0
movq %rbp, %rcx
subq 0x58(%rsp), %rcx
movl %r10d, %r12d
cmpq 0x50(%rsp), %rcx
jge 0x91af5
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rdx
xorl %edi, %edi
movl %r10d, %r12d
movl %edi, %r8d
shrl $0x6, %r8d
movq (%rcx,%r8,8), %r9
btq %rdi, %r9
adcl $0x0, %r12d
movq (%rdx,%r8,8), %r8
btq %rdi, %r8
sbbl $0x0, %r12d
leal (%r15,%rdi), %r8d
incl %r8d
incl %edi
cmpl %r11d, %r8d
jl 0x91a91
jmp 0x91af5
movl 0x8(%rsp), %ecx
subl %edx, %ecx
js 0x91af5
movq 0x98(%rbx), %rdx
movq 0xa0(%rbx), %rdi
movl %ecx, %r8d
shrl $0x6, %r8d
movq (%rdi,%r8,8), %rdi
btq %rcx, %rdi
adcl $0x0, %r12d
movq (%rdx,%r8,8), %rdx
btq %rcx, %rdx
sbbl $0x0, %r12d
cmpl 0x28(%rbx), %r12d
jg 0x91b0c
cmpl 0x2c(%rbx), %r12d
jge 0x91b0c
movl %r12d, 0x2c(%rbx)
movl %r11d, 0x14(%rbx)
movl %ebp, 0x20(%rbx)
cmpl $0x2, %eax
jl 0x91b78
movq 0x48(%rbx), %rcx
movq 0x50(%rbx), %rdx
movq 0x58(%rbx), %rdi
movq 0x60(%rbx), %r8
leal -0x1(%rax), %r9d
xorl %r10d, %r10d
movq (%rcx,%r10,8), %r11
movq 0x8(%rcx,%r10,8), %r14
shldq $0x3f, %r11, %r14
movq %r14, (%rcx,%r10,8)
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)
incq %r10
cmpq %r10, %r9
jne 0x91b28
movq 0x48(%rbx), %rcx
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)
movq 0x40(%rsp), %rdx
incq %rdx
movl $0x4, %eax
cmpq 0x80(%rsp), %rdx
jge 0x91bc7
movq 0x70(%rsp), %rax
movzbl (%rax,%rdx), %eax
leaq 0x19be4d(%rip), %rcx    # 0x22da10
movzbl (%rcx,%rax), %eax
movq %rdx, 0x40(%rsp)
cmpl $0x3, %eax
ja 0x91be4
movq 0x48(%rbx,%rax,8), %rax
movq 0x60(%rsp), %rcx
movq 0x68(%rsp), %rdx
orq %rdx, (%rax,%rcx,8)
incq %rbp
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x28(%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)
incl %r15d
cmpq 0x78(%rsp), %rbp
jne 0x918c3
movl %ebp, %ecx
jmp 0x91cd6
xorl %ecx, %ecx
movl %r13d, (%rsp)
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0x91d94
movq 0x38(%rsp), %rdx
movzbl (%rdx,%rcx), %ecx
leaq 0x19bd1d(%rip), %rdx    # 0x22da10
movzbl (%rdx,%rcx), %ecx
movq 0x48(%rbx,%rcx,8), %rcx
movq 0x78(%rbx), %rdx
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdi
movq 0x90(%rbx), %r8
movq 0x98(%rbx), %r9
movq 0xa0(%rbx), %r10
xorl %r11d, %r11d
xorl %r14d, %r14d
movq (%rsi,%r11,8), %r15
orq (%rcx,%r11,8), %r15
movq %r15, (%rdi,%r11,8)
andq (%rdx,%r11,8), %r15
addq %r14, %r15
setb %bpl
movq %r15, (%r8,%r11,8)
addq (%rdx,%r11,8), %r15
movq %r15, (%r8,%r11,8)
movq (%rdx,%r11,8), %r14
cmpq %r14, %r15
setb %r12b
xorq %r14, %r15
movq %r15, (%r8,%r11,8)
orq (%rdi,%r11,8), %r15
orb %bpl, %r12b
movq %r15, (%r8,%r11,8)
andq (%rdx,%r11,8), %r15
movq %r15, (%r9,%r11,8)
movq (%r8,%r11,8), %r15
orq (%rdx,%r11,8), %r15
notq %r15
movq %r15, (%r10,%r11,8)
orq (%rsi,%r11,8), %r15
movzbl %r12b, %r14d
movq %r15, (%r10,%r11,8)
incq %r11
cmpq %r11, %rax
jne 0x91d29
testl %eax, %eax
jle 0x91e0d
movq 0x90(%rbx), %rcx
movq 0x88(%rbx), %rdx
movq 0xa0(%rbx), %rsi
movq 0x78(%rbx), %rdi
movq 0x80(%rbx), %r8
movq 0x98(%rbx), %r9
incq %rax
xorl %r10d, %r10d
movq -0x10(%rcx,%rax,8), %r11
shrq %r11
orq %r10, %r11
movq %r11, -0x10(%rdx,%rax,8)
movq -0x10(%rcx,%rax,8), %r10
andq -0x10(%rsi,%rax,8), %r11
movq %r11, -0x10(%r8,%rax,8)
movq -0x10(%rsi,%rax,8), %r11
orq -0x10(%rdx,%rax,8), %r11
notq %r11
movq %r11, -0x10(%rdi,%rax,8)
orq -0x10(%r9,%rax,8), %r11
shlq $0x3f, %r10
movq %r11, -0x10(%rdi,%rax,8)
decq %rax
cmpq $0x1, %rax
jg 0x91dc5
movq 0x90(%rbx), %rsi
testb $0x1, (%rsi)
jne 0x91e2b
movl (%rsp), %eax
cmpl 0x10(%rsp), %eax
jge 0x92078
incl %eax
movl %eax, (%rsp)
movq 0x20(%rsp), %r14
movq 0xc0(%rbx), %rdi
shlq $0x3, %rdi
addq 0xd0(%rbx), %rdi
movq 0x28(%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, 0xc(%rsp)
movq 0x18(%rsp), %rdi
jle 0x920a9
movl 0x4(%rsp), %ecx
subl %r13d, %ecx
cmpl 0x14(%rsp), %ecx
jge 0x9208a
movq 0x78(%rbx), %rdx
movq 0x80(%rbx), %rsi
subl %r13d, %edi
movl %edi, %r9d
subl %r14d, %r9d
xorl %r8d, %r8d
movl 0x4(%rsp), %ebp
movl (%rsp), %r14d
movl %r8d, %r10d
shrl $0x6, %r10d
movq (%rdx,%r10,8), %r11
btq %r8, %r11
adcl $0x0, %r14d
movq (%rsi,%r10,8), %r10
btq %r8, %r10
sbbl $0x0, %r14d
cmpl %r13d, %r14d
jg 0x91f87
cmpl 0x2c(%rbx), %r14d
jge 0x91f87
leal (%rdi,%r8), %r10d
movl %r14d, 0x2c(%rbx)
movl %r10d, 0x14(%rbx)
movl %ebp, 0x20(%rbx)
incl %r8d
movl %r9d, %r10d
addl %r8d, %r10d
jne 0x91f4e
addl %r8d, %ecx
movq 0x18(%rsp), %rdi
jmp 0x9208e
movl 0x20(%rbx), %ebp
subl 0x1c(%rbx), %ebp
incl %ebp
cmpl $0x3fff, %ebp           # imm = 0x3FFF
jb 0x9201a
movl $0x2, %r14d
movq 0xb0(%rbx), %rax
cmpq %rax, 0xa8(%rbx)
jne 0x91fed
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r14, %rsi
movq %rsi, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0xb8(%rbx)
movq 0xa8(%rbx), %rax
movq 0xb8(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0xa8(%rbx)
movw $0x3fff, (%rcx,%rax,2)  # imm = 0x3FFF
addl $0xffffc001, %ebp       # imm = 0xFFFFC001
cmpl $0x3ffe, %ebp           # imm = 0x3FFE
ja 0x91fb5
testl %ebp, %ebp
je 0x92078
movq 0xb0(%rbx), %rax
cmpq %rax, 0xa8(%rbx)
jne 0x9205b
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0xb8(%rbx)
movq 0xa8(%rbx), %rax
movq 0xb8(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0xa8(%rbx)
movw %bp, (%rcx,%rax,2)
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rsp), %r14d
cmpl %r13d, %r14d
jg 0x920a9
movl %r14d, %edx
cmpl 0x2c(%rbx), %r14d
jge 0x920a9
movl %edx, 0x2c(%rbx)
movl %ecx, 0x14(%rbx)
movl 0x4(%rsp), %ecx
movl %ecx, 0x20(%rbx)
movl 0x20(%rbx), %ecx
subl 0x1c(%rbx), %ecx
incl %ecx
cmpl %edi, %ecx
je 0x920cb
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 $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9c469