// File: /workspace/github_c_makefile_star2_O3/lh3[P]minigraph/miniwfa.c
// Function: mwf_wfa_chain
void mwf_wfa_chain(void *km, const mwf_opt_t *opt, int32_t tl, const char *ts, int32_t ql, const char *qs, mwf_rst_t *r)
{
	int32_t n_a, i, x0, y0;
	uint64_t *a;
	void *km_wfa;
	wf_cigar_t c = {0,0,0};

	km_wfa = !(opt->flag&MWF_F_NO_KALLOC)? km_init2(km, 0) : 0;
	a = mg_chain(km_wfa, tl, ts, ql, qs, opt->kmer, opt->max_occ, &n_a);
	n_a = wf_anchor_filter(n_a, a, tl, ql, opt->kmer, opt->min_len);
	r->s = 0;
	for (i = 0, x0 = y0 = 0; i <= n_a; ++i) {
		int32_t x1, y1;
		if (i == n_a) x1 = tl, y1 = ql;
		else x1 = (int32_t)(a[i]>>32) + 1, y1 = (int32_t)a[i] + 1;
		if (i < n_a && x1 - x0 == y1 - y0 && x1 - x0 <= opt->kmer) {
			if (opt->flag&MWF_F_CIGAR)
				wf_cigar_push1(km, &c, 7, x1 - x0);
		} else if (x0 < x1 && y0 < y1) {
			if (x1 - x0 >= 10000 && y1 - y0 >= 10000 && mwf_ksim(km, x1 - x0, &ts[x0], y1 - y0, &qs[y0], opt->kmer) < 0.02) {
				if (opt->flag&MWF_F_CIGAR) {
					wf_cigar_push1(km, &c, 2, x1 - x0);
					wf_cigar_push1(km, &c, 1, y1 - y0);
				}
				r->s += opt->o2 * 2 + opt->e2 * ((x1 - x0) + (y1 - y0));
			} else {
				mwf_rst_t q;
				mwf_wfa_exact(km_wfa, opt, x1 - x0, &ts[x0], y1 - y0, &qs[y0], &q);
				if (opt->flag&MWF_F_CIGAR)
					wf_cigar_push(km, &c, q.n_cigar, q.cigar);
				r->s += q.s;
				kfree(km_wfa, q.cigar);
			}
		} else if (x0 < x1) {
			wf_cigar_push1(km, &c, 2, x1 - x0);
			r->s += opt->o2 + (x1 - x0) * opt->e2 < opt->o1 + (x1 - x0) * opt->e1? opt->o2 + (x1 - x0) * opt->e2 : opt->o1 + (x1 - x0) * opt->e1;
		} else if (y0 < y1) {
			wf_cigar_push1(km, &c, 1, y1 - y0);
			r->s += opt->o2 + (y1 - y0) * opt->e2 < opt->o1 + (y1 - y0) * opt->e1? opt->o2 + (y1 - y0) * opt->e2 : opt->o1 + (y1 - y0) * opt->e1;
		}
		x0 = x1, y0 = y1;
	}
	if (km_wfa == 0) kfree(km_wfa, a);
	km_destroy(km_wfa);
	r->n_cigar = c.n, r->cigar = c.cigar;
	r->cigar = (uint32_t*)krelocate(km, r->cigar, r->n_cigar * sizeof(*r->cigar));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x78(%rsp)
movq %r8, 0x60(%rsp)
movq %rcx, 0x70(%rsp)
movq %rdx, 0x58(%rsp)
movq %rdi, %rbx
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
xorl %r13d, %r13d
testb $0x2, (%rsi)
movq %rsi, 0x28(%rsp)
jne 0x14312
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2f3c
movq 0x28(%rsp), %rsi
movq %rax, 0x10(%rsp)
jmp 0x1431b
movq $0x0, 0x10(%rsp)
movl 0x2c(%rsi), %ebp
cmpl 0x58(%rsp), %ebp
setg %al
cmpl 0x60(%rsp), %ebp
setg %cl
orb %al, %cl
movq %rbx, 0x30(%rsp)
je 0x1433d
xorl %r11d, %r11d
jmp 0x14722
leal -0x2(%rbp), %eax
cmpl $0xe, %eax
jae 0x14d94
movq %rbp, %r12
movl 0x28(%rsi), %ebp
movq 0x60(%rsp), %r14
movq 0x58(%rsp), %r15
leal (%r14,%r15), %eax
movslq %eax, %rsi
shlq $0x3, %rsi
movq 0x10(%rsp), %rdi
callq 0x30e5
movq %rax, %rbx
xorl %r13d, %r13d
movl %r15d, %edi
movq 0x70(%rsp), %rsi
xorl %edx, %edx
movl %r12d, %ecx
movq %rax, %r8
callq 0x151e7
movslq %eax, %r15
leaq (%rbx,%r15,8), %r8
movl %r14d, %edi
movq 0x78(%rsp), %rsi
movl $0x1, %edx
movl %r12d, %ecx
callq 0x151e7
addl %eax, %r15d
movslq %r15d, %r14
leaq (%rbx,%r14,8), %rsi
movq %rbx, %rdi
callq 0x47e4
testl %r14d, %r14d
jle 0x14555
movl %ebp, 0x68(%rsp)
movl %r15d, %r8d
incl %r15d
xorl %r12d, %r12d
movl $0x1, %r9d
xorl %ecx, %ecx
xorl %eax, %eax
xorl %r13d, %r13d
movq %r15, %rdi
movq %r15, 0x20(%rsp)
movq %r8, 0x50(%rsp)
cmpq %r8, %r9
je 0x1440a
movslq %ecx, %rdx
movq (%rbx,%r9,8), %rsi
xorq (%rbx,%rdx,8), %rsi
movabsq $0x200000000, %rdx      # imm = 0x200000000
cmpq %rdx, %rsi
jb 0x14547
movl %r9d, %esi
subl %ecx, %esi
cmpl $0x2, %esi
jl 0x14464
movslq %ecx, %rbp
movb $0x1, %dl
movl %ecx, %r8d
cmpq %rbp, %r9
jle 0x14482
movabsq $0x100000000, %rdx      # imm = 0x100000000
testq %rdx, (%rbx,%rbp,8)
jne 0x1446c
leaq 0x1(%rbp), %rdx
movl %ecx, %r8d
movl %edx, %esi
cmpq %r9, %rsi
je 0x14473
leaq 0x1(%rdx), %rsi
incl %r8d
movabsq $0x100000000, %rdi      # imm = 0x100000000
testq %rdi, (%rbx,%rdx,8)
movq %rsi, %rdx
je 0x14438
decq %rsi
cmpq %r9, %rsi
setge %dl
jmp 0x1447c
movl %r9d, %ecx
jmp 0x14547
xorl %edx, %edx
movl %ecx, %r8d
jmp 0x1447c
cmpq %r9, %rdx
setge %dl
movl %r9d, %r8d
movl %r9d, %esi
subl %r8d, %esi
movl %r8d, %edi
subl %ecx, %edi
jle 0x1453a
testb %dl, %dl
jne 0x1453a
movl 0x68(%rsp), %ecx
cmpl %ecx, %edi
jg 0x1453a
cmpl %ecx, %esi
jg 0x1453a
movslq %r8d, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x38(%rsp)
movl %r8d, 0x8(%rsp)
movq %rcx, 0x18(%rsp)
cmpq %rcx, %r9
jle 0x14532
movslq %r13d, %r13
movq 0x38(%rsp), %r15
cmpl %eax, %r13d
jne 0x14506
movl %eax, %r14d
sarl %r14d
addl %eax, %r14d
cmpl $0x4, %eax
movl $0x10, %eax
cmovll %eax, %r14d
movslq %r14d, %rdx
shlq $0x3, %rdx
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movq %r9, %r12
callq 0x31ed
movq %r12, %r9
movq %rax, %r12
movl %r14d, %eax
movq (%rbx,%rbp,8), %rcx
shlq $0x20, %rcx
movl -0x8(%rbx,%r15,8), %edx
orq %rcx, %rdx
movq %rdx, (%r12,%r13,8)
incq %r13
movl %r15d, %ecx
incq %r15
cmpq %r9, %rcx
jne 0x144cc
movl 0x8(%rsp), %r8d
movq 0x18(%rsp), %rcx
incq %rbp
cmpl %ebp, %r8d
jne 0x144bf
movl %r9d, %ecx
movq 0x20(%rsp), %rdi
movq 0x50(%rsp), %r8
incq %r9
cmpq %rdi, %r9
jne 0x143e7
jmp 0x14558
xorl %r12d, %r12d
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x301f
movslq %r13d, %r15
leaq (%r12,%r15,8), %rsi
movq %r12, %rdi
callq 0x47e4
testl %r15d, %r15d
jle 0x14588
xorl %eax, %eax
rolq $0x20, (%r12,%rax,8)
incq %rax
cmpq %rax, %r15
jne 0x1457b
leaq (,%r15,4), %r13
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x30e5
movq %rax, %rbx
leaq 0x4(,%r15,4), %rsi
movq %r14, %rdi
callq 0x30e5
movq %rax, %r14
testl %r15d, %r15d
jle 0x14652
movq %r13, %rdx
xorl %eax, %eax
xorl %r13d, %r13d
testl %r13d, %r13d
jle 0x145fc
movq (%r12,%rax,8), %r9
movl $0x1, %ecx
movl %r13d, %esi
leal (%rsi,%rcx), %edi
incl %edi
sarl %edi
movslq %edi, %r8
movslq (%r14,%r8,4), %r8
cmpq %r9, (%r12,%r8,8)
jb 0x145f2
decl %edi
movl %edi, %esi
jmp 0x145f6
incl %edi
movl %edi, %ecx
cmpl %esi, %ecx
jle 0x145d8
jmp 0x14601
movl $0x1, %ecx
movslq %ecx, %rcx
movl -0x4(%r14,%rcx,4), %esi
movl %esi, (%rbx,%rax,4)
movl %eax, (%r14,%rcx,4)
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
incq %rax
cmpq %r15, %rax
jne 0x145c7
movslq %r13d, %r15
movl (%r14,%r15,4), %ebp
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2230
testl %r15d, %r15d
jle 0x14666
movl %r13d, %eax
incq %rax
movl %ebp, -0x8(%rbx,%rax,4)
movslq %ebp, %rcx
movl (%r14,%rcx,4), %ebp
decq %rax
cmpq $0x1, %rax
ja 0x1463c
jmp 0x14666
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x2230
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rsi
callq 0x301f
shlq $0x3, %r15
movq %rbp, %rdi
movq %r15, 0x8(%rsp)
movq %r15, %rsi
callq 0x30e5
movq %rax, %r14
movl %r13d, %ebp
testl %r13d, %r13d
jle 0x146ab
xorl %eax, %eax
movslq (%rbx,%rax,4), %rcx
movq (%r12,%rcx,8), %rcx
movq %rcx, (%r14,%rax,8)
incq %rax
cmpq %rax, %rbp
jne 0x14697
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x301f
movq %r15, %rdi
movq %r12, %rsi
callq 0x301f
movq %r15, %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x30e5
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2230
movq %r15, %rdi
movq %r14, %rsi
callq 0x301f
movq %rbx, %r11
testl %r13d, %r13d
jle 0x14709
xorl %eax, %eax
rolq $0x20, (%r11,%rax,8)
incq %rax
cmpq %rax, %rbp
jne 0x146fc
testl %r13d, %r13d
movq 0xf0(%rsp), %rdi
movq 0x28(%rsp), %rsi
js 0x14826
movl 0x2c(%rsi), %ebp
movl %r13d, %ebx
movl 0x30(%rsi), %eax
movl %eax, 0x8(%rsp)
incl %r13d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %r10d, %r10d
xorl %edx, %edx
movq %r13, 0x18(%rsp)
movl %r14d, %edi
movq 0x58(%rsp), %r14
movq 0x60(%rsp), %r15
cmpq %r12, %rbx
je 0x14769
movq (%r11,%r12,8), %r15
movq %r15, %r14
shrq $0x20, %r14
incl %r14d
incl %r15d
movl %r14d, %r8d
subl %edx, %r8d
movl %r15d, %r9d
subl %r10d, %r9d
cmpl %r9d, %r8d
jne 0x14784
subl %edi, %ecx
addl %r14d, %ecx
movl %r10d, %r15d
jmp 0x147d5
testl %eax, %eax
movl $0x0, %edx
cmovlel %edx, %eax
cmpl 0x8(%rsp), %ecx
jge 0x147cd
cmpq %rax, %r12
jbe 0x147cd
leaq (%r11,%rax,8), %rdi
notl %eax
addl %r12d, %eax
leaq 0x8(,%rax,8), %rdx
xorl %esi, %esi
movq %rbx, %r13
movq %rbp, %rbx
movq %r11, %rbp
callq 0x2180
movq %rbp, %r11
movq %rbx, %rbp
movq %r13, %rbx
movq 0x18(%rsp), %r13
movq 0x28(%rsp), %rsi
movl %r12d, %eax
movl %r14d, %edx
movl %ebp, %ecx
incq %r12
movl %r15d, %r10d
cmpq %r12, %r13
jne 0x14746
testq %rbx, %rbx
movq 0xf0(%rsp), %rdi
je 0x14826
xorl %eax, %eax
xorl %r8d, %r8d
movq 0x10(%rsp), %r13
movq (%r11,%rax,8), %rcx
testq %rcx, %rcx
je 0x1480e
movslq %r8d, %rdx
incl %r8d
movq %rcx, (%r11,%rdx,8)
incq %rax
cmpq %rax, %rbx
jne 0x147fb
movl $0x0, (%rdi)
testl %r8d, %r8d
jns 0x14834
jmp 0x14d21
movq 0x10(%rsp), %r13
movl $0x0, (%rdi)
xorl %r8d, %r8d
movl %r8d, %r12d
incl %r8d
xorl %r14d, %r14d
xorl %r10d, %r10d
xorl %ebp, %ebp
movq %r11, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %r12, 0x38(%rsp)
movl %ebp, %eax
movl %r10d, %edx
movq 0x58(%rsp), %rcx
movl %ecx, %r10d
movq 0x60(%rsp), %rcx
movl %ecx, %ebp
cmpq %r12, %r14
je 0x1487a
movq (%r11,%r14,8), %rbp
movq %rbp, %r10
shrq $0x20, %r10
incl %r10d
incl %ebp
cmpq %r12, %r14
jae 0x14895
movl %r10d, %ecx
subl %edx, %ecx
movl %ebp, %edi
subl %eax, %edi
cmpl %edi, %ecx
jne 0x14895
cmpl 0x2c(%rsi), %ecx
jle 0x14abe
movl %r10d, %r15d
subl %edx, %r15d
setg %cl
movl %ebp, %ebx
subl %eax, %ebx
setg %dil
andb %cl, %dil
cmpb $0x1, %dil
jne 0x14a48
movslq %edx, %rcx
movslq %eax, %r9
cmpl $0x2710, %r15d          # imm = 0x2710
jl 0x14bde
cmpl $0x2710, %ebx           # imm = 0x2710
jl 0x14bde
movl 0x2c(%rsi), %r13d
cmpl %r13d, %r15d
jl 0x14b6a
cmpl %r13d, %ebx
jl 0x14b6a
movq %rbp, 0x20(%rsp)
movq %r10, 0x50(%rsp)
leal -0x2(%r13), %eax
cmpl $0xe, %eax
jae 0x14d75
movq 0x70(%rsp), %rax
movq %rcx, 0x98(%rsp)
leaq (%rax,%rcx), %rbp
movq 0x78(%rsp), %rax
movq %r9, 0x68(%rsp)
addq %r9, %rax
movq %rax, 0x80(%rsp)
leal (%rbx,%r15), %esi
shlq $0x3, %rsi
movq 0x30(%rsp), %rdi
callq 0x30e5
movq %rax, %r12
movl %r15d, %edi
movq %rbp, %rsi
xorl %edx, %edx
movl %r13d, %ecx
movq %rax, %r8
callq 0x151e7
movslq %eax, %rbp
leaq (%r12,%rbp,8), %r8
movl %ebx, %edi
movq 0x80(%rsp), %rsi
movl $0x1, %edx
movl %r13d, %ecx
callq 0x151e7
addl %eax, %ebp
movslq %ebp, %r13
leaq (%r12,%r13,8), %rsi
movq %r12, %rdi
callq 0x47e4
testl %r13d, %r13d
jle 0x14afa
movl %ebp, %eax
incl %ebp
pxor %xmm0, %xmm0
xorl %edx, %edx
movl $0x1, %ecx
pxor %xmm1, %xmm1
movabsq $0x200000000, %r8       # imm = 0x200000000
movabsq $0x100000000, %r9       # imm = 0x100000000
movslq %edx, %rsi
cmpq %rax, %rcx
je 0x149c1
movq (%r12,%rcx,8), %rdi
xorq (%r12,%rsi,8), %rdi
cmpq %r8, %rdi
jb 0x14a2f
movl %edx, %edi
cmpq %rsi, %rcx
jle 0x149dc
testq %r9, (%r12,%rsi,8)
jne 0x149da
incq %rsi
cmpq %rsi, %rcx
jne 0x149c8
movl %ecx, %edi
jmp 0x149dc
movl %esi, %edi
movd %ecx, %xmm3
movd %edi, %xmm2
movd %edx, %xmm4
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
punpckldq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
psubd %xmm4, %xmm2
paddd %xmm2, %xmm1
pshufd $0x50, %xmm2, %xmm3     # xmm3 = xmm2[0,0,1,1]
pcmpgtd 0x137db(%rip), %xmm3    # 0x281e0
movmskpd %xmm3, %edx
cmpl $0x3, %edx
jne 0x14a2d
movd %xmm2, %edx
pshufd $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movd %xmm2, %esi
cmpl %esi, %edx
cmovbl %edx, %esi
movd %esi, %xmm2
pshufd $0x50, %xmm2, %xmm2     # xmm2 = xmm2[0,0,1,1]
paddd %xmm2, %xmm0
movl %ecx, %edx
incq %rcx
cmpq %rbp, %rcx
jne 0x149ac
cvtdq2pd %xmm0, %xmm2
cvtdq2pd %xmm1, %xmm0
jmp 0x14b02
movl %r10d, %ebx
subl %edx, %ebx
jle 0x14a60
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x2, %edx
jmp 0x14a79
movl %ebp, %ebx
subl %eax, %ebx
jle 0x14d15
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x1, %edx
movl %ebx, %ecx
movq %r10, %r15
callq 0x14db3
movq %r15, %r10
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %r8
movq 0x8(%rsp), %r11
movq 0x28(%rsp), %rsi
movl 0x14(%rsi), %eax
imull %ebx, %eax
addl 0x10(%rsi), %eax
imull 0xc(%rsi), %ebx
addl 0x8(%rsi), %ebx
cmpl %ebx, %eax
cmovll %eax, %ebx
movq 0xf0(%rsp), %rax
addl %ebx, (%rax)
jmp 0x14d15
testb $0x1, (%rsi)
je 0x14d15
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movl $0x7, %edx
movq %r10, %rbx
callq 0x14db3
movq %rbx, %r10
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %r8
movq 0x8(%rsp), %r11
movq 0x28(%rsp), %rsi
jmp 0x14d15
xorpd %xmm2, %xmm2
pxor %xmm0, %xmm0
divpd %xmm0, %xmm2
movapd %xmm2, 0x80(%rsp)
movq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x301f
movapd 0x80(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
maxsd %xmm0, %xmm1
movsd 0x1421f(%rip), %xmm0    # 0x28d58
ucomisd %xmm1, %xmm0
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %r11
movq 0x18(%rsp), %r8
movq 0x38(%rsp), %r12
movq 0x50(%rsp), %r10
movq 0x20(%rsp), %rbp
movq 0x68(%rsp), %r9
movq 0x98(%rsp), %rcx
jbe 0x14bde
testb $0x1, (%rsi)
je 0x14bbd
movq 0x30(%rsp), %r12
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
movl $0x2, %edx
movl %r15d, %ecx
movq %rbp, %r13
movq %r10, %rbp
callq 0x14db3
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
movl $0x1, %edx
movl %ebx, %ecx
callq 0x14db3
movq %rbp, %r10
movq %r13, %rbp
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %r8
movq 0x8(%rsp), %r11
movq 0x28(%rsp), %rsi
movl 0x10(%rsi), %eax
addl %r15d, %ebx
imull 0x14(%rsi), %ebx
leal (%rbx,%rax,2), %eax
movq 0xf0(%rsp), %rcx
addl %eax, (%rcx)
movq 0x10(%rsp), %r13
jmp 0x14d15
movq %rbp, 0x20(%rsp)
movq %r10, %rbp
addq 0x70(%rsp), %rcx
addq 0x78(%rsp), %r9
leaq 0xa0(%rsp), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %r13
movq %r13, %rdi
movl %r15d, %edx
movl %ebx, %r8d
movq %rsi, %rbx
callq 0x1351f
testb $0x1, (%rbx)
movq 0xb0(%rsp), %rbx
movq 0xf0(%rsp), %rcx
je 0x14ce5
movslq 0xa4(%rsp), %r15
testq %r15, %r15
je 0x14ce5
movl (%rbx), %ecx
movl %ecx, %edx
andl $0xf, %edx
shrl $0x4, %ecx
movq 0x30(%rsp), %r12
movq %r12, %rdi
leaq 0x40(%rsp), %rsi
callq 0x14db3
movq %r12, %rdi
movslq 0x44(%rsp), %r12
leal (%r12,%r15), %eax
decl %eax
cmpl 0x40(%rsp), %eax
jle 0x14cb8
leal (%r12,%r15), %eax
addl $-0x2, %eax
movl %eax, %ecx
sarl %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x10, %ecx
orl %eax, %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x40(%rsp)
movq 0x48(%rsp), %rsi
movslq %ecx, %rax
leaq 0x4(,%rax,4), %rdx
callq 0x31ed
movq %rax, 0x48(%rsp)
jmp 0x14cbd
movq 0x48(%rsp), %rax
leaq (%rax,%r12,4), %rdi
leaq 0x4(%rbx), %rsi
leaq -0x4(,%r15,4), %rdx
decq %r15
callq 0x2230
addl %r12d, %r15d
movl %r15d, 0x44(%rsp)
movq 0xf0(%rsp), %rcx
movl 0xa0(%rsp), %eax
addl %eax, (%rcx)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x301f
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %r11
movq 0x18(%rsp), %r8
movq 0x38(%rsp), %r12
movq %rbp, %r10
movq 0x20(%rsp), %rbp
incq %r14
cmpq %r8, %r14
jne 0x14851
testq %r13, %r13
jne 0x14d30
xorl %edi, %edi
movq %r11, %rsi
callq 0x301f
movq %r13, %rdi
callq 0x2fe1
movslq 0x44(%rsp), %rdx
movq 0xf0(%rsp), %rbx
movl %edx, 0x4(%rbx)
movq 0x48(%rsp), %rsi
movq %rsi, 0x10(%rbx)
shlq $0x2, %rdx
movq 0x30(%rsp), %rdi
callq 0x328f
movq %rax, 0x10(%rbx)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x142a1(%rip), %rdi     # 0x2901d
leaq 0x13fe1(%rip), %rsi     # 0x28d64
leaq 0x1430b(%rip), %rcx     # 0x29095
movl $0x2ce, %edx            # imm = 0x2CE
callq 0x2160
leaq 0x14282(%rip), %rdi     # 0x2901d
leaq 0x13fc2(%rip), %rsi     # 0x28d64
leaq 0x14286(%rip), %rcx     # 0x2902f
movl $0x299, %edx            # imm = 0x299
callq 0x2160