// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: filter_by_reliable_ovlp_adv(unsigned int, kv_u_trans_t*, st_mt_t*, overlap_region_alloc*, ul_idx_t const*, double, unsigned long, unsigned long, unsigned long*)
void filter_by_reliable_ovlp_adv(uint32_t id, kv_u_trans_t *idx, st_mt_t *sp, overlap_region_alloc* ol, const ul_idx_t *udb, double sec_rate, uint64_t avoid_dup_aln, 
uint64_t dedup_by_reliable_ovlp, uint64_t *occ1)
{
	(*occ1) = 0;
	u_trans_t *a; uint64_t n, k, l, s, e, s0, e0, z, ov, rr, r1, spn; overlap_region *m, t;
	a = u_trans_a(*idx, id); n = u_trans_n(*idx, id);
	if(avoid_dup_aln) {
		kv_resize(uint64_t, *sp, (ol->length)+n);
		for (k = sp->n = 0; k < n; k++) {
			if(a[k].del) continue;
			// if(id == 160) {
			// 	fprintf(stderr, "[rid::%u]\tutg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\tnw::%f\tf::%u\n", id, 
			// 		a[k].qn+1, "lc"[udb->ug->u.a[a[k].qn].circ], udb->ug->u.a[a[k].qn].len, a[k].qs, a[k].qe, "+-"[a[k].rev],
			// 		a[k].tn+1, "lc"[udb->ug->u.a[a[k].tn].circ], udb->ug->u.a[a[k].tn].len, a[k].ts, a[k].te, a[k].nw, a[k].f);
			// }
			if(a[k].f == RC_0 || a[k].f == RC_1) {
				z = a[k].tn; z <<= 1; z |= a[k].rev; z <<= 32; 
				kv_push(uint64_t, *sp, z);
			}
		}
		if(sp->n > 0) {
			for (k = 0; k < ol->length; k++) {
				z = ol->list[k].y_id; z <<= 1; z |= ol->list[k].y_pos_strand; 
				z <<= 32; z |= k; z |= ((uint64_t)0x80000000);
				kv_push(uint64_t, *sp, z);
			}

			radix_sort_gfa64(sp->a, sp->a + sp->n); 
			for (k = 1, l = 0, rr = 0; k <= sp->n; k++) {
				if(k == sp->n || (sp->a[l]>>32)!=(sp->a[k]>>32)) {
					if((k - l > 1) && (!(sp->a[l]&((uint64_t)0x80000000)))) {///overlap within bck
						for (z = l; z < k; z++) {
							if(sp->a[z]&((uint64_t)0x80000000)) {
								ol->list[(uint32_t)(sp->a[z]-((uint64_t)0x80000000))].y_id = ((uint32_t)-1);
								rr++;
							}
						}
					}
					l = k;
				}
			}

			if(rr > 0) {
				for (k = rr = 0; k < ol->length; k++) {
					if(ol->list[k].y_id == ((uint32_t)-1)) continue;
					if(rr != k) {
						t = ol->list[rr];
						ol->list[rr] = ol->list[k];
						ol->list[k] = t;
					}
					rr++;
				}
				ol->length = rr;
			}
		}
	}

	sp->n = 0;
	if(dedup_by_reliable_ovlp) {
		for (k = sp->n = 0; k < n; k++) {
			if(a[k].del) continue;
			if(a[k].f == RC_0 || a[k].f == RC_1) {
				kv_push(uint64_t, *sp, (((uint64_t)a[k].qs)<<32)|((uint64_t)a[k].qe));
			}
		}
		if(sp->n > 1) {
			radix_sort_gfa64(sp->a, sp->a + sp->n);
			for (k = z = 0; k < sp->n; k++) {
				s = sp->a[k]>>32; e = (uint32_t)sp->a[k];
				if(z > 0 && s <= ((uint32_t)sp->a[z-1])) {
					if(e > ((uint32_t)sp->a[z-1])) {
						sp->a[z-1] >>= 32; sp->a[z-1] <<= 32; sp->a[z-1] |= e;
					}
				} else {
					sp->a[z++] = sp->a[k];
				}
			}
			sp->n = z;
		}
	}

	for (k = rr = r1 = 0, spn = sp->n; k < ol->length; k++) {
		m = &(ol->list[k]);
		// if(id == 160) {
		// 	fprintf(stderr, "[M::%s] utg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\txstr::%u\n", __func__, 
		// 		ol->list[k].x_id+1, "lc"[udb->ug->u.a[ol->list[k].x_id].circ], udb->ug->u.a[ol->list[k].x_id].len, 
		// 		ol->list[k].x_pos_s, ol->list[k].x_pos_e+1, "+-"[ol->list[k].y_pos_strand],
		// 		ol->list[k].y_id+1, "lc"[udb->ug->u.a[ol->list[k].y_id].circ], udb->ug->u.a[ol->list[k].y_id].len, 
		// 		ol->list[k].y_pos_s, ol->list[k].y_pos_e+1, ol->list[k].x_pos_strand);
		// }
		if((dedup_by_reliable_ovlp) && (m->x_pos_strand == 0)) {
			s = m->x_pos_s; e = m->x_pos_e + 1; l = 0; 
			for (z = 0; z < spn; z++) {
				s0 = sp->a[z]>>32; e0 = (uint32_t)sp->a[z];
				ov = ((MIN(e, e0) > MAX(s, s0))? (MIN(e, e0) - MAX(s, s0)):0);
				l += ov;
				if((l) && (l > ((e-s)*sec_rate))) break;
			}
			///filter by the overlaps of id/m->x_id
			if(z < spn) continue;
			///filter by the overlaps of m->y_id
			if(filter_by_reliable_ovlp0(u_trans_a(*idx, m->y_id), u_trans_n(*idx, m->y_id), 
			m->y_pos_strand?udb->ug->u.a[m->y_id].len-m->y_pos_e-1:m->y_pos_s, 
			m->y_pos_strand?udb->ug->u.a[m->y_id].len-m->y_pos_s:m->y_pos_e+1, sec_rate)) {
				continue;
			}
		} 
		// else {
		// 	if(id == 7) {
		// 		fprintf(stderr, "[M::%s] utg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\n", __func__, 
		// 		ol->list[k].x_id+1, "lc"[udb->ug->u.a[ol->list[k].x_id].circ], udb->ug->u.a[ol->list[k].x_id].len, 
		// 		ol->list[k].x_pos_s, ol->list[k].x_pos_e+1, "+-"[ol->list[k].y_pos_strand],
		// 		ol->list[k].y_id+1, "lc"[udb->ug->u.a[ol->list[k].y_id].circ], udb->ug->u.a[ol->list[k].y_id].len, 
		// 		ol->list[k].y_pos_s, ol->list[k].y_pos_e+1);
		// 	}
		// }
		if(rr != k) {
			t = ol->list[k];
            ol->list[k] = ol->list[rr];
            ol->list[rr] = t;
		}
		if(ol->list[rr].x_pos_strand) {
			ol->list[rr].x_pos_strand = 0;
			if(r1 != rr) {
				t = ol->list[r1];
            	ol->list[r1] = ol->list[rr];
            	ol->list[rr] = t;
			}
			r1++;
		}
		// fprintf(stderr, ">>>utg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\n", 
		// 		ol->list[rr].x_id+1, "lc"[udb->ug->u.a[ol->list[rr].x_id].circ], udb->ug->u.a[ol->list[rr].x_id].len, 
		// 		ol->list[rr].x_pos_s, ol->list[rr].x_pos_e+1, "+-"[ol->list[rr].y_pos_strand],
		// 		ol->list[rr].y_id+1, "lc"[udb->ug->u.a[ol->list[rr].y_id].circ], udb->ug->u.a[ol->list[rr].y_id].len, 
		// 		ol->list[rr].y_pos_s, ol->list[rr].y_pos_e+1);
		rr++;
	}
	// if(id == 1576) {
		// fprintf(stderr, "[M::%s] utg%.6ul, ol->length0::%lu, ol->length::%lu\n", __func__, id+1, ol->length, rr);
	// }
	ol->length = rr; (*occ1) = r1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movsd %xmm0, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq 0x128(%rsp), %rax
movq $0x0, (%rax)
movq 0x10(%rsi), %r12
movq %rsi, 0x38(%rsp)
movq 0x28(%rsi), %rax
movl %edi, %esi
movq (%rax,%rsi,8), %rax
movl %eax, %ebx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq %rax, 0x20(%rsp)
testq %r9, %r9
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
je 0x1ba9e0
movq 0x10(%rcx), %rax
addq %rbx, %rax
cmpq %rax, 0x8(%rdx)
jae 0x1ba72f
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(%rdx)
movq 0x10(%rdx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rdx)
movq $0x0, (%rdx)
movq %rbx, 0x18(%rsp)
testq %rbx, %rbx
je 0x1ba7d2
movq 0x18(%rsp), %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rbx
movq 0x20(%rsp), %rax
leaq (%rax,%r12), %r14
addq $0x28, %r14
xorl %r15d, %r15d
movzbl (%r14,%r15), %ebp
testb $-0x42, %bpl
jne 0x1ba7c9
movl -0x14(%r14,%r15), %r13d
movq 0x8(%rdx), %rax
cmpq %rax, (%rdx)
jne 0x1ba7a9
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rdx)
movq 0x10(%rdx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rdx)
shrl $0x6, %ebp
shlq $0x21, %r13
shlq $0x20, %rbp
orq %r13, %rbp
movq (%rdx), %rax
movq 0x10(%rdx), %rsi
leaq 0x1(%rax), %rdi
movq %rdi, (%rdx)
movq %rbp, (%rsi,%rax,8)
addq $0x30, %r15
cmpq %r15, %rbx
jne 0x1ba761
cmpq $0x0, (%rdx)
movq 0x18(%rsp), %rbx
je 0x1ba9e0
cmpq $0x0, 0x10(%rcx)
je 0x1ba86d
movl $0x1c, %ebx
xorl %r14d, %r14d
movl $0x2, %r15d
movq (%rcx), %rax
movl -0xc(%rax,%rbx), %ebp
movl (%rax,%rbx), %r13d
movq 0x8(%rdx), %rax
cmpq %rax, (%rdx)
jne 0x1ba838
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r15, %rsi
movq %rsi, 0x8(%rdx)
movq 0x10(%rdx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rdx)
shlq $0x21, %rbp
shlq $0x20, %r13
orq %rbp, %r13
orq %r14, %r13
btsq $0x1f, %r13
movq (%rdx), %rax
movq 0x10(%rdx), %rsi
leaq 0x1(%rax), %rdi
movq %rdi, (%rdx)
movq %r13, (%rsi,%rax,8)
incq %r14
addq $0xa8, %rbx
cmpq 0x10(%rcx), %r14
jb 0x1ba7fa
movq (%rdx), %rax
movq 0x10(%rdx), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x194fef
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq (%rdx), %rax
testq %rax, %rax
movq 0x18(%rsp), %rbx
je 0x1ba9e0
leaq 0x1(%rax), %rdx
cmpq $0x3, %rdx
movl $0x2, %r11d
cmovaeq %rdx, %r11
movl $0x1, %edx
xorl %edi, %edi
xorl %esi, %esi
cmpq %rax, %rdx
je 0x1ba8cf
movq 0x10(%rsp), %r8
movq 0x10(%r8), %r8
movq (%r8,%rdx,8), %r9
xorq (%r8,%rdi,8), %r9
shrq $0x20, %r9
je 0x1ba92f
movq %rdx, %r8
subq %rdi, %r8
cmpq $0x2, %r8
jb 0x1ba92c
movq 0x10(%rsp), %r8
movq 0x10(%r8), %r8
testb $-0x80, 0x3(%r8,%rdi,8)
sete %r9b
cmpq %rdi, %rdx
seta %r10b
andb %r9b, %r10b
cmpb $0x1, %r10b
jne 0x1ba92c
movq (%r8,%rdi,8), %r9
testl %r9d, %r9d
jns 0x1ba924
movq (%rcx), %r10
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
imulq $0xa8, %r9, %r9
movl $0xffffffff, 0x10(%r10,%r9) # imm = 0xFFFFFFFF
incq %rsi
incq %rdi
cmpq %rdi, %rdx
jne 0x1ba8fe
movq %rdx, %rdi
incq %rdx
cmpq %r11, %rdx
jne 0x1ba8b3
testq %rsi, %rsi
movq 0x10(%rsp), %rdx
je 0x1ba9e0
cmpq $0x0, 0x10(%rcx)
je 0x1ba9d4
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rcx), %r13
cmpl $-0x1, 0x10(%r13,%rbx)
je 0x1ba9c2
cmpq %r15, %r14
je 0x1ba9bf
imulq $0xa8, %r15, %rbp
addq %r13, %rbp
movl $0xa8, %edx
leaq 0x40(%rsp), %rdi
movq %rbp, %rsi
callq 0x2160
addq %rbx, %r13
movl $0xa8, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2160
movq 0x8(%rsp), %rax
movq (%rax), %rdi
addq %rbx, %rdi
movl $0xa8, %edx
leaq 0x40(%rsp), %rsi
callq 0x2160
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
incq %r15
incq %r14
addq $0xa8, %rbx
cmpq 0x10(%rcx), %r14
jb 0x1ba95c
jmp 0x1ba9d7
xorl %r15d, %r15d
movq %r15, 0x10(%rcx)
movq 0x18(%rsp), %rbx
movq $0x0, (%rdx)
cmpq $0x0, 0x120(%rsp)
je 0x1bab04
movq $0x0, (%rdx)
testq %rbx, %rbx
je 0x1baa7e
addq 0x20(%rsp), %r12
shlq $0x4, %rbx
leaq (%rbx,%rbx,2), %rbx
xorl %r14d, %r14d
movl $0x2, %r15d
testb $-0x42, 0x28(%r12,%r14)
jne 0x1baa75
movq 0x8(%rdx), %rax
cmpq %rax, (%rdx)
jne 0x1baa53
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r15, %rsi
movq %rsi, 0x8(%rdx)
movq 0x10(%rdx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rax, 0x10(%rdx)
movl (%r12,%r14), %eax
movl 0x4(%r12,%r14), %edi
shlq $0x20, %rax
orq %rax, %rdi
movq (%rdx), %rax
movq 0x10(%rdx), %r8
leaq 0x1(%rax), %rsi
movq %rsi, (%rdx)
movq %rdi, (%r8,%rax,8)
addq $0x30, %r14
cmpq %r14, %rbx
jne 0x1baa18
movq (%rdx), %rax
cmpq $0x2, %rax
jb 0x1bab04
movq 0x10(%rdx), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x194fef
movq 0x10(%rsp), %rdx
cmpq $0x0, (%rdx)
je 0x1baafa
movq 0x10(%rdx), %r10
xorl %r11d, %r11d
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
xorl %eax, %eax
movq 0x8(%rsp), %rcx
movq (%r10,%r11,8), %r8
testq %rax, %rax
je 0x1baad1
movq %r8, %r9
shrq $0x20, %r9
movq -0x8(%r10,%rax,8), %rdi
cmpl %edi, %r9d
jbe 0x1baae2
movq %r8, (%r10,%rax,8)
incq %rax
incq %r11
cmpq (%rdx), %r11
jb 0x1baab7
jmp 0x1bab01
movl %r8d, %r8d
movl %edi, %r9d
cmpl %r9d, %r8d
jbe 0x1baad8
andq %rsi, %rdi
orq %r8, %rdi
movq %rdi, -0x8(%r10,%rax,8)
jmp 0x1baad8
xorl %eax, %eax
movq 0x8(%rsp), %rcx
movq %rax, (%rdx)
cmpq $0x0, 0x10(%rcx)
je 0x1badc2
movq (%rdx), %r13
xorl %ebx, %ebx
movq 0x6a724(%rip), %xmm3    # 0x225240
movapd 0x6a72c(%rip), %xmm4    # 0x225250
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r13, 0x18(%rsp)
movq (%rcx), %rbp
imulq $0xa8, %rbx, %r14
addq %rbp, %r14
cmpq $0x0, 0x120(%rsp)
je 0x1bab52
cmpl $0x0, 0xc(%r14)
je 0x1bac71
cmpq %rbx, %r15
je 0x1babc2
movl $0xa8, %edx
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x2160
movq %r12, %r13
imulq $0xa8, %r15, %r12
addq %r12, %rbp
movl $0xa8, %edx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2160
movq 0x8(%rsp), %rax
addq (%rax), %r12
movl $0xa8, %edx
movq %r12, %rdi
movq %r13, %r12
movq 0x18(%rsp), %r13
leaq 0x40(%rsp), %rsi
callq 0x2160
movapd 0x6a6a0(%rip), %xmm4    # 0x225250
movq 0x6a688(%rip), %xmm3    # 0x225240
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq (%rcx), %rbp
imulq $0xa8, %r15, %r14
cmpl $0x0, 0xc(%rbp,%r14)
je 0x1bac5c
leaq (%r14,%rbp), %rax
addq $0xc, %rax
movl $0x0, (%rax)
cmpq %r15, %r12
je 0x1bac59
movq %r12, %r13
imulq $0xa8, %r12, %r12
addq %rbp, %r12
movl $0xa8, %edx
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x2160
addq %r14, %rbp
movl $0xa8, %edx
movq %r12, %rdi
movq %r13, %r12
movq 0x18(%rsp), %r13
movq %rbp, %rsi
callq 0x2160
movq 0x8(%rsp), %rax
addq (%rax), %r14
movl $0xa8, %edx
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
callq 0x2160
movapd 0x6a609(%rip), %xmm4    # 0x225250
movq 0x6a5f1(%rip), %xmm3    # 0x225240
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
incq %r12
incq %r15
incq %rbx
cmpq 0x10(%rcx), %rbx
jb 0x1bab2f
jmp 0x1badc8
testq %r13, %r13
je 0x1bad0a
movl 0x4(%r14), %eax
movl 0x8(%r14), %r10d
incl %r10d
movq 0x10(%rdx), %r11
movq %r10, %rsi
subq %rax, %rsi
movq %rsi, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x30(%rsp), %xmm0
xorl %edi, %edi
xorl %esi, %esi
movq %rdi, %r8
movq (%r11,%rsi,8), %rdi
movl %edi, %r9d
shrq $0x20, %rdi
cmpq %r10, %r9
cmovaeq %r10, %r9
cmpq %rax, %rdi
cmovbeq %rax, %rdi
subq %rdi, %r9
movl $0x0, %edi
cmovaeq %r9, %rdi
addq %r8, %rdi
movq %rdi, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm4, %xmm1
je 0x1bad02
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
ja 0x1bac5f
incq %rsi
cmpq %rsi, %r13
jne 0x1bacb2
movl 0x10(%r14), %ecx
movl 0x1c(%r14), %edx
testl %edx, %edx
je 0x1bad3a
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
leaq (%rcx,%rcx,4), %rsi
movl (%rax,%rsi,8), %esi
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %esi
movl 0x18(%r14), %eax
notl %eax
addl %esi, %eax
jmp 0x1bad3e
movl 0x14(%r14), %eax
testl %edx, %edx
je 0x1bad64
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
movq 0x10(%rdx), %rdx
leaq (%rcx,%rcx,4), %rsi
movl (%rdx,%rsi,8), %r8d
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %r8d
subl 0x14(%r14), %r8d
jmp 0x1bad6b
movl 0x18(%r14), %r8d
incl %r8d
movq 0x38(%rsp), %r9
movq 0x28(%r9), %rdx
movq (%rdx,%rcx,8), %rcx
movl %ecx, %esi
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rdi
shlq $0x4, %rdi
addq 0x10(%r9), %rdi
movl %eax, %edx
movl %r8d, %ecx
movsd 0x30(%rsp), %xmm0
callq 0x1ba00d
testq %rax, %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rdx
movq 0x6a491(%rip), %xmm3    # 0x225240
movapd 0x6a499(%rip), %xmm4    # 0x225250
jne 0x1bac5f
jmp 0x1bab52
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %r15, 0x10(%rcx)
movq 0x128(%rsp), %rax
movq %r12, (%rax)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq