// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: adjust_utg_by_trio(ma_ug_t**, asg_t*, unsigned char, float, ma_hit_t_alloc*, ma_hit_t_alloc*, ma_sub_t*, long long, float, long long, R_to_U*, float, float, int, int, int, kvec_asg_arc_t_warp*, bub_label_t*)
void adjust_utg_by_trio(ma_ug_t **ug, asg_t* read_g, uint8_t flag, float drop_rate,
ma_hit_t_alloc* sources, ma_hit_t_alloc* reverse_sources, ma_sub_t* coverage_cut, 
long long tipsLen, float tip_drop_ratio, long long stops_threshold, 
R_to_U* ruIndex, float chimeric_rate, float drop_ratio, int max_hang, int min_ovlp, int gap_fuzz,
kvec_asg_arc_t_warp* new_rtg_edges, bub_label_t* b_mask_t)
{
    asg_t* nsg = (*ug)->g;
    uint32_t v, n_vtx = nsg->n_seq;    
    hap_cov_t *cov = init_hap_cov_t(*ug, read_g, sources, ruIndex, reverse_sources, 
                                                    coverage_cut, max_hang, min_ovlp, asm_opt.purge_level_trio>0?1:0);
    if(cov->t_ch) cov->t_ch->ir_het = cov->is_r_het;

    if(asm_opt.recover_atg_cov_min == -1024)
    {
        asm_opt.recover_atg_cov_max = (asm_opt.hom_global_coverage_set?
            (asm_opt.hom_global_coverage):(((double)asm_opt.hom_global_coverage)/((double)HOM_PEAK_RATE)));         
        asm_opt.recover_atg_cov_min = asm_opt.recover_atg_cov_max * 0.85;
        asm_opt.recover_atg_cov_max = INT32_MAX;
    }
    if(asm_opt.recover_atg_cov_max != INT32_MAX)
    {
        fprintf(stderr, "[M::%s] primary contig coverage range: [%d, %d]\n", 
        __func__, asm_opt.recover_atg_cov_min, asm_opt.recover_atg_cov_max);
    }
    else
    {
        fprintf(stderr, "[M::%s] primary contig coverage range: [%d, infinity]\n", 
        __func__, asm_opt.recover_atg_cov_min);
    }

    // fprintf(stderr, "[M::%s] 0\n", __func__); dbg_asys_gfa((*ug)->g);
    adjust_utg_advance(read_g, (*ug), reverse_sources, ruIndex, b_mask_t, cov->is_r_het);
    // fprintf(stderr, "[M::%s] 1\n", __func__); dbg_asys_gfa((*ug)->g);

    ///primary_flag = get_utg_attributes(*ug, read_g, coverage_cut, sources, ruIndex);
    update_unitig_graph((*ug), read_g, coverage_cut, sources, reverse_sources, ruIndex, cov->is_r_het, 0, 
    DOUBLE_CHECK_THRES, flag, drop_rate);
    // fprintf(stderr, "[M::%s] 2\n", __func__); dbg_asys_gfa((*ug)->g);

    nsg = (*ug)->g;
    n_vtx = nsg->n_seq;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(nsg->seq[v].del) continue;
        nsg->seq[v].c = PRIMARY_LABLE;
        EvaluateLen((*ug)->u, v) = (*ug)->u.a[v].n;
    }
    // fprintf(stderr, "[M::%s] 3\n", __func__);
    clean_trio_untig_graph(*ug, read_g, coverage_cut, sources, reverse_sources, tipsLen, 
    tip_drop_ratio, stops_threshold, ruIndex, NULL, NULL, 0, 0, 0, chimeric_rate, 0, 0, drop_ratio, flag, drop_rate, max_hang, min_ovlp, gap_fuzz, cov, new_rtg_edges);
    // fprintf(stderr, "[M::%s] 4\n", __func__);
    
    ///delete_useless_nodes(ug);
    delete_useless_trio_nodes(ug, read_g, coverage_cut, sources, ruIndex, flag, 0.8, 0.15, 16);
    // fprintf(stderr, "[M::%s] 5\n", __func__);

    update_hap_label(*ug, read_g);
    // fprintf(stderr, "[M::%s] 6\n", __func__);

    update_unitig_graph((*ug), read_g, coverage_cut, sources, reverse_sources, ruIndex, cov->is_r_het, 0, 
    DOUBLE_CHECK_THRES, flag, drop_rate);
    // fprintf(stderr, "[M::%s] 7\n", __func__);

    force_trio_clean((*ug), read_g, coverage_cut, sources, reverse_sources, ruIndex, flag, 0.55, 0.01, 5);
    // fprintf(stderr, "[M::%s] 8\n", __func__);
    ///if(flag == MOTHER) print_debug_gfa(read_g, *ug, coverage_cut, "debug_trio_1", sources, ruIndex, asm_opt.max_hang_Len, asm_opt.min_overlap_Len);

    renew_utg(ug, read_g, new_rtg_edges);
    // fprintf(stderr, "[M::%s] 9\n", __func__);

    if (!(asm_opt.flag & HA_F_BAN_POST_JOIN))
    {
        rescue_missing_overlaps_aggressive(*ug, read_g, sources, coverage_cut, ruIndex, max_hang,
        min_ovlp, 0, 1, NULL, b_mask_t);
        // fprintf(stderr, "[M::%s] 10\n", __func__);

        renew_utg(ug, read_g, new_rtg_edges);
        // fprintf(stderr, "[M::%s] 11\n", __func__);

        rescue_contained_reads_aggressive(*ug, read_g, sources, coverage_cut, ruIndex, max_hang, 
        min_ovlp, 10, 0, 1, NULL, NULL, b_mask_t);
        // fprintf(stderr, "[M::%s] 12\n", __func__);

        renew_utg(ug, read_g, new_rtg_edges);
        // fprintf(stderr, "[M::%s] 13\n", __func__);
    }

    ///if(flag == MOTHER) print_untig_by_read(*ug, "m64043_200627_000137/124716590/ccs", 2789716, NULL, NULL, "beg");
    
    
    update_unitig_graph((*ug), read_g, coverage_cut, sources, reverse_sources, ruIndex, cov->is_r_het, 1, 
    FINAL_DOUBLE_CHECK_THRES, flag, drop_rate);
    // fprintf(stderr, "[M::%s] 14\n", __func__);

    update_hap_label(NULL, read_g);
    // fprintf(stderr, "[M::%s] 15\n", __func__);

    renew_utg(ug, read_g, new_rtg_edges);
    // fprintf(stderr, "[M::%s] 16\n", __func__);

    ///delete_useless_nodes(ug);
    delete_useless_trio_nodes(ug, read_g, coverage_cut, sources, ruIndex, flag, 0.8, 0.15, 16);
    // fprintf(stderr, "[M::%s] 17\n", __func__);


    if(asm_opt.purge_level_trio == 1)
    {
		purge_dups(*ug, read_g, coverage_cut, sources, reverse_sources, ruIndex, new_rtg_edges, 
        asm_opt.purge_simi_thres, asm_opt.purge_overlap_len, max_hang, min_ovlp, drop_ratio, 1, 0, 
        cov, 0, 0);
		///delete_useless_nodes(ug);
        delete_useless_trio_nodes(ug, read_g, coverage_cut, sources, ruIndex, flag, 0.8, 0.15, 16);
	}
    // fprintf(stderr, "[M::%s] 18\n", __func__);

    if(asm_opt.max_contig_tip > 0) {
        discard_small_ctg(ug, read_g, new_rtg_edges, asm_opt.max_contig_tip, 1, 0);
    }    

    // fprintf(stderr, "[M::%s] 19\n", __func__);
    set_drop_trio_flag(*ug);
    destory_hap_cov_t(&cov);
    // fprintf(stderr, "[M::%s] 20\n", __func__);
    // purge_dump(*ug);
    renew_utg(ug, read_g, new_rtg_edges);
    // fprintf(stderr, "[M::%s] 21\n", __func__);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movb %dl, %al
movq 0x48(%rbp), %rdx
movq 0x40(%rbp), %rdx
movl 0x38(%rbp), %edx
movl 0x30(%rbp), %edx
movl 0x28(%rbp), %edx
movq 0x20(%rbp), %rdx
movq 0x18(%rbp), %rdx
movq 0x10(%rbp), %rdx
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movb %al, -0x39(%rbp)
movss %xmm0, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movss %xmm1, -0x5c(%rbp)
movss %xmm2, -0x60(%rbp)
movss %xmm3, -0x64(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x78(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x20(%rbp), %rcx
movq -0x50(%rbp), %r8
movq -0x58(%rbp), %r9
movl 0x28(%rbp), %r11d
movl 0x30(%rbp), %r10d
leaq 0x2a3e02(%rip), %rax    # 0x3c47f8
movl 0x134(%rax), %r14d
xorl %eax, %eax
movl $0x1, %ebx
cmpl $0x0, %r14d
cmovgl %ebx, %eax
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x121100
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x120a49
movq -0x80(%rbp), %rax
movq 0xa0(%rax), %rcx
movq -0x80(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rcx, 0x10(%rax)
leaq 0x2a3da8(%rip), %rax    # 0x3c47f8
cmpl $0xfffffc00, 0x13c(%rax) # imm = 0xFFFFFC00
jne 0x120b02
leaq 0x2a3d91(%rip), %rax    # 0x3c47f8
cmpl $0x0, 0x148(%rax)
je 0x120a89
leaq 0x2a3d81(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x144(%rax), %xmm0
movsd %xmm0, -0x88(%rbp)
jmp 0x120aac
leaq 0x2a3d68(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x144(%rax), %xmm0
movsd 0x265da0(%rip), %xmm1   # 0x386840
divsd %xmm1, %xmm0
movsd %xmm0, -0x88(%rbp)
movsd -0x88(%rbp), %xmm0
cvttsd2si %xmm0, %ecx
leaq 0x2a3d39(%rip), %rax    # 0x3c47f8
movl %ecx, 0x140(%rax)
leaq 0x2a3d2c(%rip), %rax    # 0x3c47f8
cvtsi2sdl 0x140(%rax), %xmm0
movsd 0x265d8c(%rip), %xmm1   # 0x386868
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
leaq 0x2a3d0d(%rip), %rax    # 0x3c47f8
movl %ecx, 0x13c(%rax)
leaq 0x2a3d00(%rip), %rax    # 0x3c47f8
movl $0x7fffffff, 0x140(%rax) # imm = 0x7FFFFFFF
leaq 0x2a3cef(%rip), %rax    # 0x3c47f8
cmpl $0x7fffffff, 0x140(%rax) # imm = 0x7FFFFFFF
je 0x120b51
movq 0x2a34c4(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2a3cd2(%rip), %rax    # 0x3c47f8
movl 0x13c(%rax), %ecx
leaq 0x2a3cc5(%rip), %rax    # 0x3c47f8
movl 0x140(%rax), %r8d
leaq 0x267727(%rip), %rsi    # 0x388268
leaq 0x267751(%rip), %rdx    # 0x388299
movb $0x0, %al
callq 0x22a0
jmp 0x120b7d
movq 0x2a3488(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0x2a3c96(%rip), %rax    # 0x3c47f8
movl 0x13c(%rax), %ecx
leaq 0x26773d(%rip), %rsi    # 0x3882ac
leaq 0x267723(%rip), %rdx    # 0x388299
movb $0x0, %al
callq 0x22a0
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rsi
movq -0x50(%rbp), %rdx
movq 0x20(%rbp), %rcx
movq 0x48(%rbp), %r8
movq -0x80(%rbp), %rax
movq 0xa0(%rax), %r9
callq 0x10e9e0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x20(%rbp), %r9
movq -0x80(%rbp), %rax
movq 0xa0(%rax), %r10
movb -0x39(%rbp), %al
movss -0x40(%rbp), %xmm1
xorl %r11d, %r11d
movss 0x265cbb(%rip), %xmm0   # 0x386898
movq %r10, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %al, %eax
movl %eax, 0x10(%rsp)
callq 0x11ea80
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x78(%rbp)
movl $0x0, -0x74(%rbp)
movl -0x74(%rbp), %eax
cmpl -0x78(%rbp), %eax
jae 0x120c85
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x74(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x120c3a
jmp 0x120c7a
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x74(%rbp), %ecx
movb $0x0, 0x4(%rax,%rcx,8)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl -0x74(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movl -0x74(%rbp), %edx
imulq $0x28, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movl -0x74(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x120c1a
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x10(%rbp), %r9
movss -0x5c(%rbp), %xmm0
movq 0x18(%rbp), %r13
movq 0x20(%rbp), %r12
movss -0x60(%rbp), %xmm2
movss -0x64(%rbp), %xmm3
movzbl -0x39(%rbp), %r15d
movss -0x40(%rbp), %xmm4
movl 0x28(%rbp), %r14d
movl 0x30(%rbp), %ebx
movl 0x38(%rbp), %r11d
movq -0x80(%rbp), %r10
movq 0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
xorl %eax, %eax
xorps %xmm1, %xmm1
xorl %eax, %eax
movq -0x90(%rbp), %rax
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movl $0x0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movl %r15d, 0x40(%rsp)
movl %r14d, 0x48(%rsp)
movl %ebx, 0x50(%rsp)
movl %r11d, 0x58(%rsp)
movq %r10, 0x60(%rsp)
movq %rax, 0x68(%rsp)
callq 0x11c260
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq 0x20(%rbp), %r8
movzbl -0x39(%rbp), %r9d
movss 0x25e321(%rip), %xmm0   # 0x37f088
movss 0x265b31(%rip), %xmm1   # 0x3868a0
movl $0x10, (%rsp)
callq 0x11fef0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x1200e0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x20(%rbp), %r9
movq -0x80(%rbp), %rax
movq 0xa0(%rax), %r10
movb -0x39(%rbp), %al
movss -0x40(%rbp), %xmm1
xorl %r11d, %r11d
movss 0x265ad4(%rip), %xmm0   # 0x386898
movq %r10, (%rsp)
movl $0x0, 0x8(%rsp)
movzbl %al, %eax
movl %eax, 0x10(%rsp)
callq 0x11ea80
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x20(%rbp), %r9
movss 0x25e281(%rip), %xmm0   # 0x37f080
movss 0x265aa1(%rip), %xmm1   # 0x3868a8
movzbl -0x39(%rbp), %eax
movl %eax, (%rsp)
movl $0x5, 0x8(%rsp)
callq 0x11ee90
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
callq 0xf6030
leaq 0x2a39c5(%rip), %rax    # 0x3c47f8
movl (%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
jne 0x120f16
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq 0x20(%rbp), %r8
movl 0x28(%rbp), %r9d
movl 0x30(%rbp), %r10d
movq 0x48(%rbp), %rax
xorl %r11d, %r11d
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x121a30
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
callq 0xf6030
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq 0x20(%rbp), %r8
movl 0x28(%rbp), %r9d
movl 0x30(%rbp), %r10d
movq 0x48(%rbp), %rax
xorl %r11d, %r11d
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0xa, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x1, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x1228e0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
callq 0xf6030
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x20(%rbp), %r9
movq -0x80(%rbp), %rax
movq 0xa0(%rax), %r10
movb -0x39(%rbp), %al
movss -0x40(%rbp), %xmm1
movss 0x25e120(%rip), %xmm0   # 0x37f06c
movq %r10, (%rsp)
movl $0x1, 0x8(%rsp)
movzbl %al, %eax
movl %eax, 0x10(%rsp)
callq 0x11ea80
movq -0x38(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edi
callq 0x1200e0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
callq 0xf6030
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq 0x20(%rbp), %r8
movzbl -0x39(%rbp), %r9d
movss 0x25e0e5(%rip), %xmm0   # 0x37f088
movss 0x2658f5(%rip), %xmm1   # 0x3868a0
movl $0x10, (%rsp)
callq 0x11fef0
leaq 0x2a383a(%rip), %rax    # 0x3c47f8
cmpl $0x1, 0x134(%rax)
jne 0x12108b
movq -0x30(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0x50(%rbp), %r8
movq 0x20(%rbp), %r9
movq 0x40(%rbp), %r14
leaq 0x2a3807(%rip), %rax    # 0x3c47f8
movss 0x16c(%rax), %xmm0
leaq 0x2a37f8(%rip), %rax    # 0x3c47f8
movl 0x138(%rax), %ebx
movl 0x28(%rbp), %r11d
movl 0x30(%rbp), %r10d
movss -0x64(%rbp), %xmm1
movq -0x80(%rbp), %rax
xorl %r15d, %r15d
movq %r14, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl $0x1, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movl $0x0, 0x40(%rsp)
callq 0x184ac0
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq 0x20(%rbp), %r8
movzbl -0x39(%rbp), %r9d
movss 0x25e011(%rip), %xmm0   # 0x37f088
movss 0x265821(%rip), %xmm1   # 0x3868a0
movl $0x10, (%rsp)
callq 0x11fef0
leaq 0x2a3766(%rip), %rax    # 0x3c47f8
cmpl $0x0, 0x124(%rax)
jle 0x1210c2
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
leaq 0x2a374a(%rip), %rax    # 0x3c47f8
movl 0x124(%rax), %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x1207f0
movq -0x30(%rbp), %rax
movq (%rax), %rdi
callq 0x11e970
leaq -0x80(%rbp), %rdi
callq 0x10c960
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq 0x40(%rbp), %rdx
callq 0xf6030
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)