// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: push_graph_bin(overlap_region_alloc*, ul_idx_t const*, double, unsigned long, unsigned long, unsigned long, asg64_v*, mask_ul_ov_t*, kv_emask_t*)
void push_graph_bin(overlap_region_alloc* ol, const ul_idx_t *udb, double erate, uint64_t maxe, uint64_t minov, uint64_t rid, asg64_v *b0, mask_ul_ov_t *mk, kv_emask_t *res)
{
	uint64_t k, i, si, sn, zt, re, skip_n; overlap_region *z; ul_ov_t p, *sa; 
	uint64_t q0l, t0l, e0l, q1l, t1l, e1l, mm, occ[3], mocc, mn[3];
	b0->n = 0; 
	mocc = (udb->ug->u.a[rid].len/sizeof((*(res->a))))/8; if(mocc < 16) mocc = 16;
	
	// fprintf(stderr, "\n[M::%s]\tutg%.6lu%c\n", __func__, rid+1, "lc"[udb->ug->u.a[rid].circ]);

	mk->srt.n = mk->idx.n = 0;
	gen_src_shared_interval_adv(rid, udb->ug, &(mk->srt));
	kv_resize(uint64_t, mk->idx, ol->length);
	for (k = 0; k < ol->length; k++) {
		kv_push(uint64_t, mk->idx, (((uint64_t)ol->list[k].y_id)<<32)|((uint64_t)k));
	}
	radix_sort_gfa64(mk->idx.a, mk->idx.a+mk->idx.n);///sort by the unitig id
	// if(rid == 4) {
	// 	sa = mk->srt.a; sn = mk->srt.n;
	// 	for (si = 0; si < sn; si++) {
	// 		fprintf(stderr, "si::%lu[M::%s]\tutg%.6u%c\tq::[%u,\t%u)\t%c\tutg%.6u%c\tt::[%u,\t%u)\n", si, __func__, 
	// 		sa[si].qn+1, "lc"[udb->ug->u.a[sa[si].qn].circ], sa[si].qs, sa[si].qe, "+-"[sa[si].rev],
	// 		sa[si].tn+1, "lc"[udb->ug->u.a[sa[si].tn].circ], sa[si].ts, sa[si].te);
	// 	}	
	// }

	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t0\t\n", __func__); 


	for (i = si = b0->n = 0, occ[0] = occ[1] = occ[2] = 0; i < mk->idx.n; i++) {
		k = (uint32_t)mk->idx.a[i];
		z = &(ol->list[k]);
		overlap_region2ul_ov_t(z, &p, udb->ug->u.a[z->y_id].len);
		if(((p.qe-p.qs) >= minov) && ((p.te-p.ts) >= minov)) {
			if(!trans_ovlp_connect(&p, udb->ug)) continue;//could be eaisly detected
			if(p.sec == 0) {///no error
				zt = ((uint32_t)-1); zt <<= 32; zt |= (i<<1); occ[2]++;
				kv_push(uint64_t, *b0, zt); continue;
			}
			sa = get_mask_interval(&p, &(mk->srt), &si, udb->ug->u.a[p.qn].len, udb->ug->u.a[p.tn].len, &sn, &skip_n);
			// if(p.qn == 4 && p.tn == 3) {
			// 	fprintf(stderr, "[M::%s]\tutg%.6u%c\tq::[%u,\t%u)\t%c\tutg%.6u%c\tt::[%u,\t%u)\tsn::%lu\tskip_n::%lu\n", __func__, 
			// 	p.qn+1, "lc"[udb->ug->u.a[p.qn].circ], p.qs, p.qe, "+-"[p.rev],
			// 	p.tn+1, "lc"[udb->ug->u.a[p.tn].circ], p.ts, p.te, sn, skip_n);
			// 	uint32_t ci;
			// 	for (ci = 0; ci < sn; ci++) {
			// 		fprintf(stderr, "sa::[M::%s]\tutg%.6u%c\tq::[%u,\t%u)\t%c\tutg%.6u%c\tt::[%u,\t%u)\n", __func__, 
			// 		sa[ci].qn+1, "lc"[udb->ug->u.a[sa[ci].qn].circ], sa[ci].qs, sa[ci].qe, "+-"[sa[ci].rev],
			// 		sa[ci].tn+1, "lc"[udb->ug->u.a[sa[ci].tn].circ], sa[ci].ts, sa[ci].te);
			// 	}	
			// }
			
			
			re = cal_exact_batch(z, sa, sn, udb->ug->u.a[p.tn].len, &q0l, &t0l, &e0l, &q1l, &t1l, &e1l, udb->ug);
			if(!re) {//no unmask errors
				zt = ((uint32_t)-1); zt <<= 32; zt |= (i<<1); occ[2]++;
				kv_push(uint64_t, *b0, zt); continue;
			}
			// if(p.qn == 4 && p.tn == 3) {
			// 	fprintf(stderr, "[M::%s]\tutg%.6u%c\tq0l::%lu\tt0l::%lu\te0l::%lu\tutg%.6u%c\tq1l::%lu\tt1l::%lu\te1l::%lu\n", __func__, 
			// 	p.qn+1, "lc"[udb->ug->u.a[p.qn].circ], q0l, t0l, e0l,
			// 	p.tn+1, "lc"[udb->ug->u.a[p.tn].circ], q1l, t1l, e1l);
			// }
			mm = ((re <= maxe)?((uint64_t)(0x8000000000000000)):(0));
			///left end
			if(q0l >= minov && t0l >= minov) {
				zt = MIN(q0l, t0l); zt <<= 32; zt |= (i<<1); zt |= mm; occ[!!mm]++;
				kv_push(uint64_t, *b0, zt);
			}

			///right end
			if(q1l >= minov && t1l >= minov) {
				zt = MIN(q1l, t1l); zt <<= 32; zt |= (i<<1); zt += 1; zt |= mm; occ[!!mm]++;
				kv_push(uint64_t, *b0, zt);
			}
		}
	}

	radix_sort_gfa64(b0->a, b0->a+b0->n);
	uint64_t *a0, *a1, *a2, a0n, a1n, a2n, *a, m;
	a2 = b0->a; a2n = occ[0]; mn[2] = mocc>>2;//high error
	a1 = a2 + a2n; a1n = occ[1]; mn[1] = mocc>>1;//low error
	a0 = a1 + a1n; a0n = occ[2]; mn[0] = mocc>>2;//0 error
	mn[1] = mocc - mn[0] - mn[2];

	sn = a2n; a = a2;//high error
	for (i = 0, si = sn>>1; i < si; i++) {
		m = a[i]; a[i] = a[sn-i-1]; a[sn-i-1] = m;
	}

	sn = a1n; a = a1;//low error
	for (i = 0, si = sn>>1; i < si; i++) {
		m = a[i]; a[i] = a[sn-i-1]; a[sn-i-1] = m;
	}
	
	sn = a0n; a = a0;//0 error
	for (i = 0; i < sn; i++) {
		z = &(ol->list[(((uint32_t)a[i])>>1)]);
		q0l = z->x_pos_e+1-z->x_pos_s;
		t0l = z->y_pos_e+1-z->y_pos_s;
		m = ((uint32_t)-1) - (MIN(q0l, t0l)); m <<= 32; m |= ((uint32_t)a[i]);
		a[i] = m;
	}
	radix_sort_gfa64(a, a+sn);///sort by length
	///a1 -> a2 -> a0
	if(mn[1] > a1n) mn[1] = a1n;
	if(mn[2] > a2n) mn[2] = a2n;
	if(mn[0] > a0n) mn[0] = a0n;

	///reassign a1
	mn[1] = mocc - mn[0] - mn[2];
	if(mn[1] > a1n) mn[1] = a1n;

	///reassign a2
	mn[2] = mocc - mn[1] - mn[0];
	if(mn[2] > a2n) mn[2] = a2n;

	///reassign a0
	mn[0] = mocc - mn[1] - mn[2];
	if(mn[0] > a0n) mn[0] = a0n;

	res->n = res->m = mn[0]+mn[1]+mn[2]; 
	MALLOC(res->a, res->n);
	res->n = 0;
	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t1\t\n", __func__); 
	// fprintf(stderr, "\n[M::%s]\tutg%.6lu%c\t#s::%u\tmn[0]::%lu\tmn[1]::%lu\tmn[2]::%lu\n", __func__, 
	// rid+1, "lc"[udb->ug->u.a[rid].circ], (uint32_t)mk->srt.n, mn[0], mn[1], mn[2]);
	push_emask_lst(mk, ol, minov, udb->ug, a2, mn[2], res, 1);
	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t2\t\n", __func__); 
	// fprintf(stderr, "[M::%s]\tutg%.6lu%c\tres->n::%u\n", __func__, rid+1, "lc"[udb->ug->u.a[rid].circ], res->n);
	push_emask_lst(mk, ol, minov, udb->ug, a1, mn[1], res, 1);
	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t3\t\n", __func__); 
	// fprintf(stderr, "[M::%s]\tutg%.6lu%c\tres->n::%u\n", __func__, rid+1, "lc"[udb->ug->u.a[rid].circ], res->n);
	push_emask_lst(mk, ol, minov, udb->ug, a0, mn[0], res, 0);
	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t4\t\n", __func__); 
	// fprintf(stderr, "[M::%s]\tutg%.6lu%c\tres->n::%u\n", __func__, rid+1, "lc"[udb->ug->u.a[rid].circ], res->n);
	srt_kv_emask_t(res, mk, rid, udb->ug);
	// if(ol->length > 0 && ol->list[0].x_id == 29033) fprintf(stderr, "[M::%s]\t5\t\n", __func__); 
	
	// for (k = 0; k < mk->srt.n; k++) {
	// 	fprintf(stderr, "[M::%s]\tutg%.6u%c\tq::[%u,\t%u)\t%c\tutg%.6u%c\tt::[%u,\t%u)\n", __func__, 
	// 	mk->srt.a[k].qn+1, "lc"[udb->ug->u.a[mk->srt.a[k].qn].circ], mk->srt.a[k].qs, mk->srt.a[k].qe, "+-"[mk->srt.a[k].rev],
	// 	mk->srt.a[k].tn+1, "lc"[udb->ug->u.a[mk->srt.a[k].tn].circ], mk->srt.a[k].ts, mk->srt.a[k].te);
	// }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %r9, %r13
movq %rcx, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, %r15
andq $0x0, (%r9)
movq 0x100(%rsp), %rbx
movq %rsi, 0x28(%rsp)
movq (%rsi), %rsi
movq 0x10(%rsi), %rax
imulq $0x28, %r8, %rcx
movl (%rax,%rcx), %eax
movl %eax, 0x40(%rsp)
andq $0x0, (%rbx)
leaq 0x18(%rbx), %rdx
andq $0x0, 0x20(%rbx)
movl %r8d, %edi
movq %rdx, 0x38(%rsp)
callq 0x17d688
movq 0x10(%r15), %rax
cmpq %rax, 0x8(%rbx)
jae 0x180e0f
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(%rbx)
movq 0x10(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
pushq $0x10
popq %r14
xorl %r12d, %r12d
pushq $0x2
popq %rbp
cmpq 0x10(%r15), %r12
jae 0x180e73
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rcx
jne 0x180e4e
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
cmoveq %rbp, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
movq (%r15), %rdx
movl (%rdx,%r14), %edx
shlq $0x20, %rdx
orq %r12, %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
movq %rdx, (%rax,%rcx,8)
incq %r12
addq $0xa8, %r14
jmp 0x180e19
movq (%rbx), %rax
movq 0x10(%rbx), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x156b0d
movq %r13, 0x10(%rsp)
andq $0x0, (%r13)
leaq 0xa8(%rsp), %rax
andq $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x20(%rsp)
xorl %r13d, %r13d
movq 0x8(%rsp), %r14
cmpq (%rbx), %r13
jae 0x18121b
movq 0x10(%rbx), %rax
movl (%rax,%rbp,4), %eax
movq (%r15), %rcx
imulq $0xa8, %rax, %rax
leaq (%rcx,%rax), %r12
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
movq 0x10(%rdx), %rdx
movl 0x10(%rcx,%rax), %eax
imulq $0x28, %rax, %rax
movl (%rdx,%rax), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq %r12, %rdi
leaq 0x44(%rsp), %rsi
callq 0x1a334e
movl 0x4c(%rsp), %eax
subl 0x48(%rsp), %eax
cmpq %r14, %rax
jb 0x18120f
movl 0x58(%rsp), %eax
subl 0x54(%rsp), %eax
cmpq %r14, %rax
jb 0x18120f
movq 0x28(%rsp), %rax
movq (%rax), %r14
leaq 0x44(%rsp), %rdi
movq %r14, %rsi
callq 0x178842
testl %eax, %eax
je 0x18115e
testl $0x3fffffff, 0x5c(%rsp) # imm = 0x3FFFFFFF
je 0x181168
movq 0x10(%r14), %rax
movl 0x44(%rsp), %ecx
movl 0x50(%rsp), %edx
imulq $0x28, %rcx, %rcx
movl (%rax,%rcx), %ecx
movl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
andq %r14, %rcx
imulq $0x28, %rdx, %rdx
movl (%rax,%rdx), %r8d
andq %r14, %r8
subq $0x8, %rsp
leaq 0x4c(%rsp), %rdi
movq 0x40(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
leaq 0xa8(%rsp), %r9
leaq 0xc8(%rsp), %rax
pushq %rax
callq 0x17ecb8
addq $0x10, %rsp
movq 0xa0(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rcx), %rcx
movl 0x50(%rsp), %esi
imulq $0x28, %rsi, %rsi
movl (%rcx,%rsi), %ecx
andq %r14, %rcx
subq $0x10, %rsp
movq %r12, %rdi
movq %rax, %rsi
leaq 0xa8(%rsp), %r8
leaq 0xa0(%rsp), %r9
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0x98(%rsp), %rax
pushq %rax
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xe0(%rsp), %rax
pushq %rax
callq 0x17f0fe
addq $0x30, %rsp
testq %rax, %rax
je 0x1811ac
movq %rax, %r12
xorl %esi, %esi
cmpq 0x18(%rsp), %rax
setbe %sil
shlq $0x3f, %rsi
movq 0x98(%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq %rcx, %rax
jb 0x1810c3
movq 0x90(%rsp), %r14
cmpq %rcx, %r14
jb 0x1810c3
xorl %ecx, %ecx
cmpq 0x18(%rsp), %r12
setbe %cl
cmpq %r14, %rax
cmovbq %rax, %r14
incq 0x60(%rsp,%rcx,8)
movq 0x10(%rsp), %rdi
movq (%rdi), %rcx
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rcx
jne 0x1810a9
movq %rsi, 0x30(%rsp)
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdi)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %rax, 0x10(%rdi)
movq (%rdi), %rcx
shlq $0x20, %r14
orq %rbp, %r14
orq %rsi, %r14
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
movq %r14, (%rax,%rcx,8)
movq 0x8(%rsp), %rcx
movq 0x88(%rsp), %rax
cmpq %rcx, %rax
movq %rcx, %r14
jb 0x18120f
movq %r14, %rcx
movq 0x80(%rsp), %r14
cmpq %rcx, %r14
jb 0x18115e
xorl %ecx, %ecx
cmpq 0x18(%rsp), %r12
setbe %cl
cmpq %r14, %rax
cmovbq %rax, %r14
incq 0x60(%rsp,%rcx,8)
movq 0x10(%rsp), %r12
movq (%r12), %rcx
movq 0x10(%r12), %rax
cmpq 0x8(%r12), %rcx
jne 0x181144
movq %rsi, 0x30(%rsp)
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r12)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x30(%rsp), %rsi
movq %rax, 0x10(%r12)
movq (%r12), %rcx
shlq $0x20, %r14
orq %rbp, %r14
orq %rsi, %r14
orq $0x1, %r14
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
movq %r14, (%rax,%rcx,8)
movq 0x8(%rsp), %r14
jmp 0x18120f
movq 0x10(%rsp), %r12
movq (%r12), %rcx
movq 0x10(%r12), %rax
cmpq 0x8(%r12), %rcx
jne 0x1811a5
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r12)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r12)
movq (%r12), %rcx
movq 0x8(%rsp), %r14
jmp 0x1811ee
movq 0x10(%rsp), %r12
movq (%r12), %rcx
movq 0x10(%r12), %rax
cmpq 0x8(%r12), %rcx
movq 0x8(%rsp), %r14
jne 0x1811ee
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r12)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r12)
movq (%r12), %rcx
movq %rbp, %rdx
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
orq %rsi, %rdx
incq 0x20(%rsp)
leaq 0x1(%rcx), %rsi
movq %rsi, (%r12)
movq %rdx, (%rax,%rcx,8)
incq %r13
addq $0x2, %rbp
jmp 0x180eba
movq 0x10(%rsp), %r12
movq (%r12), %rax
movq 0x10(%r12), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x156b0d
movq 0x10(%r12), %rbp
movq 0x60(%rsp), %r9
movq 0x68(%rsp), %r10
leaq (,%r9,8), %r13
addq %rbp, %r13
movq %r9, %rax
shrq %rax
leaq -0x8(,%r9,8), %rcx
addq %rbp, %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x18127d
movq (%rbp,%rdx,8), %rsi
movq (%rcx), %rdi
movq %rdi, (%rbp,%rdx,8)
movq %rsi, (%rcx)
incq %rdx
addq $-0x8, %rcx
jmp 0x18125f
leaq (,%r10,8), %rdi
addq %r13, %rdi
movq %r10, %rax
shrq %rax
leaq (,%r9,8), %rcx
leaq (%rcx,%r10,8), %rcx
addq %rbp, %rcx
addq $-0x8, %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1812c1
movq (%r13,%rdx,8), %rsi
movq (%rcx), %r8
movq %r8, (%r13,%rdx,8)
movq %rsi, (%rcx)
incq %rdx
addq $-0x8, %rcx
jmp 0x1812a3
leaq (,%r10,8), %rax
movq %r9, 0x10(%rsp)
leaq (%rax,%r9,8), %rax
addq %rbp, %rax
xorl %ecx, %ecx
cmpq %rcx, 0x20(%rsp)
je 0x18131b
movq (%r15), %rdx
movl (%rax,%rcx,8), %esi
shrl %esi
imulq $0xa8, %rsi, %rsi
movl 0x8(%rdx,%rsi), %r9d
subl 0x4(%rdx,%rsi), %r9d
movl 0x18(%rdx,%rsi), %r8d
incl %r9d
subl 0x14(%rdx,%rsi), %r8d
incl %r8d
cmpl %r8d, %r9d
cmovbl %r9d, %r8d
notl %r8d
movl %r8d, 0x4(%rax,%rcx,8)
incq %rcx
jmp 0x1812d7
movl 0x40(%rsp), %eax
shrl $0x8, %eax
andl $0x7fffff, %eax         # imm = 0x7FFFFF
cmpl $0x11, %eax
pushq $0x10
popq %r12
cmovael %eax, %r12d
movl %r12d, %r14d
shrl $0x2, %r14d
movq 0x20(%rsp), %rax
leaq (%rdi,%rax,8), %rsi
movq %rdi, 0x38(%rsp)
movq %r10, 0x18(%rsp)
callq 0x156b0d
movq 0x10(%rsp), %rcx
cmpq %rcx, %r14
movq %rcx, %rax
cmovbq %r14, %rax
movq 0x20(%rsp), %rdx
cmpq %rdx, %r14
cmovaeq %rdx, %r14
movq %rdx, %rsi
addq %r14, %rax
movq %r12, %rdx
subq %rax, %rdx
movq 0x18(%rsp), %rax
cmpq %rax, %rdx
cmovaeq %rax, %rdx
movq %r12, %rax
subq %rdx, %rax
movq %rdx, 0x18(%rsp)
movq %rax, %r12
subq %r14, %r12
cmpq %rcx, %r12
cmovaeq %rcx, %r12
subq %r12, %rax
cmpq %rsi, %rax
cmovaeq %rsi, %rax
movq %rax, 0x20(%rsp)
leaq (%r12,%rdx), %rdi
addq %rax, %rdi
movq 0x108(%rsp), %r14
movq %rdi, 0x10(%r14)
shlq $0x5, %rdi
callq 0x2280
movq %rax, (%r14)
andq $0x0, 0x8(%r14)
movq %r14, %rax
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
pushq $0x1
popq %r10
movq %rbx, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
movq %rbp, %r8
movq %r12, %r9
pushq %r10
pushq %rax
callq 0x18032e
popq %rax
popq %rcx
movq 0x28(%rsp), %rbp
movq (%rbp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %r12
movq %r14, %rdx
movq %r13, %r8
movq 0x18(%rsp), %r9
pushq $0x1
popq %rax
pushq %rax
movq 0x110(%rsp), %r14
pushq %r14
callq 0x18032e
popq %rax
popq %rcx
movq (%rbp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq 0x38(%rsp), %r8
movq 0x20(%rsp), %r9
pushq $0x0
pushq %r14
callq 0x18032e
popq %rax
popq %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x18093d
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq