// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: gl_chain_advance_back(kv_ul_ov_t*, ul_ov_t*, ul_idx_t const*, ug_opt_t const*, long, double, long, long, unsigned long*, unsigned long*, unsigned long*, float, All_reads*, ma_ug_t*, void*)
int64_t gl_chain_advance_back(kv_ul_ov_t *res, ul_ov_t *ex, const ul_idx_t *uref, const ug_opt_t *uopt, int64_t bw, 
double diff_ec_ul, int64_t qlen, int64_t max_skip, uint64_t *srt, uint64_t *idx, uint64_t *track, float trans_allow, 
All_reads *ridx, ma_ug_t *ug, void *km)
{
	uint32_t li_v, lj_v, rev_n, is_c, nc, s_nc;
	int64_t mm_ovlp, x, i, j, k, sc, csc, mm_sc, mm_idx, qo, trans_scl = (int64_t)(((float)(1))/trans_allow), nsc[2];
	ul_ov_t *li = NULL, *lj = NULL, rev_t;
	radix_sort_ul_ov_srt_qe(res->a, res->a + res->n);
	for (i = s_nc = 0; i < (int64_t)res->n; ++i) {
		li = &(res->a[i]); li_v = (li->tn<<1)|li->rev;
		mm_ovlp = uref?max_ovlp(uref->ug->g, li_v^1):max_ovlp_src(uopt, li_v^1);
		x = (li->qs + mm_ovlp)*diff_ec_ul; 
		if(x < bw) x = bw; 
		x += li->qs + mm_ovlp;
		if (x > qlen+1) x = qlen+1;
		x = find_ul_ov_max(i, res->a, x); 
		csc = uref?retrieve_u_cov_region(uref, li->tn, 0, li->ts, li->te, NULL):li->te-li->ts;
		if(!(li->el)) {
			csc *= -trans_scl; //trans overlaps
			if(csc >= 0) csc = -1;
		}
		mm_sc = csc; mm_idx = -1; nc = nsc[0] = nsc[1] = 0;
		for (j = x; j >= 0; --j) { // collect potential destination vertices
			lj = &(res->a[j]); lj_v = (lj->tn<<1)|lj->rev;
			// if((lj->qe+gapLen) <= li->qs) break; 
			if(lj->qe <= li->qs) break;//even this pair has a overlap, its length will be very small; just ignore
			// if(lj->qs >= li->qs) continue; // lj is contained in li on the query coordinate
			qo = infer_rovlp(li, lj, NULL, NULL, ridx, ug); ///overlap length in query (UL read)
			if(li_v != lj_v && get_ecov_adv_back(uref, uopt, li_v^1, lj_v^1, bw, diff_ec_ul, qo, &is_c)) {
				if(!is_c) {
					sc = csc + pop_sc(track[j]);
					if(sc > mm_sc) mm_sc = sc, mm_idx = j;
				} else if(!uref) {///with uref, retrieve_u_cov_region has already consider contained reads
					res->a[nc++].sec = j; 
					if(li->el) nsc[0] += lj->te-lj->ts;
					else nsc[!(lj->el)] += lj->te-lj->ts;
				}
			}
		}
		
		if(nc && (!uref) && mm_idx>=0) {///deal with containments
			mm_sc += determine_containment_chain(uopt, track, srt, res, nc, nsc, mm_idx, bw, diff_ec_ul, li->el, ridx, ug);
			s_nc++;
		}

		track[i] = push_sc_pre(mm_sc, mm_idx);
		srt[i] = track[i]>>32; srt[i] <<= 32; srt[i] |= i;
		// fprintf(stderr, "[M::utg%.6d%c] qs->%u; qe->%u\n\n", li->tn+1, "lc"[uref->ug->u.a[li->tn].circ], li->qs, li->qe);
	}

	if(s_nc) {
		for (i = 0; i < (int64_t)res->n; ++i) {
			if(srt[i]&((uint64_t)0x80000000)) srt[i]-=((uint64_t)0x80000000);
		}
	}
	
	int64_t n_v, n_u, n_v0, le, lnv; 
	radix_sort_gfa64(srt, srt+res->n); //ex->n = res->n;
	for (k = (int64_t)res->n-1, n_v = n_u = 0; k >= 0; --k) {
		n_v0 = n_v; i = (uint32_t)srt[k];
		if(i>=0 && (res->a[i].el)) { ///chain must start from cis alignments
			for (le = -1; i >= 0 && (track[i]&((uint64_t)0x80000000)) == 0;) {
				if(res->a[i].el) {
					le = -1;
				}else if(n_v>n_v0 && ex[n_v-1].el) {
					le = i; lnv = n_v;///cut the cis alignments in the end
				}
				ex[n_v++] = res->a[i]; track[i] |= ((uint64_t)0x80000000);
				// fprintf(stderr, "[M::utg%.6d%c] qs->%u; qe->%u\n", res->a[i].tn+1, "lc"[uref->ug->u.a[res->a[i].tn].circ], res->a[i].qs, res->a[i].qe);
				i = pop_pre(track[i]);
			}
		}
		if(n_v0 == n_v) continue;
		if(le >= 0) {
			i = le; n_v = lnv;
		}
		if(n_v0 == n_v) continue;
		///keep the whole score; do not cut score like minigraph
		// sc = pop_sc(srt[k]);
		sc = (i<0?(pop_sc(srt[k])):(pop_sc(srt[k])-pop_sc(track[i])));
		if(sc < 0) {
			n_v = n_v0;
			continue;
		}
		// idx[n_u++] = push_sc_pre(sc, n_v-n_v0);	
		idx[n_u++] = ((uint64_t)sc<<32)|(n_v-n_v0);	
	}

	for (k = 0, n_v = n_v0 = 0; k < n_u; k++) {
		n_v0 = n_v; n_v += (uint32_t)idx[k];
		res->a[k].qn = idx[k]>>32;
		res->a[k].ts = n_v0; res->a[k].te = n_v;
		
		rev_n = ((uint32_t)idx[k])>>1; 
		///we need to consider contained reads; so determining qs is not such easy
		res->a[k].qs = (uint32_t)-1; res->a[k].qe = ex[n_v0].qe;
		for (i = 0; i < rev_n; i++) {
			rev_t = ex[n_v0+i]; 
			ex[n_v0+i] = ex[n_v0+rev_n-i-1];
			ex[n_v0+rev_n-i-1] = rev_t;
			if(res->a[k].qs > ex[n_v0+i].qs) res->a[k].qs = ex[n_v0+i].qs;
			if(res->a[k].qs > ex[n_v0+rev_n-i-1].qs) res->a[k].qs = ex[n_v0+rev_n-i-1].qs;
		}
		if(i < ((uint32_t)idx[k]) && res->a[k].qs < ex[n_v0+i].qs) {
			res->a[k].qs = ex[n_v0+i].qs;
		}
	}
	res->n = n_u;
	radix_sort_ul_ov_srt_qn(res->a, res->a + res->n);
	return n_v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movss %xmm1, 0x8(%rsp)
movq %r9, %r15
movsd %xmm0, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, %rbp
movq %rdi, %r13
movq 0x108(%rsp), %r12
movq 0xf8(%rsp), %rbx
movq (%rdi), %rdi
movq 0x8(%r13), %rsi
leaq (%rsi,%rsi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %rsi
addq %rax, %rsi
callq 0x195511
cmpq $0x0, 0x8(%r13)
movq %r13, 0x20(%rsp)
movq %rbp, 0x60(%rsp)
jle 0x1a38b2
movss 0x7ec7f(%rip), %xmm0    # 0x2220c0
divss 0x8(%rsp), %xmm0
cvttss2si %xmm0, %rax
movq %rax, 0x88(%rsp)
incq %r15
movq $0x0, 0x30(%rsp)
xorl %ecx, %ecx
movq %r15, 0x58(%rsp)
movq (%r13), %r9
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rbx
movq %rcx, 0x68(%rsp)
addq %rcx, %rbx
movl 0xc(%r9,%rbx), %eax
movl 0x18(%r9,%rbx), %esi
shrdl $0x1f, %eax, %esi
movq 0x28(%rsp), %rbp
testq %rbp, %rbp
movl %esi, 0x14(%rsp)
je 0x1a34fb
movq (%rbp), %rax
movq 0x18(%rax), %rax
movl %esi, %ecx
xorl $0x1, %ecx
movq 0x28(%rax), %rdx
movq (%rdx,%rcx,8), %rcx
movq %rcx, %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
andq %rsi, %rdx
je 0x1a3510
movq 0x8(%rax), %rsi
shrq $0x20, %rcx
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rax
leaq (%rcx,%rcx,2), %rcx
leaq (%rsi,%rcx,8), %rcx
addq $0xc, %rcx
xorl %edx, %edx
xorl %esi, %esi
movl %esi, %edi
movl (%rcx,%rdx), %r8d
cmpl %r8d, %esi
movl %r8d, %esi
cmoval %edi, %esi
testl %r8d, %r8d
cmovsl %edi, %esi
addq $0x18, %rdx
cmpq %rdx, %rax
jne 0x1a34d9
movl %esi, %eax
jmp 0x1a3512
xorl $0x1, %esi
movq 0x38(%rsp), %rdi
movq %r9, %r14
callq 0x19c00f
movq %r14, %r9
jmp 0x1a3512
xorl %eax, %eax
addq %rbx, %r9
movq %r9, 0x8(%rsp)
movl 0x4(%r9), %ecx
addq %rax, %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x48(%rsp), %xmm0
cvttsd2si %xmm0, %rdx
movq 0x40(%rsp), %rax
cmpq %rax, %rdx
cmovleq %rax, %rdx
addq %rcx, %rdx
cmpq %r15, %rdx
cmovgeq %r15, %rdx
movq (%r13), %rsi
movq 0x68(%rsp), %rdi
callq 0x19f679
movq 0x8(%rsp), %r8
movl %eax, %r14d
movl 0x10(%r8), %ecx
testq %rbp, %rbp
je 0x1a3585
movl 0xc(%r8), %esi
movl 0x14(%r8), %r8d
movq %rbp, %rdi
xorl %edx, %edx
xorl %r9d, %r9d
callq 0x36ec9
movq 0x8(%rsp), %r8
jmp 0x1a358b
movl 0x14(%r8), %eax
subl %ecx, %eax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %ecx
testb $0x40, 0x1b(%r8)
jne 0x1a35c0
movq 0x18(%rsp), %rdx
imulq 0x88(%rsp), %rdx
negq %rdx
cmpq $-0x1, %rdx
movq $-0x1, %rax
cmovgeq %rax, %rdx
movq %rdx, 0x18(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
testl %r14d, %r14d
js 0x1a376a
movslq %r14d, %r15
xorl $0x1, %ecx
movl %ecx, 0x50(%rsp)
leaq (%r15,%r15,8), %rax
leaq (%rax,%rax,2), %r13
addq %r15, %r13
movq $-0x1, %rbp
movl $0x0, 0x10(%rsp)
movq 0x18(%rsp), %r14
movq 0x20(%rsp), %rax
movq (%rax), %rbx
movl 0x8(%rbx,%r13), %eax
cmpl 0x4(%r8), %eax
jbe 0x1a377e
movq %rbp, %r12
movq %r14, %rbp
leaq (%rbx,%r13), %rsi
movl 0xc(%rbx,%r13), %eax
movl 0x18(%rbx,%r13), %r14d
shrdl $0x1f, %eax, %r14d
movq %r8, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq 0x110(%rsp), %r8
movq 0x118(%rsp), %r9
callq 0x6f050
cmpl %r14d, 0x14(%rsp)
je 0x1a3709
xorl $0x1, %r14d
subq $0x8, %rsp
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rsi
movl 0x58(%rsp), %edx
movl %r14d, %ecx
movq 0x48(%rsp), %r8
movsd 0x50(%rsp), %xmm0
movq %rax, %r9
leaq 0x5c(%rsp), %rax
pushq %rax
callq 0x1a21ba
addq $0x10, %rsp
testq %rax, %rax
je 0x1a3709
cmpl $0x0, 0x54(%rsp)
movq %rbp, %r14
movq 0x8(%rsp), %r8
je 0x1a372a
cmpq $0x0, 0x28(%rsp)
movq %r12, %rbp
jne 0x1a3714
movq 0x20(%rsp), %rax
movq (%rax), %rax
movl 0x10(%rsp), %edx
movl %edx, %ecx
incl %edx
movl %edx, 0x10(%rsp)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl %r15d, %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
movl 0x18(%rax,%rdx), %esi
movl $0xc0000000, %edi       # imm = 0xC0000000
andl %edi, %esi
orl %ecx, %esi
movl %esi, 0x18(%rax,%rdx)
movl 0x14(%rbx,%r13), %eax
subl 0x10(%rbx,%r13), %eax
testb $0x40, 0x1b(%r8)
jne 0x1a3763
xorl %ecx, %ecx
btl $0x1e, 0x18(%rbx,%r13)
setae %cl
addq %rax, 0x70(%rsp,%rcx,8)
jmp 0x1a3714
movq %rbp, %r14
movq %r12, %rbp
movq 0x8(%rsp), %r8
leaq -0x1(%r15), %rax
addq $-0x1c, %r13
testq %r15, %r15
movq %rax, %r15
jg 0x1a35fc
jmp 0x1a377e
movq 0x108(%rsp), %rax
movq (%rax,%r15,8), %rax
movq %rax, %rcx
shrq $0x20, %rcx
leaq -0x80000000(%rcx), %rdx
negq %rcx
testq %rax, %rax
cmovsq %rdx, %rcx
addq 0x18(%rsp), %rcx
cmpq %r14, %rcx
cmovgq %rcx, %r14
movq %r12, %rbp
cmovgq %r15, %rbp
jmp 0x1a3714
addq %rax, 0x70(%rsp)
jmp 0x1a3714
movl $0x0, 0x10(%rsp)
movq $-0x1, %rbp
movq 0x18(%rsp), %r14
cmpq $0x0, 0x28(%rsp)
jne 0x1a3814
cmpl $0x0, 0x10(%rsp)
movq 0x20(%rsp), %r13
movq 0xf8(%rsp), %rbx
movq 0x58(%rsp), %r15
je 0x1a380a
testq %rbp, %rbp
js 0x1a380a
movl 0x18(%r8), %eax
shrl $0x1e, %eax
andl $0x1, %eax
subq $0x8, %rsp
movq 0x40(%rsp), %rdi
movq 0x110(%rsp), %r12
movq %r12, %rsi
movq %rbx, %rdx
movq %r13, %rcx
movl 0x18(%rsp), %r8d
leaq 0x78(%rsp), %r9
movsd 0x50(%rsp), %xmm0
pushq 0x120(%rsp)
pushq 0x120(%rsp)
pushq %rax
pushq 0x60(%rsp)
pushq %rbp
callq 0x1a2786
addq $0x30, %rsp
addq %rax, %r14
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
jmp 0x1a382e
movq 0x108(%rsp), %r12
jmp 0x1a382e
movq 0x20(%rsp), %r13
movq 0x108(%rsp), %r12
movq 0xf8(%rsp), %rbx
movq 0x58(%rsp), %r15
movl %r14d, %eax
movl $0x80000000, %ecx       # imm = 0x80000000
orl %ecx, %eax
movl %r14d, %ecx
negl %ecx
testq %r14, %r14
cmovnsq %rax, %rcx
shlq $0x20, %rcx
testq %rbp, %rbp
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmovsq %rax, %rbp
orq %rcx, %rbp
movq 0x68(%rsp), %rcx
movq %rbp, (%r12,%rcx,8)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
andq %rax, %rbp
orq %rcx, %rbp
movq %rbp, (%rbx,%rcx,8)
incq %rcx
cmpq 0x8(%r13), %rcx
movq 0x60(%rsp), %rbp
jl 0x1a3467
cmpl $0x0, 0x30(%rsp)
je 0x1a38b2
cmpq $0x0, 0x8(%r13)
jle 0x1a38b2
xorl %eax, %eax
movq (%rbx,%rax,8), %rcx
testl %ecx, %ecx
jns 0x1a38a9
addq $-0x80000000, %rcx      # imm = 0x80000000
movq %rcx, (%rbx,%rax,8)
incq %rax
cmpq 0x8(%r13), %rax
jl 0x1a3896
movq 0x8(%r13), %rax
leaq (%rbx,%rax,8), %rsi
movq %rbx, %rdi
callq 0x194fef
movq 0x8(%r13), %r10
testq %r10, %r10
jle 0x1a3a78
movq $0x0, 0x8(%rsp)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %r8d, %r8d
movq %r10, %rdi
movl -0x8(%rbx,%r10,8), %r10d
movq (%r13), %r9
leaq (%r10,%r10,8), %r11
leaq (%r11,%r11,2), %r11
addq %r10, %r11
testb $0x40, 0x1b(%r9,%r11)
jne 0x1a390a
movq %r10, %r11
movq %r8, %r9
jmp 0x1a39b5
leaq (%r8,%r8,8), %rsi
leaq (%rsi,%rsi,2), %rbx
addq %rbp, %rbx
addq %r8, %rbx
movq $-0x1, %rsi
movq %r8, %r9
testb $-0x80, 0x3(%r12,%r10,8)
jne 0x1a39b2
movq (%r13), %r14
leaq (%r10,%r10,8), %r11
leaq (%r11,%r11,2), %r12
addq %r10, %r12
movq $-0x1, %r11
testb $0x40, 0x1b(%r14,%r12)
jne 0x1a395f
cmpq %r8, %r9
jle 0x1a3966
testb $0x40, -0x1(%rbx)
cmovneq %r10, %rsi
cmovneq %r9, %rdx
jmp 0x1a3966
movq $-0x1, %rsi
incq %r9
movups (%r14,%r12), %xmm0
movups 0xc(%r14,%r12), %xmm1
movups %xmm1, 0xc(%rbx)
movups %xmm0, (%rbx)
movq 0x108(%rsp), %r15
movq (%r15,%r10,8), %r14
movq %r14, %r12
movl $0x80000000, %eax       # imm = 0x80000000
orq %rax, %r12
movq %r12, (%r15,%r10,8)
movq %r15, %r12
andq %rcx, %r14
addq $0x1c, %rbx
cmpq %rcx, %r14
cmoveq %r11, %r14
movq %r14, %r10
jne 0x1a3922
jmp 0x1a39b5
movq %r10, %r11
leaq -0x1(%rdi), %r10
cmpq %r9, %r8
je 0x1a3a61
testq %rsi, %rsi
cmovnsq %rsi, %r11
cmovnsq %rdx, %r9
movq %r9, %rbx
subq %r8, %rbx
je 0x1a3a61
movq 0xf8(%rsp), %r14
movq (%r14,%r10,8), %r12
movq %r12, %r14
shrq $0x20, %r14
leaq -0x80000000(%r14), %r13
negq %r14
testq %r12, %r12
cmovsq %r13, %r14
testq %r11, %r11
js 0x1a3a2a
movq 0x108(%rsp), %r12
movq (%r12,%r11,8), %r11
movq %r11, %r12
shrq $0x20, %r12
leaq -0x80000000(%r12), %r13
negq %r12
testq %r11, %r11
cmovsq %r13, %r12
subq %r12, %r14
testq %r14, %r14
movq 0x20(%rsp), %r13
js 0x1a3a56
shlq $0x20, %r14
orq %rbx, %r14
movq 0x100(%rsp), %rax
movq 0x8(%rsp), %r8
movq %r14, (%rax,%r8,8)
incq %r8
movq %r8, 0x8(%rsp)
jmp 0x1a3a59
movq %r8, %r9
movq 0x108(%rsp), %r12
movq %r9, %r8
cmpq $0x1, %rdi
movq 0xf8(%rsp), %rbx
jg 0x1a38e0
jmp 0x1a3a81
movq $0x0, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jle 0x1a3bdd
leaq -0x1c(%rbp), %rcx
xorl %r14d, %r14d
xorl %edx, %edx
movq %r14, %rsi
movq 0x100(%rsp), %rax
movq (%rax,%rdx,8), %r8
movl %r8d, %r14d
addq %rsi, %r14
movq %r8, %r9
shrq $0x20, %r9
movq (%r13), %r11
leaq (%rdx,%rdx,8), %rdi
leaq (%rdi,%rdi,2), %rdi
addq %rdx, %rdi
movl %r9d, (%r11,%rdi)
movl %esi, 0x10(%r11,%rdi)
movl %r14d, 0x14(%r11,%rdi)
shrl %r8d
movl $0xffffffff, 0x4(%r11,%rdi) # imm = 0xFFFFFFFF
leaq (%rsi,%rsi,8), %r9
leaq (%r9,%r9,2), %r9
leaq (%r9,%rsi), %r10
movl 0x8(%rbp,%r10), %ebx
movl %ebx, 0x8(%r11,%rdi)
testl %r8d, %r8d
je 0x1a3b8a
leaq (%r10,%rbp), %rbx
leaq (%r8,%r8,8), %r11
leaq (%r11,%r11,2), %r11
addq %r8, %r11
addq %rcx, %r10
addq %r11, %r10
xorl %r11d, %r11d
movups (%rbx), %xmm0
movups 0xc(%rbx), %xmm1
movups %xmm1, 0x9c(%rsp)
movaps %xmm0, 0x90(%rsp)
movups (%r10), %xmm0
movups 0xc(%r10), %xmm1
movups %xmm1, 0xc(%rbx)
movups %xmm0, (%rbx)
movups 0x9c(%rsp), %xmm0
movups %xmm0, 0xc(%r10)
movaps 0x90(%rsp), %xmm0
movups %xmm0, (%r10)
movq (%r13), %r12
addq %rdi, %r12
addq $0x4, %r12
movl 0x4(%rbx), %ebp
cmpl %ebp, (%r12)
jbe 0x1a3b6a
movl %ebp, (%r12)
movl 0x4(%r10), %ebp
cmpl %ebp, (%r12)
jbe 0x1a3b78
movl %ebp, (%r12)
incq %r11
addq $0x1c, %rbx
addq $-0x1c, %r10
cmpq %r11, %r8
jne 0x1a3b12
jmp 0x1a3b8d
xorl %r11d, %r11d
movq 0x100(%rsp), %rax
movl (%rax,%rdx,8), %r8d
cmpq %r8, %r11
movq 0x60(%rsp), %rbp
jae 0x1a3bcd
movq (%r13), %r8
addq %rbp, %rsi
addq %r9, %rsi
leaq (%r11,%r11,8), %r9
leaq (%r9,%r9,2), %r9
addq %r11, %r9
movl 0x4(%rsi,%r9), %esi
cmpl %esi, 0x4(%r8,%rdi)
jae 0x1a3bcd
addq %r8, %rdi
addq $0x4, %rdi
movl %esi, (%rdi)
incq %rdx
cmpq 0x8(%rsp), %rdx
jne 0x1a3a96
jmp 0x1a3be0
xorl %r14d, %r14d
movq 0x8(%rsp), %rax
movq %rax, 0x8(%r13)
movq (%r13), %rdi
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rsi
addq %rax, %rsi
addq %rdi, %rsi
callq 0x195d3d
movq %r14, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq