// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Purge_Dups.cpp
// Function: get_base_boundary(R_to_U*, ma_hit_t_alloc*, ma_sub_t*, asg_t*, unsigned long*, int, int, ma_utg_t*, ma_utg_t*, unsigned int, unsigned int, long long, long long, long long, long long, unsigned int, unsigned int, unsigned int*, unsigned int*)
void get_base_boundary(R_to_U* ruIndex, ma_hit_t_alloc* reverse_sources, ma_sub_t *coverage_cut, 
asg_t *read_g, uint64_t* position_index, int max_hang, int min_ovlp, ma_utg_t *xReads, ma_utg_t *yReads,
uint32_t xUid, uint32_t yUid, long long xBegIndex, long long xEndIndex, long long yBegIndex, long long yEndIndex, 
uint32_t dir, uint32_t rev, uint32_t* x_off, uint32_t* y_off)
{
    long long k, j, offset;
    ma_hit_t_alloc *xR = NULL;
    ma_hit_t *h = NULL;
    ma_sub_t *sq = NULL, *st = NULL;
    int32_t r;
    asg_arc_t t;
    uint32_t rId, Hap_uId, is_Unitig, v, w, v_dir, w_dir, is_found = 0, oLen = 0;
    uint64_t tmp;
    (*x_off) = (*y_off) = (uint32_t)-1;
    if(dir == 1)
    {
        for (k = xEndIndex; k >= xBegIndex; k--)
        {
            xR = &(reverse_sources[xReads->a[k]>>33]);
            is_found = 0; oLen = 0;
            for (j = 0; j < xR->length; j++)
            {
                h = &(xR->buffer[j]);
                sq = &(coverage_cut[Get_qn(*h)]);
                st = &(coverage_cut[Get_tn(*h)]);
                if(st->del || read_g->seq[Get_tn(*h)].del) continue;

                r = ma_hit2arc(h, sq->e - sq->s, st->e - st->s, max_hang, 
                                asm_opt.max_hang_rate, min_ovlp, &t);
                ///if it is a contained overlap, skip
                if(r < 0) continue;

                rId = t.v>>1;
                if(read_g->seq[rId].del == 1) continue;
                ///there are two cases: 
                ///1. read at primary contigs, get_R_to_U() return its corresponding contig Id  
                ///2. read at alternative contigs, get_R_to_U() return (uint32_t)-1
                get_R_to_U(ruIndex, rId, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != yUid) continue;

                v = xReads->a[k]>>32;
                get_R_to_U(ruIndex, v>>1, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != xUid) continue;
                if((uint32_t)(position_index[v>>1]) != k) continue;

                w = (yReads->a[(uint32_t)(position_index[rId])])>>32;

                v_dir = ((t.ul>>32)==v)?1:0;
                w_dir = (t.v == w)?1:0;
                if(rev == 0 && v_dir != w_dir) continue;
                if(rev == 1 && v_dir == w_dir) continue;

                /****************************may have bugs********************************/
                offset = (uint32_t)(position_index[rId]);
                if(offset < yBegIndex || offset > yEndIndex) continue;
                /****************************may have bugs********************************/

                tmp = get_xy_pos(read_g, &t, v, w, xReads->len, yReads->len, position_index, &(t.el));
                if(((tmp>>32) == (uint32_t)-1) || (((uint32_t)tmp) == (uint32_t)-1)) continue;

                ///if(is_found == 0 || ((uint32_t)(tmp>>32) > (*x_off) && ((uint32_t)tmp) > (*y_off)))
                if(is_found == 0 || t.ol > oLen)
                {
                    (*x_off) = tmp>>32;
                    (*y_off) = (uint32_t)tmp;
                    oLen = t.ol;
                }

                is_found = 1; 
            }
            if(is_found) return;
        }   
    }
    else
    {
        for (k = xBegIndex; k <= xEndIndex; k++)
        {
            xR = &(reverse_sources[xReads->a[k]>>33]);
            is_found = 0; oLen = 0;
            for (j = 0; j < xR->length; j++)
            {
                h = &(xR->buffer[j]);
                sq = &(coverage_cut[Get_qn(*h)]);
                st = &(coverage_cut[Get_tn(*h)]);
                if(st->del || read_g->seq[Get_tn(*h)].del) continue;

                r = ma_hit2arc(h, sq->e - sq->s, st->e - st->s, max_hang, 
                                asm_opt.max_hang_rate, min_ovlp, &t);
                ///if it is a contained overlap, skip
                if(r < 0) continue;

                rId = t.v>>1;
                if(read_g->seq[rId].del == 1) continue;
                ///there are two cases: 
                ///1. read at primary contigs, get_R_to_U() return its corresponding contig Id  
                ///2. read at alternative contigs, get_R_to_U() return (uint32_t)-1
                get_R_to_U(ruIndex, rId, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != yUid) continue;

                v = xReads->a[k]>>32;
                get_R_to_U(ruIndex, v>>1, &Hap_uId, &is_Unitig);
                if(is_Unitig == 0 || Hap_uId == (uint32_t)-1) continue;
                if(Hap_uId != xUid) continue;
                if((uint32_t)(position_index[v>>1]) != k) continue;

                w = (yReads->a[(uint32_t)(position_index[rId])])>>32;

                v_dir = ((t.ul>>32)==v)?1:0;
                w_dir = (t.v == w)?1:0;
                if(rev == 0 && v_dir != w_dir) continue;
                if(rev == 1 && v_dir == w_dir) continue;
            
                /****************************may have bugs********************************/
                offset = (uint32_t)(position_index[rId]);
                if(offset < yBegIndex || offset > yEndIndex) continue;
                /****************************may have bugs********************************/

                tmp = get_xy_pos(read_g, &t, v, w, xReads->len, yReads->len, position_index, &(t.el));
                if(((tmp>>32) == (uint32_t)-1) || (((uint32_t)tmp) == (uint32_t)-1)) continue;

                ///if(is_found == 0 || ((uint32_t)(tmp>>32) < (*x_off) && ((uint32_t)tmp) < (*y_off)))
                if(is_found == 0 || t.ol > oLen)
                {
                    (*x_off) = tmp>>32;
                    (*y_off) = (uint32_t)tmp;
                    oLen = t.ol;
                }  

                is_found = 1;         
            }
            if(is_found) return;
        }
    }


    (*x_off) = (*y_off) = (uint32_t)-1;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, 0x3c(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, %r14
movq %rdx, %r12
movq %rdi, 0x58(%rsp)
movq 0x100(%rsp), %rdx
movq 0xf8(%rsp), %rcx
movq 0xd0(%rsp), %rdi
movq 0xc8(%rsp), %r8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, (%rdx)
movl %eax, (%rcx)
movl 0xe8(%rsp), %eax
cmpl $0x1, %eax
movq %r14, (%rsp)
movq %rsi, 0x60(%rsp)
jne 0x107b97
cmpq %r8, %rdi
jl 0x107f91
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax,%rdi,8), %rax
shrq $0x21, %rax
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%rsi,%rax,8)
je 0x107b82
movq %rdi, 0x30(%rsp)
leaq (%rsi,%rax,8), %rbp
xorl %ebx, %ebx
movl $0x0, 0x1c(%rsp)
movl $0x0, 0x8(%rsp)
xorl %r15d, %r15d
movq (%rbp), %rdi
movl 0xc(%rdi,%rbx), %edx
leaq (%rdx,%rdx,2), %rcx
movl (%r12,%rcx,4), %eax
testl %eax, %eax
js 0x1079ad
movq 0x20(%r14), %r13
cmpl $0x0, (%r13,%rdx,8)
js 0x1079ad
movl 0x4(%rdi,%rbx), %edx
addq %rbx, %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%r12,%rdx,4), %rdx
leaq (%r12,%rcx,4), %rcx
movl 0x4(%rdx), %esi
movl (%rdx), %edx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl %r8d, %edx
subl %edx, %esi
movl 0x4(%rcx), %edx
subl %eax, %edx
leaq 0x182f23(%rip), %rax    # 0x28a758
movss 0x158(%rax), %xmm0
movl 0x3c(%rsp), %ecx
movl 0xa0(%rsp), %r8d
leaq 0x40(%rsp), %r9
callq 0x107fb9
testl %eax, %eax
js 0x1079ad
movl 0x48(%rsp), %eax
movl %eax, %r14d
shrl %r14d
cmpl $0x0, (%r13,%r14,8)
js 0x1079a9
movl %eax, 0xc(%rsp)
movq 0x58(%rsp), %rdi
movl %r14d, %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0xa306f
cmpl $0x0, 0x14(%rsp)
je 0x1079a9
movl 0x18(%rsp), %eax
cmpl $-0x1, %eax
je 0x1079a9
cmpl 0xc0(%rsp), %eax
jne 0x1079a9
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %r13
movq %r13, 0x28(%rsp)
shrq $0x21, %r13
movq 0x58(%rsp), %rdi
movl %r13d, %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0xa306f
cmpl $0x0, 0x14(%rsp)
je 0x1079a9
movl 0x18(%rsp), %eax
cmpl $-0x1, %eax
je 0x1079a9
cmpl 0xb8(%rsp), %eax
jne 0x1079a9
movq 0x20(%rsp), %rcx
movq (%rcx,%r13,8), %r9
movl %r9d, %eax
cmpq 0x30(%rsp), %rax
jne 0x1079a9
movq 0x28(%rsp), %rdi
shrq $0x20, %rdi
movl 0xf0(%rsp), %eax
cmpl $0x1, %eax
setne %dl
testl %eax, %eax
setne %sil
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movl (%rcx,%r14,8), %ecx
movq (%rax,%rcx,8), %r14
movq %r14, 0x28(%rsp)
shrq $0x20, %r14
movq 0x40(%rsp), %rax
shrq $0x20, %rax
movq %rdi, %r11
cmpq %rdi, %rax
sete %dil
movl 0xc(%rsp), %r10d
cmpl %r14d, %r10d
sete %r8b
xorb %dil, %r8b
orb %r8b, %dl
notb %r8b
orb %sil, %r8b
andb %dl, %r8b
testb $0x1, %r8b
je 0x1079a9
cmpq 0xd8(%rsp), %rcx
setl %dl
cmpq 0xe0(%rsp), %rcx
setg %cl
orb %dl, %cl
je 0x1079c5
movq (%rsp), %r14
incq %r15
movl 0xc(%rbp), %eax
addq $0x28, %rbx
cmpq %rax, %r15
jb 0x1077de
jmp 0x107b65
movq 0xa8(%rsp), %rcx
movl (%rcx), %edi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %edi
movq 0xb0(%rsp), %rcx
movl (%rcx), %esi
andl %edx, %esi
cmpl %r11d, %eax
jne 0x107a09
shrq $0x20, %r9
movq (%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%r13,8), %eax
andl %edx, %eax
addl %eax, %r9d
decl %r9d
xorl %r13d, %r13d
movq 0x20(%rsp), %rax
jmp 0x107a21
xorl %r11d, %eax
cmpl $0x1, %eax
movq 0x20(%rsp), %rax
jne 0x107b10
shrq $0x20, %r9
movb $0x1, %r13b
cmpl %r14d, %r10d
jne 0x107a45
movq 0x28(%rsp), %rcx
shrq $0x21, %rcx
movl 0x4(%rax,%rcx,8), %eax
movl 0x4c(%rsp), %ecx
andl %edx, %ecx
addl %ecx, %eax
decl %eax
xorl %ecx, %ecx
movq (%rsp), %r14
jmp 0x107a7d
xorl %r14d, %r10d
cmpl $0x1, %r10d
jne 0x107b40
movq 0x28(%rsp), %r8
shrq $0x21, %r8
movq (%rsp), %r14
movq 0x20(%r14), %rax
movl (%rax,%r8,8), %eax
andl %edx, %eax
movl 0x4c(%rsp), %ecx
andl %edx, %ecx
movq 0x20(%rsp), %rdx
addl 0x4(%rdx,%r8,8), %eax
subl %ecx, %eax
movb $0x1, %cl
movl %ecx, %edx
xorb %r13b, %dl
movb %dl, 0x52(%rsp)
cmpb %cl, %r13b
je 0x107a98
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %esi, %eax
jae 0x107a9a
notl %eax
addl %esi, %eax
movl %eax, %ecx
cmpl %esi, %ecx
movl %ecx, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovael %edx, %eax
cmpl %edi, %r9d
cmovael %edx, %r9d
jae 0x1079ad
cmpl %esi, %ecx
jae 0x1079ad
cmpl $0x0, 0x8(%rsp)
je 0x107adf
movl 0x4c(%rsp), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
movl $0x1, 0x8(%rsp)
cmpl 0x1c(%rsp), %ecx
jbe 0x1079ad
movq 0xf8(%rsp), %rcx
movl %r9d, (%rcx)
movq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movl 0x4c(%rsp), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl %ecx, 0x1c(%rsp)
movl $0x1, 0x8(%rsp)
jmp 0x1079ad
movl %esi, %r13d
movl %edi, 0x10(%rsp)
callq 0x138d7
movl 0x10(%rsp), %edi
movl %r13d, %esi
movl 0xc(%rsp), %r10d
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x20(%rsp), %rax
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
jmp 0x107a21
movq %r9, %r14
movl %esi, 0xc(%rsp)
movl %edi, 0x10(%rsp)
callq 0x138f9
movl 0x10(%rsp), %edi
movl 0xc(%rsp), %esi
movq %r14, %r9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x107a3d
cmpl $0x0, 0x8(%rsp)
movq 0x60(%rsp), %rsi
movq 0x30(%rsp), %rdi
movq 0xc8(%rsp), %r8
jne 0x107faa
leaq -0x1(%rdi), %rax
cmpq %r8, %rdi
movq %rax, %rdi
jg 0x10779d
jmp 0x107f91
cmpq %rdi, %r8
jg 0x107f91
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax,%r8,8), %rax
shrq $0x21, %rax
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%rsi,%rax,8)
je 0x107f81
movq %r8, 0x30(%rsp)
leaq (%rsi,%rax,8), %rbp
xorl %ebx, %ebx
movl $0x0, 0x1c(%rsp)
movl $0x0, 0x8(%rsp)
xorl %r15d, %r15d
movq (%rbp), %rdi
movl 0xc(%rdi,%rbx), %edx
leaq (%rdx,%rdx,2), %rcx
movl (%r12,%rcx,4), %eax
testl %eax, %eax
js 0x107db0
movq 0x20(%r14), %r13
cmpl $0x0, (%r13,%rdx,8)
js 0x107db0
movl 0x4(%rdi,%rbx), %edx
addq %rbx, %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%r12,%rdx,4), %rdx
leaq (%r12,%rcx,4), %rcx
movl 0x4(%rdx), %esi
movl (%rdx), %edx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl %r8d, %edx
subl %edx, %esi
movl 0x4(%rcx), %edx
subl %eax, %edx
leaq 0x182b20(%rip), %rax    # 0x28a758
movss 0x158(%rax), %xmm0
movl 0x3c(%rsp), %ecx
movl 0xa0(%rsp), %r8d
leaq 0x40(%rsp), %r9
callq 0x107fb9
testl %eax, %eax
js 0x107db0
movl 0x48(%rsp), %eax
movl %eax, %r14d
shrl %r14d
cmpl $0x0, (%r13,%r14,8)
js 0x107dac
movl %eax, 0xc(%rsp)
movq 0x58(%rsp), %rdi
movl %r14d, %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0xa306f
cmpl $0x0, 0x14(%rsp)
je 0x107dac
movl 0x18(%rsp), %eax
cmpl $-0x1, %eax
je 0x107dac
cmpl 0xc0(%rsp), %eax
jne 0x107dac
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %r13
movq %r13, 0x28(%rsp)
shrq $0x21, %r13
movq 0x58(%rsp), %rdi
movl %r13d, %esi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0xa306f
cmpl $0x0, 0x14(%rsp)
je 0x107dac
movl 0x18(%rsp), %eax
cmpl $-0x1, %eax
je 0x107dac
cmpl 0xb8(%rsp), %eax
jne 0x107dac
movq 0x20(%rsp), %rcx
movq (%rcx,%r13,8), %r9
movl %r9d, %eax
cmpq 0x30(%rsp), %rax
jne 0x107dac
movq 0x28(%rsp), %rdi
shrq $0x20, %rdi
movl 0xf0(%rsp), %eax
cmpl $0x1, %eax
setne %dl
testl %eax, %eax
setne %sil
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movl (%rcx,%r14,8), %ecx
movq (%rax,%rcx,8), %r14
movq %r14, 0x28(%rsp)
shrq $0x20, %r14
movq 0x40(%rsp), %rax
shrq $0x20, %rax
movq %rdi, %r11
cmpq %rdi, %rax
sete %dil
movl 0xc(%rsp), %r10d
cmpl %r14d, %r10d
sete %r8b
xorb %dil, %r8b
orb %r8b, %dl
notb %r8b
orb %sil, %r8b
andb %dl, %r8b
testb $0x1, %r8b
je 0x107dac
cmpq 0xd8(%rsp), %rcx
setl %dl
cmpq 0xe0(%rsp), %rcx
setg %cl
orb %dl, %cl
je 0x107dc8
movq (%rsp), %r14
incq %r15
movl 0xc(%rbp), %eax
addq $0x28, %rbx
cmpq %rax, %r15
jb 0x107be1
jmp 0x107f68
movq 0xa8(%rsp), %rcx
movl (%rcx), %edi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %edi
movq 0xb0(%rsp), %rcx
movl (%rcx), %esi
andl %edx, %esi
cmpl %r11d, %eax
jne 0x107e0c
shrq $0x20, %r9
movq (%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%r13,8), %eax
andl %edx, %eax
addl %eax, %r9d
decl %r9d
xorl %r13d, %r13d
movq 0x20(%rsp), %rax
jmp 0x107e24
xorl %r11d, %eax
cmpl $0x1, %eax
movq 0x20(%rsp), %rax
jne 0x107f13
shrq $0x20, %r9
movb $0x1, %r13b
cmpl %r14d, %r10d
jne 0x107e48
movq 0x28(%rsp), %rcx
shrq $0x21, %rcx
movl 0x4(%rax,%rcx,8), %eax
movl 0x4c(%rsp), %ecx
andl %edx, %ecx
addl %ecx, %eax
decl %eax
xorl %ecx, %ecx
movq (%rsp), %r14
jmp 0x107e80
xorl %r14d, %r10d
cmpl $0x1, %r10d
jne 0x107f43
movq 0x28(%rsp), %r8
shrq $0x21, %r8
movq (%rsp), %r14
movq 0x20(%r14), %rax
movl (%rax,%r8,8), %eax
andl %edx, %eax
movl 0x4c(%rsp), %ecx
andl %edx, %ecx
movq 0x20(%rsp), %rdx
addl 0x4(%rdx,%r8,8), %eax
subl %ecx, %eax
movb $0x1, %cl
movl %ecx, %edx
xorb %r13b, %dl
movb %dl, 0x52(%rsp)
cmpb %cl, %r13b
je 0x107e9b
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl %esi, %eax
jae 0x107e9d
notl %eax
addl %esi, %eax
movl %eax, %ecx
cmpl %esi, %ecx
movl %ecx, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovael %edx, %eax
cmpl %edi, %r9d
cmovael %edx, %r9d
jae 0x107db0
cmpl %esi, %ecx
jae 0x107db0
cmpl $0x0, 0x8(%rsp)
je 0x107ee2
movl 0x4c(%rsp), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
movl $0x1, 0x8(%rsp)
cmpl 0x1c(%rsp), %ecx
jbe 0x107db0
movq 0xf8(%rsp), %rcx
movl %r9d, (%rcx)
movq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movl 0x4c(%rsp), %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ecx
movl %ecx, 0x1c(%rsp)
movl $0x1, 0x8(%rsp)
jmp 0x107db0
movl %esi, %r13d
movl %edi, 0x10(%rsp)
callq 0x13893
movl 0x10(%rsp), %edi
movl %r13d, %esi
movl 0xc(%rsp), %r10d
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq 0x20(%rsp), %rax
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
jmp 0x107e24
movq %r9, %r14
movl %esi, 0xc(%rsp)
movl %edi, 0x10(%rsp)
callq 0x138b5
movl 0x10(%rsp), %edi
movl 0xc(%rsp), %esi
movq %r14, %r9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x107e40
cmpl $0x0, 0x8(%rsp)
movq 0x60(%rsp), %rsi
movq 0xd0(%rsp), %rdi
movq 0x30(%rsp), %r8
jne 0x107faa
leaq 0x1(%r8), %rax
cmpq %rdi, %r8
movq %rax, %r8
jne 0x107ba0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0x100(%rsp), %rcx
movl %eax, (%rcx)
movq 0xf8(%rsp), %rcx
movl %eax, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq