// File: /workspace/github_c_makefile_star2_O1/lh3[P]minimap2/align.c
// Function: mm_align_skeleton
mm_reg1_t *mm_align_skeleton(void *km, const mm_mapopt_t *opt, const mm_idx_t *mi, int qlen, const char *qstr, int *n_regs_, mm_reg1_t *regs, mm128_t *a)
{
	extern unsigned char seq_nt4_table[256];
	int32_t i, n_regs = *n_regs_, n_a;
	uint8_t *qseq0[2];
	ksw_extz_t ez;

	// encode the query sequence
	qseq0[0] = (uint8_t*)kmalloc(km, qlen * 2);
	qseq0[1] = qseq0[0] + qlen;
	for (i = 0; i < qlen; ++i) {
		qseq0[0][i] = seq_nt4_table[(uint8_t)qstr[i]];
		qseq0[1][qlen - 1 - i] = qseq0[0][i] < 4? 3 - qseq0[0][i] : 4;
	}

	// align through seed hits
	n_a = mm_squeeze_a(km, n_regs, regs, a);
	memset(&ez, 0, sizeof(ksw_extz_t));
	for (i = 0; i < n_regs; ++i) {
		mm_reg1_t r2; // only used for inversion
		if ((opt->flag&MM_F_SPLICE) && (opt->flag&MM_F_SPLICE_FOR) && (opt->flag&MM_F_SPLICE_REV)) { // then do two rounds of alignments for both strands
			mm_reg1_t s[2], s2[2], *r;
			s[0] = s[1] = regs[i];
			mm_align1(km, opt, mi, qlen, qseq0, &s[0], &s2[0], n_a, a, &ez, MM_F_SPLICE_FOR); // assume the transcript is on the + strand of the genome
			if ((opt->flag&MM_F_SR_RNA) && regs[i].qe - regs[i].qs == regs[i].re - regs[i].rs && s[0].qe - s[0].qs == s[0].re - s[0].rs && s[0].qs == 0 && s[0].qe == qlen) {
				regs[i] = s[0], r2 = s2[0];
				regs[i].p->trans_strand = 0;
			} else {
				int which, trans_strand;
				mm_align1(km, opt, mi, qlen, qseq0, &s[1], &s2[1], n_a, a, &ez, MM_F_SPLICE_REV); // assume the transcript on the - strand
				if (s[0].p->dp_score > s[1].p->dp_score) which = 0, trans_strand = 1;
				else if (s[0].p->dp_score < s[1].p->dp_score) which = 1, trans_strand = 2;
				else trans_strand = 3, which = (qlen + s[0].p->dp_score) & 1; // randomly choose a strand, effectively
				if (which == 0) {
					regs[i] = s[0], r2 = s2[0];
					free(s[1].p);
				} else {
					regs[i] = s[1], r2 = s2[1];
					free(s[0].p);
				}
				r = &regs[i];
				r->p->trans_strand = trans_strand;
				if (r->is_spliced) {
					if (trans_strand == 1 || trans_strand == 2) // this is an *approximate* way to tell if there are splice signals.
						r->p->dp_max += (opt->a + opt->b) + ((opt->a + opt->b) >> 1);
					else if (trans_strand == 3)
						r->p->dp_max -= opt->a + opt->b;
				}
			}
		} else { // one round of alignment
			mm_align1(km, opt, mi, qlen, qseq0, &regs[i], &r2, n_a, a, &ez, opt->flag);
			if (opt->flag&MM_F_SPLICE)
				regs[i].p->trans_strand = opt->flag&MM_F_SPLICE_FOR? 1 : 2;
		}
		if (r2.cnt > 0) regs = mm_insert_reg(&r2, i, &n_regs, regs);
		if (i > 0 && regs[i].split_inv && !(opt->flag & MM_F_NO_INV)) {
			if (mm_align1_inv(km, opt, mi, qlen, qseq0, &regs[i-1], &regs[i], &r2, &ez)) {
				regs = mm_insert_reg(&r2, i, &n_regs, regs);
				++i; // skip the inserted INV alignment
			}
		}
	}
	*n_regs_ = n_regs;
	kfree(km, qseq0[0]);
	kfree(km, ez.cigar);
	mm_filter_regs(opt, qlen, n_regs_, regs);
	if (!(opt->flag&(MM_F_SR|MM_F_SR_RNA|MM_F_ALL_CHAINS)) && !opt->split_prefix && qlen >= opt->rank_min_len) {
		mm_update_dp_max(qlen, *n_regs_, regs, opt->rank_frac, opt->a, opt->b);
		mm_filter_regs(opt, qlen, n_regs_, regs);
	}
	mm_hit_sort(km, n_regs_, regs, opt->alt_drop);
	return regs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %r9, %r14
movq %r8, %rbx
movl %ecx, %r13d
movq %rdx, 0x48(%rsp)
movq %rsi, %r15
movq 0x2b0(%rsp), %rbp
movl (%r9), %eax
movl %eax, 0x18(%rsp)
leal (,%r13,2), %eax
movslq %eax, %rsi
movq %rdi, %r12
callq 0x126e9
movq %rax, 0x50(%rsp)
movq %r13, 0x10(%rsp)
movslq %r13d, %rdx
leaq (%rax,%rdx), %rcx
movq %rcx, 0x58(%rsp)
testl %edx, %edx
jle 0x1754b
movl %edx, %ecx
addq %rcx, %rdx
decq %rdx
xorl %esi, %esi
leaq 0x1e2f9(%rip), %rdi     # 0x35810
movl $0x4, %r8d
movzbl (%rbx,%rsi), %r9d
movb (%rdi,%r9), %r9b
movb %r9b, (%rax,%rsi)
movb $0x3, %r10b
subb %r9b, %r10b
cmpb $0x4, %r9b
movzbl %r10b, %r9d
cmovael %r8d, %r9d
movb %r9b, (%rax,%rdx)
incq %rsi
decq %rdx
cmpq %rsi, %rcx
jne 0x1751d
movq %r14, 0x128(%rsp)
movq %r12, %rdi
movl 0x18(%rsp), %r13d
movl %r13d, %esi
movq %rbp, %rdx
movq 0x2b8(%rsp), %rcx
callq 0x1cbb3
movq %rax, 0x70(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xe0(%rsp)
movapd %xmm0, 0xf0(%rsp)
movapd %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
testl %r13d, %r13d
jle 0x17fa4
xorl %r14d, %r14d
movq %r12, (%rsp)
movq %r15, 0x40(%rsp)
movq (%r15), %rax
movl %eax, %ecx
notl %ecx
movslq %r14d, %rdx
testl $0x380, %ecx            # imm = 0x380
movq %rdx, 0x8(%rsp)
leaq (%rdx,%rdx,4), %rbx
jne 0x176ed
shlq $0x4, %rbx
movq %rbp, 0x20(%rsp)
addq %rbp, %rbx
movl $0xa, %ecx
leaq 0x180(%rsp), %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x50, %edx
leaq 0x130(%rsp), %rbp
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2340
subq $0x8, %rsp
movq %r12, %rdi
movq %r15, %rsi
movq 0x50(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x58(%rsp), %r8
movq %rbp, %r9
pushq $0x100                  # imm = 0x100
leaq 0xf0(%rsp), %rax
pushq %rax
pushq 0x2d0(%rsp)
pushq 0x90(%rsp)
leaq 0x1f8(%rsp), %rax
pushq %rax
callq 0x18069
addq $0x30, %rsp
movabsq $0x8000000000, %rax     # imm = 0x8000000000
testq %rax, (%r15)
je 0x1776e
movl 0x14(%rbx), %eax
subl 0x10(%rbx), %eax
movl 0x1c(%rbx), %ecx
subl 0x18(%rbx), %ecx
cmpl %ecx, %eax
jne 0x1776e
movl 0x144(%rsp), %eax
cmpl 0x10(%rsp), %eax
jne 0x1776e
movl 0x140(%rsp), %ecx
testl %ecx, %ecx
jne 0x1776e
subl %ecx, %eax
movl 0x14c(%rsp), %ecx
subl 0x148(%rsp), %ecx
cmpl %ecx, %eax
jne 0x1776e
movl $0xa, %ecx
movq %rbx, %rdi
leaq 0x130(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0xa, %ecx
leaq 0x90(%rsp), %rdi
leaq 0x1d0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x48(%rbx), %rax
andl $0x3fffffff, 0x14(%rax) # imm = 0x3FFFFFFF
jmp 0x178ca
shlq $0x4, %rbx
addq %rbp, %rbx
subq $0x8, %rsp
movq %r12, %rdi
movq %r15, %rsi
movq 0x50(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x58(%rsp), %r8
movq %rbx, %r9
pushq %rax
leaq 0xf0(%rsp), %rax
pushq %rax
pushq 0x2d0(%rsp)
pushq 0x90(%rsp)
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x18069
addq $0x30, %rsp
movq (%r15), %rax
testb %al, %al
jns 0x178d8
btl $0x8, %eax
movl $0x40000000, %eax       # imm = 0x40000000
movl $0x80000000, %ecx       # imm = 0x80000000
cmovael %ecx, %eax
movq 0x48(%rbx), %rcx
movl 0x14(%rcx), %edx
movl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
andl %esi, %edx
orl %eax, %edx
movl %edx, 0x14(%rcx)
jmp 0x178d8
subq $0x8, %rsp
movq %r12, %rdi
movq %r15, %rsi
movq 0x50(%rsp), %rdx
movq 0x18(%rsp), %rcx
leaq 0x58(%rsp), %r8
leaq 0x188(%rsp), %r9
pushq $0x200                  # imm = 0x200
leaq 0xf0(%rsp), %rax
pushq %rax
pushq 0x2d0(%rsp)
pushq 0x90(%rsp)
leaq 0x248(%rsp), %rax
pushq %rax
callq 0x18069
addq $0x30, %rsp
movq 0x178(%rsp), %rax
movq 0x1c8(%rsp), %rcx
movl 0x4(%rax), %ebp
movl 0x4(%rcx), %r15d
cmpl %r15d, %ebp
movl %r13d, 0x18(%rsp)
jle 0x177e8
movl $0x40000000, %r13d      # imm = 0x40000000
movb $0x1, %al
jmp 0x17809
jge 0x177f7
movl $0x80000000, %r13d      # imm = 0x80000000
movb $0x1, %r12b
xorl %eax, %eax
jmp 0x1780c
movq 0x10(%rsp), %rax
addl %ebp, %eax
testb $0x1, %al
sete %al
movl $0xc0000000, %r13d      # imm = 0xC0000000
xorl %r12d, %r12d
testb %al, %al
leaq 0x180(%rsp), %rsi
leaq 0x130(%rsp), %rax
cmovneq %rax, %rsi
leaq 0x220(%rsp), %rax
leaq 0x1d0(%rsp), %rcx
cmovneq %rcx, %rax
movl $0xa, %ecx
movq %rbx, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl $0xa, %ecx
leaq 0x90(%rsp), %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x178(%rsp), %rax
leaq 0x1c8(%rsp), %rcx
cmovneq %rcx, %rax
movq (%rax), %rdi
callq 0x2040
movq 0x48(%rbx), %rax
movl 0x14(%rax), %ecx
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
andl %edx, %ecx
orl %r13d, %ecx
movl %ecx, 0x14(%rax)
testb $0x8, 0x3f(%rbx)
movl 0x18(%rsp), %r13d
je 0x178ca
cmpl %r15d, %ebp
setle %al
xorb $0x1, %r12b
testb %r12b, %al
jne 0x178b8
movq 0x40(%rsp), %rcx
movl 0x68(%rcx), %eax
addl 0x64(%rcx), %eax
movl %eax, %ecx
sarl %ecx
addl %eax, %ecx
movq 0x48(%rbx), %rax
addl %ecx, 0x8(%rax)
jmp 0x178ca
movq 0x40(%rsp), %rcx
movl 0x68(%rcx), %eax
addl 0x64(%rcx), %eax
movq 0x48(%rbx), %rcx
subl %eax, 0x8(%rcx)
movq (%rsp), %r12
movq 0x40(%rsp), %r15
movq 0x20(%rsp), %rbp
cmpl $0x0, 0x94(%rsp)
jle 0x17960
movslq %r13d, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
addq $0x50, %rsi
movq %rbp, %rdi
callq 0x2320
movq %rax, %rbp
leal 0x1(%r14), %eax
movslq %eax, %rbx
cmpl %r13d, %eax
je 0x17942
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
leaq (%rax,%rbp), %rdi
addq $0xa0, %rdi
leaq (%rbx,%rbx,4), %rsi
shlq $0x4, %rsi
addq %rbp, %rsi
movl %r14d, %eax
notl %eax
addl %r13d, %eax
cltq
shlq $0x4, %rax
leaq (%rax,%rax,4), %rdx
callq 0x2340
incl %r13d
leaq (%rbx,%rbx,4), %rdi
shlq $0x4, %rdi
addq %rbp, %rdi
movl $0xa, %ecx
leaq 0x90(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
testl %r14d, %r14d
jle 0x17f98
movl %r13d, %r12d
movl %r14d, %ebx
leaq (%rbx,%rbx,4), %r13
shlq $0x4, %r13
testb $0x1, 0x3f(%rbp,%r13)
je 0x17f91
testb $0x2, 0x4(%r15)
jne 0x17f91
leal -0x1(%r14), %eax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xc0(%rsp)
movapd %xmm0, 0xd0(%rsp)
movl 0x3c(%rbp,%rdi), %eax
btl $0x8, %eax
jae 0x17f91
addq %rbp, %r13
movl 0x3c(%r13), %ecx
btl $0x9, %ecx
jae 0x17f91
addq %rbp, %rdi
movl 0x20(%rdi), %edx
cmpl %edx, (%rdi)
setne %sil
cmpl $-0x2, %edx
setne %dl
testb %dl, %sil
jne 0x17f91
movl 0x20(%r13), %edx
cmpl %edx, (%r13)
setne %sil
cmpl $-0x2, %edx
setne %dl
testb %dl, %sil
jne 0x17f91
movl 0x8(%rdi), %edx
cmpl 0x8(%r13), %edx
jne 0x17f91
shrl $0xa, %eax
andl $0x1, %eax
btl $0xa, %ecx
movl %eax, %ecx
sbbl $0x0, %ecx
jne 0x17f91
testl %eax, %eax
movq %rdi, %rax
cmoveq %r13, %rax
movq %r13, %rcx
cmoveq %rdi, %rcx
movl 0x10(%rax), %r11d
movl 0x14(%rcx), %r9d
movl %r11d, %edx
subl %r9d, %edx
movl 0x34(%r15), %eax
cmpl %eax, %edx
jl 0x17f91
movl 0x1c(%r15), %ecx
cmpl %ecx, %edx
jg 0x17f91
movl 0x18(%r13), %r10d
movl 0x1c(%rdi), %esi
movl %r10d, %r8d
subl %esi, %r8d
cmpl %eax, %r8d
setl %al
cmpl %ecx, %r8d
setg %cl
orb %al, %cl
jne 0x17f91
movq %r11, 0x80(%rsp)
movq %r10, 0x88(%rsp)
movq %r9, 0x30(%rsp)
movq %rsi, 0x18(%rsp)
movl %edx, 0x28(%rsp)
movsbl 0x64(%r15), %esi
movsbl 0x68(%r15), %edx
movsbl 0x7c(%r15), %ecx
movq %r8, 0x8(%rsp)
movsbl 0x80(%r15), %r8d
movq %rdi, 0x38(%rsp)
leaq 0x130(%rsp), %rdi
callq 0x1a93d
movslq 0x8(%rsp), %rsi
movq (%rsp), %rdi
movq %rsi, 0x118(%rsp)
callq 0x126e9
movq %rax, %r8
movq 0x38(%rsp), %rax
movl 0x8(%rax), %esi
movq 0x38(%rsp), %rax
movl 0x1c(%rax), %edx
movl 0x18(%r13), %ecx
movq 0x48(%rsp), %rdi
movq %r8, 0x20(%rsp)
callq 0x7224
movq 0x38(%rsp), %rax
testb $0x4, 0x3d(%rax)
jne 0x17b3c
movq 0x58(%rsp), %rax
movq 0x10(%rsp), %rcx
subl 0x10(%r13), %ecx
jmp 0x17b45
movq 0x50(%rsp), %rax
movl 0x14(%r13), %ecx
movl 0x28(%rsp), %edx
movq 0x30(%rsp), %rsi
movslq %ecx, %rcx
addq %rax, %rcx
notl %esi
movq %rsi, 0x30(%rsp)
cmpl $0x2, %edx
movq 0x20(%rsp), %r9
jb 0x17b9b
movl %edx, %eax
shrl %eax
movq 0x30(%rsp), %rsi
movq 0x80(%rsp), %rdi
leal (%rsi,%rdi), %r10d
xorl %r11d, %r11d
movb (%rcx,%r11), %sil
movl %r10d, %edi
movb (%rcx,%rdi), %r8b
movb %r8b, (%rcx,%r11)
movb %sil, (%rcx,%rdi)
incq %r11
decl %r10d
cmpq %r11, %rax
jne 0x17b7d
movq 0x18(%rsp), %rax
notl %eax
movq %rax, 0x18(%rsp)
cmpl $0x2, 0x8(%rsp)
jb 0x17be7
movq 0x8(%rsp), %rax
shrl %eax
movq 0x18(%rsp), %rsi
movq 0x88(%rsp), %rdi
leal (%rsi,%rdi), %r10d
xorl %r11d, %r11d
movb (%r9,%r11), %sil
movl %r10d, %edi
movb (%r9,%rdi), %r8b
movb %r8b, (%r9,%r11)
movb %sil, (%r9,%rdi)
incq %r11
decl %r10d
cmpq %r11, %rax
jne 0x17bc9
movq (%rsp), %rdi
movl $0x2, %esi
movl $0x5, %r8d
leaq 0x130(%rsp), %r9
movq %rcx, 0x68(%rsp)
callq 0x1e98c
movq %rax, 0x120(%rsp)
movl 0x6c(%r15), %ecx
movl 0x70(%r15), %r8d
subq $0x8, %rsp
movq %rax, %rdi
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x1d8(%rsp), %r9
leaq 0x34(%rsp), %rax
pushq %rax
callq 0x1eb6a
addq $0x10, %rsp
movl %eax, 0x7c(%rsp)
movq (%rsp), %rdi
movq 0x120(%rsp), %rsi
callq 0x1261e
movl 0x28(%rsp), %r11d
movq 0x68(%rsp), %r10
cmpl $0x2, %r11d
movq 0x30(%rsp), %r8
jb 0x17c97
movl %r11d, %eax
shrl %eax
addl 0x80(%rsp), %r8d
xorl %ecx, %ecx
movb (%r10,%rcx), %dl
movl %r8d, %esi
movb (%r10,%rsi), %dil
movb %dil, (%r10,%rcx)
movb %dl, (%r10,%rsi)
incq %rcx
decl %r8d
cmpq %rcx, %rax
jne 0x17c79
movq 0x8(%rsp), %r8
cmpl $0x2, %r8d
movq 0x20(%rsp), %r9
movq 0x18(%rsp), %rdi
jb 0x17cd4
shrl %r8d
addl 0x88(%rsp), %edi
xorl %eax, %eax
movb (%r9,%rax), %cl
movl %edi, %edx
movb (%r9,%rdx), %sil
movb %sil, (%r9,%rax)
movb %cl, (%r9,%rdx)
incq %rax
decl %edi
cmpq %rax, %r8
jne 0x17cb8
movl 0x7c(%rsp), %eax
cmpl 0x9c(%r15), %eax
jl 0x17e3b
movl 0x1d0(%rsp), %eax
leal 0x1(%rax), %edx
notl %eax
addl %eax, %r11d
movl %r11d, 0x1d0(%rsp)
movslq 0x2c(%rsp), %r8
incq %r8
movq 0x118(%rsp), %rax
subq %r8, %rax
movl %eax, 0x2c(%rsp)
movslq %r11d, %rcx
addq %r10, %rcx
addq %r9, %rax
cvtsi2sdl 0x14(%r15), %xmm0
mulsd 0x1585e(%rip), %xmm0    # 0x2d588
cvttsd2si %xmm0, %esi
movq %rsi, 0x8(%rsp)
movl 0x90(%r15), %r10d
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rax, %r9
leaq 0xe8(%rsp), %r11
pushq %r11
pushq $0x40
pushq %r10
pushq $-0x1
pushq 0x30(%rsp)
leaq 0x160(%rsp), %rax
pushq %rax
pushq $0x0
callq 0x1a9d6
movq 0x60(%rsp), %r9
addq $0x40, %rsp
movl 0x104(%rsp), %esi
testl %esi, %esi
je 0x17e3b
movq 0x110(%rsp), %rdx
leaq 0x90(%rsp), %rdi
callq 0x1ad1f
movl 0xe0(%rsp), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
movq 0xd8(%rsp), %rcx
movl %eax, 0x4(%rcx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x90(%rsp)
movl %eax, 0xb0(%rsp)
movl 0xcc(%rsp), %eax
movl $0x800, %ecx            # imm = 0x800
orl %ecx, %eax
movl %eax, 0xcc(%rsp)
movq 0x38(%rsp), %rsi
movl 0x3c(%rsi), %ecx
movl $0x400, %edx            # imm = 0x400
andl %edx, %ecx
andl $0xfffffbff, %eax       # imm = 0xFFFFFBFF
orl %ecx, %eax
xorl %edx, %eax
movl %eax, 0xcc(%rsp)
movl 0x8(%rsi), %eax
movl %eax, 0x98(%rsp)
movl $0xbf800000, 0xd4(%rsp) # imm = 0xBF800000
movl 0x1d0(%rsp), %eax
testl %ecx, %ecx
jne 0x17e55
movl 0x10(%r13), %ecx
subl %eax, %ecx
movl %ecx, 0xa4(%rsp)
movl 0xe4(%rsp), %eax
notl %eax
addl %ecx, %eax
movl %eax, 0xa0(%rsp)
jmp 0x17e72
movq (%rsp), %rbx
movq %rbx, %rdi
movq %r9, %rsi
callq 0x1261e
movl %r12d, %r13d
movq %rbx, %r12
jmp 0x17f98
addl 0x14(%r13), %eax
movl %eax, 0xa0(%rsp)
movl 0xe4(%rsp), %ecx
addl %ecx, %eax
incl %eax
movl %eax, 0xa4(%rsp)
movq 0x20(%rsp), %r13
movq 0x68(%rsp), %r10
movslq 0x2c(%rsp), %rax
movl 0x1c(%rsi), %ecx
addl %eax, %ecx
movl %ecx, 0xa8(%rsp)
movl 0xe8(%rsp), %edx
addl %edx, %ecx
incl %ecx
movl %ecx, 0xac(%rsp)
movslq 0x1d0(%rsp), %rcx
addq %rcx, %r10
movq %r13, %rdx
addq %rax, %rdx
movsbl 0x6c(%r15), %r8d
movsbl 0x70(%r15), %r9d
movq (%r15), %rax
movq %r10, %rsi
movl %eax, %r10d
andl $0x4000000, %r10d       # imm = 0x4000000
movabsq $0x8000000000, %rcx     # imm = 0x8000000000
addq $0x1000, %rcx           # imm = 0x1000
xorl %r11d, %r11d
testq %rcx, %rax
sete %r11b
leaq 0x90(%rsp), %rdi
leaq 0x130(%rsp), %rcx
pushq %r11
pushq %r10
callq 0x1adaa
addq $0x10, %rsp
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x1261e
movslq %r12d, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rsi
addq $0x50, %rsi
movq %rbp, %rdi
callq 0x2320
movq %rax, %r13
leal 0x1(%r14), %ebp
movl %ebp, %r15d
cmpl %r12d, %ebp
je 0x17f68
leaq (%rbx,%rbx,4), %rax
shlq $0x4, %rax
leaq (%rax,%r13), %rdi
addq $0xa0, %rdi
leaq (%r15,%r15,4), %rsi
shlq $0x4, %rsi
addq %r13, %rsi
notl %r14d
addl %r12d, %r14d
movslq %r14d, %rax
shlq $0x4, %rax
leaq (%rax,%rax,4), %rdx
callq 0x2340
incl %r12d
leaq (%r15,%r15,4), %rdi
shlq $0x4, %rdi
addq %r13, %rdi
movl $0xa, %ecx
leaq 0x90(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movl %ebp, %r14d
movq 0x40(%rsp), %r15
movq %r13, %rbp
movl %r12d, %r13d
movq (%rsp), %r12
incl %r14d
cmpl %r13d, %r14d
jl 0x175b3
movq 0x128(%rsp), %rbx
movl %r13d, (%rbx)
movq 0x50(%rsp), %rsi
movq %r12, %rdi
callq 0x1261e
movq 0x110(%rsp), %rsi
movq %r12, %rdi
callq 0x1261e
movq %r15, %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1caa6
movabsq $0x8000000000, %rax     # imm = 0x8000000000
addq $0x801000, %rax         # imm = 0x801000
testq %rax, (%r15)
jne 0x18040
cmpq $0x0, 0x100(%r15)
jne 0x18040
movq 0x10(%rsp), %rax
cmpl %eax, 0xb0(%r15)
jg 0x18040
movl (%rbx), %esi
movss 0xb4(%r15), %xmm0
movl 0x64(%r15), %ecx
movl 0x68(%r15), %r8d
movq 0x10(%rsp), %r14
movl %r14d, %edi
movq %rbp, %rdx
callq 0x17227
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x1caa6
movss 0x60(%r15), %xmm0
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x1c47b
movq %rbp, %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq