// File: /workspace/github_c_makefile_star2_O1/lh3[P]minigraph/galign.c
// Function: mg_gchain_cigar
void mg_gchain_cigar(void *km, const gfa_t *g, const gfa_edseq_t *es, const char *qseq, mg_gchains_t *gt, const char *qname) // qname for debugging only
{
	int32_t i, l_seq = 0, m_seq = 0;
	char *seq = 0;
	void *km2;
	mg64_v cigar = {0,0,0};
	km2 = km_init2(km, 0);
	for (i = 0; i < gt->n_gc; ++i) {
		mg_gchain_t *gc = &gt->gc[i];
		int32_t l0 = gc->off;
		int32_t off_a0 = gt->lc[l0].off;
		int32_t j, j0 = 0, k, l;
		cigar.n = 0;
		append_cigar1(km, &cigar, 7, gt->a[off_a0].y>>32&0xff);
		for (j = 1; j < gc->n_anchor; ++j) {
			const mg128_t *q, *p = &gt->a[off_a0 + j];
			if ((p->y & MG_SEED_IGNORE) && j != gc->n_anchor - 1) continue;
			q = &gt->a[off_a0 + j0];
			// find the lchain that contains the anchor
			for (l = l0; l < gc->off + gc->cnt; ++l) {
				mg_llchain_t *r = &gt->lc[l];
				if (off_a0 + j >= r->off && off_a0 + j < r->off + r->cnt)
					break;
			}
			assert(l < gc->off + gc->cnt);
			assert((int32_t)q->x < g->seg[gt->lc[l0].v>>1].len);
			// calculate the target sequence length
			if (l == l0) {
				l_seq = (int32_t)p->x - (int32_t)q->x;
			} else {
				l_seq = g->seg[gt->lc[l0].v>>1].len - (int32_t)q->x - 1;
				for (k = l0 + 1; k < l; ++k)
					l_seq += es[gt->lc[k].v].len;
				l_seq += (int32_t)p->x + 1;
			}
			if (l_seq + 1 > m_seq) {
				m_seq = l_seq + 1;
				kroundup32(m_seq);
				KREALLOC(km, seq, m_seq);
			}
			// get the target sequence
			if (l == l0) { // on the same vertex
				memcpy(seq, &es[gt->lc[l0].v].seq[(int32_t)q->x + 1], l_seq);
			} else {
				uint32_t v = gt->lc[l0].v;
				l_seq = g->seg[v>>1].len - (int32_t)q->x - 1;
				memcpy(seq, &es[v].seq[(int32_t)q->x + 1], l_seq);
				for (k = l0 + 1; k < l; ++k) {
					v = gt->lc[k].v;
					memcpy(&seq[l_seq], es[v].seq, es[v].len);
					l_seq += es[v].len;
				}
				memcpy(&seq[l_seq], es[gt->lc[l].v].seq, (int32_t)p->x + 1);
				l_seq += (int32_t)p->x + 1;
			}
			{
				int32_t qlen = (int32_t)p->y - (int32_t)q->y;
				const char *qs = &qseq[(int32_t)q->y + 1];
				assert(l_seq > 0 || qlen > 0);
				if (l_seq == 0) append_cigar1(km, &cigar, 1, qlen);
				else if (qlen == 0) append_cigar1(km, &cigar, 2, l_seq);
				else if (l_seq == qlen && qlen <= (q->y>>32&0xff)) append_cigar1(km, &cigar, 7, qlen);
				else {
					mwf_opt_t opt;
					mwf_rst_t rst;
					mwf_opt_init(&opt);
					opt.flag |= MWF_F_CIGAR;
					mwf_wfa_auto(km2, &opt, l_seq, seq, qlen, qs, &rst);
					append_cigar(km, &cigar, rst.n_cigar, rst.cigar);
					kfree(km2, rst.cigar);
					if ((mg_dbg_flag&MG_DBG_MINIWFA) && l_seq > 5000 && qlen > 5000 && rst.s >= 10000)
						fprintf(stderr, "WL\t%s\t%d\t%d\t%d\t%d\t%d\n", qname, i, (int32_t)q->y + 1, (int32_t)p->y - (int32_t)q->y, l_seq, rst.s);
					if (rst.s >= 10000 && l_seq > 5000 && qlen > 5000) {
						km_destroy(km2);
						km2 = km_init2(km, 0);
					}
					if ((mg_dbg_flag&MG_DBG_MWF_SEQ) && l_seq > 5000 && qlen > 5000 && rst.s >= 10000) {
						char *str;
						str = Kmalloc(km, char, qlen + l_seq + strlen(qname) + 100);
						k = sprintf(str, "WL\t%s\t%d\t%d\t%d\nWT\t%.*s\nWQ\t%.*s\n", qname, i, (int32_t)q->y + 1, rst.s, l_seq, seq, qlen, qs);
						fwrite(str, 1, k, stderr);
						kfree(km, str);
					}
				}
			}
			j0 = j, l0 = l;
		}
		// save the CIGAR to gt->gc[i]
		gc->p = (mg_cigar_t*)kcalloc(gt->km, 1, cigar.n * 8 + sizeof(mg_cigar_t));
		gc->p->ss = (int32_t)gt->a[off_a0].x + 1 - (int32_t)(gt->a[off_a0].y>>32&0xff);
		gc->p->ee = (int32_t)gt->a[off_a0 + gc->n_anchor - 1].x + 1;
		gc->p->n_cigar = cigar.n;
		memcpy(gc->p->cigar, cigar.a, cigar.n * 8);
		for (j = 0, l = 0; j < gc->p->n_cigar; ++j) {
			int32_t op = gc->p->cigar[j]&0xf, len = gc->p->cigar[j]>>4;
			if (op == 7) gc->p->mlen += len, gc->p->blen += len;
			else gc->p->blen += len;
			if (op != 1) gc->p->aplen += len;
			if (op != 2) l += len;
		}
		memset(&gc->ds, 0, sizeof(gc->ds));
		assert(l == gc->qe - gc->qs && gc->p->aplen == gc->pe - gc->ps);
	}
	km_destroy(km2);
	kfree(km, seq);
	kfree(km, cigar.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, 0x88(%rsp)
movq %r8, %rbp
movq %rcx, 0xb0(%rsp)
movq %rdx, 0x50(%rsp)
movq %rsi, 0x90(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %rdi, 0x10(%rsp)
xorl %esi, %esi
callq 0x300c
movq %rax, 0x58(%rsp)
cmpl $0x0, 0x8(%rbp)
jle 0x1b657
xorl %ecx, %ecx
xorl %r13d, %r13d
movq $0x0, 0x18(%rsp)
movq %rbp, 0x38(%rsp)
movq %rcx, 0x68(%rsp)
imulq $0x68, %rcx, %rbx
movq 0x18(%rbp), %r14
movq 0x20(%rbp), %rax
leaq (%r14,%rbx), %rcx
movq %rcx, 0x8(%rsp)
movslq 0x8(%r14,%rbx), %r15
leaq (%r15,%r15,4), %rcx
movslq (%rax,%rcx,4), %rdx
movl $0x0, 0x20(%rsp)
movq 0x28(%rbp), %rax
movq %rdx, 0x80(%rsp)
shlq $0x4, %rdx
movq %rdx, 0xc0(%rsp)
movzbl 0xc(%rax,%rdx), %ecx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x7, %edx
callq 0x1b717
movl 0x10(%r14,%rbx), %ecx
cmpl $0x2, %ecx
jl 0x1b544
xorl %ebx, %ebx
movl $0x1, %r14d
movq 0x8(%rsp), %rdx
movq 0x28(%rbp), %r8
movq 0x80(%rsp), %rax
addq %r14, %rax
movq %rax, %rsi
shlq $0x4, %rsi
testb $0x2, 0xd(%r8,%rsi)
je 0x1ae33
decl %ecx
cmpq %rcx, %r14
je 0x1ae33
movl %r15d, %esi
jmp 0x1b1a5
movq %rsi, 0x48(%rsp)
movq %r14, 0x78(%rsp)
movslq 0x8(%rdx), %rcx
movslq 0xc(%rdx), %rdx
addq %rcx, %rdx
movl %r15d, %esi
subl %edx, %esi
setl %dil
jge 0x1b69b
addq %r8, 0x48(%rsp)
movslq %ebx, %rcx
addq 0x80(%rsp), %rcx
shlq $0x4, %rcx
addq %r8, %rcx
movq %rcx, 0x60(%rsp)
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %r9
movslq %r15d, %r8
movq %r8, %r14
shlq $0x20, %r14
leaq (,%r8,4), %rcx
leaq (%rcx,%rcx,4), %rcx
addq %rcx, %r9
addq $0x4, %r9
leaq 0x1(%r8), %r10
xorl %ebp, %ebp
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movslq -0x4(%r9), %r11
cmpq %r11, %rax
jl 0x1aeb8
movslq (%r9), %r12
addq %r11, %r12
cmpq %r12, %rax
jl 0x1aee0
cmpq %rdx, %r10
setl %dil
decl %ebp
movabsq $0x100000000, %r11      # imm = 0x100000000
addq %r11, %r14
addq $0x14, %r9
incq %r10
incl %ebx
cmpl %ebp, %esi
jne 0x1aea4
jmp 0x1b69b
testb $0x1, %dil
je 0x1b69b
movq 0x60(%rsp), %r9
movl (%r9), %esi
movq 0x90(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rdx
movq 0x20(%rdx), %rdx
leaq (%r8,%r8,4), %r12
movl 0x8(%rdx,%r12,4), %edi
shrl %edi
shlq $0x6, %rdi
movl (%rax,%rdi), %eax
cmpl %esi, %eax
jle 0x1b6ba
movl %r15d, %edi
subl %ebp, %edi
testl %ebp, %ebp
movl %edi, (%rsp)
je 0x1af6b
notl %esi
addl %esi, %eax
leal 0x1(%r15), %esi
cmpl %edi, %esi
movq 0x50(%rsp), %rdi
movq 0x18(%rsp), %r8
jge 0x1af5e
addq %rdx, %rcx
addq $0x1c, %rcx
movl %ebx, %edx
movl (%rcx), %esi
shlq $0x4, %rsi
addl 0x8(%rdi,%rsi), %eax
addq $0x14, %rcx
decl %edx
jne 0x1af4c
movq 0x48(%rsp), %rcx
movl (%rcx), %ecx
addl %eax, %ecx
incl %ecx
jmp 0x1af7e
movq 0x48(%rsp), %rax
movl (%rax), %ecx
subl %esi, %ecx
movq 0x50(%rsp), %rdi
movq 0x18(%rsp), %r8
cmpl %r13d, %ecx
jge 0x1af8d
movl %r13d, 0x4(%rsp)
movq %rcx, %r13
jmp 0x1afd5
movl %ecx, %eax
sarl %eax
movq %rcx, %r13
orl %ecx, %eax
movl %eax, %ecx
sarl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
sarl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
sarl $0x10, %eax
orl %ecx, %eax
incl %eax
movl %eax, 0x4(%rsp)
movslq %eax, %rdx
movq 0x10(%rsp), %rdi
movq %r8, %rsi
callq 0x32c4
movq 0x60(%rsp), %r9
movq 0x50(%rsp), %rdi
movq %rax, %r8
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax,%r12,4), %eax
testl %ebp, %ebp
movq %r8, 0x18(%rsp)
je 0x1b09e
movq 0x90(%rsp), %rcx
movq 0x10(%rcx), %rcx
movl %eax, %edx
shrl %edx
shlq $0x6, %rdx
movq (%r9), %rsi
movl %esi, %r12d
notl %r12d
addl (%rcx,%rdx), %r12d
shlq $0x4, %rax
shlq $0x20, %rsi
movabsq $0x100000000, %rcx      # imm = 0x100000000
addq %rcx, %rsi
sarq $0x20, %rsi
addq (%rdi,%rax), %rsi
movslq %r12d, %rdx
movq %r8, %rdi
callq 0x2230
incl %r15d
cmpl (%rsp), %r15d
jge 0x1b0e0
movslq %r15d, %rax
leaq (%rax,%rax,4), %rax
leaq 0x8(,%rax,4), %r15
movq 0x38(%rsp), %rbp
movq 0x50(%rsp), %rdx
movq 0x18(%rsp), %r13
movq 0x20(%rbp), %rax
movl (%rax,%r15), %ebp
movslq %r12d, %r12
leaq (%r12,%r13), %rdi
shlq $0x4, %rbp
movq (%rdx,%rbp), %rsi
movslq 0x8(%rdx,%rbp), %rdx
callq 0x2230
movq 0x50(%rsp), %rdx
addl 0x8(%rdx,%rbp), %r12d
movq 0x38(%rsp), %rbp
addq $0x14, %r15
decl %ebx
jne 0x1b064
jmp 0x1b0ef
shlq $0x4, %rax
movq (%r9), %rsi
shlq $0x20, %rsi
movabsq $0x100000000, %rcx      # imm = 0x100000000
addq %rcx, %rsi
sarq $0x20, %rsi
addq (%rdi,%rax), %rsi
movslq %r13d, %rdx
movq %r8, %rdi
movq %r9, %rbx
callq 0x2230
movq %r13, %r15
movq 0x38(%rsp), %rbp
movq 0x48(%rsp), %r14
movl 0x4(%rsp), %r13d
jmp 0x1b144
movq 0x38(%rsp), %rbp
movq 0x50(%rsp), %rdx
movq 0x18(%rsp), %r13
movslq %r12d, %rbx
leaq (%rbx,%r13), %rdi
movq 0x20(%rbp), %rax
sarq $0x20, %r14
leaq (%r14,%r14,4), %rcx
movl 0x8(%rax,%rcx,4), %eax
shlq $0x4, %rax
movq (%rdx,%rax), %rsi
movq 0x48(%rsp), %r14
movq (%r14), %rdx
shlq $0x20, %rdx
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %rdx
sarq $0x20, %rdx
callq 0x2230
movl (%r14), %eax
leal (%rbx,%rax), %r15d
incl %r15d
movl 0x4(%rsp), %r13d
movq 0x60(%rsp), %rbx
movl 0x8(%r14), %eax
movq 0x8(%rbx), %r12
movl %eax, %r8d
subl %r12d, %r8d
testl %r15d, %r15d
movq 0x78(%rsp), %r14
jg 0x1b165
testl %r8d, %r8d
jle 0x1b6d9
movl %r14d, %ebx
testl %r15d, %r15d
je 0x1b186
cmpl %r12d, %eax
jne 0x1b1bd
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x2, %edx
movl %r15d, %ecx
jmp 0x1b198
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x1, %edx
movl %r8d, %ecx
callq 0x1b717
movq 0x8(%rsp), %rdx
movl (%rsp), %esi
incq %r14
movslq 0x10(%rdx), %rcx
movl %esi, %r15d
cmpq %rcx, %r14
jl 0x1ae06
jmp 0x1b544
cmpl %r8d, %r15d
jne 0x1b1d8
movslq %r8d, %rax
movq %r12, %rdx
shrq $0x20, %rdx
movzbl %dl, %edx
cmpq %rax, %rdx
jae 0x1b4d1
movl %ebx, 0x44(%rsp)
movl %r13d, 0x4(%rsp)
shlq $0x20, %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r12
sarq $0x20, %r12
addq 0xb0(%rsp), %r12
leaq 0xd0(%rsp), %rbx
movq %rbx, %rdi
movq %r8, %r13
callq 0x1211c
orb $0x1, 0xd0(%rsp)
subq $0x8, %rsp
movq 0x60(%rsp), %rdi
movq %rbx, %rsi
movq %r15, 0x78(%rsp)
movl %r15d, %edx
movq 0x20(%rsp), %rcx
movq %r13, 0xd0(%rsp)
movl %r13d, %r8d
movq %r12, 0xc0(%rsp)
movq %r12, %r9
leaq 0xa0(%rsp), %rax
pushq %rax
callq 0x14ba3
addq $0x10, %rsp
movl 0x9c(%rsp), %r15d
testl %r15d, %r15d
je 0x1b328
movq 0xa8(%rsp), %rbx
movl (%rbx), %ecx
movl %ecx, %edx
andl $0xf, %edx
shrl $0x4, %ecx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1b717
movslq 0x20(%rsp), %r14
leal (%r14,%r15), %eax
decl %eax
cmpl 0x24(%rsp), %eax
jle 0x1b2ec
leal (%r14,%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, 0x24(%rsp)
movq 0x28(%rsp), %rsi
movslq %ecx, %rax
leaq 0x8(,%rax,8), %rdx
movq 0x10(%rsp), %rdi
callq 0x32c4
movq %rax, 0x28(%rsp)
leal -0x1(%r15), %eax
cmpl $0x2, %r15d
jl 0x1b31b
movl %eax, %ecx
leaq (,%r14,8), %rdx
addq 0x28(%rsp), %rdx
xorl %esi, %esi
movl 0x4(%rbx,%rsi,4), %edi
movq %rdi, (%rdx,%rsi,8)
leaq 0x1(%rsi), %rdi
movq %rdi, %rsi
cmpq %rdi, %rcx
jne 0x1b307
addl %eax, %r14d
movl %r14d, 0x20(%rsp)
movq 0x78(%rsp), %r14
movq 0xa8(%rsp), %rsi
movq 0x58(%rsp), %rdi
callq 0x30f6
movl $0x1389, %ecx           # imm = 0x1389
movq 0x70(%rsp), %r11
cmpl %ecx, %r11d
setge %al
movq 0xc8(%rsp), %r15
cmpl %ecx, %r15d
setge %cl
andb %al, %cl
leaq 0x17317(%rip), %rax     # 0x32678
andb 0x1(%rax), %cl
movl 0x98(%rsp), %r10d
cmpl $0x2710, %r10d          # imm = 0x2710
setge %al
andb %cl, %al
cmpb $0x1, %al
je 0x1b4f2
cmpl $0x1389, %r11d          # imm = 0x1389
movl 0x4(%rsp), %r13d
movl 0x44(%rsp), %ebx
jl 0x1b4e5
cmpl $0x2710, 0x98(%rsp) # imm = 0x2710
movq 0x8(%rsp), %rdx
movl (%rsp), %esi
jl 0x1b3e1
cmpl $0x1389, %r15d          # imm = 0x1389
jl 0x1b3e1
movl %esi, %ebx
movq 0x58(%rsp), %rdi
callq 0x30b8
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x300c
movq 0x70(%rsp), %r11
movl %ebx, %esi
movl 0x44(%rsp), %ebx
movq 0x8(%rsp), %rdx
movq %rax, 0x58(%rsp)
cmpl $0x1389, %r11d          # imm = 0x1389
jl 0x1b1a5
leaq 0x17283(%rip), %rax     # 0x32678
movl (%rax), %eax
movl $0x200, %ecx            # imm = 0x200
andl %ecx, %eax
je 0x1b1a5
cmpl $0x1389, %r15d          # imm = 0x1389
jl 0x1b1a5
cmpl $0x2710, 0x98(%rsp) # imm = 0x2710
jl 0x1b1a5
leal (%r15,%r11), %ebx
movq 0x88(%rsp), %r14
movq %r14, %rdi
movq %r11, %r13
callq 0x2110
leaq (%rbx,%rax), %rsi
addq $0x64, %rsi
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x31c1
movq %rax, %r12
movq 0x60(%rsp), %rax
movl 0x8(%rax), %r8d
incl %r8d
movl 0x98(%rsp), %r9d
movq %r12, %rdi
leaq 0xe524(%rip), %rsi      # 0x29993
movq %r14, %rdx
movq 0x78(%rsp), %r14
movq 0x68(%rsp), %rcx
xorl %eax, %eax
pushq 0xb8(%rsp)
pushq %r15
pushq 0x28(%rsp)
pushq %r13
movl 0x24(%rsp), %r13d
callq 0x2320
addq $0x20, %rsp
movslq %eax, %rdx
movq 0x16b53(%rip), %rax     # 0x31ff8
movq (%rax), %rcx
movl $0x1, %esi
movq %r12, %rdi
callq 0x2340
movq %rbx, %rdi
movl 0x44(%rsp), %ebx
movq %r12, %rsi
callq 0x30f6
movl (%rsp), %esi
movq 0x8(%rsp), %rdx
jmp 0x1b1a5
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x7, %edx
jmp 0x1b195
movq 0x8(%rsp), %rdx
movl (%rsp), %esi
jmp 0x1b3e1
movq 0x16aff(%rip), %rax     # 0x31ff8
movq (%rax), %rdi
movq 0x60(%rsp), %rax
movl 0x8(%rax), %r8d
movq 0x48(%rsp), %rax
movl 0x8(%rax), %r9d
subl %r8d, %r9d
incl %r8d
leaq 0xe462(%rip), %rsi      # 0x2997d
movq 0x88(%rsp), %rdx
movq 0x68(%rsp), %rcx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x2210
movq 0x80(%rsp), %r11
addq $0x10, %rsp
jmp 0x1b380
movq (%rbp), %rdi
movslq 0x20(%rsp), %r14
leaq 0x18(,%r14,8), %rdx
movq %r14, %rbx
shlq $0x3, %rbx
movl $0x1, %esi
callq 0x3054
movq 0x8(%rsp), %rcx
movq %rax, 0x48(%rcx)
movq 0x28(%rbp), %rcx
movq 0xc0(%rsp), %rsi
movl (%rcx,%rsi), %edx
movzbl 0xc(%rcx,%rsi), %esi
subl %esi, %edx
incl %edx
movl %edx, 0x10(%rax)
movq 0x8(%rsp), %rdx
movslq 0x10(%rdx), %rdx
addq 0x80(%rsp), %rdx
shlq $0x4, %rdx
movl -0x10(%rcx,%rdx), %ecx
incl %ecx
movl %ecx, 0x14(%rax)
movl %r14d, (%rax)
leaq 0x18(%rax), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x2230
movq 0x8(%rsp), %r9
movq 0x48(%r9), %rax
cmpl $0x0, (%rax)
jle 0x1b60d
movl 0x8(%rax), %edx
xorl %esi, %esi
xorl %ecx, %ecx
movq 0x18(%rax,%rsi,8), %rdi
movl %edi, %r8d
andl $0xf, %r8d
shrq $0x4, %rdi
cmpl $0x7, %r8d
jne 0x1b5ea
addl %edi, 0x4(%rax)
cmpl $0x1, %r8d
je 0x1b5f9
addl %edi, 0xc(%rax)
cmpl $0x2, %r8d
je 0x1b5fb
addl %edi, %ecx
addl %edi, %edx
incq %rsi
movslq (%rax), %rdi
cmpq %rdi, %rsi
jl 0x1b5d1
movl %edx, 0x8(%rax)
jmp 0x1b60f
xorl %ecx, %ecx
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r9)
movq $0x0, 0x60(%r9)
movl 0x1c(%r9), %edx
subl 0x18(%r9), %edx
cmpl %edx, %ecx
jne 0x1b6f8
movl 0x28(%r9), %ecx
subl 0x24(%r9), %ecx
cmpl %ecx, 0xc(%rax)
jne 0x1b6f8
movq 0x68(%rsp), %rcx
incq %rcx
movslq 0x8(%rbp), %rax
cmpq %rax, %rcx
jl 0x1ad8b
jmp 0x1b660
movq $0x0, 0x18(%rsp)
movq 0x58(%rsp), %rdi
callq 0x30b8
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x30f6
movq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x30f6
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xeb49(%rip), %rdi      # 0x2a1eb
leaq 0xe21c(%rip), %rsi      # 0x298c5
leaq 0xe21e(%rip), %rcx      # 0x298ce
movl $0x3f, %edx
callq 0x2160
leaq 0xe27a(%rip), %rdi      # 0x2993b
leaq 0xe1fd(%rip), %rsi      # 0x298c5
leaq 0xe1ff(%rip), %rcx      # 0x298ce
movl $0x40, %edx
callq 0x2160
leaq 0xe287(%rip), %rdi      # 0x29967
leaq 0xe1de(%rip), %rsi      # 0x298c5
leaq 0xe1e0(%rip), %rcx      # 0x298ce
movl $0x61, %edx
callq 0x2160
leaq 0xe2b4(%rip), %rdi      # 0x299b3
leaq 0xe1bf(%rip), %rsi      # 0x298c5
leaq 0xe1c1(%rip), %rcx      # 0x298ce
movl $0x8c, %edx
callq 0x2160