// File: /workspace/github_c_makefile_star2_O3/lh3[P]miniprot/align.c
// Function: mp_align
void mp_align(void *km, const mp_mapopt_t *opt, const mp_idx_t *mi, int32_t len, const char *aa, mp_reg1_t *r, int32_t extl0, int32_t extr0)
{
	int32_t i, i0 = 0, ne0 = 0, ae0 = 0, score = 0, extl, extr;
	int64_t as, ae, ctg_len, vs0, l_nt;
	uint8_t *nt, *ss = 0;
	ns_opt_t ns_opt0;
	mp_cigar_t cigar = {0,0,0};

	assert(r->cnt > 0);
	if (!(mp_dbg_flag & MP_DBG_MORE_DP)) {
		mp_filter_seed(r->cnt, r->a, 6, 3, opt->kmer2, opt->kmer2 + 1);
		for (i = 0; i < r->cnt; ++i)
			if (r->a[i]>>31&1) break;
		if (i == r->cnt) { // all filtered; FIXME: we need to filter it later; not implemented yet
			r->cnt = 0;
			return;
		}
		i0 = i;
	}

	extl = extr = opt->max_ext;
	if (r->qs >= 10) extl = opt->max_intron/2;
	if (len - r->qe >= 10) extr = opt->max_intron/2;
	if (extl0 > 0) extl = extl < extl0? extl : extl0;
	if (extr0 > 0) extr = extr < extr0? extr : extr0;
	ctg_len = mi->nt->ctg[r->vid>>1].len;
	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_by_v(mi->nt, r->vid, as, ae, nt);
	assert(l_nt == ae - as);
	if (mi->nt->spsc) {
		int32_t l_ss;
		ss = Kmalloc(km, uint8_t, ae - as);
		l_ss = mp_ntseq_spsc_get_by_v(mi->nt, r->vid, as, ae, ss);
		assert(l_ss = l_nt);
	}
	vs0 = r->vs;
	mp_map2ns_opt(opt, &ns_opt0);
	//fprintf(stderr, "X\t%s\t%c\t%ld\t%ld\n", mi->nt->ctg[r->vid>>1].name, "+-"[r->vid&1], (long)(r->vid&1? ctg_len - ae : as), (long)(r->vid&1? ctg_len - as : ae));

	{ // left extension
		int64_t vs1 = vs0 + (r->a[i0]>>32) + 1;
		int32_t as1 = ((int32_t)r->a[i0]<<1>>1) + 1;
		int32_t nt_len, aa_len;
		ns_opt_t ns_opt = ns_opt0;
		ns_rst_t rst;
		ns_opt.flag |= NS_F_EXT_LEFT;
		ns_rst_init(&rst);
		ns_global_gs16b(km, (const char*)nt, vs1 - as, aa, as1, &ns_opt, ss, &rst);
		nt_len = rst.nt_len, aa_len = rst.aa_len;
		if (rst.aa_len != as1 && rst.nt_len < opt->max_ext && opt->io > opt->io_end) { // special casing 5'-end exon
			int64_t as_alt = vs1 - as > opt->max_ext? vs1 - opt->max_ext : as;
			ns_opt.io = opt->io_end;
			ns_global_gs16b(km, (const char*)&nt[as_alt - as], vs1 - as_alt, aa, as1, &ns_opt, ss? &ss[as_alt - as] : 0, &rst);
			if (rst.aa_len == as1)
				nt_len = rst.nt_len, aa_len = rst.aa_len;
		}
		r->vs = vs1 - nt_len;
		r->qs = as1 - aa_len;
		ne0 = r->vs - vs0;
		ae0 = r->qs;
	}

	if (mp_dbg_flag & MP_DBG_MORE_DP) { // apply DP to the entire region; for debugging only
		score = mp_align_seq(km, opt, &ns_opt0, r->ve - r->vs, &nt[r->vs - as], r->qe - ae0, &aa[ae0], ss? &ss[r->vs - as] : 0, &cigar);
	} else { // patch gaps between anchors
		for (i = i0; i < r->cnt; ++i) {
			int32_t ne1, ae1;
			if (!(r->a[i]>>31&1)) continue;
			ne1 = (r->a[i]>>32) + 1, ae1 = ((int32_t)r->a[i]<<1>>1) + 1;
			score += mp_align_seq(km, opt, &ns_opt0, ne1 - ne0, &nt[ne0 + vs0 - as], ae1 - ae0, &aa[ae0], ss? &ss[ne0 + vs0 - as] : 0, &cigar);
			i0 = i, ne0 = ne1, ae0 = ae1;
		}
		r->ve = ne0 + vs0, r->qe = ae0;
	}

	if (r->qe < len && r->ve < ae) { // right extension
		ns_opt_t ns_opt = ns_opt0;
		ns_rst_t rst;
		int32_t nt_len, aa_len;
		ns_opt.flag |= NS_F_EXT_RIGHT;
		ns_rst_init(&rst);
		ns_global_gs16b(km, (const char*)&nt[r->ve - as], ae - r->ve, &aa[r->qe], len - r->qe, &ns_opt, ss? &ss[r->ve - as] : 0, &rst);
		nt_len = rst.nt_len, aa_len = rst.aa_len;
		if (aa_len < len - r->qe && nt_len < opt->max_ext && opt->io > opt->io_end) { // special casing 3'-end exon
			int32_t l_ext = ae - r->ve < opt->max_ext? ae - r->ve : opt->max_ext;
			ns_opt.io = opt->io_end;
			ns_global_gs16b(km, (const char*)&nt[r->ve - as], l_ext, &aa[r->qe], len - r->qe, &ns_opt, ss? &ss[r->ve - as] : 0, &rst);
			if (rst.aa_len == len - r->qe)
				nt_len = rst.nt_len, aa_len = rst.aa_len;
		}
		score += mp_align_seq(km, opt, &ns_opt0, nt_len, &nt[r->ve - as], aa_len, &aa[r->qe], ss? &ss[r->ve - as] : 0, &cigar);
		r->ve += nt_len, r->qe += aa_len;
	}

	//for (i = 0; i < cigar.n; ++i) printf("%d%c", cigar.c[i]>>4, NS_CIGAR_STR[cigar.c[i]&0xf]); putchar('\n');
	mp_extra_gen(km, r, &cigar, score);
	r->p->dist_stop  = mp_extra_stop(r, nt, as, ae);
	r->p->dist_start = mp_extra_start(r, nt, as, ae);
	mp_extra_cal(r, opt, &nt[r->vs - as], l_nt - (r->vs - as), &aa[r->qs], len, mi->nt->spsc != 0);
	if (ss) kfree(km, ss);
	kfree(km, nt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %r8, 0x48(%rsp)
movl %ecx, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xe0(%rsp)
movq %r9, 0x8(%rsp)
movslq 0x4(%r9), %rax
testq %rax, %rax
jle 0x804d
movq %rdx, 0x98(%rsp)
movq %rdi, 0x20(%rsp)
leaq 0x12bf5(%rip), %rcx     # 0x19780
xorl %r14d, %r14d
testb $0x8, (%rcx)
movq 0x8(%rsp), %rdx
movq %rsi, 0x18(%rsp)
jne 0x6cd3
movq 0x50(%rdx), %rcx
movl 0x60(%rsi), %edx
xorl %esi, %esi
movslq %esi, %r8
leal 0x1(%r8), %r10d
cmpl %r10d, %eax
cmovgl %eax, %r10d
leal -0x1(%r10), %edi
leaq 0x1(%r8), %r11
movl %esi, %r9d
cmpq %rax, %r11
jge 0x6c1d
movq -0x8(%rcx,%r11,8), %r14
movq (%rcx,%r11,8), %rbx
movq %r14, %r12
shrq $0x20, %r12
movq %rbx, %r15
shrq $0x20, %r15
subl %r12d, %r15d
incl %r9d
cmpl $0x12, %r15d
jg 0x6c17
movslq %r15d, %r15
imulq $0x55555556, %r15, %r12 # imm = 0x55555556
movq %r12, %r13
shrq $0x3f, %r13
shrq $0x20, %r12
addl %r13d, %r12d
leal (%r12,%r12,2), %ebp
subl %ebp, %r15d
jne 0x6c17
subl %r14d, %ebx
incq %r11
cmpl $0x7, %ebx
jl 0x6bc3
leal -0x1(%r9), %edi
jmp 0x6c20
movl %r10d, %r9d
subl %esi, %r9d
cmpl $0x3, %r9d
jl 0x6c99
movslq %edi, %r11
movl (%rcx,%r11,8), %ebx
cmpl %esi, %r11d
movl %esi, %r9d
cmovll %r11d, %r9d
leal -0x1(%r9), %r10d
cmpq %r8, %r11
jle 0x6c58
movl %ebx, %ebp
subl -0x8(%rcx,%r11,8), %ebp
decq %r11
cmpl %edx, %ebp
jle 0x6c3e
leal 0x1(%r11), %r9d
movl %r11d, %r10d
cmpl %r10d, %esi
jge 0x6c7f
leaq (%rcx,%r8,8), %r8
movl %edx, %r11d
subl (%r8), %r11d
movl (%r8), %ebx
addl %r11d, %ebx
cmpl %edx, %ebx
jg 0x6c7f
incl %esi
addq $0x8, %r8
cmpl %esi, %r10d
jne 0x6c67
movl %r10d, %esi
cmpl %r9d, %esi
jge 0x6c97
movslq %esi, %rsi
movslq %r9d, %r8
orb $-0x80, 0x3(%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %r8
jne 0x6c8a
movl %edi, %esi
incl %esi
cmpl %eax, %esi
jl 0x6baa
xorl %r14d, %r14d
movq 0x8(%rsp), %rdx
testb $-0x80, 0x3(%rcx,%r14,8)
jne 0x6cbd
incq %r14
cmpq %r14, %rax
jne 0x6cab
jmp 0x6cc2
cmpl %r14d, %eax
jne 0x6cce
movl $0x0, 0x4(%rdx)
jmp 0x8006
movq 0x18(%rsp), %rsi
movl 0x28(%rsi), %eax
cmpl $0xa, 0x34(%rdx)
movl %eax, %ecx
jl 0x6cef
movq 0x18(%rsp), %rcx
movl 0x18(%rcx), %edx
movl %edx, %ecx
shrl $0x1f, %ecx
addl %edx, %ecx
sarl %ecx
movl 0x228(%rsp), %edx
movl 0x220(%rsp), %esi
movl 0x10(%rsp), %edi
movq 0x8(%rsp), %r8
subl 0x38(%r8), %edi
cmpl $0xa, %edi
jl 0x6d20
movq 0x18(%rsp), %rax
movl 0x18(%rax), %edi
movl %edi, %eax
shrl $0x1f, %eax
addl %edi, %eax
sarl %eax
cmpl %esi, %ecx
movl %esi, %edi
cmovll %ecx, %edi
testl %esi, %esi
cmovlel %ecx, %edi
cmpl %edx, %eax
movl %edx, %ecx
cmovll %eax, %ecx
testl %edx, %edx
cmovlel %eax, %ecx
movq 0x98(%rsp), %r15
movq 0x18(%r15), %rax
movq 0x28(%rax), %rax
movq 0x8(%rsp), %rbx
movl 0x30(%rbx), %edx
shrl %edx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rax,%rdx,8), %rax
movq 0x40(%rbx), %rdx
movslq %edi, %rsi
xorl %r13d, %r13d
movq %rdx, 0x60(%rsp)
movq %rsi, 0x50(%rsp)
subq %rsi, %rdx
cmovgq %rdx, %r13
movslq %ecx, %rbp
addq 0x48(%rbx), %rbp
cmpq %rax, %rbp
cmovgeq %rax, %rbp
movq %rbp, %r12
subq %r13, %r12
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x84a5
movq 0x18(%r15), %rdi
movl 0x30(%rbx), %esi
movq %r13, 0x38(%rsp)
movq %r13, %rdx
movq %rbp, 0x30(%rsp)
movq %rbp, %rcx
movq %rax, 0x40(%rsp)
movq %rax, %r8
callq 0xc6d2
cmpq %r12, %rax
jne 0x806c
movq 0x18(%r15), %rax
cmpq $0x0, 0x40(%rax)
je 0x6e23
movq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x84a5
movq 0x18(%r15), %rdi
movq 0x8(%rsp), %rbx
movl 0x30(%rbx), %esi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq %rax, %r8
movq %rax, 0x58(%rsp)
callq 0xc90f
testl %r12d, %r12d
jne 0x6e31
leaq 0xda97(%rip), %rdi      # 0x148a2
leaq 0xda05(%rip), %rsi      # 0x14817
leaq 0xda06(%rip), %rcx      # 0x1481f
movl $0x112, %edx            # imm = 0x112
callq 0x2150
movq $0x0, 0x58(%rsp)
movq 0x8(%rsp), %rbx
movq %r12, 0x90(%rsp)
movq 0x40(%rbx), %rax
movq %rax, 0x28(%rsp)
leaq 0x128(%rsp), %rbx
movq %rbx, %rdi
callq 0x4630
movq 0x18(%rsp), %r15
movups 0x64(%r15), %xmm0
movups %xmm0, 0x4(%rbx)
leaq 0xa8(%r15), %rax
movq %rax, 0x40(%rbx)
movss 0x78(%r15), %xmm0
movss %xmm0, 0x3c(%rbx)
movq 0x8c(%r15), %rax
movq %rax, 0x14(%rbx)
movl 0x80(%r15), %eax
movl %eax, 0x38(%rbx)
movl 0x7c(%r15), %esi
movq %rbx, %rdi
callq 0x45e5
movss 0x88(%r15), %xmm0
movl $0x8, %eax
movss 0xd92b(%rip), %xmm1     # 0x147d8
xorps %xmm2, %xmm2
cvtsi2ssl 0x128(%rsp,%rax,4), %xmm2
mulss %xmm0, %xmm2
addss %xmm1, %xmm2
cvttss2si %xmm2, %ecx
movl %ecx, 0x128(%rsp,%rax,4)
incq %rax
cmpq $0xe, %rax
jne 0x6ead
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rax
movl %r14d, %r13d
movq (%rax,%r13,8), %r12
movq %r12, %rax
shrq $0x20, %rax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax), %r15
incq %r15
addl %r12d, %r12d
leaq 0x188(%rsp), %r9
leaq 0x128(%rsp), %rsi
movl $0xc, %ecx
movq %r9, %rdi
rep  movsq (%rsi), %es:(%rdi)
orb $0x2, (%r9)
sarl %r12d
incl %r12d
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rbp
movaps %xmm0, (%rbp)
movaps %xmm0, 0x10(%rbp)
movq %r15, %rbx
subq 0x38(%rsp), %rbx
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl %ebx, %edx
movq 0x48(%rsp), %rcx
movl %r12d, %r8d
pushq %rbp
pushq 0x60(%rsp)
callq 0x8b54
addq $0x10, %rsp
movl 0x8(%rbp), %edi
movl 0xc(%rbp), %ebp
cmpl %r12d, %ebp
jne 0x6f7a
movl %r12d, %ebp
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %rsi
jmp 0x701c
movq 0x18(%rsp), %rsi
movslq 0x28(%rsi), %rax
cmpl %eax, %edi
movq 0x8(%rsp), %rdx
jge 0x701c
movl 0x74(%rsi), %ecx
cmpl %ecx, 0x6c(%rsi)
jle 0x6f70
movq %r15, %rsi
subq %rax, %rsi
cmpq %rax, %rbx
movl %edi, %ebx
movq 0x38(%rsp), %rdi
cmovleq %rdi, %rsi
leaq 0x188(%rsp), %r9
movl %ecx, 0xc(%r9)
movl %r15d, %edx
subl %esi, %edx
movq %rsi, %rax
subq %rdi, %rax
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax), %rsi
movq 0x58(%rsp), %rcx
addq %rcx, %rax
testq %rcx, %rcx
cmoveq %rcx, %rax
movq 0x20(%rsp), %rdi
movq 0x48(%rsp), %rcx
movl %r12d, %r8d
leaq 0xc0(%rsp), %r10
pushq %r10
pushq %rax
callq 0x8b54
movl %ebx, %edi
addq $0x10, %rsp
movl 0xcc(%rsp), %eax
cmpl %r12d, %eax
jne 0x6f6b
movl 0xc8(%rsp), %edi
movl %eax, %ebp
jmp 0x6f6b
leaq 0x1275d(%rip), %rcx     # 0x19780
movslq %edi, %rax
subq %rax, %r15
movq %r15, 0x40(%rdx)
subl %ebp, %r12d
movl %r12d, 0x34(%rdx)
testb $0x8, (%rcx)
jne 0x7114
movq 0x28(%rsp), %rcx
subl %ecx, %r15d
movl 0x4(%rdx), %eax
movl $0x0, 0x14(%rsp)
cmpl %eax, %r14d
jge 0x70ff
movq %rcx, %r14
subq 0x38(%rsp), %r14
movl $0x0, 0x14(%rsp)
movq 0x50(%rdx), %rcx
movq (%rcx,%r13,8), %rbx
testl %ebx, %ebx
jns 0x70f3
movq %rbx, %rbp
shrq $0x20, %rbp
incl %ebp
addl %ebx, %ebx
sarl %ebx
incl %ebx
movl %ebp, %ecx
subl %r15d, %ecx
movslq %r15d, %rax
addq %r14, %rax
movq 0x40(%rsp), %rdx
leaq (%rdx,%rax), %r8
movl %ebx, %r9d
subl %r12d, %r9d
movslq %r12d, %r10
addq 0x48(%rsp), %r10
movq 0x58(%rsp), %rdx
addq %rdx, %rax
testq %rdx, %rdx
cmoveq %rdx, %rax
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
leaq 0x130(%rsp), %rdx
leaq 0xe8(%rsp), %r11
pushq %r11
pushq %rax
pushq %r10
callq 0x80aa
movq 0x28(%rsp), %rdx
addq $0x20, %rsp
addl %eax, 0x14(%rsp)
movl 0x4(%rdx), %eax
movl %ebx, %r12d
movl %ebp, %r15d
incq %r13
cmpl %r13d, %eax
jg 0x7069
movslq %r15d, %rax
movq 0x28(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x48(%rdx)
movl %r12d, 0x38(%rdx)
jmp 0x717a
movl 0x38(%rdx), %r9d
movl 0x48(%rdx), %ecx
subl %r15d, %ecx
subq 0x38(%rsp), %r15
movq 0x40(%rsp), %rax
leaq (%rax,%r15), %r8
subl %r12d, %r9d
movslq %r12d, %rax
addq 0x48(%rsp), %rax
movq 0x58(%rsp), %rdx
addq %rdx, %r15
testq %rdx, %rdx
cmoveq %rdx, %r15
subq $0x8, %rsp
leaq 0xe8(%rsp), %r10
leaq 0x130(%rsp), %rdx
movq 0x28(%rsp), %rdi
pushq %r10
pushq %r15
pushq %rax
callq 0x80aa
movq 0x28(%rsp), %rdx
addq $0x20, %rsp
movl %eax, 0x14(%rsp)
movl 0x38(%rdx), %r12d
movl 0x10(%rsp), %r8d
subl %r12d, %r8d
movq 0x30(%rsp), %r14
jle 0x72e8
movq 0x48(%rdx), %rax
cmpq %rax, %r14
jle 0x72e8
leaq 0x188(%rsp), %r9
leaq 0x128(%rsp), %rsi
movl $0xc, %ecx
movq %r9, %rdi
rep  movsq (%rsi), %es:(%rdi)
orb $0x4, (%r9)
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movq %rax, %r10
subq 0x38(%rsp), %r10
movq 0x40(%rsp), %rcx
leaq (%rcx,%r10), %rsi
movl %r14d, %edx
subl %eax, %edx
movslq %r12d, %rcx
addq 0x48(%rsp), %rcx
movq 0x58(%rsp), %rax
addq %rax, %r10
testq %rax, %rax
cmoveq %rax, %r10
movq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rax
pushq %rax
pushq %r10
callq 0x8b54
addq $0x10, %rsp
movl 0xc8(%rsp), %r15d
movl 0xcc(%rsp), %ebx
movq 0x8(%rsp), %rax
movl 0x38(%rax), %eax
movl 0x10(%rsp), %r8d
subl %eax, %r8d
cmpl %r8d, %ebx
jge 0x72ee
movq 0x18(%rsp), %rsi
movslq 0x28(%rsi), %r9
cmpl %r9d, %r15d
movl 0x14(%rsp), %ebp
jge 0x72fe
movl 0x74(%rsi), %edi
cmpl %edi, 0x6c(%rsi)
jle 0x72fe
movslq %eax, %rcx
movq 0x8(%rsp), %r14
movq 0x48(%r14), %rax
movq 0x30(%rsp), %rdx
subq %rax, %rdx
cmpq %r9, %rdx
cmovgel %r9d, %edx
subq 0x38(%rsp), %rax
movq 0x40(%rsp), %rsi
addq %rax, %rsi
addq 0x48(%rsp), %rcx
movq 0x58(%rsp), %r10
addq %r10, %rax
testq %r10, %r10
leaq 0x188(%rsp), %r9
movl %edi, 0xc(%r9)
cmoveq %r10, %rax
movq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %r10
pushq %r10
pushq %rax
callq 0x8b54
addq $0x10, %rsp
movl 0xcc(%rsp), %ecx
movl 0x38(%r14), %eax
movl 0x10(%rsp), %edx
subl %eax, %edx
cmpl %edx, %ecx
jne 0x72dc
movl 0xc8(%rsp), %r15d
movl %ecx, %ebx
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
jmp 0x7303
movl 0x14(%rsp), %ebp
jmp 0x736a
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x14(%rsp), %ebp
jmp 0x7303
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %r14
movq 0x48(%r14), %r10
subq 0x38(%rsp), %r10
movq 0x40(%rsp), %rcx
leaq (%rcx,%r10), %r8
cltq
addq 0x48(%rsp), %rax
movq 0x58(%rsp), %rcx
addq %rcx, %r10
testq %rcx, %rcx
cmoveq %rcx, %r10
subq $0x8, %rsp
leaq 0xe8(%rsp), %r11
leaq 0x130(%rsp), %rdx
movl %r15d, %ecx
movl %ebx, %r9d
pushq %r11
pushq %r10
pushq %rax
callq 0x80aa
addq $0x20, %rsp
movslq %r15d, %rcx
addq %rcx, 0x48(%r14)
addl %eax, %ebp
addl %ebx, 0x38(%r14)
movq 0x30(%rsp), %r14
movabsq $0x200000000, %r12      # imm = 0x200000000
movabsq $0x100000000, %r13      # imm = 0x100000000
movslq 0xe0(%rsp), %rbx
leal 0xc(%rbx), %eax
movslq %eax, %rsi
movl $0x30, %edx
xorl %edi, %edi
callq 0x8344
movq 0x8(%rsp), %r15
movq %rax, 0x60(%r15)
movl %ebp, (%rax)
movl %ebx, 0x10(%rax)
movl %ebx, 0xc(%rax)
leaq 0x30(%rax), %rdi
movq 0xe8(%rsp), %rbp
shlq $0x2, %rbx
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x21e0
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
callq 0x83df
movq %r15, %rdi
movq 0x48(%r15), %rsi
leaq 0x2(%rsi), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %r14, %rdx
jge 0x74ab
movq 0x50(%rsp), %rcx
addl %ecx, %esi
movq 0x60(%rsp), %rax
cmpq %rcx, %rax
cmovgq %rax, %rcx
subl %ecx, %esi
shlq $0x20, %rsi
xorl %ecx, %ecx
leaq 0x122ef(%rip), %rdi     # 0x19700
leaq 0x120e8(%rip), %r8      # 0x19500
addq $0x58, %r8
movq %rsi, %r9
sarq $0x20, %r9
movq 0x40(%rsp), %rax
movb (%rax,%r9), %r9b
movl %r9d, %r10d
shlb $0x4, %r10b
leaq (%rsi,%r13), %r11
sarq $0x20, %r11
movb (%rax,%r11), %r11b
leal (,%r11,4), %ebx
leaq (%rsi,%r12), %r15
sarq $0x20, %r15
movb (%rax,%r15), %bpl
orb %bpl, %r10b
orb %bl, %r10b
movzbl %r10b, %r10d
addq %rdi, %r10
cmpb $0x4, %bpl
cmovaeq %r8, %r10
cmpb $0x4, %r11b
cmovaeq %r8, %r10
cmpb $0x4, %r9b
cmovaeq %r8, %r10
cmpb $0x14, (%r10)
je 0x74a1
leaq (%rdx,%rcx), %r9
addq $0x3, %r9
addq $0x3, %rcx
movabsq $0x300000000, %rax      # imm = 0x300000000
addq %rax, %rsi
cmpq %r14, %r9
jl 0x741c
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq 0x8(%rsp), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0x60(%rdi), %rbp
movl %ecx, 0x20(%rbp)
movq 0x40(%rdi), %rbx
movq %rbx, %rsi
subq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
jl 0x75b3
leaq 0x2(%rbx), %rdx
cmpq %r14, %rdx
jge 0x75b3
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rdx
cmpq %rax, %rdx
movq %rax, %rsi
cmovgq %rdx, %rsi
leal (%rax,%rbx), %edx
subl %esi, %edx
shlq $0x20, %rdx
xorl %esi, %esi
leaq 0x12204(%rip), %rdi     # 0x19700
leaq 0x11ffd(%rip), %r8      # 0x19500
addq $0x58, %r8
movabsq $-0x300000000, %r9      # imm = 0xFFFFFFFD00000000
movq 0x40(%rsp), %r14
movq %rdx, %r10
sarq $0x20, %r10
movb (%r14,%r10), %r10b
movl %r10d, %r11d
shlb $0x4, %r11b
leaq (%rdx,%r13), %r15
sarq $0x20, %r15
movb (%r14,%r15), %r15b
leal (,%r15,4), %r12d
movabsq $0x200000000, %rax      # imm = 0x200000000
addq %rdx, %rax
sarq $0x20, %rax
movb (%r14,%rax), %al
orb %al, %r11b
orb %r12b, %r11b
movzbl %r11b, %r11d
addq %rdi, %r11
cmpb $0x4, %al
cmovaeq %r8, %r11
cmpb $0x4, %r15b
cmovaeq %r8, %r11
cmpb $0x4, %r10b
cmovaeq %r8, %r11
movzbl (%r11), %r10d
cmpl $0x14, %r10d
je 0x759e
cmpl $0xc, %r10d
je 0x75aa
leaq (%rbx,%rsi), %rax
addq $-0x3, %rax
addq $-0x3, %rsi
addq %r9, %rdx
cmpq 0x38(%rsp), %rax
jge 0x7516
movq 0x8(%rsp), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x75b3
negl %esi
movl %esi, %eax
movq 0x8(%rsp), %rdi
movl %eax, 0x24(%rbp)
movq 0x98(%rsp), %rax
movq 0x18(%rax), %rax
leaq 0x11f37(%rip), %r14     # 0x19500
movl 0x10(%rsp), %edx
xorl 0x38(%rdi), %edx
xorl %r9d, %r9d
orl %ecx, %edx
sete %r9b
movslq 0xc(%rbp), %rdx
testq %rdx, %rdx
movq 0x90(%rsp), %r12
jle 0x7625
xorl %esi, %esi
xorl %ecx, %ecx
movl 0x30(%rbp,%rsi,4), %edi
movl %edi, %r8d
andl $0xf, %r8d
cmpl $0x3, %r8d
sete %r8b
andl $0xe, %edi
cmpl $0xc, %edi
sete %dil
orb %r8b, %dil
movzbl %dil, %edi
addl %edi, %ecx
incq %rsi
cmpq %rsi, %rdx
jne 0x75ee
incl %ecx
movq 0x8(%rsp), %rdi
jmp 0x762a
movl $0x1, %ecx
movslq 0x34(%rdi), %r15
movq 0x40(%rax), %rax
movq %rax, 0x118(%rsp)
movb 0x2a(%r14), %al
movb %al, 0x38(%rsp)
movb 0x58(%r14), %al
movb %al, 0x14(%rsp)
movl %ecx, 0x20(%rdi)
movl %r9d, 0xbc(%rsp)
addl %r9d, %ecx
movl %ecx, 0x18(%rdi)
movslq %ecx, %rsi
xorl %r13d, %r13d
movl $0x38, %edx
xorl %edi, %edi
callq 0x8344
movq 0x8(%rsp), %rdi
movq %rax, 0x58(%rdi)
movl %r13d, 0x4(%rbp)
movl %r13d, 0x1c(%rbp)
movq %r13, 0x28(%rbp)
movq %r13, 0x14(%rbp)
movq 0x40(%rdi), %rcx
movl 0x34(%rdi), %edx
movl 0xc(%rbp), %esi
movl %esi, 0x98(%rsp)
testl %esi, %esi
jle 0x7e54
movq 0x40(%rsp), %rax
movq %rcx, %rdi
movq 0x28(%rsp), %rsi
leaq (%rax,%rsi), %rcx
movq %rcx, 0xa8(%rsp)
subq %rsi, %r12
addq %r15, 0x48(%rsp)
movslq %r12d, %rcx
movq %rcx, 0x108(%rsp)
movq 0x50(%rsp), %rcx
addq %rcx, %rbx
movq 0x60(%rsp), %rsi
cmpq %rcx, %rsi
cmovgq %rsi, %rcx
subq %rcx, %rbx
addq %rbx, %rax
addq $0x2, %rax
movq %rax, 0x100(%rsp)
xorl %eax, %eax
leaq 0x58(%r14), %rcx
movq %rcx, 0x110(%rsp)
leaq 0xd0d6(%rip), %r14      # 0x147dc
xorl %ecx, %ecx
movl $0x0, 0x50(%rsp)
xorl %r13d, %r13d
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %r15d, %r15d
movl %edx, 0x70(%rsp)
movl $0x0, 0x30(%rsp)
movl $0x0, 0x6c(%rsp)
xorl %ebx, %ebx
xorl %r8d, %r8d
movq $0x0, 0x88(%rsp)
xorl %r11d, %r11d
movl $0x0, 0x68(%rsp)
movq $0x0, 0xb0(%rsp)
movq %rdi, 0xf8(%rsp)
movq %rdi, 0x80(%rsp)
movq $0x0, 0x78(%rsp)
movq $0x0, 0xa0(%rsp)
movl %ebx, 0x10(%rsp)
movl 0x30(%rbp,%r9,4), %ebx
movl %ebx, %edi
andl $0xf, %edi
movl %ebx, %edx
shrl $0x4, %edx
cmpl $0xb, %edi
ja 0x78dd
leal (%rdx,%rdx,2), %r12d
movslq (%r14,%rdi,4), %rsi
addq %r14, %rsi
jmpq *%rsi
movl %r12d, 0x74(%rsp)
movl %r13d, 0x90(%rsp)
movl %r8d, 0x28(%rsp)
movl %r11d, 0x60(%rsp)
cmpl $0x10, %ebx
movq %r15, 0x120(%rsp)
jb 0x78b2
movslq %r15d, %rdi
movslq 0x30(%rsp), %r15
addq 0x48(%rsp), %r15
addq 0x100(%rsp), %rdi
shrl $0x4, %ebx
xorl %r8d, %r8d
movb -0x2(%rdi), %r13b
movb -0x1(%rdi), %r12b
movb (%rdi), %sil
cmpb $0x4, %r13b
setae %r14b
cmpb $0x4, %r12b
setae %r11b
orb %r14b, %r11b
cmpb $0x4, %sil
setae %r14b
orb %r11b, %r14b
movb 0x14(%rsp), %r14b
jne 0x7836
shlb $0x4, %r13b
shlb $0x2, %r12b
orb %r13b, %r12b
orb %sil, %r12b
movzbl %r12b, %esi
leaq 0x11ece(%rip), %r11     # 0x19700
movb (%r11,%rsi), %r14b
movzbl (%r15,%r8), %esi
leaq 0x11cbe(%rip), %r11     # 0x19500
movzbl (%r11,%rsi), %esi
movzbl %r14b, %r11d
movq 0x18(%rsp), %r12
movl 0x94(%r12), %r14d
imull %r11d, %r14d
addl %esi, %r14d
movslq %r14d, %r14
movsbl 0xa8(%r12,%r14), %r14d
xorl %r12d, %r12d
testl %r14d, %r14d
setg %r12b
xorl %r13d, %r13d
cmpb 0x38(%rsp), %r11b
sete %r13b
addl %r13d, %ecx
xorl %r13d, %r13d
cmpb %sil, %r11b
sete %r13b
addl %r13d, %eax
movl %ecx, 0x1c(%rbp)
movl %eax, 0x28(%rbp)
addl %r12d, 0x2c(%rbp)
addl %r14d, %r10d
movl %r10d, 0x4(%rbp)
incq %r8
addq $0x3, %rdi
cmpl %r8d, %ebx
jne 0x77e9
movq 0x120(%rsp), %r15
movl 0x74(%rsp), %esi
addl %esi, %r15d
addl 0x30(%rsp), %edx
movl 0x90(%rsp), %r13d
addl %esi, %r13d
movl %r13d, 0x14(%rbp)
movl %edx, 0x30(%rsp)
jmp 0x7c43
movl %r8d, 0x28(%rsp)
cmpl $0x3, %edi
setne %sil
andl $0xe, %ebx
cmpl $0xc, %ebx
setne %r8b
testb %r8b, %sil
jne 0x7c4f
cmpl $0xc, %ebx
jne 0x79ff
movl %r11d, 0x60(%rsp)
leal (%rdx,%r15), %esi
cmpl $0xc, %edi
movslq %esi, %r11
movq 0xa8(%rsp), %rbx
leaq -0x2(%rbx,%r11), %rsi
movslq %r15d, %r8
leaq 0x1(%rbx,%r8), %r8
cmovneq %r8, %rsi
movb -0x1(%r8), %r8b
movq 0x110(%rsp), %r14
movq %r14, %rbx
cmpb $0x3, %r8b
ja 0x797d
movb (%rsi), %sil
movq %r14, %rbx
cmpb $0x3, %sil
ja 0x797d
movq 0xa8(%rsp), %rbx
movb -0x1(%rbx,%r11), %r11b
movq %r14, %rbx
cmpb $0x3, %r11b
ja 0x797d
shlb $0x4, %r8b
shlb $0x2, %sil
orb %r11b, %r8b
orb %sil, %r8b
movzbl %r8b, %ebx
addq 0x1165b(%rip), %rbx     # 0x18fd8
movzbl (%rbx), %esi
movslq 0x30(%rsp), %r8
movq 0x48(%rsp), %r11
movzbl (%r11,%r8), %r8d
movl %esi, %r11d
movq 0x18(%rsp), %rbx
imull 0x94(%rbx), %r11d
leaq 0x11b5a(%rip), %r14     # 0x19500
movzbl (%r14,%r8), %r8d
addl %r8d, %r11d
movslq %r11d, %r11
movsbl 0xa8(%rbx,%r11), %r11d
xorl %ebx, %ebx
testl %r11d, %r11d
setg %bl
xorl %r14d, %r14d
cmpb 0x38(%rsp), %sil
sete %r14b
addl %r14d, %ecx
movl %ecx, 0x1c(%rbp)
xorl %ecx, %ecx
cmpb %r8b, %sil
sete %cl
addl %ecx, %eax
movl %eax, 0x28(%rbp)
addl %ebx, 0x2c(%rbp)
addl %r11d, %r10d
movl %r10d, 0x4(%rbp)
addl $0x3, %r13d
movl %r13d, 0x14(%rbp)
leaq 0xcde2(%rip), %r14      # 0x147dc
movl 0x60(%rsp), %r11d
movq 0x8(%rsp), %rsi
movq 0x58(%rsi), %rax
movl 0x6c(%rsp), %r10d
movslq %r10d, %rcx
imulq $0x38, %rcx, %rcx
movw $0x0, 0x18(%rax,%rcx)
movq 0x80(%rsp), %r8
movq %r8, (%rax,%rcx)
movl 0x70(%rsp), %r8d
movl %r8d, 0x10(%rax,%rcx)
movl 0x34(%rsi), %esi
addl 0x30(%rsp), %esi
movl %esi, 0x70(%rsp)
movl %esi, 0x14(%rax,%rcx)
movl %r11d, 0x1c(%rax,%rcx)
movl 0x68(%rsp), %r8d
movl %r8d, 0x20(%rax,%rcx)
movq 0x88(%rsp), %rsi
movw %si, 0x1a(%rax,%rcx)
movl 0x14(%rbp), %esi
subl 0x10(%rsp), %esi
movl %esi, 0x2c(%rax,%rcx)
movl 0x28(%rbp), %esi
subl 0x28(%rsp), %esi
movl %esi, 0x28(%rax,%rcx)
movl 0x18(%rbp), %esi
subl %r11d, %esi
movl %esi, 0x1c(%rax,%rcx)
movl 0x1c(%rbp), %esi
subl %r8d, %esi
movl %esi, 0x20(%rax,%rcx)
movl 0x4(%rbp), %esi
subl 0xb0(%rsp), %esi
movl %esi, 0x24(%rax,%rcx)
addq %rcx, %rax
testl %r10d, %r10d
movq 0xa8(%rsp), %rbx
jle 0x7ab7
movq 0x78(%rsp), %rcx
movb %cl, 0x32(%rax)
movq 0xa0(%rsp), %rcx
movb %cl, 0x33(%rax)
cmpl $0x3, %edi
jne 0x7c71
movq 0x8(%rsp), %rcx
movq 0x40(%rcx), %rsi
movslq %r15d, %rcx
addq %rsi, %rcx
movq %rcx, 0x8(%rax)
leaq (%rcx,%rdx), %r8
movq %r8, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
jmp 0x7cf8
movl %r12d, 0x74(%rsp)
movl %r13d, 0x90(%rsp)
movl %r8d, 0x28(%rsp)
movl %r11d, 0x60(%rsp)
cmpl $0x10, %ebx
jae 0x7b97
movq %r15, %r13
jmp 0x7c17
movq 0x18(%rsp), %rdi
movl 0x68(%rdi), %esi
imull %edx, %esi
addl 0x64(%rdi), %esi
subl %esi, %r10d
movl %r10d, 0x4(%rbp)
addl %edx, 0x30(%rsp)
addl %r12d, %r13d
movl %r13d, 0x14(%rbp)
jmp 0x7c54
movq 0x18(%rsp), %rsi
subl 0x70(%rsi), %r10d
movl %r10d, 0x4(%rbp)
addl %edx, %r15d
addl %edx, %r13d
movl %r13d, 0x14(%rbp)
movl 0x50(%rsp), %edx
incl %edx
movl %edx, 0x50(%rsp)
movl %edx, 0x18(%rbp)
jmp 0x7c54
movq 0x18(%rsp), %rsi
subl 0x70(%rsi), %r10d
movl %r10d, 0x4(%rbp)
addl %r15d, %edx
incl 0x30(%rsp)
addl $0x3, %r13d
movl %r13d, 0x14(%rbp)
movl 0x50(%rsp), %esi
incl %esi
movl %esi, 0x50(%rsp)
movl %esi, 0x18(%rbp)
movl %edx, %r15d
jmp 0x7c54
movq %r15, %r13
movslq %r15d, %rdi
addq 0x100(%rsp), %rdi
shrl $0x4, %ebx
leaq (%rbx,%rbx,2), %r8
xorl %ebx, %ebx
movb -0x2(%rdi,%rbx), %sil
movb -0x1(%rdi,%rbx), %r15b
movb (%rdi,%rbx), %r12b
cmpb $0x4, %sil
setae %r11b
cmpb $0x4, %r15b
setae %r14b
orb %r11b, %r14b
cmpb $0x4, %r12b
setae %r11b
orb %r14b, %r11b
movb 0x14(%rsp), %r14b
jne 0x7bfe
shlb $0x4, %sil
shlb $0x2, %r15b
orb %sil, %r15b
orb %r12b, %r15b
movzbl %r15b, %esi
leaq 0x11b06(%rip), %r11     # 0x19700
movb (%r11,%rsi), %r14b
xorl %esi, %esi
cmpb 0x38(%rsp), %r14b
sete %sil
addl %esi, %ecx
movl %ecx, 0x1c(%rbp)
addq $0x3, %rbx
cmpl %ebx, %r8d
jne 0x7bae
movq 0x18(%rsp), %rsi
imull 0x68(%rsi), %edx
addl 0x64(%rsi), %edx
subl %edx, %r10d
movl %r10d, 0x4(%rbp)
movq %r13, %r15
movl 0x74(%rsp), %edx
addl %edx, %r15d
movl 0x90(%rsp), %r13d
addl %edx, %r13d
movl %r13d, 0x14(%rbp)
leaq 0xcb92(%rip), %r14      # 0x147dc
movl 0x60(%rsp), %r11d
movl 0x28(%rsp), %r8d
movl 0x10(%rsp), %ebx
incq %r9
movslq 0x98(%rsp), %rdx
cmpq %rdx, %r9
jl 0x777d
jmp 0x7e13
cmpl $0xc, %edi
jne 0x7caa
movq 0x8(%rsp), %rcx
movq 0x40(%rcx), %rsi
movslq %r15d, %rcx
leaq (%rsi,%rcx), %r8
addq %rsi, %rcx
incq %rcx
movq %rcx, 0x8(%rax)
movl %edx, %r10d
addq %r10, %r8
addq $-0x2, %r8
movq %r8, 0x80(%rsp)
movl $0x2, %r8d
jmp 0x7ce1
cmpl $0xd, %edi
jne 0x7ceb
movq 0x8(%rsp), %rcx
movq 0x40(%rcx), %rsi
movslq %r15d, %rcx
leaq (%rsi,%rcx), %r8
addq %rsi, %rcx
addq $0x2, %rcx
movq %rcx, 0x8(%rax)
movl %edx, %r10d
addq %r10, %r8
decq %r8
movq %r8, 0x80(%rsp)
movl $0x1, %r8d
movq %r8, 0x88(%rsp)
jmp 0x7cf8
movq 0x8(%rax), %rcx
movq 0x8(%rsp), %rsi
movq 0x40(%rsi), %rsi
movq %rcx, %r8
subq %rsi, %r8
movb $0x2e, %sil
movb $0x2e, %r10b
cmpq 0x108(%rsp), %r8
jge 0x7d21
leaq 0x114ab(%rip), %r10     # 0x191c0
movq (%r10), %r10
movzbl (%rbx,%r8), %r8d
movb (%r10,%r8), %r10b
movb %r10b, 0x30(%rax)
movq 0x8(%rsp), %r8
subq 0x40(%r8), %rcx
incq %rcx
cmpq 0x108(%rsp), %rcx
jge 0x7d4d
leaq 0x1147e(%rip), %rsi     # 0x191c0
movq (%rsi), %rsi
movzbl (%rbx,%rcx), %ecx
movb (%rsi,%rcx), %sil
movb %sil, 0x31(%rax)
movl 0x18(%rbp), %eax
movl %eax, 0x50(%rsp)
movl 0x1c(%rbp), %ecx
movl 0x4(%rbp), %r10d
movl 0x14(%rbp), %r13d
movl 0x28(%rbp), %eax
movq 0x8(%rsp), %rsi
movq 0x40(%rsi), %rsi
movq 0x80(%rsp), %r8
movq %rsi, 0xf8(%rsp)
subq %rsi, %r8
cmpq $0x2, %r8
jl 0x7d9e
leaq 0x11431(%rip), %rsi     # 0x191c0
movq (%rsi), %rsi
movzbl -0x2(%rbx,%r8), %r11d
movb (%rsi,%r11), %r11b
jmp 0x7dbc
movb $0x2e, %sil
movq %rsi, 0x78(%rsp)
movb $0x2e, %sil
cmpq $0x1, %r8
jne 0x7dcb
leaq 0x1140a(%rip), %rsi     # 0x191c0
movq (%rsi), %rsi
movb $0x2e, %r11b
movq %r11, 0x78(%rsp)
movzbl -0x1(%rbx,%r8), %r8d
movb (%rsi,%r8), %sil
movq %rsi, 0xa0(%rsp)
incl 0x6c(%rsp)
addl %r15d, %edx
xorl %esi, %esi
cmpl $0x3, %edi
setne %sil
addl %esi, 0x30(%rsp)
movl 0xc(%rbp), %esi
movl %esi, 0x98(%rsp)
movl %r10d, %esi
movq %rsi, 0xb0(%rsp)
movl %ecx, 0x68(%rsp)
movl 0x50(%rsp), %r11d
movl %eax, %r8d
movl %r13d, %ebx
movl %edx, %r15d
jmp 0x7c58
movq 0x8(%rsp), %rdi
movq 0x58(%rdi), %rax
movl 0x34(%rdi), %edx
movl %r8d, 0x28(%rsp)
movl 0x70(%rsp), %r8d
movl 0x6c(%rsp), %ecx
movq 0x88(%rsp), %r9
movq 0x80(%rsp), %r10
movq 0xb0(%rsp), %r13
movq 0xf8(%rsp), %r14
movl 0x30(%rsp), %r12d
jmp 0x7e92
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x78(%rsp)
movq %rcx, %r10
movl $0x0, 0x68(%rsp)
xorl %r11d, %r11d
movl %edx, %r8d
xorl %r9d, %r9d
movl $0x0, 0x28(%rsp)
xorl %ebx, %ebx
movq %rcx, %r14
xorl %ecx, %ecx
xorl %r12d, %r12d
xorl %r15d, %r15d
movslq %ecx, %rcx
imulq $0x38, %rcx, %rsi
movw $0x0, 0x18(%rax,%rsi)
movq %r10, (%rax,%rsi)
movslq %r15d, %r10
addq %r10, %r14
movq %r14, 0x8(%rax,%rsi)
movl %r8d, 0x10(%rax,%rsi)
addl %r12d, %edx
movl %edx, 0x14(%rax,%rsi)
movw %r9w, 0x1a(%rax,%rsi)
movl 0x14(%rbp), %edx
subl %ebx, %edx
movl %edx, 0x2c(%rax,%rsi)
movl 0x28(%rbp), %edx
subl 0x28(%rsp), %edx
movl %edx, 0x28(%rax,%rsi)
movl 0x18(%rbp), %edx
subl %r11d, %edx
movl %edx, 0x1c(%rax,%rsi)
movl 0x1c(%rbp), %edx
subl 0x68(%rsp), %edx
movl %edx, 0x20(%rax,%rsi)
movl 0x4(%rbp), %edx
subl %r13d, %edx
movl %edx, 0x24(%rax,%rsi)
testl %ecx, %ecx
movl 0xbc(%rsp), %edx
movl %r12d, %ebx
jle 0x7f18
addq %rsi, %rax
movq 0x78(%rsp), %rcx
movb %cl, 0x32(%rax)
movq 0xa0(%rsp), %rcx
movb %cl, 0x33(%rax)
movq 0x48(%rdi), %rcx
testl %edx, %edx
je 0x7f64
leaq 0x3(%rcx), %rax
movq 0x58(%rdi), %rdx
movw $0x1, 0x50(%rdx,%rsi)
movq %rcx, 0x38(%rdx,%rsi)
movq %rax, 0x40(%rdx,%rsi)
movl 0x38(%rdi), %eax
addl %ebx, %eax
movl %eax, 0x4c(%rdx,%rsi)
movl %eax, 0x48(%rdx,%rsi)
movw $0x0, 0x52(%rdx,%rsi)
movl $0x0, 0x54(%rdx,%rsi)
movabsq $0x300000000, %rax      # imm = 0x300000000
movq %rax, 0x60(%rdx,%rsi)
subq 0x40(%rdi), %rcx
cmpq %r10, %rcx
jne 0x7f77
movl 0x38(%rdi), %eax
subl 0x34(%rdi), %eax
cmpl %eax, %ebx
je 0x7fb9
movq %r10, %r12
leaq 0x58(%rdi), %r14
leaq 0x1145b(%rip), %rax     # 0x193e0
cmpl $0x2, (%rax)
jge 0x8018
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rdi
callq 0x2050
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rdi
callq 0x2050
movq 0x8(%rsp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %r12, %r10
cmpq $0x0, 0x118(%rsp)
jne 0x7fe3
movq 0x48(%rdi), %rax
subq 0x40(%rdi), %rax
cmpq %r10, %rax
jne 0x808b
movl 0x38(%rdi), %eax
subl 0x34(%rdi), %eax
cmpl %eax, %ebx
jne 0x808b
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
movq 0x20(%rsp), %rdi
je 0x7ffc
callq 0x83df
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x83df
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10fd1(%rip), %rax     # 0x18ff0
movq (%rax), %rdi
movq 0x8(%rsp), %rax
movl 0x38(%rax), %r9d
movq 0x8(%rsp), %rax
subl 0x34(%rax), %r9d
leaq 0xc873(%rip), %rsi      # 0x148ae
movl %r15d, %edx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x21d0
jmp 0x7f8e
leaq 0xc7b8(%rip), %rdi      # 0x1480c
leaq 0xc7bc(%rip), %rsi      # 0x14817
leaq 0xc7bd(%rip), %rcx      # 0x1481f
movl $0xf7, %edx
callq 0x2150
leaq 0xc81f(%rip), %rdi      # 0x14892
leaq 0xc79d(%rip), %rsi      # 0x14817
leaq 0xc79e(%rip), %rcx      # 0x1481f
movl $0x10d, %edx            # imm = 0x10D
callq 0x2150
leaq 0xc853(%rip), %rdi      # 0x148e5
leaq 0xc77e(%rip), %rsi      # 0x14817
leaq 0xc883(%rip), %rcx      # 0x14923
movl $0xc8, %edx
callq 0x2150