// File: /workspace/github_c_makefile_star2_O0/lh3[P]miniprot/map.c
// Function: mp_refine_reg
static void mp_refine_reg(void *km, const mp_idx_t *mi, const mp_mapopt_t *opt, const char *aa, int32_t l_aa, mp_reg1_t *r, int32_t extl, int32_t extr)
{
	const mp_idxopt_t *io = &mi->opt;
	int32_t i, j, k, n_u, max_sc = 0, max_i, kmer = opt->kmer2, is_splice = !(opt->flag&MP_F_NO_SPLICE);
	int64_t as, ae, l_nt, n_a, ctg_len = mi->nt->ctg[r->vid>>1].len;
	uint8_t *nt;
	uint64_t *a, *u;
	mp64_v sd = {0,0,0}, sd_aa = {0,0,0};

	as = r->vs > extl? r->vs - extl : 0;
	ae = r->ve + extr < ctg_len? r->ve + extr : ctg_len;
	nt = Kmalloc(km, uint8_t, ae - as);
	l_nt = mp_ntseq_get(mi->nt, r->vid>>1, r->vid&1? ctg_len - ae : as, r->vid&1? ctg_len - as : ae, r->vid&1, nt);
	mp_sketch_nt4(km, nt, l_nt, io->min_aa_len, kmer, 0, 0, 0, &sd);
	kfree(km, nt);
	mp_sketch_prot(km, aa, l_aa, kmer, 0, &sd_aa);
	for (i = 0; i < sd_aa.n; ++i)
		kv_push(uint64_t, km, sd, sd_aa.a[i] | 1ULL<<31);
	kfree(km, sd_aa.a);
	radix_sort_mp64(sd.a, sd.a + sd.n);

	for (k = 0, i = 1, n_a = 0; i <= sd.n; ++i) { // precalculate n_a
		if (i == sd.n || sd.a[k]>>32 != sd.a[i]>>32) {
			int32_t n1, n2;
			for (j = k; j < i; ++j)
				if (sd.a[j]>>31&1) break;
			n1 = j - k, n2 = i - k - n1;
			if (n1 > 0 && n2 > 0 && n1 * n2 <= opt->max_ava)
				n_a += n1 * n2;
			k = i;
		}
	}
	a = Kmalloc(km, uint64_t, n_a);
	for (k = 0, i = 1, n_a = 0; i <= sd.n; ++i) { // populate a[]
		if (i == sd.n || sd.a[k]>>32 != sd.a[i]>>32) {
			int32_t n1, n2;
			for (j = k; j < i; ++j)
				if (sd.a[j]>>31&1) break;
			n1 = j - k, n2 = i - k - n1;
			if (n1 > 0 && n2 > 0 && n1 * n2 <= opt->max_ava) {
				int32_t i1, i2;
				for (i1 = k; i1 < k + n1; ++i1)
					for (i2 = k + n1; i2 < i; ++i2)
						a[n_a++] = (uint64_t)((uint32_t)sd.a[i1])<<32 | ((uint32_t)sd.a[i2]<<1>>1);
			}
			k = i;
		}
	}
	kfree(km, sd.a);

	radix_sort_mp64(a, a + n_a);
	a = mp_chain(opt->max_intron, opt->max_gap, opt->bw, opt->max_chn_max_skip, opt->max_chn_iter, opt->min_chn_cnt, opt->min_chn_sc, opt->chn_coef_log, is_splice, kmer, 0, n_a, a, &n_u, &u, km);
	if (n_u == 0) {
		r->cnt = 0, r->off = -1, r->a = 0;
		return;
	}

	max_sc = u[0]>>32, max_i = 0;
	for (i = 1; i < n_u; ++i)
		if (max_sc < u[i]>>32)
			max_sc = u[i]>>32, max_i = i;
	for (i = k = 0; i < n_u; ++i) {
		if (i == max_i) break;
		k += (uint32_t)u[i];
	}

	n_a = (int32_t)u[max_i];
	memmove(a, a + k, sizeof(*a) * n_a);
	r->a = a = krelocate(km, a, sizeof(*a) * n_a);
	r->chn_sc = u[max_i]>>32;
	r->cnt = n_a, r->off = 0;
	r->qs = (uint32_t)a[0] - (kmer - 1);
	r->qe = (uint32_t)a[n_a-1] + 1;
	r->vs = as + (a[0]>>32) + 1 - 3 * kmer;
	r->ve = as + (a[n_a-1]>>32) + 1;
	for (i = 0; i < n_a; ++i)
		a[i] = ((a[i]>>32) + as - r->vs) << 32 | a[i]<<32>>32;
	r->chn_sc_ungap = mp_cal_chn_sc_ungap(r->cnt, r->a, kmer);
	kfree(km, u);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movl %r8d, -0x4c(%rbp)
movq %r9, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x74(%rbp)
movq -0x40(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x7c(%rbp)
movq -0x40(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movq -0x58(%rbp), %rcx
movl 0x30(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0xa8(%rbp)
leaq -0xd0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x2190
leaq -0xe0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x2190
movq -0x58(%rbp), %rax
movq 0x40(%rax), %rax
movslq 0x10(%rbp), %rcx
cmpq %rcx, %rax
jle 0x724c
movq -0x58(%rbp), %rax
movq 0x40(%rax), %rax
movslq 0x10(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x100(%rbp)
jmp 0x7257
xorl %eax, %eax
movq %rax, -0x100(%rbp)
jmp 0x7257
movq -0x100(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movq 0x48(%rax), %rax
movslq 0x18(%rbp), %rcx
addq %rcx, %rax
cmpq -0xa8(%rbp), %rax
jge 0x7295
movq -0x58(%rbp), %rax
movq 0x48(%rax), %rax
movslq 0x18(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x108(%rbp)
jmp 0x72a3
movq -0xa8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x30(%rbp), %rdi
movq -0x90(%rbp), %rsi
subq -0x88(%rbp), %rsi
shlq $0x0, %rsi
callq 0xaeb0
movq %rax, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x118(%rbp)
movq -0x58(%rbp), %rax
movl 0x30(%rax), %eax
shrl %eax
movl %eax, -0x10c(%rbp)
movq -0x58(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x7317
movq -0xa8(%rbp), %rax
subq -0x90(%rbp), %rax
movq %rax, -0x120(%rbp)
jmp 0x7325
movq -0x88(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x58(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x7359
movq -0xa8(%rbp), %rax
subq -0x88(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x7367
movq -0x90(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdx
movl -0x10c(%rbp), %esi
movq -0x118(%rbp), %rdi
movq -0x130(%rbp), %rcx
movq -0x58(%rbp), %rax
movl 0x30(%rax), %r8d
andl $0x1, %r8d
movq -0xb0(%rbp), %r9
callq 0x16580
movq %rax, -0x98(%rbp)
movq -0x30(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0x98(%rbp), %rdx
movq -0x60(%rbp), %rax
movl 0x4(%rax), %ecx
movl -0x7c(%rbp), %r8d
xorl %r9d, %r9d
xorl %eax, %eax
leaq -0xd0(%rbp), %rax
movl $0x0, (%rsp)
movq $0x0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x184b0
movq -0x30(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0xac90
movq -0x30(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x4c(%rbp), %edx
movl -0x7c(%rbp), %ecx
xorl %r8d, %r8d
leaq -0xe0(%rbp), %r9
callq 0x18060
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0xe0(%rbp), %eax
jge 0x74d3
jmp 0x7429
movl -0xd0(%rbp), %eax
cmpl -0xcc(%rbp), %eax
jne 0x748b
cmpl $0x0, -0xcc(%rbp)
je 0x7450
movl -0xcc(%rbp), %eax
shll %eax
movl %eax, -0x134(%rbp)
jmp 0x745d
movl $0x2, %eax
movl %eax, -0x134(%rbp)
jmp 0x745d
movl -0x134(%rbp), %eax
movl %eax, -0xcc(%rbp)
movq -0x30(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movslq -0xcc(%rbp), %rdx
shlq $0x3, %rdx
callq 0xb100
movq %rax, -0xc8(%rbp)
movq -0xd8(%rbp), %rax
movslq -0x64(%rbp), %rcx
movabsq $0x80000000, %rdx       # imm = 0x80000000
orq (%rax,%rcx,8), %rdx
movq -0xc8(%rbp), %rax
movl -0xd0(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0xd0(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x74c5
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x7418
movq -0x30(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0xac90
movq -0xc8(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movslq -0xd0(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x46c0
movl $0x0, -0x6c(%rbp)
movl $0x1, -0x64(%rbp)
movq $0x0, -0xa0(%rbp)
movl -0x64(%rbp), %eax
cmpl -0xd0(%rbp), %eax
jg 0x7619
movl -0x64(%rbp), %eax
cmpl -0xd0(%rbp), %eax
je 0x7566
movq -0xc8(%rbp), %rax
movslq -0x6c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movq -0xc8(%rbp), %rcx
movslq -0x64(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
je 0x7609
movl -0x6c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x75a0
movq -0xc8(%rbp), %rax
movslq -0x68(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x1f, %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x7593
jmp 0x75a0
jmp 0x7595
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x756c
movl -0x68(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0xe4(%rbp)
movl -0x64(%rbp), %eax
subl -0x6c(%rbp), %eax
subl -0xe4(%rbp), %eax
movl %eax, -0xe8(%rbp)
cmpl $0x0, -0xe4(%rbp)
jle 0x7603
cmpl $0x0, -0xe8(%rbp)
jle 0x7603
movl -0xe4(%rbp), %eax
imull -0xe8(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jg 0x7603
movl -0xe4(%rbp), %eax
imull -0xe8(%rbp), %eax
cltq
addq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x760b
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x751d
movq -0x30(%rbp), %rdi
movq -0xa0(%rbp), %rsi
shlq $0x3, %rsi
callq 0xaeb0
movq %rax, -0xb8(%rbp)
movl $0x0, -0x6c(%rbp)
movl $0x1, -0x64(%rbp)
movq $0x0, -0xa0(%rbp)
movl -0x64(%rbp), %eax
cmpl -0xd0(%rbp), %eax
jg 0x77f0
movl -0x64(%rbp), %eax
cmpl -0xd0(%rbp), %eax
je 0x7696
movq -0xc8(%rbp), %rax
movslq -0x6c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movq -0xc8(%rbp), %rcx
movslq -0x64(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
je 0x77e0
movl -0x6c(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x76d0
movq -0xc8(%rbp), %rax
movslq -0x68(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x1f, %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x76c3
jmp 0x76d0
jmp 0x76c5
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x769c
movl -0x68(%rbp), %eax
subl -0x6c(%rbp), %eax
movl %eax, -0xec(%rbp)
movl -0x64(%rbp), %eax
subl -0x6c(%rbp), %eax
subl -0xec(%rbp), %eax
movl %eax, -0xf0(%rbp)
cmpl $0x0, -0xec(%rbp)
jle 0x77da
cmpl $0x0, -0xf0(%rbp)
jle 0x77da
movl -0xec(%rbp), %eax
imull -0xf0(%rbp), %eax
movq -0x40(%rbp), %rcx
cmpl 0x2c(%rcx), %eax
jg 0x77da
movl -0x6c(%rbp), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movl -0x6c(%rbp), %ecx
addl -0xec(%rbp), %ecx
cmpl %ecx, %eax
jge 0x77d8
movl -0x6c(%rbp), %eax
addl -0xec(%rbp), %eax
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %eax
cmpl -0x64(%rbp), %eax
jge 0x77c2
movq -0xc8(%rbp), %rax
movslq -0xf4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movl %eax, %edx
shlq $0x20, %rdx
movq -0xc8(%rbp), %rax
movslq -0xf8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shll %eax
shrl %eax
movl %eax, %eax
orq %rax, %rdx
movq -0xb8(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0xa0(%rbp)
movq %rdx, (%rax,%rcx,8)
movl -0xf8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf8(%rbp)
jmp 0x7751
jmp 0x77c4
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x772b
jmp 0x77da
movl -0x64(%rbp), %eax
movl %eax, -0x6c(%rbp)
jmp 0x77e2
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x764d
movq -0x30(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0xac90
movq -0xb8(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq -0xa0(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x46c0
movq -0x40(%rbp), %rax
movl 0x18(%rax), %edi
movq -0x40(%rbp), %rax
movl 0x14(%rax), %esi
movq -0x40(%rbp), %rax
movl 0x24(%rax), %edx
movq -0x40(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x40(%rbp), %rax
movl 0x38(%rax), %r8d
movq -0x40(%rbp), %rax
movl 0x30(%rax), %r9d
movq -0x40(%rbp), %rax
movl 0x3c(%rax), %r13d
movq -0x40(%rbp), %rax
movss 0x40(%rax), %xmm0
movl -0x80(%rbp), %r12d
movl -0x7c(%rbp), %r15d
movq -0xa0(%rbp), %r14
movq -0xb8(%rbp), %rbx
movq -0x30(%rbp), %rax
xorl %r10d, %r10d
leaq -0x70(%rbp), %r11
leaq -0xc0(%rbp), %r10
movl %r13d, (%rsp)
movl %r12d, 0x8(%rsp)
movl %r15d, 0x10(%rsp)
movl $0x0, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movq %r10, 0x38(%rsp)
movq %rax, 0x40(%rsp)
callq 0x18ed0
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0x70(%rbp)
jne 0x78ed
movq -0x58(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x58(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x58(%rbp), %rax
movq $0x0, 0x50(%rax)
jmp 0x7b75
movq -0xc0(%rbp), %rax
movq (%rax), %rax
shrq $0x20, %rax
movl %eax, -0x74(%rbp)
movl $0x0, -0x78(%rbp)
movl $0x1, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x7959
movslq -0x74(%rbp), %rax
movq -0xc0(%rbp), %rcx
movslq -0x64(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
jae 0x794c
movq -0xc0(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x74(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x78(%rbp)
jmp 0x794e
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x790c
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x64(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x70(%rbp), %eax
jge 0x7999
movl -0x64(%rbp), %eax
cmpl -0x78(%rbp), %eax
jne 0x7979
jmp 0x7999
movq -0xc0(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addl -0x6c(%rbp), %eax
movl %eax, -0x6c(%rbp)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x7967
movq -0xc0(%rbp), %rax
movslq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cltq
movq %rax, -0xa0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movslq -0x6c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq -0xa0(%rbp), %rdx
shlq $0x3, %rdx
callq 0x2280
movq -0x30(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
shlq $0x3, %rdx
callq 0xb1f0
movq %rax, %rcx
movq %rcx, -0xb8(%rbp)
movq -0x58(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0xc0(%rbp), %rax
movslq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x58(%rbp), %rax
movl $0x0, (%rax)
movq -0xb8(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movl -0x7c(%rbp), %eax
subl $0x1, %eax
subl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x34(%rax)
movq -0xb8(%rbp), %rax
movq -0xa0(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
addl $0x1, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x88(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq (%rax), %rax
shrq $0x20, %rax
addq %rax, %rcx
addq $0x1, %rcx
imull $0x3, -0x7c(%rbp), %eax
cltq
subq %rax, %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x88(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq -0xa0(%rbp), %rdx
subq $0x1, %rdx
movq (%rax,%rdx,8), %rax
shrq $0x20, %rax
addq %rax, %rcx
addq $0x1, %rcx
movq -0x58(%rbp), %rax
movq %rcx, 0x48(%rax)
movl $0x0, -0x64(%rbp)
movslq -0x64(%rbp), %rax
cmpq -0xa0(%rbp), %rax
jge 0x7b45
movq -0xb8(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq $0x20, %rdx
addq -0x88(%rbp), %rdx
movq -0x58(%rbp), %rax
subq 0x40(%rax), %rdx
shlq $0x20, %rdx
movq -0xb8(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shlq $0x20, %rax
shrq $0x20, %rax
orq %rax, %rdx
movq -0xb8(%rbp), %rax
movslq -0x64(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x7ade
movq -0x58(%rbp), %rax
movl 0x4(%rax), %edi
movq -0x58(%rbp), %rax
movq 0x50(%rax), %rsi
movl -0x7c(%rbp), %edx
callq 0x1a1a0
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x30(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0xac90
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)