// File: chhylp123[P]hifiasm/./Levenshtein_distance.h
// Function: ed_band_cal_semi_infi_w_absent_diag(char*, int, char*, int, int, int, int*, bit_extz_t*)
inline void ed_band_cal_semi_infi_w_absent_diag(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, int32_t abs_diag, int32_t *nword, bit_extz_t *ez)
{
	init_base_ed(*ez, thre, pn, tn); ez->ps = ez->pe = -1; ez->ts = 0; ez->te = tn-1;
	int32_t bd, i, err = abs_diag, i_bd, cut = thre+(thre<<1), tn0 = tn - 1, wz, wz1, Peq_i; w_sig c, ad, Peq_m;
	if((pn > tn + cut) || (tn > pn + cut)) return;

	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);
	memset((ez->VP).a, 0, wz);
	w_infi_set_bit_lsub(ez->VN, abs_diag, ez->nword); /**VN = (((Word)1)<<(abs_diag))-1; ;**/ 

	bd = ((thre<<1)+1)-abs_diag; bd = ((bd<=pn)?bd:pn); i_bd = abs_diag; 
    ed_init_core(i, bd, i_bd, pstr, ez->Peq);
    i_bd = (thre<<1)-abs_diag;

	memset((ez->Peq[4]).a, 0, wz);
	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[i], c, ad, wz, ez->nword);
        if (!(ez->D0.a[0]&(1ULL))) {
            ++err; if (err>cut) return;
        }
        
        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;
    }
	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;
    }

	int32_t site = tn - 1 - abs_diag;/**up bound**/
    /**in most cases, ai = (thre<<1)**/
    int32_t ai = pn - tn + abs_diag, uge = INT32_MAX; i = 0;
	for (i = 0; site < 0 && i < ai; i++, site++) {
		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));
	}
    if ((err <= thre) && (err <= ez->err)) {
        ez->err = err; ez->pe = site;
    }
	site -= i;
	while (i < ai) {
		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));
        ++i;
        if ((err <= thre) && (err <= ez->err)) {
            ez->err = err; ez->pe = site + i;
        }
        if(i == thre) uge = err;
    }
    if((uge <= thre) && (uge == ez->err)) ez->pe = site + thre;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
movl -0x20(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x28(%rax)
movq 0x18(%rbp), %rax
movl $0x7fffffff, 0x2c(%rax) # imm = 0x7FFFFFFF
movl -0xc(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0x1c(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x24(%rax)
movq 0x18(%rbp), %rax
movl $0x0, 0xc(%rax)
movq 0x18(%rbp), %rax
movl $0x0, 0x4(%rax)
movq 0x18(%rbp), %rax
movl $0x0, 0x8(%rax)
movq 0x18(%rbp), %rax
movl $0x0, (%rax)
movq 0x18(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0x0, 0x1c(%rax)
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x20(%rax)
movl -0x24(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x20(%rbp), %eax
movl -0x20(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl %eax, -0x38(%rbp)
movl -0x1c(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x3c(%rbp)
movl -0xc(%rbp), %eax
movl -0x1c(%rbp), %ecx
addl -0x38(%rbp), %ecx
cmpl %ecx, %eax
jg 0xbfc71
movl -0x1c(%rbp), %eax
movl -0xc(%rbp), %ecx
addl -0x38(%rbp), %ecx
cmpl %ecx, %eax
jle 0xbfc76
jmp 0xc0c6a
cmpq $0x0, 0x10(%rbp)
je 0xbfc8c
movq 0x10(%rbp), %rax
movl (%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x30(%rax)
jmp 0xbfcbb
movl -0x20(%rbp), %eax
shll %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
sarl $0x6, %ecx
movl -0x28(%rbp), %eax
andl $0x3f, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
addl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x30(%rax)
jmp 0xbfcbd
movl -0x20(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x3c(%rcx), %eax
jle 0xbffbc
movl -0x20(%rbp), %ecx
shll %ecx
addl $0x1, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x3c(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %eax
shrl $0x6, %eax
movq 0x18(%rbp), %rcx
movl 0x3c(%rcx), %ecx
andl $0x3f, %ecx
cmpl $0x0, %ecx
setne %cl
xorb $-0x1, %cl
xorb $-0x1, %cl
andb $0x1, %cl
movzbl %cl, %ecx
addl %ecx, %eax
imull $0xc, %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x3c(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %eax
movq 0x18(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jbe 0xbffb2
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x40(%rax)
movq 0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movl 0x3c(%rax), %eax
movl $0xc, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, %ecx
movq -0x78(%rbp), %rax
movl %ecx, 0x3c(%rax)
movq 0x18(%rbp), %rax
movl $0x0, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x48(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x50(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x58(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x60(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x68(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x70(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x78(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x80(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x88(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x90(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x98(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movq 0x40(%rax), %rcx
movq 0x18(%rbp), %rax
movl 0x38(%rax), %eax
shlq $0x3, %rax
addq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
addl 0x38(%rax), %ecx
movl %ecx, 0x38(%rax)
movq 0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x34(%rax)
movl -0x20(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x3c(%rax)
jmp 0xbffbe
movq 0x18(%rbp), %rax
movslq 0x30(%rax), %rax
shlq $0x3, %rax
movl %eax, -0x40(%rbp)
movq 0x18(%rbp), %rax
movq 0x48(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x50(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x58(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x60(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x68(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rdi
movq 0x18(%rbp), %rax
movslq 0x30(%rax), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x2100
movl -0x24(%rbp), %eax
sarl $0x6, %eax
cmpl $0x0, %eax
je 0xc008a
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rdi
movl -0x24(%rbp), %eax
sarl $0x6, %eax
movslq %eax, %rdx
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x2100
movl -0x24(%rbp), %eax
andl $0x3f, %eax
cmpl $0x0, %eax
je 0xc00c3
movl -0x24(%rbp), %eax
andl $0x3f, %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %edx
shlq %cl, %rdx
subq $0x1, %rdx
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x24(%rbp), %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0xc00c5
movl -0x20(%rbp), %eax
shll %eax
addl $0x1, %eax
subl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0xc(%rbp), %eax
jg 0xc00e3
movl -0x28(%rbp), %eax
movl %eax, -0x7c(%rbp)
jmp 0xc00e9
movl -0xc(%rbp), %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0xc015d
movl -0x34(%rbp), %eax
andl $0x3f, %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %edx
shlq %cl, %rdx
movq 0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x2c(%rbp), %rsi
movzbl (%rcx,%rsi), %ecx
movl %ecx, %esi
leaq 0x2ca6b1(%rip), %rcx    # 0x38a7e0
movzbl (%rcx,%rsi), %ecx
movq 0x48(%rax,%rcx,8), %rax
movl -0x34(%rbp), %ecx
sarl $0x6, %ecx
movslq %ecx, %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xc00fc
movl -0x20(%rbp), %eax
shll %eax
subl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
movq 0x18(%rbp), %rax
movq 0x68(%rax), %rdi
movslq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x2100
movl $0x0, -0x2c(%rbp)
movl -0x20(%rbp), %eax
shll %eax
sarl $0x6, %eax
movl %eax, -0x48(%rbp)
movl -0x20(%rbp), %eax
shll %eax
andl $0x3f, %eax
movl %eax, %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, -0x60(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0xc071c
movq -0x18(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x2ca61a(%rip), %rax    # 0x38a7e0
movzbl (%rax,%rcx), %eax
movq %rax, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x40(%rbp)
movl -0x40(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0xc03ef
movq 0x18(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x48(%rax,%rcx,8), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x58(%rbp), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -0x58(%rbp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rbp), %rcx
movq 0x78(%rcx), %rcx
movslq -0x40(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
orq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
xorq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x98(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
xorq $-0x1, %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xc01dd
movq 0x18(%rbp), %rax
movl 0x30(%rax), %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
cmpl $0x0, -0x40(%rbp)
jl 0xc04fe
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
orq -0x58(%rbp), %rdx
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
xorq $-0x1, %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x98(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x40(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xc0404
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0xc052e
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0xc052c
jmp 0xc0c6a
jmp 0xc052e
movl $0x0, -0x40(%rbp)
movl $0x1, -0x44(%rbp)
movl -0x44(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0xc064b
movq 0x18(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq 0x18(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
orq %rax, %rdx
movq 0x18(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq 0x18(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
orq %rax, %rdx
movq 0x18(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x58(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq 0x18(%rbp), %rax
movq 0x58(%rax), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
orq %rax, %rdx
movq 0x18(%rbp), %rax
movq 0x58(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x60(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq 0x18(%rbp), %rax
movq 0x60(%rax), %rax
movslq -0x44(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
orq %rax, %rdx
movq 0x18(%rbp), %rax
movq 0x60(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xc053c
movq 0x18(%rbp), %rax
movl 0x30(%rax), %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
movq 0x18(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x50(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x58(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x60(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movq $0x4, -0x50(%rbp)
movl -0x34(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xc06f3
movq -0x8(%rbp), %rax
movslq -0x34(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x2ca0f5(%rip), %rax    # 0x38a7e0
movzbl (%rax,%rcx), %eax
movq %rax, -0x50(%rbp)
cmpq $0x4, -0x50(%rbp)
jae 0xc0717
movq -0x60(%rbp), %rdx
movq 0x18(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x48(%rax,%rcx,8), %rax
movslq -0x48(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0xc01a5
movq -0x18(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x2ca0af(%rip), %rax    # 0x38a7e0
movzbl (%rax,%rcx), %eax
movq %rax, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x40(%rbp)
movl -0x40(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0xc095a
movq 0x18(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x48(%rax,%rcx,8), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x58(%rbp), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -0x58(%rbp), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x18(%rbp), %rcx
movq 0x78(%rcx), %rcx
movslq -0x40(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
setb %al
andb $0x1, %al
movzbl %al, %eax
orq -0x58(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
xorq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x98(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
xorq $-0x1, %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xc0748
movq 0x18(%rbp), %rax
movl 0x30(%rax), %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
movq $0x0, -0x58(%rbp)
cmpl $0x0, -0x40(%rbp)
jl 0xc0a69
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq %rdx
orq -0x58(%rbp), %rdx
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x3f, %rax
movq %rax, -0x58(%rbp)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
andq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0xa0(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
xorq $-0x1, %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x18(%rbp), %rax
movq 0x98(%rax), %rax
movslq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x40(%rbp), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x40(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xc096f
movq 0x18(%rbp), %rax
movq 0x90(%rax), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0xc0a99
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x38(%rbp), %eax
jle 0xc0a97
jmp 0xc0c6a
jmp 0xc0a99
movl -0x1c(%rbp), %eax
subl $0x1, %eax
subl -0x24(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0xc(%rbp), %eax
subl -0x1c(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x68(%rbp)
movl $0x7fffffff, -0x6c(%rbp) # imm = 0x7FFFFFFF
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x2c(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x64(%rbp)
movb %al, -0x7d(%rbp)
jge 0xc0add
movl -0x2c(%rbp), %eax
cmpl -0x68(%rbp), %eax
setl %al
movb %al, -0x7d(%rbp)
movb -0x7d(%rbp), %al
testb $0x1, %al
jne 0xc0ae6
jmp 0xc0b60
movl -0x2c(%rbp), %eax
sarl $0x6, %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
andl $0x3f, %eax
movl %eax, -0x34(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x34(%rbp), %ecx
shrq %cl, %rax
movq %rax, %rcx
andq $0x1, %rcx
movslq -0x30(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x30(%rbp)
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x34(%rbp), %ecx
shrq %cl, %rax
movq %rax, %rcx
andq $0x1, %rcx
movslq -0x30(%rbp), %rax
subq %rcx, %rax
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0xc0ac6
movl -0x30(%rbp), %eax
cmpl -0x20(%rbp), %eax
jg 0xc0b88
movl -0x30(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jg 0xc0b88
movl -0x30(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x2c(%rax)
movl -0x64(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x2c(%rbp), %ecx
movl -0x64(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x64(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0xc0c49
movl -0x2c(%rbp), %eax
sarl $0x6, %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
andl $0x3f, %eax
movl %eax, -0x34(%rbp)
movq 0x18(%rbp), %rax
movq 0x78(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x34(%rbp), %ecx
shrq %cl, %rax
movq %rax, %rcx
andq $0x1, %rcx
movslq -0x30(%rbp), %rax
addq %rcx, %rax
movl %eax, -0x30(%rbp)
movq 0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl -0x34(%rbp), %ecx
shrq %cl, %rax
movq %rax, %rcx
andq $0x1, %rcx
movslq -0x30(%rbp), %rax
subq %rcx, %rax
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x20(%rbp), %eax
jg 0xc0c36
movl -0x30(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jg 0xc0c36
movl -0x30(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x2c(%rax)
movl -0x64(%rbp), %ecx
addl -0x2c(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0x2c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jne 0xc0c44
movl -0x30(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0xc0b93
movl -0x6c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jg 0xc0c6a
movl -0x6c(%rbp), %eax
movq 0x18(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jne 0xc0c6a
movl -0x64(%rbp), %ecx
addl -0x20(%rbp), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)