// File: /workspace/github_c_makefile_star2_O0/lh3[P]minigraph/asm-call.c
// Function: mg_call_asm
void mg_call_asm(const gfa_t *g, int32_t n_seq, const mg_bseq1_t *seq, mg_gchains_t *const *gcs, int32_t min_mapq, int32_t min_blen)
{
	int32_t i, j, t, max_acnt, *soff, *qoff, n_bb, m_ovlp = 0, *ovlp = 0;
	mg_intv_t *sintv, *qintv;
	double a_dens;
	gfa_bubble_t *bb;
	callaux_t *ca;
	bbaux_t *ba;
	kstring_t out = {0,0,0};

	max_acnt = mg_gc_index(0, min_mapq, min_blen>>1, min_blen, g, n_seq, gcs, &a_dens, &soff, &qoff, &sintv, &qintv);
	if (max_acnt == 0) return;

	bb = gfa_bubble(g, &n_bb);
	GFA_CALLOC(ba, n_bb);
	GFA_CALLOC(ca, g->n_seg);
	for (i = 0; i < n_bb; ++i) {
		gfa_bubble_t *b = &bb[i];
		assert(b->n_seg >= 2);
		for (j = 0; j < b->n_seg; ++j)
			ca[b->v[j]>>1].bid = i;
		ca[b->v[0]>>1].is_stem = ca[b->v[b->n_seg-1]>>1].is_stem = 1;
		ca[b->v[0]>>1].is_src = 1;
		ba[i].t = -1;
	}

	for (t = 0; t < n_seq; ++t) {
		const mg_gchains_t *gt = gcs[t];
		for (i = 0; i < gt->n_gc; ++i) {
			const mg_gchain_t *gc = &gt->gc[i];
			int32_t st = -1;
			for (j = 1; j < gc->cnt; ++j) {
				const mg_llchain_t *lc = &gt->lc[gc->off + j];
				if (!ca[lc->v>>1].is_stem && ca[(lc-1)->v>>1].is_stem) {
					st = gc->off + j;
				} else if ((ca[lc->v>>1].is_stem && !ca[(lc-1)->v>>1].is_stem && st > 0) || (ca[lc->v>>1].is_stem && ca[(lc-1)->v>>1].is_stem)) {
					int32_t n_ovlp, k, en = gc->off + j, qs, qe, span, bid, strand, glen;
					bbaux_t *p;

					// determine the source and sink nodes
					if (ca[lc->v>>1].is_stem && ca[(lc-1)->v>>1].is_stem) { // two adjacent stems: this is a deletion
						st = gc->off + j;
					} else {
						assert(en > st);
					}

					// test overlap on the query
					span = gt->a[gt->lc[st].off].y >> 32 & 0xff;
					qs = (int32_t)gt->a[gt->lc[st - 1].off + gt->lc[st - 1].cnt - 1].y + 1; // NB: it is fine even if .cnt==0
					qe = (int32_t)gt->a[gt->lc[en].off].y + 1 - span;
					n_ovlp = mg_intv_overlap(0, qoff[t+1] - qoff[t], &qintv[qoff[t]], qs, qe, &ovlp, &m_ovlp);
					if (n_ovlp > 1) continue; // overlap on the query - not orthologous

					// test overlap on the graph
					for (k = st, glen = 0; k < en; ++k) {
						const mg_llchain_t *lk = &gt->lc[k];
						int32_t seg = lk->v>>1;
						n_ovlp = mg_intv_overlap(0, soff[seg+1] - soff[seg], &sintv[soff[seg]], 0, g->seg[seg].len, &ovlp, &m_ovlp);
						glen += g->seg[seg].len;
						if (n_ovlp > 1) break; // overlap on the graph - not orthoologous
					}
					if (k < en) continue;

					// determine the bubble ID
					assert(ca[gt->lc[st-1].v>>1].is_stem && ca[gt->lc[en].v>>1].is_stem);
					if (ca[gt->lc[st-1].v>>1].bid < ca[gt->lc[en].v>>1].bid)
						strand = 1;
					else if (ca[gt->lc[st-1].v>>1].bid > ca[gt->lc[en].v>>1].bid)
						strand = -1;
					else {
						if (ca[gt->lc[st-1].v>>1].is_src + ca[gt->lc[en].v>>1].is_src != 1) {
							fprintf(stderr, "[W::%s] type-1 folded inversion alignment around %c%s <=> %s:%d-%d\n",
									__func__, "><"[gt->lc[st].v&1], g->seg[gt->lc[st].v>>1].name, seq[t].name, qs, qe);
							continue;
						}
						if (ca[gt->lc[st-1].v>>1].is_src) strand = 1;
						else strand = -1;
					}
					bid = strand > 0? ca[gt->lc[st-1].v>>1].bid : ca[gt->lc[en].v>>1].bid;

					// attach the bubble
					for (k = st; k < en; ++k) // check consistency
						if (ca[gt->lc[k].v>>1].bid != bid)
							break;
					if (k != en) { // this may happen around an inversion towards the end of an alignment chain
						fprintf(stderr, "[W::%s] type-2 folded inversion alignment around %c%s <=> %s:%d-%d\n",
								__func__, "><"[gt->lc[st].v&1], g->seg[gt->lc[st].v>>1].name, seq[t].name, qs, qe);
						continue;
					}
					p = &ba[bid];
					p->t = t, p->i = i, p->st = st, p->en = en, p->strand = strand, p->qs = qs, p->qe = qe, p->glen = glen;
				}
			}
		}
	}

	for (i = 0; i < n_bb; ++i) {
		gfa_bubble_t *b = &bb[i];
		bbaux_t *a = &ba[i];
		const mg_gchains_t *gt = gcs[a->t];
		out.l = 0;
		mg_sprintf_lite(&out, "%s\t%d\t%d\t%c%s\t%c%s\t", g->sseq[b->snid].name, b->ss, b->se, "><"[b->v[0]&1], g->seg[b->v[0]>>1].name,
						"><"[b->v[b->n_seg-1]&1], g->seg[b->v[b->n_seg-1]>>1].name);
		if (a->t >= 0) {
			assert(a->strand != 0);
			if (a->st == a->en) {
				mg_sprintf_lite(&out, "*");
			} else if (a->strand > 0) {
				for (j = a->st; j < a->en; ++j)
					mg_sprintf_lite(&out, "%c%s", "><"[gt->lc[j].v&1], g->seg[gt->lc[j].v>>1].name);
			} else {
				for (j = a->en - 1; j >= a->st; --j)
					mg_sprintf_lite(&out, "%c%s", "<>"[gt->lc[j].v&1], g->seg[gt->lc[j].v>>1].name);
			}
			mg_sprintf_lite(&out, ":%d:%c:%s:%d:%d", a->glen, a->strand > 0? '+' : '-', seq[a->t].name, a->qs, a->qe);
		} else {
			mg_sprintf_lite(&out, ".");
		}
		puts(out.s);
	}

	free(ba); free(ca);
	free(soff); free(qoff); free(sintv); free(qintv);
	for (i = 0; i < n_bb; ++i) free(bb[i].v);
	free(bb);
	free(out.s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdi, -0x20(%rbp)
movl %esi, -0x24(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movl %r8d, -0x3c(%rbp)
movl %r9d, -0x40(%rbp)
movl $0x0, -0x68(%rbp)
movq $0x0, -0x70(%rbp)
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x2190
movl -0x3c(%rbp), %esi
movl -0x40(%rbp), %edx
sarl %edx
movl -0x40(%rbp), %ecx
movq -0x20(%rbp), %r8
movl -0x24(%rbp), %r9d
movq -0x38(%rbp), %r15
xorl %eax, %eax
movl %eax, %edi
leaq -0x88(%rbp), %r14
leaq -0x58(%rbp), %rbx
leaq -0x60(%rbp), %r11
leaq -0x78(%rbp), %r10
leaq -0x80(%rbp), %rax
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x339d0
movl %eax, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
jne 0x38beb
jmp 0x39ba5
movq -0x20(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0xe900
movq %rax, -0x90(%rbp)
movslq -0x64(%rbp), %rdi
movl $0x20, %esi
callq 0x21e0
movq %rax, -0xa0(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x21e0
movq %rax, -0x98(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x38d75
movq -0x90(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
cmpl $0x2, 0x18(%rax)
jl 0x38c69
jmp 0x38c88
leaq 0x5a07(%rip), %rdi      # 0x3e677
leaq 0x5a0e(%rip), %rsi      # 0x3e685
movl $0x27, %edx
leaq 0x5a0d(%rip), %rcx      # 0x3e690
callq 0x2170
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0xb8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x38ccc
movl -0x44(%rbp), %edx
movq -0x98(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movslq -0x48(%rbp), %rsi
movl (%rcx,%rsi,4), %ecx
shrl %ecx
movl %ecx, %ecx
movl %edx, (%rax,%rcx,8)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x38c8f
movq -0x98(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0xb8(%rbp), %rdx
movl 0x18(%rdx), %edx
subl $0x1, %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %dl
andb $-0x10, %dl
orb $0x1, %dl
movb %dl, 0x4(%rax,%rcx,8)
movq -0x98(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl (%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %dl
andb $-0x10, %dl
orb $0x1, %dl
movb %dl, 0x4(%rax,%rcx,8)
movq -0x98(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl (%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %dl
andb $0xf, %dl
orb $0x10, %dl
movb %dl, 0x4(%rax,%rcx,8)
movq -0xa0(%rbp), %rax
movslq -0x44(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x38c35
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x3975c
movq -0x38(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0xc0(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
movq -0xc0(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3974c
movq -0xc0(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x44(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movl $0xffffffff, -0xcc(%rbp) # imm = 0xFFFFFFFF
movl $0x1, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0xc8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x3973c
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movq -0xc8(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x48(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
cmpb $0x0, %al
jne 0x38e79
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl -0xc(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x38e79
movq -0xc8(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x48(%rbp), %eax
movl %eax, -0xcc(%rbp)
jmp 0x3972c
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x38ec4
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl -0xc(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
cmpb $0x0, %al
jne 0x38ec4
cmpl $0x0, -0xcc(%rbp)
jg 0x38f12
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x3972a
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl -0xc(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x3972a
movq -0xc8(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x48(%rbp), %eax
movl %eax, -0xe4(%rbp)
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x38f80
movq -0x98(%rbp), %rax
movq -0xd8(%rbp), %rcx
movl -0xc(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x38f80
movq -0xc8(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x48(%rbp), %eax
movl %eax, -0xcc(%rbp)
jmp 0x38fb1
movl -0xe4(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jle 0x38f90
jmp 0x38faf
leaq 0x575f(%rip), %rdi      # 0x3e6f6
leaq 0x56e7(%rip), %rsi      # 0x3e685
movl $0x40, %edx
leaq 0x56e6(%rip), %rcx      # 0x3e690
callq 0x2170
jmp 0x38fb1
movq -0xc0(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0xcc(%rbp), %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xff, %rax
movl %eax, -0xf0(%rbp)
movq -0xc0(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movl -0xcc(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
addl 0x4(%rdx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
addl $0x1, %eax
movl %eax, -0xe8(%rbp)
movq -0xc0(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0xe4(%rbp), %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
addl $0x1, %eax
subl -0xf0(%rbp), %eax
movl %eax, -0xec(%rbp)
movq -0x60(%rbp), %rax
movl -0x4c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movq -0x60(%rbp), %rax
movslq -0x4c(%rbp), %rcx
subl (%rax,%rcx,4), %esi
movq -0x80(%rbp), %rdx
movq -0x60(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rdx
movl -0xe8(%rbp), %ecx
movl -0xec(%rbp), %r8d
xorl %eax, %eax
movl %eax, %edi
leaq -0x70(%rbp), %r9
leaq -0x68(%rbp), %rax
movq %rax, (%rsp)
callq 0x4220
movl %eax, -0xdc(%rbp)
cmpl $0x1, -0xdc(%rbp)
jle 0x39102
jmp 0x3972e
movl -0xcc(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl $0x0, -0xfc(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0xe4(%rbp), %eax
jge 0x39212
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0xe0(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movl 0x8(%rax), %eax
shrl %eax
movl %eax, -0x114(%rbp)
movq -0x58(%rbp), %rax
movl -0x114(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %esi
movq -0x58(%rbp), %rax
movslq -0x114(%rbp), %rcx
subl (%rax,%rcx,4), %esi
movq -0x78(%rbp), %rdx
movq -0x58(%rbp), %rax
movslq -0x114(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rdx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x114(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %r8d
xorl %eax, %eax
movl %eax, %edi
xorl %ecx, %ecx
leaq -0x70(%rbp), %r9
leaq -0x68(%rbp), %rax
movq %rax, (%rsp)
callq 0x4220
movl %eax, -0xdc(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x114(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
addl -0xfc(%rbp), %eax
movl %eax, -0xfc(%rbp)
cmpl $0x1, -0xdc(%rbp)
jle 0x391fc
jmp 0x39212
jmp 0x391fe
movl -0xe0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xe0(%rbp)
jmp 0x39118
movl -0xe0(%rbp), %eax
cmpl -0xe4(%rbp), %eax
jge 0x39225
jmp 0x3972e
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x39296
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0xe4(%rbp), %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
andb $0xf, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x39296
jmp 0x392b5
leaq 0x5461(%rip), %rdi      # 0x3e6fe
leaq 0x53e1(%rip), %rsi      # 0x3e685
movl $0x55, %edx
leaq 0x53e0(%rip), %rcx      # 0x3e690
callq 0x2170
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
movq -0x98(%rbp), %rcx
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movslq -0xe4(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
cmpl (%rcx,%rdx,8), %eax
jge 0x3931f
movl $0x1, -0xf8(%rbp)
jmp 0x394f9
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
movq -0x98(%rbp), %rcx
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movslq -0xe4(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
cmpl (%rcx,%rdx,8), %eax
jle 0x39389
movl $0xffffffff, -0xf8(%rbp) # imm = 0xFFFFFFFF
jmp 0x394f7
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
shrb $0x4, %al
movzbl %al, %eax
movq -0x98(%rbp), %rcx
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movslq -0xe4(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
movb 0x4(%rcx,%rdx,8), %cl
shrb $0x4, %cl
movzbl %cl, %ecx
addl %ecx, %eax
cmpl $0x1, %eax
je 0x394a8
movq 0xbbf6(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0xcc(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x325d(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %ecx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movslq -0xcc(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rax
movq 0x18(%rax), %r8
movq -0x30(%rbp), %rax
movslq -0x4c(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq 0x8(%rax), %r9
movl -0xe8(%rbp), %r10d
movl -0xec(%rbp), %eax
leaq 0x52ae(%rip), %rsi      # 0x3e73b
leaq 0x52eb(%rip), %rdx      # 0x3e77f
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2210
jmp 0x3972e
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movb 0x4(%rax,%rcx,8), %al
shrb $0x4, %al
cmpb $0x0, %al
je 0x394eb
movl $0x1, -0xf8(%rbp)
jmp 0x394f5
movl $0xffffffff, -0xf8(%rbp) # imm = 0xFFFFFFFF
jmp 0x394f7
jmp 0x394f9
cmpl $0x0, -0xf8(%rbp)
jle 0x39539
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movl -0xcc(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
movl %eax, -0x134(%rbp)
jmp 0x39569
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0xe4(%rbp), %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
movl %eax, -0x134(%rbp)
movl -0x134(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xcc(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0xe4(%rbp), %eax
jge 0x395d6
movq -0x98(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0xe0(%rbp), %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
cmpl -0xf4(%rbp), %eax
je 0x395c3
jmp 0x395d6
jmp 0x395c5
movl -0xe0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xe0(%rbp)
jmp 0x39581
movl -0xe0(%rbp), %eax
cmpl -0xe4(%rbp), %eax
je 0x39695
movq 0xba09(%rip), %rax      # 0x44ff8
movq (%rax), %rdi
movq -0xc0(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0xcc(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x3070(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %ecx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xc0(%rbp), %rdx
movq 0x20(%rdx), %rdx
movslq -0xcc(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
shlq $0x6, %rdx
addq %rdx, %rax
movq 0x18(%rax), %r8
movq -0x30(%rbp), %rax
movslq -0x4c(%rbp), %rdx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movq 0x8(%rax), %r9
movl -0xe8(%rbp), %r10d
movl -0xec(%rbp), %eax
leaq 0x5111(%rip), %rsi      # 0x3e78b
leaq 0x50fe(%rip), %rdx      # 0x3e77f
movl %r10d, (%rsp)
movl %eax, 0x8(%rsp)
movb $0x0, %al
callq 0x2210
jmp 0x3972e
movq -0xa0(%rbp), %rax
movslq -0xf4(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x108(%rbp)
movl -0x4c(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, (%rax)
movl -0x44(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x4(%rax)
movl -0xcc(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x8(%rax)
movl -0xe4(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0xc(%rax)
movl -0xf8(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0xe8(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x14(%rax)
movl -0xec(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0xfc(%rbp), %ecx
movq -0x108(%rbp), %rax
movl %ecx, 0x1c(%rax)
jmp 0x3972c
jmp 0x3972e
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x38de3
jmp 0x3973e
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x38da2
jmp 0x3974e
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x38d7c
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x39b1c
movq -0x90(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0xa0(%rbp), %rax
movslq -0x44(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x38(%rbp), %rax
movq -0x128(%rbp), %rcx
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x130(%rbp)
movl $0x0, -0xb0(%rbp)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x120(%rbp), %rcx
movslq (%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdx
movq -0x120(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x120(%rbp), %rax
movl 0x8(%rax), %r8d
movq -0x120(%rbp), %rax
movq 0x28(%rax), %rax
movl (%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x2e7c(%rip), %rax      # 0x3c68c
movsbl (%rax,%rsi), %r9d
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x120(%rbp), %rsi
movq 0x28(%rsi), %rsi
movl (%rsi), %esi
shrl %esi
movl %esi, %esi
shlq $0x6, %rsi
addq %rsi, %rax
movq 0x18(%rax), %r11
movq -0x120(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x120(%rbp), %rsi
movl 0x18(%rsi), %esi
subl $0x1, %esi
movslq %esi, %rsi
movl (%rax,%rsi,4), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
leaq 0x2e27(%rip), %rax      # 0x3c68c
movsbl (%rax,%rsi), %r10d
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x120(%rbp), %rsi
movq 0x28(%rsi), %rsi
movq -0x120(%rbp), %rdi
movl 0x18(%rdi), %edi
subl $0x1, %edi
movslq %edi, %rdi
movl (%rsi,%rdi,4), %esi
shrl %esi
movl %esi, %esi
shlq $0x6, %rsi
addq %rsi, %rax
movq 0x18(%rax), %rax
leaq -0xb0(%rbp), %rdi
leaq 0x4f22(%rip), %rsi      # 0x3e7cf
movq %r11, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x30d90
movq -0x128(%rbp), %rax
cmpl $0x0, (%rax)
jl 0x39aed
movq -0x128(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x398e1
jmp 0x39900
leaq 0x4efb(%rip), %rdi      # 0x3e7e3
leaq 0x4d96(%rip), %rsi      # 0x3e685
movl $0x7d, %edx
leaq 0x4d95(%rip), %rcx      # 0x3e690
callq 0x2170
movq -0x128(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x128(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jne 0x39930
leaq -0xb0(%rbp), %rdi
leaq 0x4ece(%rip), %rsi      # 0x3e7f2
movb $0x0, %al
callq 0x30d90
jmp 0x39a81
movq -0x128(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x399e0
movq -0x128(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0x128(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x399db
movq -0x130(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x48(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x2d08(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x130(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0x48(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
leaq -0xb0(%rbp), %rdi
leaq 0x446e(%rip), %rsi      # 0x3de34
movb $0x0, %al
callq 0x30d90
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x3994e
jmp 0x39a7f
movq -0x128(%rbp), %rax
movl 0xc(%rax), %eax
subl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0x128(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jl 0x39a7d
movq -0x130(%rbp), %rax
movq 0x20(%rax), %rax
movslq -0x48(%rbp), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0x4dce(%rip), %rax      # 0x3e7f4
movsbl (%rax,%rcx), %edx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x130(%rbp), %rcx
movq 0x20(%rcx), %rcx
movslq -0x48(%rbp), %rsi
imulq $0x14, %rsi, %rsi
addq %rsi, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
leaq -0xb0(%rbp), %rdi
leaq 0x43cc(%rip), %rsi      # 0x3de34
movb $0x0, %al
callq 0x30d90
movl -0x48(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x399f0
jmp 0x39a7f
jmp 0x39a81
movq -0x128(%rbp), %rax
movl 0x1c(%rax), %edx
movq -0x128(%rbp), %rax
movl 0x10(%rax), %esi
movl $0x2d, %ecx
movl $0x2b, %eax
cmpl $0x0, %esi
cmovgl %eax, %ecx
movq -0x30(%rbp), %rax
movq -0x128(%rbp), %rsi
movslq (%rsi), %rsi
imulq $0x28, %rsi, %rsi
addq %rsi, %rax
movq 0x8(%rax), %r8
movq -0x128(%rbp), %rax
movl 0x14(%rax), %r9d
movq -0x128(%rbp), %rax
movl 0x18(%rax), %eax
leaq -0xb0(%rbp), %rdi
leaq 0x4d16(%rip), %rsi      # 0x3e7f7
movl %eax, (%rsp)
movb $0x0, %al
callq 0x30d90
jmp 0x39b02
leaq -0xb0(%rbp), %rdi
leaq 0x257f(%rip), %rsi      # 0x3c07a
movb $0x0, %al
callq 0x30d90
movq -0xa8(%rbp), %rdi
callq 0x2090
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x39763
movq -0xa0(%rbp), %rdi
callq 0x2040
movq -0x98(%rbp), %rdi
callq 0x2040
movq -0x58(%rbp), %rdi
callq 0x2040
movq -0x60(%rbp), %rdi
callq 0x2040
movq -0x78(%rbp), %rdi
callq 0x2040
movq -0x80(%rbp), %rdi
callq 0x2040
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x39b8d
movq -0x90(%rbp), %rax
movslq -0x44(%rbp), %rcx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
callq 0x2040
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x39b5f
movq -0x90(%rbp), %rdi
callq 0x2040
movq -0xa8(%rbp), %rdi
callq 0x2040
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)