// File: /workspace/github_c_makefile_star2_O0/lh3[P]minigraph/format.c
// Function: mg_write_gaf
void mg_write_gaf(kstring_t *s, const gfa_t *g, const mg_gchains_t *gs, int32_t n_seg, const int32_t *qlens, const char *qname, uint64_t flag, void *km)
{
	int32_t i, j, qlen, rev_sign = 0;
	s->l = 0;
	for (i = 0, qlen = 0; i < n_seg; ++i) qlen += qlens[i];
	if ((gs == 0 || gs->n_gc == 0) && (flag&MG_M_SHOW_UNMAP)) {
		mg_sprintf_lite(s, "%s", qname);
		if ((flag&MG_M_FRAG_MERGE) && n_seg == 2 && s->l > 2 && s->s[s->l-1] == '1' && s->s[s->l-2] == '/') s->l -= 2;
		mg_sprintf_lite(s, "\t%d\t0\t0\t*\t*\t0\t0\t0\t0\t0\t0\n", qlen);
		return;
	}
	if (gs == 0) return;
	for (i = 0; i < gs->n_gc; ++i) {
		const mg_gchain_t *p = &gs->gc[i];
		int32_t sign_pos, compact;
		if (p->id != p->parent && !(flag&MG_M_PRINT_2ND)) continue;
		if (p->cnt == 0) continue;
		mg_sprintf_lite(s, "%s", qname);
		if ((flag&MG_M_FRAG_MERGE) && n_seg == 2 && s->l > 2 && s->s[s->l-1] == '1' && s->s[s->l-2] == '/') s->l -= 2;
		mg_sprintf_lite(s, "\t%d\t%d\t%d\t+\t", qlen, p->qs, p->qe);
		assert(p->cnt > 0);
		sign_pos = s->l - 2;
		if (flag & MG_M_VERTEX_COOR) {
			compact = 0;
			for (j = 0; j < p->cnt; ++j) {
				const mg_llchain_t *q = &gs->lc[p->off + j];
				mg_sprintf_lite(s, "%c%s", "><"[q->v&1], g->seg[q->v>>1].name);
			}
		} else {
			int32_t last_pnid = -1, st = -1, en = -1, rev = -1;
			compact = flag&MG_M_NO_COMP_PATH? 0 : 1;
			for (j = 0; j < p->cnt; ++j) {
				const mg_llchain_t *q;
				const gfa_seg_t *t;
				assert(p->off + j < gs->n_lc);
				q = &gs->lc[p->off + j];
				t = &g->seg[q->v>>1];
				if (t->snid < 0) { // no stable ID; write the vertex coordinate
					compact = 0;
					if (last_pnid >= 0) mg_sprintf_lite(s, "%c%s:%d-%d", "><"[rev], g->sseq[last_pnid].name, st, en);
					last_pnid = -1, st = -1, en = -1, rev = -1;
					mg_sprintf_lite(s, "%c%s", "><"[q->v&1], g->seg[q->v>>1].name);
				} else {
					int cont = 0;
					if (last_pnid >= 0 && t->snid == last_pnid && (q->v&1) == rev) { // same stable sequence and same strand
						if (!(q->v&1)) { // forward strand
							if (t->soff == en)
								en = t->soff + t->len, cont = 1;
						} else { // reverse strand
							if (t->soff + t->len == st)
								st = t->soff, cont = 1;
						}
					}
					if (cont == 0) {
						if (last_pnid >= 0) compact = 0;
						if (last_pnid >= 0) mg_sprintf_lite(s, "%c%s:%d-%d", "><"[rev], g->sseq[last_pnid].name, st, en);
						last_pnid = t->snid, rev = q->v&1, st = t->soff, en = st + t->len;
					}
				}
			}
			if (last_pnid >= 0) {
				if (g->sseq[last_pnid].rank != 0 || g->sseq[last_pnid].min != 0)
					compact = 0;
				if (!compact) mg_sprintf_lite(s, "%c%s:%d-%d", "><"[rev], g->sseq[last_pnid].name, st, en);
			} else compact = 0;
		}
		if (compact) {
			int32_t rev = gs->lc[p->off].v&1;
			const gfa_seg_t *t = &g->seg[gs->lc[rev? p->off + p->cnt - 1 : p->off].v>>1];
			const gfa_sseq_t *ps = &g->sseq[t->snid];
			mg_sprintf_lite(s, "%s\t%d\t", ps->name, ps->max);
			if (rev) {
				rev_sign = 1;
				s->s[sign_pos] = '-';
				mg_sprintf_lite(s, "%d\t%d", t->soff + (p->plen - p->pe), t->soff + (p->plen - p->ps));
			} else {
				mg_sprintf_lite(s, "%d\t%d", t->soff + p->ps, t->soff + p->pe);
			}
		} else mg_sprintf_lite(s, "\t%d\t%d\t%d", p->plen, p->ps, p->pe);
		if (p->p) mg_sprintf_lite(s, "\t%d\t%d\t%d", p->p->mlen, p->p->blen, p->mapq);
		else mg_sprintf_lite(s, "\t%d\t%d\t%d", p->mlen, p->blen, p->mapq);
		mg_sprintf_lite(s, "\ttp:A:%c", p->id == p->parent? 'P' : 'S');
		if (p->p) mg_sprintf_lite(s, "\tNM:i:%d", p->p->blen - p->p->mlen);
		mg_sprintf_lite(s, "\tcm:i:%d\ts1:i:%d\ts2:i:%d", p->n_anchor, p->score, p->subsc);
		if (p->div >= 0.0f && p->div <= 1.0f) {
			char buf[16];
			if (p->div == 0.0f) buf[0] = '0', buf[1] = 0;
			else snprintf(buf, 16, "%.4f", p->div);
			mg_sprintf_lite(s, "\tdv:f:%s", buf);
		}
		if (n_seg > 1) {
			mg_sprintf_lite(s, "\tql:B:i");
			for (j = 0; j < n_seg; ++j) mg_sprintf_lite(s, ",%d", qlens[j]);
		}
		if (p->p) {
			mg_sprintf_lite(s, "\tcg:Z:");
			if (rev_sign)
				for (j = p->p->n_cigar - 1; j >= 0; --j)
					mg_sprintf_lite(s, "%d%c", (int32_t)(p->p->cigar[j]>>4), "MIDNSHP=XB"[p->p->cigar[j]&0xf]);
			else
				for (j = 0; j < p->p->n_cigar; ++j)
					mg_sprintf_lite(s, "%d%c", (int32_t)(p->p->cigar[j]>>4), "MIDNSHP=XB"[p->p->cigar[j]&0xf]);
		}
		if (p->ds.ds) {
			mg_sprintf_lite(s, "\tds:Z:");
			if (rev_sign) {
				const char *ds = p->ds.ds;
				int32_t i, j;
				for (i = p->ds.n_off - 1; i >= 0; --i) {
					int32_t off = p->ds.off[i], en;
					mg_sprintf_lite(s, "%c", ds[off]); // print the operator
					en = i < p->ds.n_off - 1? p->ds.off[i+1] : p->ds.len;
					if (ds[off] == ':') {
						for (j = off + 1; j < en; ++j)
							mg_sprintf_lite(s, "%c", ds[j]);
					} else if (ds[off] == '*') {
						for (j = off + 1; j < en; ++j)
							mg_sprintf_lite(s, "%c", gfa_comp_table[(uint8_t)ds[j]]);
					} else {
						for (j = en - 1; j >= off + 1; --j) {
							if (ds[j] == '[') mg_sprintf_lite(s, "]");
							else if (ds[j] == ']') mg_sprintf_lite(s, "[");
							else mg_sprintf_lite(s, "%c", gfa_comp_table[(uint8_t)ds[j]]);
						}
					}
				}
			} else {
				mg_sprintf_lite(s, "%s", p->ds.ds);
			}
		}
		mg_sprintf_lite(s, "\n");
		if ((mg_dbg_flag & MG_DBG_LCHAIN) || (flag & MG_M_WRITE_LCHAIN)) {
			char buf[16];
			for (j = 0; j < p->cnt; ++j) {
				const mg_llchain_t *lc = &gs->lc[p->off + j];
				mg_sprintf_lite(s, "*\t%c%s\t%d\t%d", "><"[lc->v&1], g->seg[lc->v>>1].name, g->seg[lc->v>>1].len, lc->cnt);
				if (lc->cnt > 0) {
					double div;
					int32_t q_span = (int32_t)(gs->a[lc->off].y>>32&0xff);
					int32_t n = (int32_t)(gs->a[lc->off + lc->cnt - 1].x>>32) - (int32_t)(gs->a[lc->off].x>>32) + 1;
					div = n == lc->cnt? 0.0 : (n > lc->cnt? log((double)n / lc->cnt) : log((double)lc->cnt / n)) / q_span;
					if (div == 0.0) buf[0] = '0', buf[1] = 0;
					else snprintf(buf, 16, "%.4f", div);
					mg_sprintf_lite(s, "\t%s", buf);
					mg_sprintf_lite(s, "\t%d\t%d", (int32_t)gs->a[lc->off].x + 1 - q_span, (int32_t)gs->a[lc->off + lc->cnt - 1].x + 1);
					mg_sprintf_lite(s, "\t%d\t%d", (int32_t)gs->a[lc->off].y + 1 - q_span, (int32_t)gs->a[lc->off + lc->cnt - 1].y + 1);
					if (flag & MG_M_WRITE_MZ) {
						int32_t i, last;
						last = (int32_t)gs->a[lc->off].x + 1 - q_span;
						mg_sprintf_lite(s, "\t%d\t", q_span);
						for (i = 1; i < lc->cnt; ++i) {
							int32_t x = (int32_t)gs->a[lc->off + i].x + 1 - q_span;
							if (i > 1) mg_sprintf_lite(s, ",");
							mg_sprintf_lite(s, "%d", x - last);
							last = x;
						}
						last = (int32_t)gs->a[lc->off].y + 1 - q_span;
						mg_sprintf_lite(s, "\t");
						for (i = 1; i < lc->cnt; ++i) {
							int32_t x = (int32_t)gs->a[lc->off + i].y + 1 - q_span;
							if (i > 1) mg_sprintf_lite(s, ",");
							mg_sprintf_lite(s, "%d", x - last);
							last = x;
						}
					}
				}
				mg_sprintf_lite(s, "\n");
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl $0x0, -0x40(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x3136d
movq -0x28(%rbp), %rax
movslq -0x34(%rbp), %rcx
movl (%rax,%rcx,4), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x31349
cmpq $0x0, -0x18(%rbp)
je 0x31382
movq -0x18(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x31428
movq 0x10(%rbp), %rax
andq $0x100000, %rax         # imm = 0x100000
cmpq $0x0, %rax
je 0x31428
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0xcb37(%rip), %rsi      # 0x3dedc
movb $0x0, %al
callq 0x30d90
movq 0x10(%rbp), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0x3140e
cmpl $0x2, -0x1c(%rbp)
jne 0x3140e
movq -0x8(%rbp), %rax
cmpl $0x2, (%rax)
jbe 0x3140e
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x31, %eax
jne 0x3140e
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
subl $0x2, %ecx
movl %ecx, %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
jne 0x3140e
movq -0x8(%rbp), %rax
movl (%rax), %ecx
subl $0x2, %ecx
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movl -0x3c(%rbp), %edx
leaq 0xc960(%rip), %rsi      # 0x3dd7c
movb $0x0, %al
callq 0x30d90
jmp 0x3260d
cmpq $0x0, -0x18(%rbp)
jne 0x31434
jmp 0x3260d
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3260d
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x34(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
movq -0x48(%rbp), %rcx
cmpl 0x4(%rcx), %eax
je 0x31486
movq 0x10(%rbp), %rax
andq $0x2000, %rax           # imm = 0x2000
cmpq $0x0, %rax
jne 0x31486
jmp 0x325ff
movq -0x48(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x31495
jmp 0x325ff
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0xca38(%rip), %rsi      # 0x3dedc
movb $0x0, %al
callq 0x30d90
movq 0x10(%rbp), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0x3150d
cmpl $0x2, -0x1c(%rbp)
jne 0x3150d
movq -0x8(%rbp), %rax
cmpl $0x2, (%rax)
jbe 0x3150d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x31, %eax
jne 0x3150d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movl (%rcx), %ecx
subl $0x2, %ecx
movl %ecx, %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x2f, %eax
jne 0x3150d
movq -0x8(%rbp), %rax
movl (%rax), %ecx
subl $0x2, %ecx
movl %ecx, (%rax)
movq -0x8(%rbp), %rdi
movl -0x3c(%rbp), %edx
movq -0x48(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x1c(%rax), %r8d
leaq 0xc86b(%rip), %rsi      # 0x3dd95
movb $0x0, %al
callq 0x30d90
movq -0x48(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jle 0x3153d
jmp 0x3155c
leaq 0xc85e(%rip), %rdi      # 0x3dda2
leaq 0xc862(%rip), %rsi      # 0x3ddad
movl $0x8d, %edx
leaq 0xc85f(%rip), %rcx      # 0x3ddb6
callq 0x2170
movq -0x8(%rbp), %rax
movl (%rax), %eax
subl $0x2, %eax
movl %eax, -0x4c(%rbp)
movq 0x10(%rbp), %rax
andq $0x800, %rax            # imm = 0x800
cmpq $0x0, %rax
je 0x3160f
movl $0x0, -0x50(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x3160a
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x48(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x38(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x58(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xb0bd(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x58(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
leaq 0xc83c(%rip), %rsi      # 0x3de34
movb $0x0, %al
callq 0x30d90
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x3158a
jmp 0x31941
movl $0xffffffff, -0x5c(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x60(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x68(%rbp) # imm = 0xFFFFFFFF
movq 0x10(%rbp), %rdx
andq $0x200000, %rdx         # imm = 0x200000
movl $0x1, %eax
xorl %ecx, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x50(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x318ae
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x38(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x31673
jmp 0x31692
leaq 0xc7bf(%rip), %rdi      # 0x3de39
leaq 0xc72c(%rip), %rsi      # 0x3ddad
movl $0x9b, %edx
leaq 0xc729(%rip), %rcx      # 0x3ddb6
callq 0x2170
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x48(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x38(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x70(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jge 0x31794
movl $0x0, -0x50(%rbp)
cmpl $0x0, -0x5c(%rbp)
jl 0x3172a
movq -0x8(%rbp), %rdi
movslq -0x68(%rbp), %rcx
leaq 0xaf92(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl -0x60(%rbp), %r8d
movl -0x64(%rbp), %r9d
leaq 0xc72c(%rip), %rsi      # 0x3de4f
movb $0x0, %al
callq 0x30d90
movl $0xffffffff, -0x5c(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x60(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x68(%rbp) # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xaf2d(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x70(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
leaq 0xc6ac(%rip), %rsi      # 0x3de34
movb $0x0, %al
callq 0x30d90
jmp 0x3189e
movl $0x0, -0x7c(%rbp)
cmpl $0x0, -0x5c(%rbp)
jl 0x31817
movq -0x78(%rbp), %rax
movl 0x8(%rax), %eax
cmpl -0x5c(%rbp), %eax
jne 0x31817
movq -0x70(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl -0x68(%rbp), %eax
jne 0x31817
movq -0x70(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x317f0
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
cmpl -0x64(%rbp), %eax
jne 0x317ee
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x78(%rbp), %rcx
addl (%rcx), %eax
movl %eax, -0x64(%rbp)
movl $0x1, -0x7c(%rbp)
jmp 0x31815
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
movq -0x78(%rbp), %rcx
addl (%rcx), %eax
cmpl -0x60(%rbp), %eax
jne 0x31813
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x60(%rbp)
movl $0x1, -0x7c(%rbp)
jmp 0x31815
jmp 0x31817
cmpl $0x0, -0x7c(%rbp)
jne 0x3189c
cmpl $0x0, -0x5c(%rbp)
jl 0x3182a
movl $0x0, -0x50(%rbp)
cmpl $0x0, -0x5c(%rbp)
jl 0x3186f
movq -0x8(%rbp), %rdi
movslq -0x68(%rbp), %rcx
leaq 0xae4d(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl -0x60(%rbp), %r8d
movl -0x64(%rbp), %r9d
leaq 0xc5e7(%rip), %rsi      # 0x3de4f
movb $0x0, %al
callq 0x30d90
movq -0x78(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x5c(%rbp)
movq -0x70(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, -0x68(%rbp)
movq -0x78(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movq -0x78(%rbp), %rcx
addl (%rcx), %eax
movl %eax, -0x64(%rbp)
jmp 0x3189e
jmp 0x318a0
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x3164e
cmpl $0x0, -0x5c(%rbp)
jl 0x31938
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x10(%rax)
jne 0x318ea
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x318f1
movl $0x0, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
jne 0x31936
movq -0x8(%rbp), %rdi
movslq -0x68(%rbp), %rcx
leaq 0xad86(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x5c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl -0x60(%rbp), %r8d
movl -0x64(%rbp), %r9d
leaq 0xc520(%rip), %rsi      # 0x3de4f
movb $0x0, %al
callq 0x30d90
jmp 0x3193f
movl $0x0, -0x50(%rbp)
jmp 0x31941
cmpl $0x0, -0x50(%rbp)
je 0x31aca
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x48(%rbp), %rcx
movslq 0x8(%rcx), %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x108(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x100(%rbp)
cmpl $0x0, -0x80(%rbp)
je 0x319a8
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x48(%rbp), %rcx
addl 0xc(%rcx), %eax
subl $0x1, %eax
movl %eax, -0x10c(%rbp)
jmp 0x319b5
movq -0x48(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x10c(%rbp)
movq -0x108(%rbp), %rax
movq -0x100(%rbp), %rcx
movl -0x10c(%rbp), %edx
movslq %edx, %rdx
imulq $0x14, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x88(%rbp), %rcx
movslq 0x8(%rcx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rdi
movq -0x90(%rbp), %rax
movq (%rax), %rdx
movq -0x90(%rbp), %rax
movl 0xc(%rax), %ecx
leaq 0xc432(%rip), %rsi      # 0x3de5a
movb $0x0, %al
callq 0x30d90
cmpl $0x0, -0x80(%rbp)
je 0x31a94
movl $0x1, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x4c(%rbp), %rcx
movb $0x2d, (%rax,%rcx)
movq -0x8(%rbp), %rdi
movq -0x88(%rbp), %rax
movl 0xc(%rax), %edx
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
movq -0x48(%rbp), %rcx
subl 0x28(%rcx), %eax
addl %eax, %edx
movq -0x88(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x20(%rax), %eax
movq -0x48(%rbp), %rsi
subl 0x24(%rsi), %eax
addl %eax, %ecx
leaq 0xc3da(%rip), %rsi      # 0x3de65
movb $0x0, %al
callq 0x30d90
jmp 0x31ac8
movq -0x8(%rbp), %rdi
movq -0x88(%rbp), %rax
movl 0xc(%rax), %edx
movq -0x48(%rbp), %rax
addl 0x24(%rax), %edx
movq -0x88(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x48(%rbp), %rax
addl 0x28(%rax), %ecx
leaq 0xc3a4(%rip), %rsi      # 0x3de65
movb $0x0, %al
callq 0x30d90
jmp 0x31af2
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movl 0x20(%rax), %edx
movq -0x48(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x28(%rax), %r8d
leaq 0xc376(%rip), %rsi      # 0x3de61
movb $0x0, %al
callq 0x30d90
movq -0x48(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x31b36
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movl 0x4(%rax), %edx
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movl 0x8(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x44(%rax), %r8d
andl $0xff, %r8d
leaq 0xc334(%rip), %rsi      # 0x3de61
movb $0x0, %al
callq 0x30d90
jmp 0x31b65
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movl 0x30(%rax), %edx
movq -0x48(%rbp), %rax
movl 0x2c(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x44(%rax), %r8d
andl $0xff, %r8d
leaq 0xc303(%rip), %rsi      # 0x3de61
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movl (%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x4(%rax), %esi
movl $0x53, %edx
movl $0x50, %eax
cmpl %esi, %ecx
cmovel %eax, %edx
leaq 0xc2df(%rip), %rsi      # 0x3de6b
movb $0x0, %al
callq 0x30d90
movq -0x48(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x31bc6
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movl 0x8(%rax), %edx
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
subl 0x4(%rax), %edx
leaq 0xc2b5(%rip), %rsi      # 0x3de74
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x48(%rbp), %rax
movl 0x14(%rax), %ecx
movq -0x48(%rbp), %rax
movl 0x3c(%rax), %r8d
leaq 0xc296(%rip), %rsi      # 0x3de7d
movb $0x0, %al
callq 0x30d90
movq -0x48(%rbp), %rax
movss 0x34(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x31c74
movq -0x48(%rbp), %rax
movss 0xaed5(%rip), %xmm0     # 0x3cae0
ucomiss 0x34(%rax), %xmm0
jb 0x31c74
movq -0x48(%rbp), %rax
movss 0x34(%rax), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x31c34
jp 0x31c34
movb $0x30, -0xa0(%rbp)
movb $0x0, -0x9f(%rbp)
jmp 0x31c5b
leaq -0xa0(%rbp), %rdi
movq -0x48(%rbp), %rax
movss 0x34(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movl $0x10, %esi
leaq 0xc242(%rip), %rdx      # 0x3de96
movb $0x1, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
leaq 0xc22e(%rip), %rsi      # 0x3de9b
movb $0x0, %al
callq 0x30d90
cmpl $0x1, -0x1c(%rbp)
jle 0x31cc5
movq -0x8(%rbp), %rdi
leaq 0xc21f(%rip), %rsi      # 0x3dea4
movb $0x0, %al
callq 0x30d90
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x31cc3
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq -0x38(%rbp), %rcx
movl (%rax,%rcx,4), %edx
leaq 0xc1fb(%rip), %rsi      # 0x3deac
movb $0x0, %al
callq 0x30d90
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x31c93
jmp 0x31cc5
movq -0x48(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x31dc6
movq -0x8(%rbp), %rdi
leaq 0xc1d1(%rip), %rsi      # 0x3deb0
movb $0x0, %al
callq 0x30d90
cmpl $0x0, -0x40(%rbp)
je 0x31d58
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movl (%rax), %eax
subl $0x1, %eax
movl %eax, -0x38(%rbp)
cmpl $0x0, -0x38(%rbp)
jl 0x31d56
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
shrq $0x4, %rax
movl %eax, %edx
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rcx
andq $0xf, %rcx
leaq 0xc183(%rip), %rax      # 0x3debc
movsbl (%rax,%rcx), %ecx
leaq 0xc173(%rip), %rsi      # 0x3deb7
movb $0x0, %al
callq 0x30d90
movl -0x38(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x31cfc
jmp 0x31dc4
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x48(%rbp), %rcx
movq 0x48(%rcx), %rcx
cmpl (%rcx), %eax
jge 0x31dc2
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rax
shrq $0x4, %rax
movl %eax, %edx
movq -0x48(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movq 0x18(%rax,%rcx,8), %rcx
andq $0xf, %rcx
leaq 0xc117(%rip), %rax      # 0x3debc
movsbl (%rax,%rcx), %ecx
leaq 0xc107(%rip), %rsi      # 0x3deb7
movb $0x0, %al
callq 0x30d90
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x31d5f
jmp 0x31dc4
jmp 0x31dc6
movq -0x48(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x3208b
movq -0x8(%rbp), %rdi
leaq 0xc0e7(%rip), %rsi      # 0x3dec7
movb $0x0, %al
callq 0x30d90
cmpl $0x0, -0x40(%rbp)
je 0x3206f
movq -0x48(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x48(%rbp), %rax
movl 0x54(%rax), %eax
subl $0x1, %eax
movl %eax, -0xac(%rbp)
cmpl $0x0, -0xac(%rbp)
jl 0x3206d
movq -0x48(%rbp), %rax
movq 0x58(%rax), %rax
movslq -0xac(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xb4(%rbp)
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movslq -0xb4(%rbp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0xa6b6(%rip), %rsi      # 0x3c508
movb $0x0, %al
callq 0x30d90
movl -0xac(%rbp), %eax
movq -0x48(%rbp), %rcx
movl 0x54(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x31e8c
movq -0x48(%rbp), %rax
movq 0x58(%rax), %rax
movl -0xac(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x110(%rbp)
jmp 0x31e99
movq -0x48(%rbp), %rax
movl 0x50(%rax), %eax
movl %eax, -0x110(%rbp)
movl -0x110(%rbp), %eax
movl %eax, -0xb8(%rbp)
movq -0xa8(%rbp), %rax
movslq -0xb4(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x3a, %eax
jne 0x31f13
movl -0xb4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
cmpl -0xb8(%rbp), %eax
jge 0x31f0e
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movslq -0xb0(%rbp), %rcx
movsbl (%rax,%rcx), %edx
leaq 0xa612(%rip), %rsi      # 0x3c508
movb $0x0, %al
callq 0x30d90
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x31ecb
jmp 0x32057
movq -0xa8(%rbp), %rax
movslq -0xb4(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x2a, %eax
jne 0x31f8e
movl -0xb4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
cmpl -0xb8(%rbp), %eax
jge 0x31f89
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movslq -0xb0(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x1328a(%rip), %rax     # 0x451f0
movzbl (%rax,%rcx), %edx
leaq 0xa597(%rip), %rsi      # 0x3c508
movb $0x0, %al
callq 0x30d90
movl -0xb0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x31f39
jmp 0x32055
movl -0xb8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xb0(%rbp)
movl -0xb0(%rbp), %eax
movl -0xb4(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jl 0x32053
movq -0xa8(%rbp), %rax
movslq -0xb0(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5b, %eax
jne 0x31fdf
movq -0x8(%rbp), %rdi
leaq 0xbd78(%rip), %rsi      # 0x3dd4e
movb $0x0, %al
callq 0x30d90
jmp 0x3203d
movq -0xa8(%rbp), %rax
movslq -0xb0(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x5d, %eax
jne 0x3200a
movq -0x8(%rbp), %rdi
leaq 0xba0a(%rip), %rsi      # 0x3da0b
movb $0x0, %al
callq 0x30d90
jmp 0x3203b
movq -0x8(%rbp), %rdi
movq -0xa8(%rbp), %rax
movslq -0xb0(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
leaq 0x131c7(%rip), %rax     # 0x451f0
movzbl (%rax,%rcx), %edx
leaq 0xa4d4(%rip), %rsi      # 0x3c508
movb $0x0, %al
callq 0x30d90
jmp 0x3203d
jmp 0x3203f
movl -0xb0(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xb0(%rbp)
jmp 0x31f9d
jmp 0x32055
jmp 0x32057
jmp 0x32059
movl -0xac(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x31e10
jmp 0x32089
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movq 0x60(%rax), %rdx
leaq 0xbe5a(%rip), %rsi      # 0x3dedc
movb $0x0, %al
callq 0x30d90
jmp 0x3208b
movq -0x8(%rbp), %rdi
leaq 0xbbf4(%rip), %rsi      # 0x3dc8a
movb $0x0, %al
callq 0x30d90
leaq 0x135e4(%rip), %rax     # 0x45688
movl (%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x320c2
movq 0x10(%rbp), %rax
andq $0x800000, %rax         # imm = 0x800000
cmpq $0x0, %rax
je 0x325fd
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
movq -0x48(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x325fb
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x48(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x38(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0x8(%rbp), %rdi
movq -0xd8(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
leaq 0xa574(%rip), %rax      # 0x3c68c
movsbl (%rax,%rcx), %edx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xd8(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xd8(%rbp), %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
shlq $0x6, %rsi
addq %rsi, %rax
movl (%rax), %r8d
movq -0xd8(%rbp), %rax
movl 0x4(%rax), %r9d
leaq 0xbd5f(%rip), %rsi      # 0x3dece
movb $0x0, %al
callq 0x30d90
movq -0xd8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jle 0x325db
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
andq $0xff, %rax
movl %eax, -0xe4(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movl (%rcx), %ecx
movq -0xd8(%rbp), %rdx
addl 0x4(%rdx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0xd8(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
subl %ecx, %eax
addl $0x1, %eax
movl %eax, -0xe8(%rbp)
movl -0xe8(%rbp), %eax
movq -0xd8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x3222d
xorps %xmm0, %xmm0
movsd %xmm0, -0x118(%rbp)
jmp 0x322a7
movl -0xe8(%rbp), %eax
movq -0xd8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jle 0x32266
cvtsi2sdl -0xe8(%rbp), %xmm0
movq -0xd8(%rbp), %rax
cvtsi2sdl 0x4(%rax), %xmm1
divsd %xmm1, %xmm0
callq 0x21b0
movsd %xmm0, -0x120(%rbp)
jmp 0x3228b
movq -0xd8(%rbp), %rax
cvtsi2sdl 0x4(%rax), %xmm0
cvtsi2sdl -0xe8(%rbp), %xmm1
divsd %xmm1, %xmm0
callq 0x21b0
movsd %xmm0, -0x120(%rbp)
movsd -0x120(%rbp), %xmm0
cvtsi2sdl -0xe4(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x118(%rbp)
movsd -0x118(%rbp), %xmm0
movsd %xmm0, -0xe0(%rbp)
movsd -0xe0(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x322da
jp 0x322da
movb $0x30, -0xd0(%rbp)
movb $0x0, -0xcf(%rbp)
jmp 0x322fc
leaq -0xd0(%rbp), %rdi
movsd -0xe0(%rbp), %xmm0
movl $0x10, %esi
leaq 0xbba1(%rip), %rdx      # 0x3de96
movb $0x1, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq -0xd0(%rbp), %rdx
leaq 0xbbcd(%rip), %rsi      # 0x3dedb
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, %edx
addl $0x1, %edx
subl -0xe4(%rbp), %edx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movl (%rcx), %ecx
movq -0xd8(%rbp), %rsi
addl 0x4(%rsi), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, %ecx
addl $0x1, %ecx
leaq 0xbaed(%rip), %rsi      # 0x3de64
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl %eax, %edx
addl $0x1, %edx
subl -0xe4(%rbp), %edx
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movl (%rcx), %ecx
movq -0xd8(%rbp), %rsi
addl 0x4(%rsi), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl %eax, %ecx
addl $0x1, %ecx
leaq 0xba82(%rip), %rsi      # 0x3de64
movb $0x0, %al
callq 0x30d90
movq 0x10(%rbp), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x325d9
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
addl $0x1, %eax
subl -0xe4(%rbp), %eax
movl %eax, -0xf0(%rbp)
movq -0x8(%rbp), %rdi
movl -0xe4(%rbp), %edx
leaq 0xb93a(%rip), %rsi      # 0x3dd73
movb $0x0, %al
callq 0x30d90
movl $0x1, -0xec(%rbp)
movl -0xec(%rbp), %eax
movq -0xd8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x324ec
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movl (%rcx), %ecx
addl -0xec(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
addl $0x1, %eax
subl -0xe4(%rbp), %eax
movl %eax, -0xf4(%rbp)
cmpl $0x1, -0xec(%rbp)
jle 0x324ae
movq -0x8(%rbp), %rdi
leaq 0xb8d3(%rip), %rsi      # 0x3dd7a
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movl -0xf4(%rbp), %edx
subl -0xf0(%rbp), %edx
leaq 0xb9a3(%rip), %rsi      # 0x3de68
movb $0x0, %al
callq 0x30d90
movl -0xf4(%rbp), %eax
movl %eax, -0xf0(%rbp)
movl -0xec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xec(%rbp)
jmp 0x3244a
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
addl $0x1, %eax
subl -0xe4(%rbp), %eax
movl %eax, -0xf0(%rbp)
movq -0x8(%rbp), %rdi
leaq 0xb87d(%rip), %rsi      # 0x3dda0
movb $0x0, %al
callq 0x30d90
movl $0x1, -0xec(%rbp)
movl -0xec(%rbp), %eax
movq -0xd8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x325d7
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xd8(%rbp), %rcx
movl (%rcx), %ecx
addl -0xec(%rbp), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
addl $0x1, %eax
subl -0xe4(%rbp), %eax
movl %eax, -0xf8(%rbp)
cmpl $0x1, -0xec(%rbp)
jle 0x32599
movq -0x8(%rbp), %rdi
leaq 0xb7e8(%rip), %rsi      # 0x3dd7a
movb $0x0, %al
callq 0x30d90
movq -0x8(%rbp), %rdi
movl -0xf8(%rbp), %edx
subl -0xf0(%rbp), %edx
leaq 0xb8b8(%rip), %rsi      # 0x3de68
movb $0x0, %al
callq 0x30d90
movl -0xf8(%rbp), %eax
movl %eax, -0xf0(%rbp)
movl -0xec(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xec(%rbp)
jmp 0x32534
jmp 0x325d9
jmp 0x325db
movq -0x8(%rbp), %rdi
leaq 0xb6a4(%rip), %rsi      # 0x3dc8a
movb $0x0, %al
callq 0x30d90
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x320c9
jmp 0x325fd
jmp 0x325ff
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3143b
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw %cs:(%rax,%rax)