// File: 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
movq %rsp, %rbp
subq $0xd0, %rsp
movq 0x70(%rbp), %rax
movq 0x68(%rbp), %rax
movl 0x60(%rbp), %eax
movl 0x58(%rbp), %eax
movq 0x50(%rbp), %rax
movq 0x48(%rbp), %rax
movq 0x40(%rbp), %rax
movq 0x38(%rbp), %rax
movl 0x30(%rbp), %eax
movl 0x28(%rbp), %eax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movl $0x0, -0xa8(%rbp)
movl $0x0, -0xac(%rbp)
movq 0x70(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0x68(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
cmpl $0x1, 0x58(%rbp)
jne 0x172aa1
movq 0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq 0x38(%rbp), %rax
jl 0x172a9c
movq -0x10(%rbp), %rax
movq 0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x38(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x21, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0xa8(%rbp)
movl $0x0, -0xac(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movl 0xc(%rcx), %ecx
cmpq %rcx, %rax
jge 0x172a7b
movq -0x50(%rbp), %rax
movq (%rax), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq -0x58(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
movl %ecx, %ecx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq -0x58(%rbp), %rcx
movl 0xc(%rcx), %ecx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movl (%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x17278a
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x58(%rbp), %rcx
movl 0xc(%rcx), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x17278f
jmp 0x172a6a
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x4(%rax), %esi
movq -0x60(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %esi
movq -0x68(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x68(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %edx
movl -0x2c(%rbp), %ecx
leaq 0x252033(%rip), %rax    # 0x3c47f8
movss 0x158(%rax), %xmm0
movl 0x10(%rbp), %r8d
leaq -0x88(%rbp), %r9
callq 0x172eb0
movl %eax, -0x6c(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0x1727eb
jmp 0x172a6a
movl -0x80(%rbp), %eax
shrl %eax
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x8c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x1, %eax
jne 0x172814
jmp 0x172a6a
movq -0x8(%rbp), %rdi
movl -0x8c(%rbp), %esi
leaq -0x90(%rbp), %rdx
leaq -0x94(%rbp), %rcx
callq 0xd3d50
cmpl $0x0, -0x94(%rbp)
je 0x172843
cmpl $-0x1, -0x90(%rbp)
jne 0x172848
jmp 0x172a6a
movl -0x90(%rbp), %eax
cmpl 0x30(%rbp), %eax
je 0x172858
jmp 0x172a6a
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x98(%rbp)
movq -0x8(%rbp), %rdi
movl -0x98(%rbp), %esi
shrl %esi
leaq -0x90(%rbp), %rdx
leaq -0x94(%rbp), %rcx
callq 0xd3d50
cmpl $0x0, -0x94(%rbp)
je 0x1728a3
cmpl $-0x1, -0x90(%rbp)
jne 0x1728a8
jmp 0x172a6a
movl -0x90(%rbp), %eax
cmpl 0x28(%rbp), %eax
je 0x1728b8
jmp 0x172a6a
movq -0x28(%rbp), %rax
movl -0x98(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
cmpq -0x38(%rbp), %rax
je 0x1728d7
jmp 0x172a6a
movq 0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x28(%rbp), %rcx
movl -0x8c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x9c(%rbp)
movq -0x88(%rbp), %rdx
shrq $0x20, %rdx
movl -0x98(%rbp), %eax
movl %eax, %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0xa0(%rbp)
movl -0x80(%rbp), %edx
movl -0x9c(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movl %eax, -0xa4(%rbp)
cmpl $0x0, 0x60(%rbp)
jne 0x172957
movl -0xa0(%rbp), %eax
cmpl -0xa4(%rbp), %eax
je 0x172957
jmp 0x172a6a
cmpl $0x1, 0x60(%rbp)
jne 0x172970
movl -0xa0(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jne 0x172970
jmp 0x172a6a
movq -0x28(%rbp), %rax
movl -0x8c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq 0x48(%rbp), %rax
jl 0x172998
movq -0x48(%rbp), %rax
cmpq 0x50(%rbp), %rax
jle 0x17299d
jmp 0x172a6a
movq -0x20(%rbp), %rdi
movl -0x98(%rbp), %edx
movl -0x9c(%rbp), %ecx
movq 0x18(%rbp), %rax
movl (%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq 0x20(%rbp), %rax
movl (%rax), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movq -0x28(%rbp), %r10
leaq -0x88(%rbp), %rax
addq $0x12, %rax
leaq -0x88(%rbp), %rsi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1859f0
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x172a15
movq -0xb8(%rbp), %rax
cmpl $-0x1, %eax
jne 0x172a17
jmp 0x172a6a
cmpl $0x0, -0xa8(%rbp)
je 0x172a30
movl -0x7c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl -0xac(%rbp), %eax
jbe 0x172a60
movq -0xb8(%rbp), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq 0x68(%rbp), %rax
movl %ecx, (%rax)
movq -0xb8(%rbp), %rax
movl %eax, %ecx
movq 0x70(%rbp), %rax
movl %ecx, (%rax)
movl -0x7c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xac(%rbp)
movl $0x1, -0xa8(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x172709
cmpl $0x0, -0xa8(%rbp)
je 0x172a89
jmp 0x172e9c
jmp 0x172a8b
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x1726bc
jmp 0x172e88
movq 0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
cmpq 0x40(%rbp), %rax
jg 0x172e86
movq -0x10(%rbp), %rax
movq 0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x38(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x21, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl $0x0, -0xa8(%rbp)
movl $0x0, -0xac(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x50(%rbp), %rcx
movl 0xc(%rcx), %ecx
cmpq %rcx, %rax
jge 0x172e68
movq -0x50(%rbp), %rax
movq (%rax), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq -0x58(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
movl %ecx, %ecx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq -0x58(%rbp), %rcx
movl 0xc(%rcx), %ecx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movl (%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x172b77
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x58(%rbp), %rcx
movl 0xc(%rcx), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x172b7c
jmp 0x172e57
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x4(%rax), %esi
movq -0x60(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %esi
movq -0x68(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x68(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %edx
movl -0x2c(%rbp), %ecx
leaq 0x251c46(%rip), %rax    # 0x3c47f8
movss 0x158(%rax), %xmm0
movl 0x10(%rbp), %r8d
leaq -0x88(%rbp), %r9
callq 0x172eb0
movl %eax, -0x6c(%rbp)
cmpl $0x0, -0x6c(%rbp)
jge 0x172bd8
jmp 0x172e57
movl -0x80(%rbp), %eax
shrl %eax
movl %eax, -0x8c(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x8c(%rbp), %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x1, %eax
jne 0x172c01
jmp 0x172e57
movq -0x8(%rbp), %rdi
movl -0x8c(%rbp), %esi
leaq -0x90(%rbp), %rdx
leaq -0x94(%rbp), %rcx
callq 0xd3d50
cmpl $0x0, -0x94(%rbp)
je 0x172c30
cmpl $-0x1, -0x90(%rbp)
jne 0x172c35
jmp 0x172e57
movl -0x90(%rbp), %eax
cmpl 0x30(%rbp), %eax
je 0x172c45
jmp 0x172e57
movq 0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x38(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x98(%rbp)
movq -0x8(%rbp), %rdi
movl -0x98(%rbp), %esi
shrl %esi
leaq -0x90(%rbp), %rdx
leaq -0x94(%rbp), %rcx
callq 0xd3d50
cmpl $0x0, -0x94(%rbp)
je 0x172c90
cmpl $-0x1, -0x90(%rbp)
jne 0x172c95
jmp 0x172e57
movl -0x90(%rbp), %eax
cmpl 0x28(%rbp), %eax
je 0x172ca5
jmp 0x172e57
movq -0x28(%rbp), %rax
movl -0x98(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
cmpq -0x38(%rbp), %rax
je 0x172cc4
jmp 0x172e57
movq 0x20(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x28(%rbp), %rcx
movl -0x8c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x9c(%rbp)
movq -0x88(%rbp), %rdx
shrq $0x20, %rdx
movl -0x98(%rbp), %eax
movl %eax, %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rsi, %rdx
cmovel %ecx, %eax
movl %eax, -0xa0(%rbp)
movl -0x80(%rbp), %edx
movl -0x9c(%rbp), %esi
xorl %eax, %eax
movl $0x1, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movl %eax, -0xa4(%rbp)
cmpl $0x0, 0x60(%rbp)
jne 0x172d44
movl -0xa0(%rbp), %eax
cmpl -0xa4(%rbp), %eax
je 0x172d44
jmp 0x172e57
cmpl $0x1, 0x60(%rbp)
jne 0x172d5d
movl -0xa0(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jne 0x172d5d
jmp 0x172e57
movq -0x28(%rbp), %rax
movl -0x8c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq 0x48(%rbp), %rax
jl 0x172d85
movq -0x48(%rbp), %rax
cmpq 0x50(%rbp), %rax
jle 0x172d8a
jmp 0x172e57
movq -0x20(%rbp), %rdi
movl -0x98(%rbp), %edx
movl -0x9c(%rbp), %ecx
movq 0x18(%rbp), %rax
movl (%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq 0x20(%rbp), %rax
movl (%rax), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movq -0x28(%rbp), %r10
leaq -0x88(%rbp), %rax
addq $0x12, %rax
leaq -0x88(%rbp), %rsi
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1859f0
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
shrq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x172e02
movq -0xb8(%rbp), %rax
cmpl $-0x1, %eax
jne 0x172e04
jmp 0x172e57
cmpl $0x0, -0xa8(%rbp)
je 0x172e1d
movl -0x7c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl -0xac(%rbp), %eax
jbe 0x172e4d
movq -0xb8(%rbp), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq 0x68(%rbp), %rax
movl %ecx, (%rax)
movq -0xb8(%rbp), %rax
movl %eax, %ecx
movq 0x70(%rbp), %rax
movl %ecx, (%rax)
movl -0x7c(%rbp), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xac(%rbp)
movl $0x1, -0xa8(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x172af6
cmpl $0x0, -0xa8(%rbp)
je 0x172e73
jmp 0x172e9c
jmp 0x172e75
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x172aa9
jmp 0x172e88
movq 0x70(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0x68(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)