// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: cal_exact_batch(overlap_region*, ul_ov_t*, unsigned long, long, unsigned long*, unsigned long*, unsigned long*, unsigned long*, unsigned long*, unsigned long*, ma_ug_t*)
int64_t cal_exact_batch(overlap_region *z, ul_ov_t *sa, uint64_t sn, int64_t ylen, uint64_t *q0l, uint64_t *t0l, uint64_t *e0l, uint64_t *q1l, uint64_t *t1l, uint64_t *e1l, ma_ug_t *ug)
{
	int64_t wn = z->w_list.n, wk, xk, yk, is_t, is_f, err0, err1, tot, mask_win = 0; window_list *m; bit_extz_t ez; 
    int64_t qs, qe, ts, te, rev = !!(z->y_pos_strand), qoff, toff, elen, sube;
	tot = z->non_homopolymer_errors;
	if(!tot) {
		(*q0l) = (*q1l) = z->x_pos_e+1-z->x_pos_s;
		(*t0l) = (*t1l) = z->y_pos_e+1-z->y_pos_s;
		(*e0l) = (*e1l) = z->x_pos_e+1-z->x_pos_s;
		return 0;
	}
	(*q0l) = (*t0l) = (*e0l) = (*q1l) = (*t1l) = (*e1l) = (uint64_t)-1;
	wk = xk = yk = -1; if(!wn) return INT32_MAX;

	///forward
	(*q0l) = (*t0l) = (*e0l) = err0 = 0;
	wk = 0; xk = z->w_list.a[wk].x_start; yk = z->w_list.a[wk].y_start; is_t = 0;
	if((xk == z->x_pos_s) && (yk == z->y_pos_s)) is_t = 1;
	if((!is_t) && (sn > 0)) {///if the flanking unmapped regions could be masked
		qs = z->x_pos_s; qe = xk; 
		if(!rev) {
			ts = z->y_pos_s; te = yk;
		} else {
			ts = ylen - yk; te = ylen - z->y_pos_s; 
		}
		is_t = is_mask_err_full(sa, sn, qs, qe, ts, te);
		if(is_t) {
			(*q0l) += qe - qs; (*t0l) += te - ts; (*e0l) = 0;
		}
	}
	if(is_t) {
		for (; wk < wn; wk++) {		
			m = &(z->w_list.a[wk]); 
			qs = m->x_start; qe = m->x_end+1;
			if(!rev) {
				ts = m->y_start; te = m->y_end+1;
			} else {
				ts = ylen-(m->y_end+1); te = ylen-m->y_start;
			}

			if((is_ualn_win((*m))) || ((is_est_aln((*m))) && (m->error > 0))) {///unmapped 				
				if(is_mask_err_full(sa, sn, qs, qe, ts, te)) {
					(*q0l) += qe - qs; (*t0l) += te - ts; (*e0l) = 0; mask_win = 1;
					continue;
				}
				break;
			} 
			if(m->error == 0) {///an exactly matched window
				(*q0l) += qe - qs; (*t0l) += te - ts; (*e0l) += qe - qs;
				continue;
			}
			set_bit_extz_t(ez, (*z), wk); 
			is_f = cal_exact_len(&ez, rev, sa, sn, ylen, &qoff, &toff, &elen, &sube, 0);
			(*q0l) += qoff; (*t0l) += toff; err0 += sube;
			///exactly match
			if(elen == qoff && elen == toff) (*e0l) += elen;
			else (*e0l) = elen;
			if(!is_f) break;
		}
	}


	///backward
	(*q1l) = (*t1l) = (*e1l) = err1 = 0;
	wk = wn-1; xk = z->w_list.a[wk].x_end+1; yk = z->w_list.a[wk].y_end+1; is_t = 0;
	if((xk == (z->x_pos_e+1)) && (yk == (z->y_pos_e+1))) is_t = 1;
	if((!is_t) && (sn > 0)) {///if the flanking unmapped regions could be masked
		qs = xk; qe = z->x_pos_e+1;
		if(!rev) {
			ts = yk; te = z->y_pos_e+1;
		} else {
			ts = ylen-(z->y_pos_e+1); te = ylen-yk;
		}
		is_t = is_mask_err_full(sa, sn, qs, qe, ts, te);
        if(is_t) {
            (*q1l) += qe - qs; (*t1l) += te - ts; (*e1l) = 0;
        }
	}
	if(is_t) {
		for (; wk >= 0; wk--) {
			m = &(z->w_list.a[wk]); 
			qs = m->x_start; qe = m->x_end+1;
			if(!rev) {
				ts = m->y_start; te = m->y_end+1;
			} else {
				ts = ylen-(m->y_end+1); te = ylen-m->y_start;
			}

			if((is_ualn_win((*m))) || ((is_est_aln((*m))) && (m->error > 0))) {///unmapped 				
				if(is_mask_err_full(sa, sn, qs, qe, ts, te)) {
					(*q1l) += qe - qs; (*t1l) += te - ts; (*e1l) = 0; mask_win = 1;
					continue;
				}
				break;
			} 
			if(m->error == 0) {///an exactly matched window
				(*q1l) += qe - qs; (*t1l) += te - ts; (*e1l) += qe - qs;
				continue;
			}
			set_bit_extz_t(ez, (*z), wk); 
			is_f = cal_exact_len(&ez, rev, sa, sn, ylen, &qoff, &toff, &elen, &sube, 1);
			(*q1l) += qoff; (*t1l) += toff; err1 += sube;
			///exactly match
			if(elen == qoff && elen == toff) (*e1l) += elen;
			else (*e1l) = elen;
			if(!is_f) break;
		}
	}

	if((*q0l) >= (z->x_pos_e+1-z->x_pos_s) && (*t0l) >= (z->y_pos_e+1-z->y_pos_s)) {
		// if((!(((*q0l) == (*q1l)) && ((*t0l) == (*t1l)) && (err0 == err1)))/** || (!(err0 == tot))**/) {
		// 	fprintf(stderr, "[M::%s]\tutg%.6u%c\txl::%u\tx::[%u,\t%u)\t%c\tutg%.6u%c\tyl::%u\ty::[%u,\t%u)\terr::%u\twn::%u\n", 
        //     __func__, 
		// 	z->x_id+1, "lc"[ug->u.a[z->x_id].circ], ug->u.a[z->x_id].len, z->x_pos_s, z->x_pos_e+1,
		// 	"+-"[z->y_pos_strand],
		// 	z->y_id+1, "lc"[ug->u.a[z->y_id].circ], ug->u.a[z->y_id].len, z->y_pos_s, z->y_pos_e+1,
		// 	z->non_homopolymer_errors, (uint32_t)z->w_list.n);
		// 	uint64_t k;
		// 	for (k = 0; k < z->w_list.n; k++) {
		// 		m = &(z->w_list.a[k]);
		// 		fprintf(stderr, "k::%ld[M::%s]\tutg%.6u%c\twx::[%u,\t%u)\t%c\tutg%.6u%c\twy::[%u,\t%u)\terr::%d\tualn::%u\test::%u\n", k, __func__, 
		// 		z->x_id+1, "lc"[ug->u.a[z->x_id].circ], m->x_start, m->x_end+1,
		// 		"+-"[z->y_pos_strand], 
		// 		z->y_id+1, "lc"[ug->u.a[z->y_id].circ], m->y_start, m->y_end+1, m->error, 
		// 		(is_ualn_win((*m))), (is_est_aln((*m))));
		// 	}
		// 	fprintf(stderr, "[M::%s]\tutg%.6ul\tutg%.6ul\terr0::%ld\terr1::%ld\ttot::%ld\n", __func__, 
		// 	z->x_id+1, z->y_id+1, err0, err1, tot);
		// 	fprintf(stderr, "[M::%s]\tutg%.6ul\tq0l::%lu\tt0l::%lu\te0l::%lu\tutg%.6ul\tq1l::%lu\tt1l::%lu\te1l::%lu\n", __func__, 
		// 		z->x_id+1, *q0l, *t0l, *e0l, z->y_id+1, *q1l, *t1l, *e1l);
		// }
		assert(((*q0l) == (*q1l)) && ((*t0l) == (*t1l)) && (err0 == err1));
		assert((mask_win) || (err0 == tot));
		return 0;
	}

	// if(!(err0+err1 < tot)) {
	// 	fprintf(stderr, "[M::%s]\tutg%.6ul\tutg%.6ul\terr0::%ld\terr1::%ld\ttot::%ld\n", __func__, 
	// 	z->x_id+1, z->y_id+1, err0, err1, tot);
	// 	fprintf(stderr, "[M::%s]\tutg%.6ul\tq0l::%lu\tt0l::%lu\te0l::%lu\tutg%.6ul\tq1l::%lu\tt1l::%lu\te1l::%lu\n", __func__, 
	// 		z->x_id+1, *q0l, *t0l, *e0l, z->y_id+1, *q1l, *t1l, *e1l);
	// }
	
	assert(err0+err1 < tot);
	return tot-(err0+err1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %r9, %r15
movq %rcx, 0x28(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %r13
movq 0x1a8(%rsp), %rdi
movq 0x1a0(%rsp), %rdx
movq 0x198(%rsp), %rsi
movq 0x190(%rsp), %r10
movl 0x1c(%r13), %eax
movq $0x0, 0x50(%rsp)
movl %eax, 0x4(%rsp)
testl %eax, %eax
setne %al
movl 0x30(%r13), %ecx
testq %rcx, %rcx
je 0x17f20a
movq 0x48(%r13), %r9
orq $-0x1, (%rdi)
orq $-0x1, (%rdx)
orq $-0x1, (%rsi)
orq $-0x1, (%r10)
orq $-0x1, (%r15)
orq $-0x1, (%r8)
movq %r9, 0x48(%rsp)
testq %r9, %r9
je 0x17f237
movq %rcx, 0x78(%rsp)
andq $0x0, (%r10)
andq $0x0, (%r15)
movq %r8, 0x38(%rsp)
andq $0x0, (%r8)
movq 0x50(%rsp), %rcx
movb %al, %cl
movq %rcx, 0x50(%rsp)
movq 0x58(%r13), %rax
movslq (%rax), %rcx
movslq 0x8(%rax), %rbx
movl 0x4(%r13), %edx
movb $0x1, %al
movq %rcx, %r14
subq %rdx, %r14
jne 0x17f1d6
movl 0x14(%r13), %eax
cmpq %rax, %rbx
setne %al
cmpq $0x0, 0x8(%rsp)
movq %r13, 0x18(%rsp)
movq %r15, 0x40(%rsp)
je 0x17f241
testb %al, %al
je 0x17f241
cmpl $0x0, 0x4(%rsp)
je 0x17f24a
movq 0x28(%rsp), %rsi
movq %rsi, %r12
subq %rbx, %r12
movl 0x14(%r13), %eax
movq %rsi, %rbx
subq %rax, %rbx
jmp 0x17f24e
movl 0x8(%r13), %eax
subl 0x4(%r13), %eax
incl %eax
movq %rax, (%rsi)
movq %rax, (%r8)
movl 0x18(%r13), %ecx
subl 0x14(%r13), %ecx
incl %ecx
movq %rcx, (%rdx)
movq %rcx, (%r15)
movq %rax, (%rdi)
movq %rax, (%r10)
xorl %eax, %eax
jmp 0x17f809
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
jmp 0x17f809
testb %al, %al
je 0x17f286
jmp 0x17f4b4
movl 0x14(%r13), %r12d
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r12, %r8
movq %rbx, %r9
callq 0x1a3311
testq %rax, %rax
je 0x17f4b4
movq 0x38(%rsp), %rax
addq %r14, (%rax)
subq %r12, %rbx
addq %rbx, (%r15)
movq 0x190(%rsp), %rax
andq $0x0, (%rax)
movq $0x0, 0x10(%rsp)
movq 0x48(%rsp), %rax
testq %rax, %rax
movl $0x0, %r14d
cmovgq %rax, %r14
pushq $0x1c
popq %r15
movq $0x0, 0x30(%rsp)
subq $0x1, %r14
jb 0x17f4c6
movq 0x58(%r13), %rdx
cmpl $0x0, 0x4(%rsp)
je 0x17f2e0
movslq -0x10(%rdx,%r15), %rax
movq %rax, %rbx
notq %rbx
movq 0x28(%rsp), %r12
addq %r12, %rbx
movslq -0x14(%rdx,%r15), %rcx
subq %rcx, %r12
jmp 0x17f2f3
movl -0x14(%rdx,%r15), %ecx
movslq %ecx, %rbx
movslq -0x10(%rdx,%r15), %rax
movq %rax, %r12
incq %r12
movslq -0x18(%rdx,%r15), %rdi
leaq 0x1(%rdi), %rbp
movl -0x1c(%rdx,%r15), %r8d
movslq %r8d, %r13
movswl -0x8(%rdx,%r15), %esi
movl (%rdx,%r15), %r9d
cmpl $0x7fff, %esi           # imm = 0x7FFF
jne 0x17f329
testl %r9d, %r9d
jne 0x17f396
xorl %r9d, %r9d
cmpw $0x0, -0xa(%rdx,%r15)
jns 0x17f396
jmp 0x17f33c
testl %r9d, %r9d
setne %r10b
testw %si, %si
setle %r11b
orb %r10b, %r11b
jne 0x17f38d
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x1a3311
testq %rax, %rax
je 0x17f86f
subq %r13, %rbp
movq 0x38(%rsp), %rax
addq %rbp, (%rax)
subq %rbx, %r12
movq 0x40(%rsp), %rax
addq %r12, (%rax)
xorl %ebp, %ebp
pushq $0x1
popq %rax
movq %rax, 0x30(%rsp)
movq 0x190(%rsp), %rax
jmp 0x17f4a3
testw %si, %si
je 0x17f482
movl -0x4(%rdx,%r15), %edx
addq %rdx, %rdx
movq 0x18(%rsp), %r13
addq 0x70(%r13), %rdx
movq %rdx, 0x138(%rsp)
movl %r9d, %edx
movq %rdx, 0x130(%rsp)
movq %rdx, 0x128(%rsp)
movl %r8d, 0x9c(%rsp)
movl %edi, 0xa0(%rsp)
movl %ecx, 0x90(%rsp)
movl %eax, 0x94(%rsp)
movl %esi, 0xac(%rsp)
movl %esi, 0xa8(%rsp)
leaq 0x80(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x28(%rsp), %r8
leaq 0x70(%rsp), %r9
pushq $0x0
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
leaq 0x80(%rsp), %rax
pushq %rax
callq 0x17ee6e
addq $0x20, %rsp
movq 0x70(%rsp), %rsi
movq 0x38(%rsp), %rcx
addq %rsi, (%rcx)
movq 0x68(%rsp), %rdx
movq 0x40(%rsp), %rcx
addq %rdx, (%rcx)
movq 0x60(%rsp), %rcx
xorq %rcx, %rsi
movq %rcx, %rdi
xorq %rdx, %rdi
orq %rsi, %rdi
movq 0x190(%rsp), %rsi
jne 0x17f469
movq (%rsi), %rcx
addq %rdx, %rcx
movq 0x10(%rsp), %rdx
addq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rsi)
testq %rax, %rax
jne 0x17f4ab
jmp 0x17f4c6
subq %r13, %rbp
movq 0x38(%rsp), %rax
addq %rbp, (%rax)
subq %rbx, %r12
movq 0x40(%rsp), %rax
addq %r12, (%rax)
movq 0x190(%rsp), %rax
addq (%rax), %rbp
movq %rbp, (%rax)
movq 0x18(%rsp), %r13
addq $0x20, %r15
jmp 0x17f2ae
movq $0x0, 0x10(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x1a8(%rsp), %rax
andq $0x0, (%rax)
movq 0x1a0(%rsp), %rax
andq $0x0, (%rax)
movq 0x198(%rsp), %rax
andq $0x0, (%rax)
movq 0x48(%rsp), %r15
shlq $0x5, %r15
movq 0x58(%r13), %rax
movslq -0x1c(%r15,%rax), %rdx
incq %rdx
movslq -0x14(%r15,%rax), %rax
incq %rax
movl 0x8(%r13), %ecx
incl %ecx
movq %rcx, %r14
subq %rdx, %r14
jne 0x17f52a
movl 0x18(%r13), %edi
incl %edi
xorl %esi, %esi
cmpq %rdi, %rax
setne %dil
sete %sil
jmp 0x17f52f
movb $0x1, %dil
xorl %esi, %esi
cmpq $0x0, 0x8(%rsp)
je 0x17f5a3
testb %dil, %dil
je 0x17f5a3
movl 0x18(%r13), %esi
incl %esi
movq 0x28(%rsp), %r12
movq %r12, %rbx
subq %rsi, %rbx
subq %rax, %r12
cmpl $0x0, 0x4(%rsp)
cmoveq %rax, %rbx
cmoveq %rsi, %r12
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %r8
movq %r12, %r9
callq 0x1a3311
testq %rax, %rax
je 0x17f7c9
movq 0x198(%rsp), %rax
addq %r14, (%rax)
subq %rbx, %r12
movq 0x1a0(%rsp), %rax
addq %r12, (%rax)
movq 0x1a8(%rsp), %rax
andq $0x0, (%rax)
pushq $0x1
popq %rsi
cmpq $0x0, 0x48(%rsp)
setg %al
andb %sil, %al
cmpb $0x1, %al
jne 0x17f7c9
addq $-0x4, %r15
xorl %r14d, %r14d
movq 0x58(%r13), %rdx
cmpl $0x0, 0x4(%rsp)
je 0x17f5e6
movslq -0x10(%rdx,%r15), %rax
movq %rax, %rbx
notq %rbx
movq 0x28(%rsp), %r12
addq %r12, %rbx
movslq -0x14(%rdx,%r15), %rcx
subq %rcx, %r12
jmp 0x17f5f9
movl -0x14(%rdx,%r15), %ecx
movslq %ecx, %rbx
movslq -0x10(%rdx,%r15), %rax
movq %rax, %r12
incq %r12
movslq -0x18(%rdx,%r15), %rdi
leaq 0x1(%rdi), %rbp
movl -0x1c(%rdx,%r15), %r8d
movslq %r8d, %r13
movswl -0x8(%rdx,%r15), %esi
movl (%rdx,%r15), %r9d
cmpl $0x7fff, %esi           # imm = 0x7FFF
jne 0x17f62f
testl %r9d, %r9d
jne 0x17f691
xorl %r9d, %r9d
cmpw $0x0, -0xa(%rdx,%r15)
jns 0x17f691
jmp 0x17f639
testw %si, %si
jle 0x17f688
testl %r9d, %r9d
jne 0x17f688
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x1a3311
testq %rax, %rax
je 0x17f879
subq %r13, %rbp
movq 0x198(%rsp), %rax
addq %rbp, (%rax)
subq %rbx, %r12
movq 0x1a0(%rsp), %rax
addq %r12, (%rax)
xorl %ebp, %ebp
pushq $0x1
popq %rax
movq %rax, 0x30(%rsp)
jmp 0x17f7a8
testw %si, %si
je 0x17f781
movl -0x4(%rdx,%r15), %edx
addq %rdx, %rdx
movq 0x18(%rsp), %r13
addq 0x70(%r13), %rdx
movq %rdx, 0x138(%rsp)
movl %r9d, %edx
movq %rdx, 0x130(%rsp)
movq %rdx, 0x128(%rsp)
movl %r8d, 0x9c(%rsp)
movl %edi, 0xa0(%rsp)
movl %ecx, 0x90(%rsp)
movl %eax, 0x94(%rsp)
movl %esi, 0xac(%rsp)
movl %esi, 0xa8(%rsp)
leaq 0x80(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x28(%rsp), %r8
leaq 0x70(%rsp), %r9
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
leaq 0x80(%rsp), %rax
pushq %rax
callq 0x17ee6e
addq $0x20, %rsp
movq 0x70(%rsp), %rsi
movq 0x198(%rsp), %rcx
addq %rsi, (%rcx)
movq 0x68(%rsp), %rdx
movq 0x1a0(%rsp), %rcx
addq %rdx, (%rcx)
movq 0x60(%rsp), %rcx
xorq %rcx, %rsi
movq %rcx, %rdi
xorq %rdx, %rdi
orq %rsi, %rdi
jne 0x17f76a
movq 0x1a8(%rsp), %rcx
movq (%rcx), %rcx
addq %rdx, %rcx
addq 0x58(%rsp), %r14
movq 0x1a8(%rsp), %rdx
movq %rcx, (%rdx)
testq %rax, %rax
jne 0x17f7b8
jmp 0x17f7cc
subq %r13, %rbp
movq 0x198(%rsp), %rax
addq %rbp, (%rax)
subq %rbx, %r12
movq 0x1a0(%rsp), %rax
addq %r12, (%rax)
movq 0x1a8(%rsp), %rax
addq (%rax), %rbp
movq 0x1a8(%rsp), %rax
movq %rbp, (%rax)
movq 0x18(%rsp), %r13
addq $-0x20, %r15
decq 0x48(%rsp)
jg 0x17f5be
jmp 0x17f7cc
xorl %r14d, %r14d
movq 0x38(%rsp), %rax
movq (%rax), %rax
movl 0x8(%r13), %ecx
subl 0x4(%r13), %ecx
incl %ecx
cmpq %rcx, %rax
jb 0x17f7fa
movq 0x40(%rsp), %rcx
movq (%rcx), %rcx
movl 0x18(%r13), %edx
subl 0x14(%r13), %edx
incl %edx
cmpq %rdx, %rcx
jae 0x17f81b
addq 0x10(%rsp), %r14
movq 0x78(%rsp), %rax
subq %r14, %rax
jle 0x17f883
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x198(%rsp), %rdx
cmpq (%rdx), %rax
movq 0x10(%rsp), %rdx
jne 0x17f8a2
movq 0x1a0(%rsp), %rax
cmpq (%rax), %rcx
jne 0x17f8a2
cmpq %r14, %rdx
jne 0x17f8a2
xorl %eax, %eax
cmpq $0x0, 0x30(%rsp)
jne 0x17f809
cmpq 0x78(%rsp), %rdx
je 0x17f809
leaq 0x7450e(%rip), %rdi     # 0x1f3d65
leaq 0x722c5(%rip), %rsi     # 0x1f1b23
leaq 0x74465(%rip), %rcx     # 0x1f3cca
movl $0x2ee3, %edx           # imm = 0x2EE3
callq 0x2110
movq 0x18(%rsp), %r13
jmp 0x17f4c6
movq 0x18(%rsp), %r13
jmp 0x17f7cc
leaq 0x744f7(%rip), %rdi     # 0x1f3d81
leaq 0x72292(%rip), %rsi     # 0x1f1b23
leaq 0x74432(%rip), %rcx     # 0x1f3cca
movl $0x2eee, %edx           # imm = 0x2EEE
callq 0x2110
leaq 0x743e6(%rip), %rdi     # 0x1f3c8f
leaq 0x72273(%rip), %rsi     # 0x1f1b23
leaq 0x74413(%rip), %rcx     # 0x1f3cca
movl $0x2ee2, %edx           # imm = 0x2EE2
callq 0x2110