// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_hap_alignment(ma_ug_t*, asg_t*, ma_hit_t_alloc*, buf_t*, R_to_U*, unsigned int*, unsigned long*, unsigned char*, kvec_t_u64_warp*, Hap_Align_warp*, kvec_t_u32_warp*, kvec_t_u32_warp*, unsigned int, unsigned int, unsigned long*, float, asg_t*, unsigned int)
void get_hap_alignment(ma_ug_t *ug, asg_t *read_g, ma_hit_t_alloc* reverse_sources, 
buf_t* b_0, R_to_U* ruIndex, uint32_t* position_index, uint64_t* vote_counting, uint8_t* visit, 
kvec_t_u64_warp* u_vecs, Hap_Align_warp* u_buffer, kvec_t_u32_warp* x_vecs, kvec_t_u32_warp* y_vecs,
uint32_t cId, uint32_t contigNum, uint64_t* cBeg, float Hap_rate, asg_t *bi_g, uint32_t is_bi_edge)
{
    ma_utg_t* reads = NULL;
    uint32_t beg, end, i, j, k, rId, Hap_cId, y_cId, y_offset, qn, self_offset, uId, uOri, is_Unitig, xLen, seedOcc;
    uint64_t tmp;
    long long nodeLen, baseLen, max_stop_nodeLen, max_stop_baseLen;
    memset(vote_counting, 0, sizeof(uint64_t)*contigNum);
    memset(visit, 0, contigNum);
    u_vecs->a.n = x_vecs->a.n = y_vecs->a.n = 0;

    beg = (uint32_t)(cBeg[cId]);
    b_0->b.n = 0;
    get_unitig(ug->g, ug, beg, &end, &nodeLen, &baseLen, &max_stop_nodeLen, &max_stop_baseLen, 1, b_0);
    xLen = cBeg[cId]>>33;
    kv_resize(uint32_t, x_vecs->a, xLen);

    for (i = 0, self_offset = 0; i < b_0->b.n; i++)
    {
        uId = b_0->b.a[i]>>1;
        uOri = b_0->b.a[i]&(uint32_t)1;
        reads = &(ug->u.a[uId]);
        for (j = 0; j < reads->n; j++, self_offset++)
        {
            if(uOri == 1)
            {
                rId = reads->a[reads->n - j - 1]>>33;
            }
            else
            {
                rId = reads->a[j]>>33;
            }


            tmp = rId<<1;
            if(read_g->seq[rId].c == HAP_LABLE)
            {
                tmp = tmp | 1;
                kv_push(uint32_t, x_vecs->a, tmp);
                continue;
            }
            kv_push(uint32_t, x_vecs->a, tmp); 


            /**********************for debug*************************/
            ///debug_visit_flag(visit, contigNum);
            /**********************for debug*************************/

            qn = rId;
            for (k = 0; k < reverse_sources[qn].length; k++)
            {
                rId = Get_tn(reverse_sources[qn].buffer[k]);
            
                if(read_g->seq[rId].del == 1)
                {
                    ///get the id of read that contains it 
                    get_R_to_U(ruIndex, rId, &rId, &is_Unitig);
                    if(rId == (uint32_t)-1 || is_Unitig == 1 || 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_cId, &is_Unitig);
                if(is_Unitig == 0 || Hap_cId == (uint32_t)-1) continue;
                ///here rId is the id of the read coming from the different haplotype
                ///Hap_cId is the id of the corresponding contig (note here is the contig, instead of untig)
                if(visit[Hap_cId]!=0) continue;
                visit[Hap_cId] = 1;
                if(vote_counting[Hap_cId] < UINT64_MAX) vote_counting[Hap_cId]++;
            }

            reset_visit_flag(visit, read_g, ruIndex, contigNum, &(reverse_sources[qn]));
        }
    }


    u_vecs->a.n = 0;
    for (i = 0; i < contigNum; i++)
    {
        if(i == cId) continue;
        if(vote_counting[i] == 0) continue;
        tmp = vote_counting[i]; tmp = tmp << 32; tmp = tmp | (uint64_t)i;
        kv_push(uint64_t, u_vecs->a, tmp);
    }

    if(u_vecs->a.n == 0) return;

    sort_kvec_t_u64_warp(u_vecs, 1);


    ma_hit_t_alloc *x = NULL, *pre_x = NULL;
    Hap_Align* p = NULL;
    asg_arc_t *e = NULL;
    ///scan from the weightest candidate 
    for (i = 0; i < u_vecs->a.n; i++)
    {
        Hap_cId = (uint32_t)u_vecs->a.a[i];
        get_readSeq(ug, read_g, y_vecs, cBeg, b_0, Hap_cId);
        y_cId = Hap_cId;
        seedOcc = u_vecs->a.a[i]>>32;

        if(debug_purge_dup)
        {
            if(cId == 53)
            {
                fprintf(stderr, "cId: %u, y_cId: %u, seedOcc: %u\n", cId, y_cId, seedOcc);
            }
        }

        u_buffer->x.n = 0;
        for (k = 0; k < x_vecs->a.n; k++)
        {
            x = pre_x = NULL;
            rId = x_vecs->a.a[k]>>1;
            if(read_g->seq[rId].c == HAP_LABLE) continue;
            x = &(reverse_sources[rId]);

            if(k >= 1)
            {
                rId = x_vecs->a.a[k-1]>>1;
                if(read_g->seq[rId].c != HAP_LABLE)
                {
                    pre_x = &(reverse_sources[rId]);
                }
            }




            for (j = 0; j < x->length; j++)
            {
                rId = Get_tn(x->buffer[j]);
                if(read_g->seq[rId].del == 1)
                {
                    ///get the id of read that contains it 
                    get_R_to_U(ruIndex, rId, &rId, &is_Unitig);
                    if(rId == (uint32_t)-1 || is_Unitig == 1 || 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_cId, &is_Unitig);
                if(is_Unitig == 0 || Hap_cId == (uint32_t)-1) continue;
                if(Hap_cId != y_cId) continue;

                y_offset = position_index[rId];
                ///if(retrieve_skip_overlaps(pre_x, rId) != (uint32_t)-1)
                if(retrieve_skip_overlaps(pre_x, Get_tn(x->buffer[j])) != (uint32_t)-1)
                {
                    check_duplicate(u_buffer, (uint32_t)-1, y_offset);
                    continue;
                } 
                if(check_duplicate(u_buffer, k, y_offset)) continue;

                kv_pushp(Hap_Align, u_buffer->x, &p);
                p->q_pos = k;
                p->t_pos = y_offset;
                p->t_id = y_cId;
                p->is_color = 1;
            }
        }

        merge_hap_hits(u_buffer);
        if(u_buffer->x.n == 0) continue;

        ///for (k = 0; k < u_buffer->x.n; k++)
        for (k = u_buffer->x.n-1; k >= 0; k--)
        {
            if(calculate_hap_similarity(&(u_buffer->x.a[k]), 0, cId, y_cId, x_vecs, y_vecs, 
            reverse_sources, read_g, ruIndex, Hap_rate, seedOcc)==PLOID)
            {
                break;
            }
            else if(calculate_hap_similarity(&(u_buffer->x.a[k]), 1, cId, y_cId, x_vecs, y_vecs, 
            reverse_sources, read_g, ruIndex, Hap_rate, seedOcc)==PLOID)
            {
                break;
            }
            if(k == 0)
            {
                k = (uint32_t)-1;
                break;
            }
        }

        ///if(k < u_buffer->x.n)
        if(k != (uint32_t)-1)
        {
            e = asg_arc_pushp(bi_g);
            e->del = 0;
            e->ol = 0;
            e->ul = cId; e->ul = e->ul << 32; e->ul = e->ul | (uint64_t)(0);
            e->v = y_cId;

            if(is_bi_edge)
            {
                e = asg_arc_pushp(bi_g);
                e->del = 0;
                e->ol = 0;
                e->ul = y_cId; e->ul = e->ul << 32; e->ul = e->ul | (uint64_t)(0);
                e->v = cId;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movss %xmm0, 0x24(%rsp)
movq %r9, 0x58(%rsp)
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, 0x28(%rsp)
movq %rsi, %r13
movq %rdi, %r15
movl 0xf8(%rsp), %r12d
movq 0xc8(%rsp), %rbp
movq 0xc0(%rsp), %rdi
leaq (,%r12,8), %rdx
xorl %esi, %esi
callq 0x20e0
movq %rbp, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x20e0
movq 0xe8(%rsp), %rax
andq $0x0, (%rax)
movq 0xe0(%rsp), %rax
andq $0x0, (%rax)
movq 0xd0(%rsp), %rax
andq $0x0, (%rax)
movq 0x100(%rsp), %rax
movl 0xf0(%rsp), %ecx
movl (%rax,%rcx,8), %edx
andq $0x0, 0x38(%rbx)
movq 0x18(%r15), %rdi
leaq 0x68(%rsp), %rax
leaq 0x70(%rsp), %r10
leaq 0x64(%rsp), %rcx
leaq 0x80(%rsp), %r8
leaq 0x78(%rsp), %r9
movq %r15, 0x30(%rsp)
movq %r15, %rsi
movq %rbx, 0x38(%rsp)
pushq %rbx
pushq $0x1
pushq %rax
pushq %r10
callq 0xc2ebf
movq 0x100(%rsp), %rdx
addq $0x20, %rsp
movq 0x100(%rsp), %rax
movl 0xf0(%rsp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
cmpq %rax, 0x8(%rdx)
jae 0xadba1
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 0x4(,%rcx,4), %rsi
callq 0x2370
movq 0xe0(%rsp), %rdx
movq %rax, 0x10(%rdx)
movq 0xc0(%rsp), %rbp
xorl %ecx, %ecx
movl %ecx, %ecx
movq 0x38(%rsp), %rax
cmpq %rcx, 0x38(%rax)
jbe 0xadd7d
movq 0x48(%rax), %rax
movq %rcx, 0x18(%rsp)
movl (%rax,%rcx,4), %eax
movl %eax, 0x8(%rsp)
shrl %eax
imulq $0x28, %rax, %rsi
movq 0x30(%rsp), %rax
addq 0x10(%rax), %rsi
xorl %r12d, %r12d
movq %rsi, 0x10(%rsp)
movl 0x10(%rsi), %eax
cmpq %rax, %r12
jae 0xadd71
movl %r12d, %ecx
notl %ecx
addl %eax, %ecx
testb $0x1, 0x8(%rsp)
movq 0x18(%rsi), %rax
cmoveq %r12, %rcx
movq (%rax,%rcx,8), %rbx
shrq $0x21, %rbx
leal (%rbx,%rbx), %r15d
movq 0x20(%r13), %rax
cmpb $0x2, 0x4(%rax,%rbx,8)
jne 0xadc56
movq (%rdx), %rcx
movq 0x10(%rdx), %rax
cmpq 0x8(%rdx), %rcx
jne 0xadc8e
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdx)
shlq $0x2, %rsi
movq %rax, %rdi
movq %rdx, %rbx
callq 0x2370
movq 0x10(%rsp), %rsi
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
jmp 0xadc91
movq (%rdx), %rcx
movq 0x10(%rdx), %rax
cmpq 0x8(%rdx), %rcx
jne 0xadca8
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdx)
shlq $0x2, %rsi
movq %rax, %rdi
movq %rdx, %rbp
callq 0x2370
movq %rax, 0x10(%rbp)
movq (%rbp), %rcx
jmp 0xadcab
movq %rdx, %rbx
orl $0x1, %r15d
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movl %r15d, (%rax,%rcx,4)
movq %rbx, %rdx
jmp 0xadd69
movq %rdx, %rbp
movq 0xc8(%rsp), %rdi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbp)
movl %r15d, (%rax,%rcx,4)
imulq $0x18, %rbx, %r8
addq 0x28(%rsp), %r8
pushq $0xc
popq %rax
xorl %ecx, %ecx
movq 0xc0(%rsp), %rbp
movl 0xc(%r8), %edx
cmpq %rdx, %rcx
jae 0xadd4a
movq (%r8), %rdx
movl (%rdx,%rax), %edx
movq 0x20(%r13), %r10
cmpl $0x0, (%r10,%rdx,8)
movq (%r14), %rsi
js 0xadd28
cmpq %rdx, %rsi
jbe 0xadd41
movq 0x8(%r14), %rsi
movl (%rsi,%rdx,4), %edx
cmpl $-0x2, %edx
jg 0xadd41
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpb $0x0, (%rdi,%rdx)
jne 0xadd41
movb $0x1, (%rdi,%rdx)
movq (%rbp,%rdx,8), %rsi
cmpq $-0x1, %rsi
je 0xadd41
incq %rsi
movq %rsi, (%rbp,%rdx,8)
jmp 0xadd41
cmpq %rdx, %rsi
jbe 0xadd41
movq 0x8(%r14), %r9
movslq (%r9,%rdx,4), %rdx
testq %rdx, %rdx
js 0xadd41
cmpl $0x0, (%r10,%rdx,8)
jns 0xadcf2
incq %rcx
addq $0x28, %rax
jmp 0xadcd5
movq %r13, %rsi
movq %r14, %rdx
movl 0xf8(%rsp), %ecx
callq 0xc3ba0
movq 0xe0(%rsp), %rdx
movq 0x10(%rsp), %rsi
incq %r12
jmp 0xadbe3
movq 0x18(%rsp), %rcx
incl %ecx
jmp 0xadbab
movq 0xd0(%rsp), %rdx
andq $0x0, (%rdx)
xorl %ebx, %ebx
movl 0xf0(%rsp), %eax
movl 0xf8(%rsp), %ecx
cmpq %rbx, %rcx
je 0xade0b
cmpq %rbx, %rax
je 0xade06
movq (%rbp,%rbx,8), %r15
testq %r15, %r15
je 0xade06
movq (%rdx), %rcx
movq 0x10(%rdx), %rax
cmpq 0x8(%rdx), %rcx
jne 0xadde6
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdx)
shlq $0x3, %rsi
movq %rax, %rdi
movq %rdx, %r12
callq 0x2370
movq %rax, 0x10(%r12)
movq (%r12), %rcx
jmp 0xadde9
movq %rdx, %r12
shlq $0x20, %r15
addq %rbx, %r15
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
movq %r15, (%rax,%rcx,8)
movl 0xf0(%rsp), %eax
movq %r12, %rdx
incq %rbx
jmp 0xadd92
cmpq $0x0, (%rdx)
movq 0xe8(%rsp), %rbx
je 0xae1f8
pushq $0x1
popq %rsi
movq %rdx, %rdi
callq 0x68eff
movl 0xf0(%rsp), %eax
shlq $0x20, %rax
movq %rax, 0x40(%rsp)
xorl %r12d, %r12d
movl %r12d, %r12d
movq 0xd0(%rsp), %rcx
cmpq %r12, (%rcx)
jbe 0xae1f8
movq 0x10(%rcx), %rax
movq (%rax,%r12,8), %r9
movq 0x30(%rsp), %rdi
movq %r13, %rsi
movq %rcx, %r15
movq %rbx, %rdx
movq 0x100(%rsp), %rcx
movq 0x38(%rsp), %r8
movq %r9, 0x8(%rsp)
callq 0xacf42
movq 0x10(%r15), %rax
movq %r12, 0x48(%rsp)
movl 0x4(%rax,%r12,8), %ebx
movl 0xf0(%rsp), %eax
cmpl $0x35, %eax
jne 0xadea3
cmpl $0x0, 0x1a657b(%rip)    # 0x254418
jne 0xae1d0
movq %rbx, 0x50(%rsp)
movq 0xd8(%rsp), %rax
andq $0x0, (%rax)
xorl %edx, %edx
movq 0x8(%rsp), %r8
movl %edx, %eax
movq 0xe0(%rsp), %rcx
cmpq %rax, (%rcx)
jbe 0xae085
movq %rdx, 0x18(%rsp)
movq 0x10(%rcx), %rdx
movl (%rdx,%rax,4), %eax
shrl %eax
movq 0x20(%r13), %rcx
cmpb $0x2, 0x4(%rcx,%rax,8)
jne 0xadef0
movq 0x18(%rsp), %rdx
incl %edx
jmp 0xadebb
movq 0x18(%rsp), %rsi
testl %esi, %esi
je 0xadf21
decl %esi
movl (%rdx,%rsi,4), %edx
shrl %edx
imulq $0x18, %rdx, %rsi
movq 0x28(%rsp), %rdi
addq %rdi, %rsi
cmpb $0x2, 0x4(%rcx,%rdx,8)
movl $0x0, %ecx
cmovneq %rsi, %rcx
movq %rcx, 0x10(%rsp)
jmp 0xadf2f
movq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rdi
imulq $0x18, %rax, %r15
addq %rdi, %r15
pushq $0xc
popq %rbx
xorl %ebp, %ebp
movl 0xc(%r15), %eax
cmpq %rax, %rbp
jae 0xadee7
movq (%r15), %rax
movl (%rax,%rbx), %esi
movq 0x20(%r13), %rdx
cmpl $0x0, (%rdx,%rsi,8)
movq (%r14), %rcx
movq %rsi, %rax
js 0xadfce
cmpq %rax, %rcx
jbe 0xadf7a
movq 0x8(%r14), %rcx
movl (%rcx,%rax,4), %edx
cmpl $-0x1, %edx
je 0xadf7a
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
testl %edx, %edx
setns %dl
jmp 0xadf7f
xorl %edx, %edx
pushq $-0x1
popq %rcx
cmpl %r8d, %ecx
jne 0xae079
testb %dl, %dl
jne 0xae079
cmpl $-0x1, %ecx
je 0xae079
movq 0x58(%rsp), %rcx
movl (%rcx,%rax,4), %r12d
movq 0x10(%rsp), %rdi
callq 0xc3c2e
movq 0xd8(%rsp), %rdi
cmpl $-0x1, %eax
je 0xadff7
pushq $-0x1
popq %rsi
movl %r12d, %edx
callq 0xc3c57
movq 0x8(%rsp), %r8
jmp 0xae079
cmpq %rsi, %rcx
jbe 0xae079
movq 0x8(%r14), %rax
movslq (%rax,%rsi,4), %rax
testq %rax, %rax
js 0xae079
cmpl $0x0, (%rdx,%rax,8)
jns 0xadf5a
jmp 0xae079
movq 0x18(%rsp), %rsi
movl %r12d, %edx
callq 0xc3c57
testl %eax, %eax
movq 0x8(%rsp), %r8
jne 0xae079
movq 0xd8(%rsp), %rdi
movq (%rdi), %rcx
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rcx
jne 0xae054
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdi)
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x2370
movq 0xd8(%rsp), %rdi
movq 0x8(%rsp), %r8
movq %rax, 0x10(%rdi)
movq (%rdi), %rcx
movq 0x18(%rsp), %rsi
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
shlq $0x4, %rcx
movl %esi, (%rax,%rcx)
movl %r12d, 0x4(%rax,%rcx)
movl %r8d, 0x8(%rax,%rcx)
movl $0x1, 0xc(%rax,%rcx)
incq %rbp
addq $0x28, %rbx
jmp 0xadf3b
movq 0xd8(%rsp), %rbx
movq %rbx, %rdi
callq 0xc3cc3
movq 0x8(%rsp), %rcx
movq (%rbx), %rsi
testq %rsi, %rsi
movss 0x24(%rsp), %xmm0
movq 0x28(%rsp), %r12
movl 0xf0(%rsp), %ebp
je 0xae1bb
leal -0x1(%rsi), %r15d
shlq $0x4, %r15
movq %rsi, 0x10(%rsp)
movq 0x10(%rbx), %rdi
addq %r15, %rdi
xorl %esi, %esi
movl %ebp, %edx
movq 0xe0(%rsp), %r8
movq 0xe8(%rsp), %r9
movq 0x50(%rsp), %rbx
pushq %rbx
pushq %r14
pushq %r13
pushq %r12
callq 0xad283
addq $0x20, %rsp
testl %eax, %eax
je 0xae164
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rdi
addq %r15, %rdi
pushq $0x1
popq %rsi
movl %ebp, %edx
movq 0x8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0xe8(%rsp), %r9
movss 0x24(%rsp), %xmm0
pushq %rbx
pushq %r14
pushq %r13
pushq %r12
callq 0xad283
addq $0x20, %rsp
testl %eax, %eax
je 0xae164
movq 0x10(%rsp), %rsi
decl %esi
addq $-0x10, %r15
testl %esi, %esi
movss 0x24(%rsp), %xmm0
movq 0xd8(%rsp), %rbx
movq 0x8(%rsp), %rcx
jne 0xae0c0
jmp 0xae1bb
cmpl $0x0, 0x10(%rsp)
je 0xae1bb
movq 0x108(%rsp), %rdi
callq 0x6c45d
movq 0x8(%rsp), %rdx
andl $0x0, 0xc(%rax)
movq 0x40(%rsp), %rcx
movq %rcx, (%rax)
movl %edx, 0x8(%rax)
cmpl $0x0, 0x110(%rsp)
je 0xae1bb
movq 0x108(%rsp), %rdi
movq %rdx, %rbx
callq 0x6c45d
andl $0x0, 0xc(%rax)
shlq $0x20, %rbx
movq %rbx, (%rax)
movl 0xf0(%rsp), %ecx
movl %ecx, 0x8(%rax)
movq 0x48(%rsp), %r12
incl %r12d
movq 0xe8(%rsp), %rbx
jmp 0xade3b
movq 0x1a4e09(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x13c101(%rip), %rsi    # 0x1ea2e2
pushq $0x35
popq %rdx
movq 0x8(%rsp), %rcx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x22b0
jmp 0xadea3
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq