// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/inter.cpp
// Function: gen_trans_aln(overlap_region_alloc*, All_reads*, ul_idx_t const*, ug_opt_t const*, long, double, long, unsigned long*, long, ul_ov_t*, long, unsigned long, unsigned long, long*, int*, int*, int*, int*, int*, long*, long*, long, long, long, bit_extz_t*, long, char*, UC_Read*, double, kv_rtrace_t*, unsigned int, ul_ov_t*, ul_ov_t*)
int64_t gen_trans_aln(overlap_region_alloc* ol, All_reads *ridx, const ul_idx_t *uref, 
const ug_opt_t *uopt, int64_t bw, double diff_ec_ul, int64_t qlen, uint64_t *id, int64_t idn, 
ul_ov_t *a, int64_t a_n, uint64_t qs, uint64_t qe, int64_t *vis, int32_t *f0, int32_t *c_n0, 
int32_t *c_sc0, int32_t *rch0, int32_t *ssc0, int64_t *p0, int64_t *t0, int64_t max_skip, 
int64_t max_iter, int64_t max_dis, bit_extz_t *exz, int64_t trans_sc, char* qstr, UC_Read *tu, 
double e_rate, kv_rtrace_t *trace, uint32_t rechain_w, ul_ov_t *res, ul_ov_t *rr)
{
	if(idn == 0) return 0;
	int64_t k, l, i, j, z, nv = 0, qo, is_c, nf; 
	ul_ov_t *li, *lj; uint32_t li_v, lj_v, update, tipl = 0, mm = ((uint32_t)(0x20000000U));
	// for (i = 0; i < idn; i++) {
	// 	li = &(a[id[i]]);
	// 	fprintf(stderr, "[i::%ld] (id::%u)%.*s\t%c\tq::[%u, %u)\tt::[%u, %u)\tc::%u\n", 
	// 			i, li->tn,
    //                 (int)Get_NAME_LENGTH(R_INF, li->tn), Get_NAME(R_INF, li->tn), 
	// 				"+-"[li->rev], li->qs, li->qe, li->ts, li->te, !li->el);
	// }
	for (i = nf = 0; i < idn; i++) {
		if(a[id[i]].el) break;
		if((a[id[i]].ts == 0) && (a[id[i]].te == Get_READ_LENGTH(R_INF, a[id[i]].tn))) nf++;
	}
	if(i < idn && nf > 0) {
		if((a[id[i]].qs > qs) && (qs <= rechain_w)) {
			tipl = qs; ///there are contained chains beforehand
		}
	}

	for (i = 0, k = l = -1; i < idn; i++) {
		k = id[i]; 
		if(k - l > 1) {
			if(l < 0) {
				for (l = k-1; l >= 0 && a[l].qe > qs; l--);
			}

			for (z = l + 1; z < k; z++) {
				li = &(a[z]); li_v = (li->tn<<1)|li->rev;
				if((!(li->el))||(vis[z]&1)) continue;
				if(!(((li->qs + tipl) >= qs) && (li->qe < qe))) continue;
				for (j = i-1, update = 1; j >= 0; --j) {
					lj = &(a[id[j]]); lj_v = (lj->tn<<1)|lj->rev;
            		if(lj->qe <= li->qs) break;
					qo = infer_rovlp(li, lj, NULL, NULL, ridx, NULL); ///overlap length in query (UL read)
            		if((li_v == lj_v) || (!get_ecov_contain_adv(uref, uopt, li_v^1, lj_v^1, 
																			bw, diff_ec_ul, qo, &is_c))) {
						update = 0; break;
					}
				}
				// if(li->tn == 6312) {
				// 	fprintf(stderr, "[z::%ld] (id::%u)%.*s\t%c\tq::[%u, %u)\tt::[%u, %u)\tc::%u\tnf::%ld\ttipl::%u\tl::%ld\tk::%ld\tupdate::%u\n", z, li->tn,
                //     (int)Get_NAME_LENGTH(R_INF, li->tn), Get_NAME(R_INF, li->tn), 
				// 	"+-"[li->rev], li->qs, li->qe, li->ts, li->te, !li->el, nf, tipl, l, k, update);
				// }
				if(update) {
					res[nv] = a[z]; res[nv].sec = (z<<1) + ((li->qs>=qs)?0:1); nv++;
				}
			}
		}
		l = k; 

		li = &(a[k]); li_v = (li->tn<<1)|li->rev;
		for (j = nv-1; j >= 0; --j) {
			lj = &(res[j]); lj_v = (lj->tn<<1)|lj->rev;
			if(lj->qe <= li->qs) break;
			if(lj->qn == (uint32_t)-1) continue;//deleted
			if((lj->sec&mm)) continue;//could not be deleted
			qo = infer_rovlp(li, lj, NULL, NULL, ridx, NULL); ///overlap length in query (UL read)
			if((li_v == lj_v) || (!get_ecov_contain_adv(uref, uopt, li_v^1, lj_v^1, 
																	bw, diff_ec_ul, qo, &is_c))) {
				// if(lj->tn == 6312) {
				// 	fprintf(stderr, "delete::(id::%u)%.*s\t%c\tq::[%u, %u)\tt::[%u, %u)\tc::%u\n", 
				// 	li->tn, (int)Get_NAME_LENGTH(R_INF, li->tn), Get_NAME(R_INF, li->tn), 
				// 	"+-"[li->rev], li->qs, li->qe, li->ts, li->te, !li->el);
				// }
				res[j].qn = res[j].tn = (uint32_t)-1;
			}
		}
		res[nv] = a[k]; res[nv].sec = k; res[nv].sec<<=1; res[nv].sec |= mm; nv++;
	}

	k = a_n; i = idn;
	if(k - l > 1) {
		for (z = l + 1; z < k; z++) {
			li = &(a[z]); li_v = (li->tn<<1)|li->rev;
			if((!(li->el))||(vis[z]&1)) continue;
			if(!(((li->qs + tipl) >= qs) && (li->qe < qe))) continue;
			for (j = i-1, update = 1; j >= 0; --j) {
				lj = &(a[id[j]]); lj_v = (lj->tn<<1)|lj->rev;
				if(lj->qe <= li->qs) break;
				qo = infer_rovlp(li, lj, NULL, NULL, ridx, NULL); ///overlap length in query (UL read)
				if((li_v == lj_v) || (!get_ecov_contain_adv(uref, uopt, li_v^1, lj_v^1, 
																		bw, diff_ec_ul, qo, &is_c))) {
					update = 0; break;
				}
			}
			if(update) {
				res[nv] = a[z]; res[nv].sec = (z<<1) + ((li->qs>=qs)?0:1); nv++;
			}
		}
	}
	// fprintf(stderr, "\n[M::%s::] old_n::%ld, new_n::%ld\n", __func__, idn, nv);
	for (i = k = 0; i < nv; i++) {
		if(res[i].qn == (uint32_t)-1) continue;
		res[k] = res[i]; 
		if(res[k].sec&mm) res[k].sec -= mm; k++;
		// res[k] = res[i]; 
		// id[k] = res[k].sec; 
		// if(id[k]&mm) id[k] -= mm; 
		// id[k] >>= 1;
		// if(res[k].sec&1) id[k] |= ((uint64_t)(0x100000000U));///low prority
		// // if(res[k].sec&mm) id[k] |= ((uint64_t)(0x200000000U));//orignal alignments
		// k++;

		// fprintf(stderr, "[k::%ld] (id::%u)%.*s\t%c\tq::[%u, %u)\tt::[%u, %u)\tc::%u\tnew::%u\n", k, 
		// 			res[k].tn,(int)Get_NAME_LENGTH(R_INF, res[k].tn), Get_NAME(R_INF, res[k].tn), 
		// 			"+-"[res[k].rev], res[k].qs, res[k].qe, res[k].ts, res[k].te, !res[k].el, 
		// 			(res[k].sec != SEC_MODE));
		// if(res[k].sec != SEC_MODE) vis[res[k].sec>>1] |= 1;
		// res[k].sec = SEC_MODE; k++;
	}
	nv = idn = k;
	nv = flat_contain_adv(ol, ridx, uref, uopt, bw, diff_ec_ul, qlen, max_skip, max_iter, max_dis, 
        exz, trans_sc, qstr, tu, e_rate, trace, res, nv, f0, c_n0, c_sc0, rch0, ssc0, p0, t0, a, id, 
		rechain_w, vis, rr);
		// f, ssc, p, t, &(res->a[k]));
	// for (k = 0; k < idn; k++) {
	// 	if(((uint32_t)id[k])&1) continue;
	// 	vis[((uint32_t)id[k])>>1] |= 1;
	// }
	return nv;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movsd %xmm1, 0x120(%rsp)
movsd %xmm0, 0xe8(%rsp)
movq %r8, 0xd8(%rsp)
movq %rcx, 0xe0(%rsp)
movq %rsi, 0xf0(%rsp)
xorl %r8d, %r8d
cmpq $0x0, 0x178(%rsp)
je 0x1c1eac
movq 0x1a0(%rsp), %r12
movq 0x190(%rsp), %r11
movq 0x180(%rsp), %r10
movq $-0x1, %rbx
movq %r9, 0x118(%rsp)
movq %rdx, 0x110(%rsp)
movq %rdi, 0x108(%rsp)
jle 0x1c1ad4
leaq 0xd4c16(%rip), %rax     # 0x296230
movq 0x18(%rax), %rcx
xorl %eax, %eax
xorl %edx, %edx
movq 0x170(%rsp), %rsi
movq (%rsi,%rdx,8), %rdi
leaq (%rdi,%rdi,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rdi, %rsi
testb $0x40, 0x1b(%r10,%rsi)
jne 0x1c166d
addq %r10, %rsi
cmpl $0x0, 0x10(%rsi)
jne 0x1c165e
movl 0xc(%rsi), %edi
movl 0x14(%rsi), %esi
xorl %r8d, %r8d
cmpq %rsi, (%rcx,%rdi,8)
sete %r8b
addq %r8, %rax
incq %rdx
cmpq %rdx, 0x178(%rsp)
jne 0x1c1622
jmp 0x1c1693
testq %rax, %rax
jle 0x1c1693
movl 0x4(%r10,%rsi), %eax
xorl %ecx, %ecx
cmpq %r11, %rax
movl %r11d, %r8d
cmovbel %ecx, %r8d
movl 0x220(%rsp), %eax
cmpq %r11, %rax
cmovbl %ecx, %r8d
jmp 0x1c1696
xorl %r8d, %r8d
cmpq $0x0, 0x178(%rsp)
jle 0x1c1ad4
leaq -0x14(%r10), %rax
movq %rax, 0x128(%rsp)
movq 0x228(%rsp), %rax
addq $-0x1c, %rax
movq %rax, 0x130(%rsp)
movq $-0x1, %rbx
movq $0x0, 0xb8(%rsp)
xorl %edi, %edi
movq %r8, 0xc0(%rsp)
movq 0x170(%rsp), %rax
movq (%rax,%rdi,8), %rsi
movq %rsi, %rax
subq %rbx, %rax
cmpq $0x2, %rax
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
jl 0x1c1924
movq %rbx, %r14
testq %rbx, %rbx
jns 0x1c1754
movq %rsi, %rax
sarq $0x3f, %rax
andq %rsi, %rax
decq %rax
leaq (%rsi,%rsi,8), %rcx
leaq (%rcx,%rcx,2), %rcx
movq 0x128(%rsp), %rdx
addq %rsi, %rdx
addq %rdx, %rcx
movq %rsi, %r14
testq %r14, %r14
jle 0x1c1751
decq %r14
movl (%rcx), %edx
addq $-0x1c, %rcx
cmpq %r11, %rdx
ja 0x1c173c
jmp 0x1c1754
movq %rax, %r14
incq %r14
cmpq %rsi, %r14
jge 0x1c1924
leaq (%r14,%r14,8), %rax
leaq (%rax,%rax,2), %rax
addq %r14, %rax
movl 0x18(%r10,%rax), %ecx
btl $0x1e, %ecx
jae 0x1c1918
testb $0x1, (%r12,%r14,8)
jne 0x1c1918
leaq (%r10,%rax), %r15
movl 0x4(%r15), %edx
addl %r8d, %edx
cmpq %r11, %rdx
jb 0x1c1918
movl 0x8(%r15), %edx
cmpq 0x198(%rsp), %rdx
jae 0x1c1918
movl 0xc(%r10,%rax), %r13d
shldl $0x1, %ecx, %r13d
movl %r13d, %ebp
xorl $0x1, %ebp
movq %rdi, %r12
testq %r12, %r12
jle 0x1c1875
movq 0x170(%rsp), %rax
movq -0x8(%rax,%r12,8), %rcx
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rax
addq %rcx, %rax
movl 0x8(%r10,%rax), %ecx
cmpl 0x4(%r15), %ecx
jbe 0x1c1875
leaq (%r10,%rax), %rsi
movl 0xc(%r10,%rax), %ecx
movl 0x18(%r10,%rax), %ebx
shrdl $0x1f, %ecx, %ebx
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq 0xf0(%rsp), %r8
xorl %r9d, %r9d
callq 0x6ea22
cmpl %ebx, %r13d
je 0x1c18e8
xorl $0x1, %ebx
leaq 0x100(%rsp), %rcx
movq %rcx, (%rsp)
movq 0xe0(%rsp), %rsi
movl %ebp, %edx
movl %ebx, %ecx
movq 0xd8(%rsp), %r8
movsd 0xe8(%rsp), %xmm0
movq %rax, %r9
callq 0x1bcf0f
decq %r12
testq %rax, %rax
movq 0x180(%rsp), %r10
jne 0x1c17be
movq 0x1a0(%rsp), %r12
jmp 0x1c18f8
movq 0xb8(%rsp), %rdi
leaq (%rdi,%rdi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %rax
movups (%r15), %xmm0
movups 0xc(%r15), %xmm1
movq 0x228(%rsp), %rsi
movups %xmm1, 0xc(%rsi,%rax)
movups %xmm0, (%rsi,%rax)
movl 0x4(%r15), %ecx
xorl %edx, %edx
movq 0x190(%rsp), %r11
cmpq %r11, %rcx
setb %dl
leal (%rdx,%r14,2), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl 0x18(%rsi,%rax), %edx
movl $0xc0000000, %r8d       # imm = 0xC0000000
andl %r8d, %edx
orl %ecx, %edx
movl %edx, 0x18(%rsi,%rax)
incq %rdi
movq %rdi, 0xb8(%rsp)
movq 0x1a0(%rsp), %r12
jmp 0x1c1900
movq 0x1a0(%rsp), %r12
movq 0x180(%rsp), %r10
movq 0x190(%rsp), %r11
movq 0xc8(%rsp), %rsi
movq 0xc0(%rsp), %r8
movq 0xd0(%rsp), %rdi
incq %r14
cmpq %rsi, %r14
jne 0x1c1760
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rsi, %rax
leaq (%r10,%rax), %r15
movq 0xb8(%rsp), %rcx
leaq (%rcx,%rcx,8), %rdx
movq %rdx, 0xf8(%rsp)
testq %rcx, %rcx
jle 0x1c1a35
movq 0x180(%rsp), %rdx
movl 0xc(%rdx,%rax), %ecx
movl 0x18(%rdx,%rax), %ebp
shrdl $0x1f, %ecx, %ebp
movl %ebp, %r12d
xorl $0x1, %r12d
movq 0xb8(%rsp), %rax
leaq 0x1(%rax), %r13
movq 0xf8(%rsp), %rcx
leaq (%rcx,%rcx,2), %r14
movq 0x130(%rsp), %rcx
addq %rcx, %rax
addq %rax, %r14
movl 0x8(%r14), %eax
cmpl 0x4(%r15), %eax
jbe 0x1c1a35
movl 0x18(%r14), %eax
cmpl $-0x1, (%r14)
setne %cl
btl $0x1d, %eax
setae %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1c1a24
movl 0xc(%r14), %ebx
shldl $0x1, %eax, %ebx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq 0xf0(%rsp), %r8
xorl %r9d, %r9d
callq 0x6ea22
cmpl %ebx, %ebp
je 0x1c1a18
xorl $0x1, %ebx
leaq 0x100(%rsp), %rcx
movq %rcx, (%rsp)
movq 0xe0(%rsp), %rsi
movl %r12d, %edx
movl %ebx, %ecx
movq 0xd8(%rsp), %r8
movsd 0xe8(%rsp), %xmm0
movq %rax, %r9
callq 0x1bcf0f
testq %rax, %rax
jne 0x1c1a24
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0xc(%r14)
movl %eax, (%r14)
decq %r13
addq $-0x1c, %r14
cmpq $0x1, %r13
ja 0x1c1991
movq 0xf8(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0xb8(%rsp), %rdi
addq %rdi, %rax
movups (%r15), %xmm0
movups 0xc(%r15), %xmm1
movq 0x228(%rsp), %rsi
movups %xmm1, 0xc(%rsi,%rax)
movups %xmm0, (%rsi,%rax)
movl 0x18(%rsi,%rax), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
movq 0xc8(%rsp), %rbx
movl %ebx, %edx
andl $0xfffffff, %edx        # imm = 0xFFFFFFF
leal (%rcx,%rdx,2), %ecx
addl $0x20000000, %ecx       # imm = 0x20000000
movl %ecx, 0x18(%rsi,%rax)
incq %rdi
movq %rdi, 0xb8(%rsp)
movq 0xd0(%rsp), %rdi
incq %rdi
cmpq 0x178(%rsp), %rdi
movq 0x180(%rsp), %r10
movq 0x190(%rsp), %r11
movq 0xc0(%rsp), %r8
movq 0x1a0(%rsp), %r12
jne 0x1c16e2
jmp 0x1c1ae0
movq $0x0, 0xb8(%rsp)
movq 0x188(%rsp), %rcx
movq %rcx, %rax
subq %rbx, %rax
cmpq $0x2, %rax
setge %al
incq %rbx
cmpq %rcx, %rbx
setl %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1c1ce2
leaq 0x100(%rsp), %r14
movq %r8, 0xc0(%rsp)
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rax
addq %rbx, %rax
movl 0x18(%r10,%rax), %ecx
btl $0x1e, %ecx
jae 0x1c1cd1
testb $0x1, (%r12,%rbx,8)
jne 0x1c1cd1
leaq (%r10,%rax), %r15
movl 0x4(%r15), %edx
addl %r8d, %edx
cmpq %r11, %rdx
jb 0x1c1cd1
movl 0x8(%r15), %edx
cmpq 0x198(%rsp), %rdx
jae 0x1c1cd1
movq %rbx, 0xc8(%rsp)
movl 0xc(%r10,%rax), %r13d
shldl $0x1, %ecx, %r13d
movl %r13d, %ebp
xorl $0x1, %ebp
movq 0x178(%rsp), %r12
testq %r12, %r12
jle 0x1c1c2f
movq 0x170(%rsp), %rax
movq -0x8(%rax,%r12,8), %rcx
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rax
addq %rcx, %rax
movl 0x8(%r10,%rax), %ecx
cmpl 0x4(%r15), %ecx
jbe 0x1c1c2f
leaq (%r10,%rax), %rsi
movl 0xc(%r10,%rax), %ecx
movl 0x18(%r10,%rax), %ebx
shrdl $0x1f, %ecx, %ebx
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq 0xf0(%rsp), %r8
xorl %r9d, %r9d
callq 0x6ea22
cmpl %ebx, %r13d
je 0x1c1ca9
xorl $0x1, %ebx
movq %r14, (%rsp)
movq 0xe0(%rsp), %rsi
movl %ebp, %edx
movl %ebx, %ecx
movq 0xd8(%rsp), %r8
movsd 0xe8(%rsp), %xmm0
movq %rax, %r9
callq 0x1bcf0f
decq %r12
testq %rax, %rax
movq 0x180(%rsp), %r10
jne 0x1c1b84
movq 0x1a0(%rsp), %r12
jmp 0x1c1cb9
movq 0xb8(%rsp), %rdi
leaq (%rdi,%rdi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %rax
movups (%r15), %xmm0
movups 0xc(%r15), %xmm1
movq 0x228(%rsp), %rsi
movups %xmm1, 0xc(%rsi,%rax)
movups %xmm0, (%rsi,%rax)
movl 0x4(%r15), %ecx
xorl %edx, %edx
movq 0x190(%rsp), %r11
cmpq %r11, %rcx
setb %dl
movq 0xc8(%rsp), %rbx
leal (%rdx,%rbx,2), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl 0x18(%rsi,%rax), %edx
movl $0xc0000000, %r8d       # imm = 0xC0000000
andl %r8d, %edx
orl %ecx, %edx
movl %edx, 0x18(%rsi,%rax)
incq %rdi
movq %rdi, 0xb8(%rsp)
movq 0x1a0(%rsp), %r12
jmp 0x1c1cc9
movq 0x1a0(%rsp), %r12
movq 0x180(%rsp), %r10
movq 0x190(%rsp), %r11
movq 0xc8(%rsp), %rbx
movq 0xc0(%rsp), %r8
incq %rbx
cmpq 0x188(%rsp), %rbx
jne 0x1c1b19
movq 0x230(%rsp), %r11
movq 0x218(%rsp), %r10
movq 0x210(%rsp), %r9
movq 0x208(%rsp), %r8
movq 0x200(%rsp), %rdi
movq 0x1f8(%rsp), %rsi
movq 0x1d8(%rsp), %r13
movq 0x1d0(%rsp), %r12
movq 0x1c0(%rsp), %r15
movq 0x1b0(%rsp), %r14
movq 0x1a8(%rsp), %rbx
cmpq $0x0, 0xb8(%rsp)
jle 0x1c1dac
xorl %ebp, %ebp
movq 0x228(%rsp), %rax
cmpl $-0x1, (%rax)
je 0x1c1d9c
leaq (,%rbp,8), %rcx
addq %rbp, %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rbp, %rcx
movups (%rax), %xmm0
movups 0xc(%rax), %xmm1
movq 0x228(%rsp), %rdx
movups %xmm1, 0xc(%rdx,%rcx)
movups %xmm0, (%rdx,%rcx)
movl 0x18(%rdx,%rcx), %edx
btl $0x1d, %edx
jae 0x1c1d99
addq 0x228(%rsp), %rcx
andl $0xdfffffff, %edx       # imm = 0xDFFFFFFF
movl %edx, 0x18(%rcx)
incq %rbp
addq $0x1c, %rax
decq 0xb8(%rsp)
jne 0x1c1d4f
jmp 0x1c1dae
xorl %ebp, %ebp
movq %r11, 0xa8(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x88(%rsp)
movq %r13, 0x80(%rsp)
movq %r12, 0x78(%rsp)
movq %r15, 0x68(%rsp)
movq %r14, 0x58(%rsp)
movq %rbx, 0x50(%rsp)
movq %rbp, 0x48(%rsp)
movq 0x228(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %r10, 0x38(%rsp)
movq %r9, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x1f0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x1e8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x1e0(%rsp), %rax
movq %rax, (%rsp)
movl 0x220(%rsp), %eax
movq %rax, 0x98(%rsp)
movq 0xd8(%rsp), %r8
movq 0x118(%rsp), %r9
movq 0x108(%rsp), %rdi
movq 0xf0(%rsp), %rsi
movq 0x110(%rsp), %rdx
movq 0xe0(%rsp), %rcx
movsd 0xe8(%rsp), %xmm0
movsd 0x120(%rsp), %xmm1
callq 0x1bf138
movq %rax, %r8
movq %r8, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq