// File: /workspace/github_c_makefile_star2_O2/lh3[P]minigraph/gfa-aug.c
// Function: gfa_augment
void gfa_augment(gfa_t *g, int32_t n_ins, const gfa_ins_t *ins, int32_t n_ctg, const char *const* name, const char *const* seq)
{
	int32_t i, j, k, *scnt, *soff, n_ctg_seg, n_old_seg, n_seg;
	gfa_split_t *sp;
	gfa_seg_t *seg;
	char buf[16];
	uint64_t t, n_old_arc = g->n_arc, *ins_side, *oldcnt;

	if (n_ins <= 0 || n_ctg <= 0) return;

	// set soff[]
	GFA_CALLOC(scnt, g->n_seg);
	for (i = 0; i < n_ins; ++i)
		++scnt[ins[i].v[0]>>1], ++scnt[ins[i].v[1]>>1];
	GFA_MALLOC(soff, g->n_seg + 1);
	for (j = 1, soff[0] = 0; j <= g->n_seg; ++j)
		soff[j] = soff[j-1] + scnt[j-1];

	// populate sp[]
	GFA_MALLOC(sp, soff[g->n_seg]);
	GFA_BZERO(scnt, g->n_seg);
	for (i = 0, n_ctg_seg = 0; i < n_ins; ++i) {
		const gfa_ins_t *p = &ins[i];
		for (k = 0; k < 2; ++k) {
			uint32_t vlen = g->seg[p->v[k]>>1].len;
			gfa_split_t *q = &sp[soff[p->v[k]>>1] + scnt[p->v[k]>>1]];
			q->ins = i, q->end = k;
			q->side = (p->v[k]&1? vlen - p->voff[k] : p->voff[k]) << 1 | ((p->v[k]&1) ^ k);
			assert(q->side != (0<<1|0) && q->side != (vlen<<1|1)); // not possible to link such sides
			++scnt[p->v[k]>>1];
		}
		if (p->coff[1] > p->coff[0])
			++n_ctg_seg;
	}
	free(scnt);

	// sort sp[]
	for (j = 0, n_old_seg = 0; j < g->n_seg; ++j)
		if (soff[j+1] - soff[j] > 1)
			radix_sort_split(&sp[soff[j]], &sp[soff[j+1]]);

	// precompute the number of segments after split
	for (j = 0, n_old_seg = 0; j < g->n_seg; ++j) {
		int32_t i0;
		for (i0 = soff[j], i = i0 + 1, k = 0; i <= soff[j+1]; ++i)
			if (i == soff[j+1] || sp[i0].side>>1 != sp[i].side>>1) {
				if (sp[i0].side>>1 != 0 && sp[i0].side>>1 != g->seg[j].len) // otherwise no new segment will be created
					++k;
				i0 = i;
			}
		n_old_seg += k + 1;
	}

	// compute ins_side[] and split old segments
	n_seg = n_old_seg + n_ctg_seg;
	GFA_CALLOC(seg, n_seg);
	GFA_CALLOC(ins_side, n_ins);
	GFA_MALLOC(oldcnt, g->n_seg);
	for (j = 0, k = 0; j < g->n_seg; ++j) {
		int32_t i0, l, off = 0, k0 = k;
		gfa_seg_t *s = &g->seg[j];
		gfa_seg_t *t = &seg[k]; // this is so far a placeholder
		// create the first half of a new segment
		snprintf(buf, 15, "s%d", k + 1);
		t->name = gfa_strdup(buf);
		t->snid = s->snid, t->soff = s->soff, t->rank = s->rank;
		// iterate over splits
		for (i0 = soff[j], i = i0 + 1; i <= soff[j+1]; ++i) {
			if (i == soff[j+1] || sp[i].side>>1 != sp[i0].side>>1) {
				gfa_split_t *q0 = &sp[i0];
				for (l = i0; l < i; ++l) {
					gfa_split_t *q = &sp[l];
					int32_t shift = q->end == 0? 32 : 0; // first end on the higher 32 bits
					int32_t side = q->side & 1;
					int32_t which = q->side>>1 == 0? 0 : side; // special-casing when q->side==1, because no new segment created in this case
					ins_side[q->ins] |= (uint64_t)((uint32_t)(k + which) << 1 | (side^q->end)) << shift;
				}
				if (q0->side>>1 != 0 && q0->side>>1 != g->seg[j].len) { // create a new segment
					t->len = (q0->side>>1) - off;
					GFA_MALLOC(t->seq, t->len + 1);
					memcpy(t->seq, &s->seq[off], t->len);
					t->seq[t->len] = 0;
					off += t->len;
					t = &seg[++k]; // create a new segment
					snprintf(buf, 15, "s%d", k + 1);
					t->name = gfa_strdup(buf);
					t->snid = s->snid, t->soff = s->soff + off, t->rank = s->rank;
				}
				i0 = i;
			}
		}
		// finish the last segment
		t->len = s->len - off;
		GFA_MALLOC(t->seq, t->len + 1);
		memcpy(t->seq, &s->seq[off], t->len);
		t->seq[t->len] = 0;
		++k;
		oldcnt[j] = (uint64_t)k0 << 32 | (k - k0);
		// add new arcs between newly created segments
		for (i = 0; i < k - k0 - 1; ++i)
			create_first_arc(g, seg, (uint32_t)(k0+i)<<1, (uint32_t)(k0+i+1)<<1, s->rank);
	}
	assert(k == n_old_seg);
	free(soff);
	free(sp);

	// update existing g->arc[]
	for (t = 0; t < n_old_arc; ++t) {
		gfa_arc_t *a = &g->arc[t];
		uint32_t v = a->v_lv >> 32;
		uint32_t off = oldcnt[v>>1]>>32, cnt = (uint32_t)oldcnt[v>>1];
		v = (v&1) == 0? (off+cnt-1)<<1 : off<<1 | 1;
		a->v_lv = (uint64_t)v << 32 | seg[v>>1].len;
		off = oldcnt[a->w>>1]>>32, cnt = (uint32_t)oldcnt[a->w>>1];
		a->w = (a->w&1) == 0? off<<1 : (off+cnt-1)<<1 | 1;
	}
	free(oldcnt);

	// create newly inserted segments
	for (i = 0, k = n_old_seg; i < n_ins; ++i) {
		const gfa_ins_t *p = &ins[i];
		if (p->coff[0] < p->coff[1]) { // not a pure deletion
			gfa_seg_t *t = &seg[k];
			snprintf(buf, 15, "s%d", k + 1);
			t->name = gfa_strdup(buf);
			GFA_MALLOC(t->seq, p->coff[1] - p->coff[0] + 1);
			for (j = 0; j < p->coff[1] - p->coff[0]; ++j)
				t->seq[j] = seq[p->ctg][p->coff[0] + j];
			t->seq[j] = 0;
			t->len = j;
			t->snid = gfa_sseq_add(g, name[p->ctg]);
			t->soff = p->coff[0];
			t->rank = g->max_rank + 1; // TODO: to deal with SN/SO/SR tags somewhere
			gfa_sseq_update(g, t);
			create_first_arc(g, seg, ins_side[i]>>32, (uint32_t)k<<1, t->rank);
			create_first_arc(g, seg, (uint32_t)k<<1, (uint32_t)ins_side[i], t->rank);
			++k;
		} else { // a pure deletion
			create_first_arc(g, seg, ins_side[i]>>32, (uint32_t)ins_side[i], g->max_rank + 1);
		}
	}
	free(ins_side);

	// update *g
	for (j = 0; j < g->n_seg; ++j) {
		free(g->seg[j].name);
		free(g->seg[j].seq);
		free(g->seg[j].aux.aux);
	}
	free(g->seg);
	g->seg = seg, g->n_seg = g->m_seg = n_seg;
	++g->max_rank;
	GFA_REALLOC(g->link_aux, g->m_arc);
	GFA_BZERO(&g->link_aux[n_old_arc], g->m_arc - n_old_arc);
	gfa_arc_sort(g);
	gfa_arc_index(g);
	gfa_fix_multi(g);
	// k = gfa_fix_symm(g); assert(k == 0); // for debugging; the graph should be symmetric
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r8, 0x98(%rsp)
testl %esi, %esi
setle %al
testl %ecx, %ecx
setle %cl
orb %al, %cl
jne 0x7cf4
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r13
movq %r9, 0x90(%rsp)
movq 0x40(%rdi), %rax
movq %rax, 0x68(%rsp)
movl 0x4(%rdi), %edi
pushq $0x4
popq %rsi
movq %rdi, 0x8(%rsp)
callq 0x21e0
movq %rax, %rbx
movl %ebp, %eax
movq %rax, 0x60(%rsp)
imulq $0x1c, %rax, %rax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x7419
movl (%r14,%rcx), %edx
shrl %edx
incl (%rbx,%rdx,4)
movl 0x4(%r14,%rcx), %edx
shrl %edx
incl (%rbx,%rdx,4)
addq $0x1c, %rcx
jmp 0x73fb
movq %r14, 0x38(%rsp)
movq 0x8(%rsp), %rax
leal 0x1(%rax), %r14d
leaq (,%r14,4), %rdi
callq 0x2280
movq %rax, 0x10(%rsp)
andl $0x0, (%rax)
pushq $0x1
popq %rax
xorl %ecx, %ecx
movq 0x10(%rsp), %rdx
cmpq %rax, %r14
je 0x7457
addl -0x4(%rbx,%rax,4), %ecx
movl %ecx, (%rdx,%rax,4)
incq %rax
jmp 0x7446
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %r14
movslq (%rax,%r14,4), %rdi
shlq $0x3, %rdi
callq 0x2280
movq %rax, %r12
leaq (,%r14,4), %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2180
movq 0x38(%rsp), %rax
addq $0x8, %rax
movl $0x0, 0x1c(%rsp)
movq %r13, 0x48(%rsp)
cmpq 0x60(%rsp), %r14
je 0x7559
imulq $0x1c, %r14, %rcx
addq 0x38(%rsp), %rcx
movq 0x10(%r13), %rdx
movl %r14d, %esi
xorl %edi, %edi
cmpq $0x2, %rdi
je 0x753d
movl -0x8(%rax,%rdi,4), %ebp
movl %ebp, %r8d
shrl %r8d
movq %r8, %r9
shlq $0x6, %r9
movl (%rdx,%r9), %r10d
movq 0x10(%rsp), %r9
movslq (%r9,%r8,4), %r15
movslq (%rbx,%r8,4), %r9
addq %r9, %r15
movl %esi, 0x4(%r12,%r15,8)
andl $0x1, %ebp
movl (%rax,%rdi,4), %r11d
movl %r10d, %r13d
subl %r11d, %r13d
testl %ebp, %ebp
cmovel %r11d, %r13d
addl %r13d, %r13d
movl %edi, %r11d
xorl %ebp, %r11d
orl %r13d, %r11d
movl %r11d, (%r12,%r15,8)
je 0x7d06
leal 0x1(,%r10,2), %r10d
cmpl %r10d, %r11d
je 0x7d06
incl %r9d
movl %r9d, (%rbx,%r8,4)
incq %rdi
addl $0x80000000, %esi       # imm = 0x80000000
movq 0x48(%rsp), %r13
jmp 0x74b9
movl 0x14(%rcx), %edx
xorl %esi, %esi
cmpl 0x10(%rcx), %edx
setg %sil
addl %esi, 0x1c(%rsp)
incq %r14
addq $0x1c, %rax
jmp 0x749c
movq %rbx, %rdi
callq 0x2040
xorl %r15d, %r15d
xorl %r14d, %r14d
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
movl %eax, %ebx
cmpq %rbx, %r14
jae 0x75aa
movl %r15d, %eax
movq 0x10(%rsp), %rcx
movl 0x4(%rcx,%r14,4), %r15d
incq %r14
movl %r15d, %ecx
subl %eax, %ecx
cmpl $0x2, %ecx
jl 0x7573
movslq %r15d, %rcx
cltq
leaq (%r12,%rax,8), %rdi
leaq (%r12,%rcx,8), %rsi
callq 0x7379
movl 0x4(%r13), %eax
jmp 0x756c
xorl %r9d, %r9d
xorl %eax, %eax
movq $0x0, 0x30(%rsp)
cmpq %rbx, %rax
je 0x7648
leaq 0x1(%rax), %rcx
movq 0x10(%rsp), %rdx
movl 0x4(%rdx,%rax,4), %edx
movslq %r9d, %r11
movslq %edx, %rsi
leal -0x1(%rsi), %r8d
xorl %edi, %edi
shlq $0x6, %rax
movslq %r9d, %r9
cmpq %rsi, %r11
jge 0x762f
movq %r11, %r10
movl (%r12,%r9,8), %ebp
cmpl %r10d, %r8d
je 0x7604
movl 0x8(%r12,%r10,8), %r14d
xorl %ebp, %r14d
leaq 0x1(%r10), %r11
cmpl $0x2, %r14d
jb 0x75e1
leaq 0x1(%r10), %r11
movl %r11d, %r9d
cmpl $0x2, %ebp
jb 0x75de
shrl %ebp
movq 0x10(%r13), %r9
xorl %r11d, %r11d
cmpl (%r9,%rax), %ebp
setne %r11b
addl %r11d, %edi
incq %r10
movq %r10, %r11
movl %r10d, %r9d
jmp 0x75de
movq 0x30(%rsp), %rax
addl %edi, %eax
incl %eax
movq %rax, 0x30(%rsp)
movl %edx, %r9d
movq %rcx, %rax
jmp 0x75b8
movl 0x1c(%rsp), %eax
addl 0x30(%rsp), %eax
movl %eax, 0x1c(%rsp)
movslq %eax, %rdi
pushq $0x40
popq %rsi
callq 0x21e0
movq %rax, 0x20(%rsp)
pushq $0x8
popq %rsi
movq 0x60(%rsp), %rdi
callq 0x21e0
movq %rax, 0x40(%rsp)
shlq $0x3, %rbx
movq %rbx, %rdi
callq 0x2280
movq %rax, 0x70(%rsp)
xorl %ecx, %ecx
xorl %ebx, %ebx
movq 0x8(%rsp), %rax
movl %eax, %eax
cmpq %rax, %rcx
jae 0x79e6
movq 0x10(%r13), %rax
movq %rax, 0x28(%rsp)
movq %rcx, %r14
shlq $0x6, %r14
addq %r14, %rax
movq %rax, 0x8(%rsp)
movslq %ebx, %r15
movq %rbx, %rdx
movq %rbx, 0x88(%rsp)
movq %rcx, %rbx
movq %r15, 0xa8(%rsp)
shlq $0x6, %r15
movq 0x20(%rsp), %r13
leaq (%r15,%r13), %rax
movq %rax, 0x58(%rsp)
leal 0x1(%rdx), %ecx
leaq 0xc0(%rsp), %rbp
movq %rbp, %rdi
pushq $0xf
popq %rsi
leaq 0x1be5a(%rip), %rdx     # 0x23550
xorl %eax, %eax
callq 0x2140
movq %rbp, %rdi
callq 0x3f1e
xorl %r9d, %r9d
movq %rax, 0x18(%r13,%r15)
movq 0x28(%rsp), %rcx
movq 0x8(%rcx,%r14), %rax
movq %rax, 0x8(%r13,%r15)
movq %r14, 0xa0(%rsp)
movl 0x10(%rcx,%r14), %eax
movl %eax, 0x10(%r13,%r15)
movq 0x10(%rsp), %rcx
movl (%rcx,%rbx,4), %eax
leaq 0x1(%rbx), %rdx
movq %rdx, 0xb0(%rsp)
movslq %eax, %r15
movq %rbx, 0xb8(%rsp)
movslq 0x4(%rcx,%rbx,4), %rdi
movl %edi, %r8d
negl %r8d
pushq $0x1
popq %rbp
movq 0x88(%rsp), %r14
movq %rdi, 0x78(%rsp)
movq %r8, 0x80(%rsp)
movq 0x40(%rsp), %r11
movl %r9d, 0x28(%rsp)
cltq
incq %r15
movq %r15, %rcx
leaq -0x1(%rcx), %rdx
movslq %r9d, %r13
cmpq %rdi, %rdx
jge 0x791e
movq %rcx, %r15
movl %r8d, %ecx
addl %r15d, %ecx
je 0x77ae
movl (%r12,%rax,8), %esi
xorl (%r12,%r15,8), %esi
leaq 0x1(%r15), %rcx
cmpl $0x2, %esi
jb 0x7782
movq %rax, %rsi
cmpq %rdx, %rsi
jg 0x7801
movl (%r12,%rsi,8), %edi
movl 0x4(%r12,%rsi,8), %r8d
testl %r8d, %r8d
setns %cl
movl %r8d, %r9d
shrl $0x1f, %r9d
movl %edi, %r10d
andl $0x1, %r10d
cmpl $0x2, %edi
movl %r10d, %edi
movl $0x0, %ebx
cmovbl %ebx, %edi
addl %r14d, %edi
xorl %r9d, %r10d
leal (%r10,%rdi,2), %edi
shlb $0x5, %cl
shlq %cl, %rdi
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
orq %rdi, (%r11,%r8,8)
incq %rsi
jmp 0x77b1
movl (%r12,%rax,8), %edx
cmpl $0x1, %edx
movq 0x80(%rsp), %r8
jbe 0x782a
shrl %edx
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xa0(%rsp), %rcx
cmpl (%rax,%rcx), %edx
jne 0x783c
movl %r15d, %eax
movq 0x78(%rsp), %rdi
movl 0x28(%rsp), %r9d
jmp 0x777a
subl %r13d, %edx
movq %rdx, 0x50(%rsp)
movq 0x58(%rsp), %rbx
movl %edx, (%rbx)
leal 0x1(%rdx), %eax
movslq %eax, %rdi
callq 0x2280
movq %rax, %rdi
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rbx)
movq %r13, %rsi
movq 0x8(%rsp), %rax
addq 0x20(%rax), %rsi
movslq 0x50(%rsp), %rdx
callq 0x2230
movslq (%rbx), %rax
movq 0x28(%rsp), %rcx
movb $0x0, (%rcx,%rax)
addl %r13d, %eax
movl %eax, 0x28(%rsp)
movq %r14, %rcx
leal 0x1(%r14), %eax
movl %eax, 0x50(%rsp)
movslq %ecx, %r13
shlq $0x6, %r13
movq 0x20(%rsp), %r14
leaq (%r14,%r13), %rax
addq $0x40, %rax
movq %rax, 0x58(%rsp)
addl $0x2, %ecx
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
pushq $0xf
popq %rsi
leaq 0x1bc89(%rip), %rdx     # 0x23550
xorl %eax, %eax
callq 0x2140
movq %rbx, %rdi
callq 0x3f1e
movl 0x28(%rsp), %r9d
movq 0x80(%rsp), %r8
movq %rax, 0x58(%r13,%r14)
movq 0x8(%rsp), %rcx
movl 0x8(%rcx), %eax
movl %eax, 0x48(%r13,%r14)
movl 0xc(%rcx), %eax
addl %r9d, %eax
movl %eax, 0x4c(%r13,%r14)
movl 0x10(%rcx), %eax
movl %eax, 0x50(%r13,%r14)
incl %ebp
movl %r15d, %eax
movl 0x50(%rsp), %ecx
movl %ecx, %r14d
movq 0x78(%rsp), %rdi
jmp 0x7770
movq 0x8(%rsp), %rax
movslq (%rax), %r15
subq %r13, %r15
movq 0x58(%rsp), %rbx
movl %r15d, (%rbx)
movq %r15, %rdi
incq %rdi
callq 0x2280
movq %rax, %rdi
movq %rax, 0x20(%rbx)
movq 0x8(%rsp), %rax
addq 0x20(%rax), %r13
movslq %r15d, %rdx
movq %rdi, %r15
movq %r13, %rsi
callq 0x2230
movslq (%rbx), %rax
movb $0x0, (%r15,%rax)
incl %r14d
movq 0xa8(%rsp), %rcx
shlq $0x20, %rcx
movq %r14, %rbx
movl %r14d, %eax
movq 0x88(%rsp), %r9
subl %r9d, %eax
cltq
orq %rcx, %rax
movq 0x70(%rsp), %rcx
movq 0xb8(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
cmpl $0x2, %ebp
pushq $0x1
popq %rax
cmovll %eax, %ebp
decl %ebp
addl %r9d, %r9d
movq 0x48(%rsp), %r13
subl $0x1, %ebp
jb 0x79d5
leal 0x2(%r9), %r15d
movq 0x8(%rsp), %rax
movl 0x10(%rax), %r8d
movq %r13, %rdi
movq 0x20(%rsp), %rsi
movl %r9d, %edx
movl %r15d, %ecx
callq 0x7d42
movl %r15d, %r9d
jmp 0x79ab
movl 0x4(%r13), %eax
movq 0xb0(%rsp), %rcx
jmp 0x7690
cmpl 0x30(%rsp), %ebx
jne 0x7d23
movq 0x10(%rsp), %rdi
callq 0x2040
movq %r12, %rdi
callq 0x2040
movq 0x68(%rsp), %rax
movq 0x38(%rsp), %rbx
movq 0x30(%rsp), %r14
pushq $0x8
popq %r9
movq 0x70(%rsp), %r10
subq $0x1, %rax
jb 0x7aa7
movq 0x48(%r13), %rcx
movq -0x8(%rcx,%r9), %rdi
movq %rdi, %rdx
shrq $0x21, %rdx
movq (%r10,%rdx,8), %rsi
movq %rsi, %rdx
shrq $0x20, %rdx
btq $0x20, %rdi
jb 0x7a51
addl %esi, %edx
leal -0x2(,%rdx,2), %edx
jmp 0x7a58
leal 0x1(,%rdx,2), %edx
movq %rdx, %rsi
shlq $0x20, %rsi
shrl %edx
shlq $0x6, %rdx
movq 0x20(%rsp), %rdi
movslq (%rdi,%rdx), %rdx
orq %rsi, %rdx
movq %rdx, -0x8(%rcx,%r9)
movl (%rcx,%r9), %edx
movl %edx, %esi
shrl %esi
movq (%r10,%rsi,8), %rsi
movq %rsi, %rdi
shrq $0x20, %rdi
leal (%rdi,%rdi), %r8d
addl %edi, %esi
testb $0x1, %dl
leal -0x1(%rsi,%rsi), %edx
cmovel %r8d, %edx
movl %edx, (%rcx,%r9)
addq $0x20, %r9
jmp 0x7a1a
movq %r10, %rdi
callq 0x2040
xorl %ebp, %ebp
movq 0x40(%rsp), %rdi
cmpq 0x60(%rsp), %rbp
je 0x7c42
imulq $0x1c, %rbp, %r15
movl 0x10(%rbx,%r15), %eax
cmpl 0x14(%rbx,%r15), %eax
jge 0x7b88
addq %rbx, %r15
movq %r14, 0x30(%rsp)
movslq %r14d, %rcx
movq %rcx, %r13
shlq $0x6, %r13
movq %rbp, 0x10(%rsp)
movq 0x20(%rsp), %rbp
movq %rbp, %rbx
addq %r13, %rbx
incl %ecx
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
pushq $0xf
popq %rsi
leaq 0x1ba42(%rip), %rdx     # 0x23550
movq %rcx, 0x8(%rsp)
xorl %eax, %eax
callq 0x2140
movq %r14, %rdi
callq 0x3f1e
movq %rax, 0x18(%rbp,%r13)
movl 0x10(%r15), %r12d
movl 0x14(%r15), %r14d
movl %r14d, %eax
subl %r12d, %eax
incl %eax
movslq %eax, %rdi
callq 0x2280
movq %rax, 0x20(%rbp,%r13)
movq 0x10(%rsp), %rbp
movq 0x48(%rsp), %r13
xorl %eax, %eax
movq 0x90(%rsp), %rsi
subl %r12d, %r14d
movslq %r14d, %rcx
cmpq %rcx, %rax
jge 0x7bac
movslq 0x18(%r15), %rcx
movq (%rsi,%rcx,8), %rcx
addl %eax, %r12d
movslq %r12d, %rdx
movb (%rcx,%rdx), %cl
movq 0x20(%rbx), %rdx
movb %cl, (%rdx,%rax)
incq %rax
movl 0x10(%r15), %r12d
movl 0x14(%r15), %r14d
jmp 0x7b58
movq (%rdi,%rbp,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movl 0x8(%r13), %r8d
incl %r8d
movq %r13, %rdi
movq 0x20(%rsp), %rsi
callq 0x7d42
jmp 0x7c3a
movq 0x20(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl %eax, (%rbx)
movslq 0x18(%r15), %rax
movq 0x98(%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r13, %rdi
callq 0x43e8
movl %eax, 0x8(%rbx)
movl 0x10(%r15), %eax
movl %eax, 0xc(%rbx)
movl 0x8(%r13), %eax
incl %eax
movl %eax, 0x10(%rbx)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4571
movq 0x40(%rsp), %rax
movq (%rax,%rbp,8), %r15
movq %r15, %rdx
shrq $0x20, %rdx
movq 0x30(%rsp), %r14
addl %r14d, %r14d
movl 0x10(%rbx), %r8d
movq %r13, %rdi
movq 0x20(%rsp), %r12
movq %r12, %rsi
movl %r14d, %ecx
callq 0x7d42
movl 0x10(%rbx), %r8d
movq %r13, %rdi
movq %r12, %rsi
movl %r14d, %edx
movl %r15d, %ecx
callq 0x7d42
movq 0x8(%rsp), %r14
movq 0x38(%rsp), %rbx
incq %rbp
jmp 0x7ab1
callq 0x2040
xorl %ebx, %ebx
xorl %r14d, %r14d
movl 0x4(%r13), %eax
movq 0x10(%r13), %rdi
cmpq %rax, %r14
jae 0x7c88
movq 0x18(%rdi,%rbx), %rdi
callq 0x2040
movq 0x10(%r13), %rax
movq 0x20(%rax,%rbx), %rdi
callq 0x2040
movq 0x10(%r13), %rax
movq 0x38(%rax,%rbx), %rdi
callq 0x2040
incq %r14
addq $0x40, %rbx
jmp 0x7c4c
callq 0x2040
movq 0x20(%rsp), %rax
movq %rax, 0x10(%r13)
movl 0x1c(%rsp), %eax
movl %eax, (%r13)
movl %eax, 0x4(%r13)
incl 0x8(%r13)
movq 0x38(%r13), %rsi
movq 0x50(%r13), %rdi
shlq $0x4, %rsi
callq 0x22b0
movq %rax, 0x50(%r13)
movq 0x68(%rsp), %rcx
movq %rcx, %rdi
shlq $0x4, %rdi
addq %rax, %rdi
movq 0x38(%r13), %rdx
subq %rcx, %rdx
shlq $0x4, %rdx
xorl %esi, %esi
callq 0x2180
movq %r13, %rdi
callq 0x47b5
movq %r13, %rdi
callq 0x483a
movq %r13, %rdi
callq 0x5022
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b88c(%rip), %rdi     # 0x23599
leaq 0x1b840(%rip), %rsi     # 0x23554
leaq 0x1b8ac(%rip), %rcx     # 0x235c7
pushq $0x3f
popq %rdx
callq 0x2160
leaq 0x1b906(%rip), %rdi     # 0x23630
leaq 0x1b823(%rip), %rsi     # 0x23554
leaq 0x1b88f(%rip), %rcx     # 0x235c7
movl $0x89, %edx
callq 0x2160