// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/inter.cpp
// Function: filter_ctg_trans(unsigned int, ma_ug_t*, ma_ug_t*, kv_ul_ov_t*, asg64_v*, asg64_v*, double, unsigned long, double, unsigned long, double, unsigned long, unsigned int)
uint64_t filter_ctg_trans(uint32_t qid, ma_ug_t *qry, ma_ug_t *ref, kv_ul_ov_t *aln, asg64_v *aln_e, asg64_v *srt, double reliable_rate, uint64_t reliable_len, double sec_rate, uint64_t sec_bd, double sec_sc, uint64_t soff, uint32_t is_self)
{
	if(aln->n <= 0) return 0;

	uint64_t k, an, *ss, *hs, *bu, *wu, clen, m, wm, z, l, wl, le, os, oe, ovq; ul_ov_t *cz, *mz; uint32_t sce[2]; sce[0] = 0; sce[1] = 1;
	for (k = 0; k < aln->n; k++) {
		aln->a[k].el = 0; clen = 0;
		if((!is_self) || (sce[(qid<soff)?0:1] != sce[(aln->a[k].tn<soff)?0:1])) {
			if(aln->a[k].sec < aln_e->n) {///has reliable regions
				for (z = aln->a[k].sec - aln_e->a[aln->a[k].sec]; z < aln->a[k].sec; z++) {
					clen += ((uint32_t)aln_e->a[z]) - (aln_e->a[z]>>32);
				}
			}
			if((clen > reliable_len) && (clen > ((aln->a[k].qe - aln->a[k].qs)*reliable_rate))) {
				aln->a[k].el = 1;
			}
		}
		aln->a[k].qn = ((uint32_t)-1) - aln->a[k].qn;

		// if(qid == 2 && qry->u.a[qid].len == 112183461) {///h2tg000003l
		// 	fprintf(stderr, "+[M::%s] h2tg%.6u%c\t%u\t%u\t%u\t%c\th1tg%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(qid == 30 && qry->u.a[qid].len == 24761445) {///h1tg000031l
		// 	fprintf(stderr, "+[M::%s] h1tg%.6u%c\t%u\t%u\t%u\t%c\th12g%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(aln->a[k].tn == 2 && ref->u.a[aln->a[k].tn].len == 112183461) {///h2tg000003l
		// 	fprintf(stderr, "+[M::%s] h1tg%.6u%c\t%u\t%u\t%u\t%c\th12g%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(aln->a[k].tn == 30 && ref->u.a[aln->a[k].tn].len == 24761445) {
		// 	fprintf(stderr, "+[M::%s] h2tg%.6u%c\t%u\t%u\t%u\t%c\th1tg%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// }
	}
	if(aln->n > 1) radix_sort_ul_ov_srt_qn(aln->a, aln->a + aln->n);///qn->score
	for (k = 0; k < aln->n; k++) aln->a[k].qn = ((uint32_t)-1) - aln->a[k].qn;

	an = aln->n; an <<= 2;
	srt->n = 0; kv_resize(uint64_t, *srt, an);
	for (k = 0; k < aln->n; k++) {
		srt->a[srt->n] = aln->a[k].qs;
		srt->a[srt->n] <<= 32;
		srt->a[srt->n] |= k;
		srt->n++;
	}

	ss = srt->a; hs = ss + srt->n; bu = hs + srt->n; wu = bu + srt->n;
	radix_sort_gfa64(ss, ss + aln->n);
	for (k = 0; k < aln->n; k++) {
		ss[k] = (uint32_t)ss[k]; hs[ss[k]] = k;
	}
	for (k = 0; k < aln->n; k++) {
		if(aln->a[k].el) continue;
		cz = &(aln->a[k]); clen = (cz->qe-cz->qs) * sec_rate; m = wm = 0;

		for (z = l = wl = le = 0; z < aln->n; z++) {
			if(z == hs[k]) {
				assert(ss[z] == k);
				continue;
			}
			if(ss[z] > k) continue;///smaller nw than a[k]
			mz = &(aln->a[ss[z]]);
			if(mz->qs >= cz->qe) break;
			if(mz->tn == ((uint32_t)-1)) continue;///has been deleted
			if((!(mz->el)) && (cz->qn > (mz->qn*0.9))) continue;
			os = MAX(cz->qs, mz->qs); oe = MIN(cz->qe, mz->qe);
			ovq = ((oe > os)? (oe - os):0);
			if(!ovq) continue;
			// if(is_connect_arc(cz, mz, s->ug, 0.04) || is_connect_arc(mz, cz, s->ug, 0.04)) continue;

			if((m > 0) && (((uint32_t)bu[m-1]) >= os)) {
				if(oe > ((uint32_t)bu[m-1])) {
					le += cal_reliable_ovlp(cz, aln_e, ((uint32_t)bu[m-1]), oe);
					l += (oe - ((uint32_t)bu[m-1]));
					bu[m-1] += (oe - ((uint32_t)bu[m-1]));
				}
			} else {
				le += cal_reliable_ovlp(cz, aln_e, os, oe);
				l += oe - os;
				bu[m] = os; bu[m] <<= 32; bu[m] |= oe; m++;
			}

			if((wm > 0) && (((uint32_t)wu[wm-1]) >= mz->qs)) {
				if(mz->qe > ((uint32_t)wu[wm-1])) {
					wl += (mz->qe - ((uint32_t)wu[wm-1]));
					wu[wm-1] += (mz->qe - ((uint32_t)wu[wm-1]));
				}
			} else {
				wl += mz->qe - mz->qs;
				wu[wm] = mz->qs; wu[wm] <<= 32; wu[wm] |= mz->qe; wm++;
			}

			if((l > 0) && (l > sec_bd) && (le <= l*0.5)) {
				if((l>=clen) || (l>=(wl*sec_rate))) {
					///sc is small enough
					if(cz->qn <= (mz->qn*sec_sc)) {
						cz->tn = ((uint32_t)-1);
						break;
					}
				}
			}
		}        
	}

	for (k = m = 0; k < aln->n; k++) {
		if(aln->a[k].tn == ((uint32_t)-1)) continue;
		// if(qid == 2 && qry->u.a[qid].len == 112183461) {///h2tg000003l
		// 	fprintf(stderr, "-[M::%s] h2tg%.6u%c\t%u\t%u\t%u\t%c\th1tg%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(qid == 30 && qry->u.a[qid].len == 24761445) {///h1tg000031l
		// 	fprintf(stderr, "-[M::%s] h1tg%.6u%c\t%u\t%u\t%u\t%c\th12g%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(aln->a[k].tn == 2 && ref->u.a[aln->a[k].tn].len == 112183461) {///h2tg000003l
		// 	fprintf(stderr, "-[M::%s] h1tg%.6u%c\t%u\t%u\t%u\t%c\th12g%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// } else if(aln->a[k].tn == 30 && ref->u.a[aln->a[k].tn].len == 24761445) {
		// 	fprintf(stderr, "-[M::%s] h2tg%.6u%c\t%u\t%u\t%u\t%c\th1tg%.6u%c\t%u\t%u\t%u\tsec(%u)\tel(%u)\n", __func__,
        // 	qid+1, "lc"[qry->u.a[qid].circ], qry->u.a[qid].len, aln->a[k].qs, aln->a[k].qe, "+-"[aln->a[k].rev],
        // 	aln->a[k].tn+1, "lc"[ref->u.a[aln->a[k].tn].circ], ref->u.a[aln->a[k].tn].len, aln->a[k].ts, aln->a[k].te, aln->a[k].sec, aln->a[k].el);
		// }
		aln->a[m++] = aln->a[k];
	}
	aln->n = m;
	// radix_sort_ul_ov_srt_qs(aln->a, aln->a + aln->n);
	return aln->n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movsd %xmm2, 0x90(%rsp)
movsd %xmm1, 0x60(%rsp)
cmpq $0x0, 0x8(%rcx)
je 0x1d95e5
movq %r9, %r12
movq %r8, %r14
movq %rcx, %rbp
movl 0xf8(%rsp), %eax
movq 0xf0(%rsp), %rcx
movabsq $0x100000000, %rsi      # imm = 0x100000000
movq %rsi, 0x88(%rsp)
movl %edi, %esi
xorl %edi, %edi
cmpq %rcx, %rsi
setae %dil
movq (%rbp), %r9
xorl %r8d, %r8d
leaq (%r8,%r8,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %r8, %rsi
andb $-0x41, 0x1b(%r9,%rsi)
movq (%rbp), %r9
testl %eax, %eax
je 0x1d9435
movl 0x88(%rsp,%rdi,4), %r10d
movl 0xc(%r9,%rsi), %r11d
xorl %ebx, %ebx
cmpq %rcx, %r11
setae %bl
cmpl 0x88(%rsp,%rbx,4), %r10d
je 0x1d94de
movl 0x18(%r9,%rsi), %r10d
movl %r10d, %ebx
andl $0x3fffffff, %ebx       # imm = 0x3FFFFFFF
cmpq %rbx, (%r14)
jbe 0x1d94de
movq %r14, %rdx
movq 0x10(%r14), %r14
movq (%r14,%rbx,8), %r11
movq %rbx, %r15
subq %r11, %r15
cmpq %rbx, %r15
jae 0x1d94db
leaq (%r14,%rbx,8), %rbx
negq %r11
xorl %r14d, %r14d
movq (%rbx,%r11,8), %r15
movl %r15d, %r13d
shrq $0x20, %r15
subq %r15, %r14
addq %r13, %r14
incq %r11
jne 0x1d946c
cmpq 0xe0(%rsp), %r14
jbe 0x1d94db
movq %r14, %xmm1
punpckldq 0x57de7(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x57def(%rip), %xmm1    # 0x231290
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
movl 0x8(%r9,%rsi), %r11d
subl 0x4(%r9,%rsi), %r11d
xorps %xmm3, %xmm3
cvtsi2sd %r11, %xmm3
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm3
ucomisd %xmm3, %xmm2
jbe 0x1d94db
addq %rsi, %r9
orl $0x40000000, %r10d      # imm = 0x40000000
movl %r10d, 0x18(%r9)
movq (%rbp), %r9
movq %rdx, %r14
notl (%r9,%rsi)
incq %r8
movq 0x8(%rbp), %rsi
cmpq %rsi, %r8
jb 0x1d93f9
cmpq $0x2, %rsi
jb 0x1d9513
movq (%rbp), %rdi
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %rsi
addq %rax, %rsi
callq 0x19ead4
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
je 0x1d952a
movq (%rbp), %rax
movq %rsi, %rcx
notl (%rax)
addq $0x1c, %rax
decq %rcx
jne 0x1d951f
leaq (,%rsi,4), %rax
movq $0x0, (%r12)
cmpq %rax, 0x8(%r12)
jae 0x1d9599
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%r12)
movq 0x10(%r12), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%r12)
movq 0x8(%rbp), %rsi
testq %rsi, %rsi
je 0x1d95ec
movq (%rbp), %rax
movq (%r12), %rbx
movq 0x10(%r12), %r15
addq $0x4, %rax
xorl %ecx, %ecx
movl (%rax), %edx
movq %rdx, (%r15,%rbx,8)
movq (%r12), %rdx
shlq $0x20, (%r15,%rdx,8)
movq (%r12), %rdx
orq %rcx, (%r15,%rdx,8)
movq (%r12), %rbx
incq %rbx
movq %rbx, (%r12)
incq %rcx
movq 0x8(%rbp), %rdx
addq $0x1c, %rax
cmpq %rdx, %rcx
jb 0x1d95b1
jmp 0x1d95f7
xorl %eax, %eax
jmp 0x1d9a7e
movq (%r12), %rbx
movq 0x10(%r12), %r15
xorl %edx, %edx
leaq (%r15,%rdx,8), %rsi
movq %r15, %rdi
callq 0x19dd99
cmpq $0x0, 0x8(%rbp)
je 0x1d9a78
leaq (%r15,%rbx,8), %r9
leaq (%r9,%rbx,8), %rax
movq %rax, 0x40(%rsp)
leaq (%rax,%rbx,8), %rax
movq %rax, 0x38(%rsp)
xorl %eax, %eax
movq %r15, %rsi
movl (%rsi,%rax,8), %ecx
movq %rcx, (%rsi,%rax,8)
movq %rax, (%r9,%rcx,8)
incq %rax
movq 0x8(%rbp), %rcx
cmpq %rcx, %rax
jb 0x1d9629
testq %rcx, %rcx
je 0x1d9a78
movq %r14, 0x58(%rsp)
movq (%rbp), %r8
xorl %ebx, %ebx
movq %rsi, 0x78(%rsp)
movq %r9, 0x70(%rsp)
movq %r8, 0x68(%rsp)
movq %rbp, 0x18(%rsp)
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rdi
addq %rbx, %rdi
testb $0x40, 0x1b(%r8,%rdi)
jne 0x1d9a1c
addq %r8, %rdi
movl 0x4(%rdi), %r13d
movl 0x8(%rdi), %r11d
movl %r11d, %eax
subl %r13d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x60(%rsp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
subsd 0x57c56(%rip), %xmm0    # 0x231308
cvttsd2si %xmm0, %r14
andq %rdx, %r14
orq %rax, %r14
movq %r14, 0xa0(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x8(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x20(%rsp)
movq %rdi, 0x80(%rsp)
movl %r13d, 0x14(%rsp)
movl %r11d, 0x10(%rsp)
movq (%rsi,%r14,8), %rax
cmpq (%r9,%rbx,8), %r14
jne 0x1d971f
cmpq %rbx, %rax
je 0x1d995a
jmp 0x1d9a90
cmpq %rbx, %rax
ja 0x1d995a
leaq (%rax,%rax,8), %rdx
leaq (%rdx,%rdx,2), %r12
addq %rax, %r12
movl 0x4(%r8,%r12), %r15d
cmpl %r11d, %r15d
jae 0x1d9a1c
addq %r8, %r12
cmpl $-0x1, 0xc(%r12)
je 0x1d995a
testb $0x40, 0x1b(%r12)
jne 0x1d9780
movl (%rdi), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movl (%r12), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x57e82(%rip), %xmm1    # 0x2315f8
ucomisd %xmm1, %xmm0
ja 0x1d995a
cmpl %r15d, %r13d
movl %r15d, %ebp
movl %r13d, %eax
cmoval %r13d, %ebp
movl 0x8(%r12), %r10d
cmpl %r10d, %r11d
movl %r10d, %r13d
cmovbl %r11d, %r13d
cmpl %ebp, %r13d
jbe 0x1d9947
movq 0x28(%rsp), %rcx
testq %rcx, %rcx
je 0x1d97c4
movq 0x40(%rsp), %rax
movq -0x8(%rax,%rcx,8), %rax
movl %eax, %edx
cmpq %rbp, %rdx
jae 0x1d996f
movq 0x58(%rsp), %rsi
movq %r10, 0x30(%rsp)
movq %rbp, %rdx
movq %r13, %rcx
callq 0x1d932a
movq 0x30(%rsp), %r10
movq 0x28(%rsp), %rcx
addq %rax, 0x50(%rsp)
movq 0x8(%rsp), %rax
subq %rbp, %rax
addq %r13, %rax
movq %rax, 0x8(%rsp)
shlq $0x20, %rbp
orq %r13, %rbp
movq 0x40(%rsp), %rax
movq %rbp, (%rax,%rcx,8)
incq %rcx
movq 0x18(%rsp), %rbp
movq %rcx, 0x28(%rsp)
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
je 0x1d9832
movq 0x38(%rsp), %rax
movq -0x8(%rax,%rcx,8), %rax
cmpl %eax, %r15d
jbe 0x1d99c3
movl %r10d, %eax
subl %r15d, %eax
addq %rax, 0x48(%rsp)
shlq $0x20, %r15
orq %r10, %r15
movq 0x38(%rsp), %rax
movq %r15, (%rax,%rcx,8)
incq %rcx
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %r9
movq 0x68(%rsp), %r8
movq 0x80(%rsp), %rdi
movl 0x14(%rsp), %r13d
movl 0x10(%rsp), %r11d
movq 0x8(%rsp), %rax
testq %rax, %rax
movq %rcx, 0x20(%rsp)
je 0x1d9951
cmpq 0xe8(%rsp), %rax
jbe 0x1d995a
movsd 0x50(%rsp), %xmm0
movsd 0x579e0(%rip), %xmm3    # 0x231280
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x579e5(%rip), %xmm4    # 0x231290
subpd %xmm4, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movq %rax, %xmm2
punpckldq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
subpd %xmm4, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
movapd %xmm0, %xmm2
mulsd 0x57d10(%rip), %xmm2    # 0x2315f0
ucomisd %xmm1, %xmm2
jb 0x1d995a
cmpq 0xa0(%rsp), %rax
jae 0x1d991d
movsd 0x48(%rsp), %xmm1
unpcklps 0x57983(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x5798b(%rip), %xmm1    # 0x231290
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
mulsd 0x60(%rsp), %xmm2
ucomisd %xmm2, %xmm0
jb 0x1d995a
movl (%rdi), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movl (%r12), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x90(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x1d995a
jmp 0x1d9a11
movq 0x18(%rsp), %rbp
movl %eax, %r13d
jmp 0x1d995a
movq $0x0, 0x8(%rsp)
incq %r14
movq 0x8(%rbp), %rcx
cmpq %rcx, %r14
jb 0x1d9707
jmp 0x1d9a1c
cmpl %edx, %r13d
jbe 0x1d980b
movq 0x58(%rsp), %rsi
movq %r10, %rbp
movq %r13, %rcx
movq %rax, 0x30(%rsp)
movq %rdx, 0x98(%rsp)
callq 0x1d932a
movq %rbp, %r10
movq 0x28(%rsp), %rcx
addq %rax, 0x50(%rsp)
subq 0x98(%rsp), %r13
addq %r13, 0x8(%rsp)
addq 0x30(%rsp), %r13
movq 0x40(%rsp), %rax
movq %r13, -0x8(%rax,%rcx,8)
jmp 0x1d980b
cmpl %eax, %r10d
movq 0x78(%rsp), %rsi
movq 0x70(%rsp), %r9
movq 0x68(%rsp), %r8
movq 0x80(%rsp), %rdi
movl 0x14(%rsp), %r13d
movl 0x10(%rsp), %r11d
jbe 0x1d9871
subl %eax, %r10d
addq %r10, 0x48(%rsp)
addq %r10, %rax
movq 0x38(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq %rax, -0x8(%rcx,%rdx,8)
movq 0x20(%rsp), %rcx
jmp 0x1d9871
movl $0xffffffff, 0xc(%rdi)  # imm = 0xFFFFFFFF
movq 0x8(%rbp), %rcx
incq %rbx
cmpq %rcx, %rbx
jb 0x1d9668
testq %rcx, %rcx
je 0x1d9a78
xorl %edx, %edx
xorl %esi, %esi
xorl %eax, %eax
movq (%rbp), %rdi
cmpl $-0x1, 0xc(%rdi,%rdx)
je 0x1d9a6a
leaq (%rdi,%rdx), %rcx
leaq (%rax,%rax,8), %r8
leaq (%r8,%r8,2), %r8
addq %rax, %r8
incq %rax
movupd (%rcx), %xmm0
movupd 0xc(%rcx), %xmm1
movupd %xmm1, 0xc(%rdi,%r8)
movupd %xmm0, (%rdi,%r8)
movq 0x8(%rbp), %rcx
incq %rsi
addq $0x1c, %rdx
cmpq %rcx, %rsi
jb 0x1d9a33
jmp 0x1d9a7a
xorl %eax, %eax
movq %rax, 0x8(%rbp)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5d1a6(%rip), %rdi     # 0x236c3d
leaq 0x661bd(%rip), %rsi     # 0x23fc5b
leaq 0x69b26(%rip), %rcx     # 0x2435cb
movl $0x4376, %edx           # imm = 0x4376
callq 0x2110