// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rcx, %r12
movq %rdx, 0x90(%rsp)
movl %esi, %ebx
movq %rdi, %r13
movl $0x0, 0x3c(%rsp)
movq $0x0, 0xd0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movl %r9d, %edx
sarl %edx
leaq 0xc0(%rsp), %rax
leaq 0xc8(%rsp), %r10
leaq 0xd8(%rsp), %r11
leaq 0xe0(%rsp), %r14
leaq 0xf0(%rsp), %r15
xorl %edi, %edi
movl %r8d, %esi
movl %r9d, %ecx
movq %r13, %r8
movl %ebx, %r9d
pushq %rax
pushq %r10
pushq %r11
pushq %r14
pushq %r15
movq %r12, 0xc0(%rsp)
pushq %r12
callq 0x21984
addq $0x30, %rsp
testl %eax, %eax
je 0x258d9
leaq 0xc(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0xafac
movq %rax, 0x40(%rsp)
movslq (%r14), %r14
movl $0x20, %esi
movq %r14, %rdi
callq 0x21e0
movq %rax, 0x28(%rsp)
movl 0x4(%r13), %edi
movl $0x8, %esi
callq 0x21e0
movq %rax, %rbp
testq %r14, %r14
jle 0x25108
xorl %eax, %eax
leaq (%rax,%rax,8), %rcx
movq 0x40(%rsp), %rsi
movslq 0x18(%rsi,%rcx,8), %rdx
cmpq $0x2, %rdx
jl 0x25929
leaq (%rsi,%rcx,8), %rcx
movq 0x28(%rcx), %rcx
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
shrl %edi
movl %eax, (%rbp,%rdi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x250bc
movl -0x4(%rcx,%rdx,4), %edx
shrl %edx
movb 0x4(%rbp,%rdx,8), %sil
andb $-0x10, %sil
incb %sil
movb %sil, 0x4(%rbp,%rdx,8)
movl (%rcx), %ecx
shrl %ecx
movb $0x11, 0x4(%rbp,%rcx,8)
movq %rax, %rcx
shlq $0x5, %rcx
movq 0x28(%rsp), %rdx
movl $0xffffffff, (%rdx,%rcx) # imm = 0xFFFFFFFF
incq %rax
cmpq %r14, %rax
jne 0x2509a
testl %ebx, %ebx
movq %r13, 0x10(%rsp)
movq %rbp, 0x70(%rsp)
jle 0x255c1
movl %ebx, %eax
movq %rax, 0xe8(%rsp)
xorl %r14d, %r14d
movq 0x98(%rsp), %rax
movq (%rax,%r14,8), %rax
movq %rax, 0x18(%rsp)
movl 0x8(%rax), %eax
testl %eax, %eax
jle 0x255ab
leaq (%r14,%r14,4), %rcx
movq 0x90(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
addq $0x8, %rcx
movq %rcx, 0xa0(%rsp)
xorl %edx, %edx
movq %r14, 0xb0(%rsp)
movq 0x18(%rsp), %rcx
movq 0x18(%rcx), %rbx
imulq $0x68, %rdx, %rcx
cmpl $0x2, 0xc(%rbx,%rcx)
jl 0x2559c
movq %rdx, 0xa8(%rsp)
addq %rcx, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x1, %r15d
movq %rbx, 0x48(%rsp)
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rcx
movl 0x8(%rbx), %r8d
leal (%r8,%r15), %edi
movslq %edi, %r9
leaq (%r9,%r9,4), %r12
movl -0xc(%rcx,%r12,4), %edx
movl 0x8(%rcx,%r12,4), %esi
shrl %esi
shrl %edx
testb $0xf, 0x4(%rbp,%rsi,8)
movb 0x4(%rbp,%rdx,8), %dl
je 0x251e6
testb $0xf, %dl
jne 0x251f1
testl %eax, %eax
jle 0x251f1
cmpl %eax, %edi
jle 0x2590a
movl %eax, %r9d
movl %eax, %r13d
jmp 0x251fd
testb $0xf, %dl
cmovnel %edi, %eax
jmp 0x254bf
movl %edi, %r13d
testb $0xf, %dl
je 0x254bf
movq %r8, 0x30(%rsp)
movl %edi, 0x58(%rsp)
leaq (%rcx,%r12,4), %rax
movq 0x18(%rsp), %rdx
movq 0x28(%rdx), %rdx
movq %r9, 0x50(%rsp)
leaq (%r9,%r9,4), %rsi
movq %rsi, 0x20(%rsp)
movslq (%rcx,%rsi,4), %rsi
shlq $0x4, %rsi
movzbl 0xc(%rdx,%rsi), %esi
leal -0x1(%r13), %edi
movslq %edi, %rdi
leaq (%rdi,%rdi,4), %r8
movslq (%rcx,%r8,4), %rdi
movq %r8, 0x88(%rsp)
movslq 0x4(%rcx,%r8,4), %rcx
addq %rdi, %rcx
shlq $0x4, %rcx
movl -0x8(%rdx,%rcx), %ecx
incl %ecx
movslq (%rax), %rax
shlq $0x4, %rax
movl 0x8(%rdx,%rax), %r8d
subl %esi, %r8d
incl %r8d
movq 0xd8(%rsp), %rax
movl 0x4(%rax,%r14,4), %esi
movslq (%rax,%r14,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0xc0(%rsp), %rdx
subq $0x8, %rsp
xorl %edi, %edi
movq %rcx, 0x88(%rsp)
movq %r8, 0x80(%rsp)
leaq 0xd8(%rsp), %r9
leaq 0x44(%rsp), %rax
pushq %rax
callq 0x3e98
addq $0x10, %rsp
cmpl $0x1, %eax
jle 0x252c2
movl %r13d, %eax
jmp 0x254bf
xorl %ebx, %ebx
movq %r13, 0xb8(%rsp)
cmpl 0x58(%rsp), %r13d
jge 0x25371
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
leaq 0x8(,%rcx,4), %r14
movq 0x50(%rsp), %rcx
movl %ecx, %ebp
subl 0x30(%rsp), %ebp
xorl %ebx, %ebx
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rcx
movl (%rcx,%r14), %r13d
shrl %r13d
movq 0xe0(%rsp), %rcx
movl 0x4(%rcx,%r13,4), %esi
movslq (%rcx,%r13,4), %rdx
subl %edx, %esi
shlq $0x4, %rdx
addq 0xc8(%rsp), %rdx
shlq $0x6, %r13
movl (%rax,%r13), %r8d
subq $0x8, %rsp
xorl %edi, %edi
xorl %ecx, %ecx
leaq 0xd8(%rsp), %r9
leaq 0x44(%rsp), %rax
pushq %rax
callq 0x3e98
addq $0x10, %rsp
cmpl $0x1, %eax
jg 0x254a5
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
addl (%rax,%r13), %ebx
addq $0x14, %r14
incl %ebp
cmpl %ebp, %r15d
jne 0x252fa
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x88(%rsp), %rcx
movl 0x8(%rax,%rcx,4), %edx
movl %edx, %r8d
shrl %r8d
movq 0x70(%rsp), %rbp
movb 0x4(%rbp,%r8,8), %dil
testb $0xf, %dil
je 0x258eb
movl 0x8(%rax,%r12,4), %esi
movl %esi, %r10d
shrl %r10d
movb 0x4(%rbp,%r10,8), %r9b
testb $0xf, %r9b
je 0x258eb
movl (%rbp,%r10,8), %r11d
movl $0x1, %ecx
cmpl %r11d, (%rbp,%r8,8)
movq 0xb0(%rsp), %r14
movq 0xb8(%rsp), %r12
jl 0x25415
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %r10, %r8
jg 0x25415
movl %edi, %ecx
shrb $0x4, %cl
shrb $0x4, %r9b
addb %cl, %r9b
cmpb $0x1, %r9b
jne 0x2551c
cmpb $0x10, %dil
movl $0x0, %ecx
sbbl %ecx, %ecx
cmpb $0x10, %dil
cmovael %edx, %esi
orl $0x1, %ecx
shrl %esi
movq %rsi, %r8
movslq (%rbp,%r8,8), %rdx
movl %r12d, %esi
movl 0x58(%rsp), %r9d
cmpl %r9d, %r12d
jge 0x2545b
movq 0x20(%rsp), %rsi
leaq (%rax,%rsi,4), %rdi
addq $0x8, %rdi
movq 0x30(%rsp), %r10
addl %r15d, %r10d
movq 0x50(%rsp), %rsi
movl (%rdi), %r8d
shrl %r8d
cmpl %edx, (%rbp,%r8,8)
jne 0x2545b
incl %esi
addq $0x14, %rdi
cmpl %esi, %r10d
jne 0x25441
jmp 0x25460
cmpl %r9d, %esi
jne 0x254d1
shlq $0x5, %rdx
movq 0x28(%rsp), %rax
movl %r14d, (%rax,%rdx)
movq 0xa8(%rsp), %rsi
movl %esi, 0x4(%rax,%rdx)
movl %r12d, 0x8(%rax,%rdx)
movl %r9d, 0xc(%rax,%rdx)
movl %ecx, 0x10(%rax,%rdx)
movq 0x80(%rsp), %rcx
movl %ecx, 0x14(%rax,%rdx)
movq 0x78(%rsp), %rcx
movl %ecx, 0x18(%rax,%rdx)
movl %ebx, 0x1c(%rax,%rdx)
movl %r12d, %eax
jmp 0x254ba
movq 0xb8(%rsp), %rax
movq 0x70(%rsp), %rbp
movq 0xb0(%rsp), %r14
movq 0x48(%rsp), %rbx
incl %r15d
cmpl 0xc(%rbx), %r15d
jl 0x2519c
jmp 0x25587
movq 0xcb20(%rip), %rcx      # 0x31ff8
movq (%rcx), %rdi
movq 0x20(%rsp), %rcx
movl 0x8(%rax,%rcx,4), %eax
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x31ba(%rip), %rdx      # 0x286aa
movsbl (%rcx,%rdx), %ecx
movq 0x10(%rsp), %rdx
movq 0x10(%rdx), %rdx
shrl %eax
shlq $0x6, %rax
movq 0x18(%rdx,%rax), %r8
movq 0xa0(%rsp), %rax
movq (%rax), %r9
leaq 0x53c9(%rip), %rsi      # 0x2a8e3
jmp 0x25565
movq 0xcad5(%rip), %rcx      # 0x31ff8
movq (%rcx), %rdi
movq 0x20(%rsp), %rcx
movl 0x8(%rax,%rcx,4), %eax
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x316f(%rip), %rdx      # 0x286aa
movsbl (%rcx,%rdx), %ecx
movq 0x10(%rsp), %rdx
movq 0x10(%rdx), %rdx
shrl %eax
shlq $0x6, %rax
movq 0x18(%rdx,%rax), %r8
movq 0xa0(%rsp), %rax
movq (%rax), %r9
leaq 0x532e(%rip), %rsi      # 0x2a893
leaq 0x536b(%rip), %rdx      # 0x2a8d7
xorl %eax, %eax
pushq 0x78(%rsp)
pushq 0x88(%rsp)
callq 0x2210
addq $0x10, %rsp
jmp 0x254a0
movq 0x18(%rsp), %rax
movl 0x8(%rax), %eax
movq 0x10(%rsp), %r13
movq 0xa8(%rsp), %rdx
incq %rdx
movslq %eax, %rcx
cmpq %rcx, %rdx
jl 0x25169
incq %r14
cmpq 0xe8(%rsp), %r14
jne 0x25127
movl 0xc(%rsp), %r14d
testl %r14d, %r14d
jle 0x25851
xorl %ebp, %ebp
leaq (,%rbp,8), %rax
addq %rbp, %rax
movq %rbp, 0x18(%rsp)
shlq $0x5, %rbp
movq 0x28(%rsp), %rcx
movslq (%rcx,%rbp), %r12
movq 0x98(%rsp), %rcx
movq (%rcx,%r12,8), %rcx
movq %rcx, 0x30(%rsp)
movl $0x0, 0x60(%rsp)
movq 0x10(%r13), %r10
movq 0x28(%r13), %rcx
movq 0x40(%rsp), %r14
movslq (%r14,%rax,8), %rdx
leaq (%rdx,%rdx,2), %rdx
movq (%rcx,%rdx,8), %rdx
movl 0x4(%r14,%rax,8), %ecx
movl 0x8(%r14,%rax,8), %r8d
movq 0x28(%r14,%rax,8), %rsi
movl (%rsi), %r11d
movl %r11d, %edi
andl $0x1, %edi
leaq 0x3070(%rip), %r15      # 0x286aa
movsbl (%rdi,%r15), %r9d
shrl %r11d
shlq $0x6, %r11
movslq 0x18(%r14,%rax,8), %rax
movl -0x4(%rsi,%rax,4), %r14d
movl %r14d, %eax
andl $0x1, %eax
movsbl (%rax,%r15), %r15d
shrl %r14d
shlq $0x6, %r14
subq $0x8, %rsp
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
leaq 0x52b2(%rip), %rsi      # 0x2a927
xorl %eax, %eax
pushq 0x18(%r10,%r14)
pushq %r15
pushq 0x18(%r10,%r11)
callq 0x1fd66
addq $0x20, %rsp
movq %r12, 0x20(%rsp)
testq %r12, %r12
js 0x256dd
addq 0x28(%rsp), %rbp
movl 0x10(%rbp), %eax
testl %eax, %eax
je 0x25948
movslq 0x8(%rbp), %rcx
movslq 0xc(%rbp), %r14
cmpl %ecx, %r14d
movl %eax, 0x50(%rsp)
movq %rbp, 0x88(%rsp)
jne 0x256f3
leaq 0x60(%rsp), %rbx
movq %rbx, %rdi
leaq 0x527c(%rip), %rsi      # 0x2a94a
xorl %eax, %eax
callq 0x1fd66
movq %rbx, %rdi
jmp 0x257dc
movq %rbx, %rdi
leaq 0x2993(%rip), %rsi      # 0x2807a
xorl %eax, %eax
callq 0x1fd66
jmp 0x2582c
testl %eax, %eax
jle 0x25767
cmpl %r14d, %ecx
movq 0x10(%rsp), %r13
leaq 0x60(%rsp), %rdi
leaq 0x4879(%rip), %r12      # 0x29f84
movq 0x30(%rsp), %rbx
jge 0x257dc
leaq (%rcx,%rcx,4), %rax
leaq 0x8(,%rax,4), %r15
subl %ecx, %r14d
movq 0x20(%rbx), %rax
movl (%rax,%r15), %eax
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x2f71(%rip), %rdx      # 0x286aa
movsbl (%rcx,%rdx), %edx
movq 0x10(%r13), %rcx
shrl %eax
shlq $0x6, %rax
movq 0x18(%rcx,%rax), %rcx
movq %rdi, %rbp
movq %r12, %rsi
xorl %eax, %eax
callq 0x1fd66
movq %rbp, %rdi
addq $0x14, %r15
decl %r14d
jne 0x25725
jmp 0x257dc
cmpl %ecx, %r14d
movq 0x10(%rsp), %r13
leaq 0x60(%rsp), %rdi
leaq 0x4809(%rip), %rbp      # 0x29f84
movq 0x30(%rsp), %r12
jle 0x257dc
leaq (%r14,%r14,4), %rax
leaq -0xc(,%rax,4), %r15
movq %rcx, 0x58(%rsp)
decq %r14
movq 0x20(%r12), %rax
movl (%rax,%r15), %eax
movl %eax, %ecx
andl $0x1, %ecx
leaq 0x51a1(%rip), %rdx      # 0x2a94c
movsbl (%rcx,%rdx), %edx
movq 0x10(%r13), %rcx
shrl %eax
shlq $0x6, %rax
movq 0x18(%rcx,%rax), %rcx
movq %rdi, %rbx
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1fd66
movq %rbx, %rdi
movq 0x58(%rsp), %rcx
addq $-0x14, %r15
cmpq %rcx, %r14
jg 0x25793
movq 0x88(%rsp), %r10
movl 0x1c(%r10), %edx
xorl %eax, %eax
cmpl $0x0, 0x50(%rsp)
setle %al
leal 0x2b(%rax,%rax), %ecx
movq 0x20(%rsp), %rax
leaq (%rax,%rax,4), %rax
movq 0x90(%rsp), %rsi
movq 0x8(%rsi,%rax,8), %r8
movl 0x14(%r10), %r9d
movl 0x18(%r10), %r10d
subq $0x8, %rsp
leaq 0x5130(%rip), %rsi      # 0x2a94f
xorl %eax, %eax
pushq %r10
callq 0x1fd66
addq $0x10, %rsp
movq 0x68(%rsp), %rdi
callq 0x2090
movq 0x18(%rsp), %rbp
incq %rbp
movslq 0xc(%rsp), %rax
cmpq %rax, %rbp
movq 0x10(%rsp), %r13
jl 0x255cc
movq 0x28(%rsp), %rdi
callq 0x2040
movq 0x70(%rsp), %rdi
callq 0x2040
movq 0xe0(%rsp), %rdi
callq 0x2040
movq 0xd8(%rsp), %rdi
callq 0x2040
movq 0xc8(%rsp), %rdi
callq 0x2040
movq 0xc0(%rsp), %rdi
callq 0x2040
cmpl $0x0, 0xc(%rsp)
jle 0x258c5
movq 0x40(%rsp), %rbx
addq $0x28, %rbx
xorl %r14d, %r14d
movq (%rbx), %rdi
callq 0x2040
incq %r14
movslq 0xc(%rsp), %rax
addq $0x48, %rbx
cmpq %rax, %r14
jl 0x258ac
movq 0x40(%rsp), %rdi
callq 0x2040
movq 0x68(%rsp), %rdi
callq 0x2040
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f64(%rip), %rdi      # 0x2a856
leaq 0x4ee4(%rip), %rsi      # 0x2a7dd
leaq 0x4ee8(%rip), %rcx      # 0x2a7e8
movl $0x55, %edx
callq 0x2160
leaq 0x4f3d(%rip), %rdi      # 0x2a84e
leaq 0x4ec5(%rip), %rsi      # 0x2a7dd
leaq 0x4ec9(%rip), %rcx      # 0x2a7e8
movl $0x40, %edx
callq 0x2160
leaq 0x4e9f(%rip), %rdi      # 0x2a7cf
leaq 0x4ea6(%rip), %rsi      # 0x2a7dd
leaq 0x4eaa(%rip), %rcx      # 0x2a7e8
movl $0x27, %edx
callq 0x2160
leaq 0x4fec(%rip), %rdi      # 0x2a93b
leaq 0x4e87(%rip), %rsi      # 0x2a7dd
leaq 0x4e8b(%rip), %rcx      # 0x2a7e8
movl $0x7d, %edx
callq 0x2160
nop