// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/hic.cpp
// Function: get_chain_weight_hic(bubble_type*, ma_ug_t*, buf_t*, unsigned int, unsigned int, kv_u_trans_t*, unsigned char*, unsigned char*, ma_ug_t*, kvec_t_u32_warp*, kvec_t_u32_warp*, unsigned int, unsigned int, kvec_t_u32_warp*, unsigned int*)
double get_chain_weight_hic(bubble_type* bub, ma_ug_t *bub_ug, buf_t* b, uint32_t v, uint32_t convex_source, 
kv_u_trans_t *ta, uint8_t* vis_flag, uint8_t* is_vis, ma_ug_t* ug, kvec_t_u32_warp* stack, 
kvec_t_u32_warp* result, uint32_t e_flag, uint32_t ava_flag, kvec_t_u32_warp* res_utg, uint32_t* link_occ)
{
    long long nodeLen, baseLen, max_stop_nodeLen, max_stop_baseLen;
    ma_utg_t *u = NULL;
    uint32_t convex, k, k_i, k_j, *a, n, beg, sink, uID, root, cur, ncur, n_vx = ug->g->n_seq<<1, occ;
    asg_arc_t *acur = NULL;
    double w = 0;
    b->b.n = 0;
    get_unitig(bub_ug->g, NULL, v, &convex, &nodeLen, &baseLen, &max_stop_nodeLen, 
                                                                    &max_stop_baseLen, 1, b);
    memset(is_vis, 0, n_vx);

    for (k = 0; k < b->b.n; k++)
    {
        u = &(bub_ug->u.a[b->b.a[k]>>1]);
        if(u->n == 0) continue;

        for (k_i = 0; k_i < u->n; k_i++)
        {
            get_bubbles(bub, u->a[k_i]>>33, &beg, &sink, &a, &n, NULL);
            for(k_j = 0; k_j < n; k_j++) is_vis[a[k_j]] = is_vis[a[k_j]^1] = 1;
            if(beg != (uint32_t)-1) is_vis[beg] = is_vis[beg^1] = 1; 
            if(sink != (uint32_t)-1) is_vis[sink] = is_vis[sink^1] = 1; 
        }
    }

    u = &(bub_ug->u.a[v>>1]);
    if((v&1)==0)
    {
        get_bubbles(bub, (u->a[0]>>32)>>1, (((u->a[0]>>32)&1)^1)==1?&root:NULL, 
                                    (((u->a[0]>>32)&1)^1) == 0?&root:NULL, NULL, NULL, NULL);
    } 
    else
    {
        get_bubbles(bub, (u->a[u->n-1]>>32)>>1, ((u->a[u->n-1]>>32)&1)==1?&root:NULL, 
                                    ((u->a[u->n-1]>>32)&1) == 0?&root:NULL, NULL, NULL, NULL);
    }
    
    root ^= 1;
    is_vis[root] = 0; 
    stack->a.n = 0;
    kv_push(uint32_t, stack->a, root);
    while (stack->a.n > 0)///label all untigs not in any chain
    {
        stack->a.n--;
        cur = stack->a.a[stack->a.n];
        if(is_vis[cur]) continue;
        is_vis[cur] = 1;
        if(vis_flag[cur>>1] == 0) vis_flag[cur>>1] = ava_flag;///unitig not in any chain
       
        ncur = asg_arc_n(ug->g, cur);
        acur = asg_arc_a(ug->g, cur);
        for (k = 0; k < ncur; k++)
        {
            if(acur[k].del) continue;
            if(is_vis[acur[k].v]) continue;
            if(vis_flag[acur[k].v>>1] != 0 && vis_flag[acur[k].v>>1] != ava_flag) continue;
            kv_push(uint32_t, stack->a, acur[k].v);
        }
    }


    ///vis_flag keeps isloated nodes
    uint32_t aim_0, aim_1, root_source;
    aim_0 = root>>1;
    u = &(bub_ug->u.a[convex_source>>1]);
    if((convex_source&1)==1)
    {
        get_bubbles(bub, (u->a[0]>>32)>>1, (((u->a[0]>>32)&1)^1)==1?&root_source:NULL, 
                                    (((u->a[0]>>32)&1)^1) == 0?&root_source:NULL, NULL, NULL, NULL);
    } 
    else
    {
        get_bubbles(bub, (u->a[u->n-1]>>32)>>1, ((u->a[u->n-1]>>32)&1)==1?&root_source:NULL, 
                                    ((u->a[u->n-1]>>32)&1) == 0?&root_source:NULL, NULL, NULL, NULL);
    }
    root_source ^= 1;
    aim_1 = root_source>>1;


    cur = root_source;///scan nodes that cannot be reached from root but can be reached from root_source
    ncur = asg_arc_n(ug->g, cur);
    acur = asg_arc_a(ug->g, cur);
    for (k_i = 0; k_i < ncur; k_i++)
    {
        if(acur[k_i].del) continue;
        if(vis_flag[acur[k_i].v>>1] != 0) continue;///skip nodes that are already reachable
        ///don't label any path that can reack other chains
        if_conflict_utg(acur[k_i].v, &aim_0, &aim_1, ug, vis_flag, is_vis, ava_flag, stack);
    }


    for (k = 0; k < ug->g->n_seq; k++)
    {
        if(vis_flag[k] == ava_flag)
        {
            cur = k<<1;
            ncur = asg_arc_n(ug->g, cur);
            acur = asg_arc_a(ug->g, cur);
            for (k_i = 0; k_i < ncur; k_i++)
            {
                if(acur[k_i].del) continue;
                if(vis_flag[acur[k_i].v>>1] != 0) continue;
                if_conflict_utg(acur[k_i].v, &aim_0, &aim_1, ug, vis_flag, is_vis, ava_flag, stack);
            }



            cur = (k<<1)+1;
            ncur = asg_arc_n(ug->g, cur);
            acur = asg_arc_a(ug->g, cur);
            for (k_i = 0; k_i < ncur; k_i++)
            {
                if(acur[k_i].del) continue;
                if(vis_flag[acur[k_i].v>>1] != 0) continue;
                if_conflict_utg(acur[k_i].v, &aim_0, &aim_1, ug, vis_flag, is_vis, ava_flag, stack);
            }
        }
    }
    


    memset(is_vis, 0, n_vx);
    if(link_occ) (*link_occ) = 0;
    for (k = result->a.n = 0, w = 0; k < b->b.n; k++)
    {
        u = &(bub_ug->u.a[b->b.a[k]>>1]);
        if(u->n == 0) continue;
        for (k_i = 0; k_i < u->n; k_i++)
        {
            get_bubbles(bub, u->a[k_i]>>33, NULL, NULL, &a, &n, NULL);

            for (k_j = 0; k_j < n; k_j++)
            {
                uID = a[k_j]>>1;
                w += dfs_weight_hic(uID, vis_flag, is_vis, ta, stack, result, e_flag, ava_flag, &occ);
                if(link_occ) (*link_occ) += occ;
            }
        }
    }


    for (k = 0; k < ug->g->n_seq; k++)
    {
        if(vis_flag[k] == ava_flag)
        {
            vis_flag[k] = 0;
            if(res_utg && (!IF_HOM(k, *bub)))
            {
                kv_push(uint32_t, res_utg->a, k<<1);
            }
        }
    }

    return w;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, 0x48(%rsp)
movl %r8d, 0x8(%rsp)
movl %ecx, %r11d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbp
movq 0xc0(%rsp), %rax
movq 0xb8(%rsp), %r12
movq 0x18(%rax), %rax
movl 0x14(%rax), %r13d
addl %r13d, %r13d
movq $0x0, 0x38(%rdx)
movq 0x18(%rsi), %rdi
leaq 0x58(%rsp), %rax
leaq 0x60(%rsp), %r10
xorl %ebx, %ebx
leaq 0x54(%rsp), %rcx
leaq 0x70(%rsp), %r8
leaq 0x68(%rsp), %r9
xorl %esi, %esi
movl %r11d, 0x18(%rsp)
movl %r11d, %edx
pushq %r15
pushq $0x1
pushq %rax
pushq %r10
callq 0x10109f
addq $0x20, %rsp
movq %r12, %rdi
xorl %esi, %esi
movq %r13, 0x20(%rsp)
movq %r13, %rdx
callq 0x20e0
cmpq $0x0, 0x38(%r15)
je 0x15241e
movb $0x1, %al
movq 0x10(%r14), %rcx
movq 0x48(%r15), %rdx
movl (%rdx,%rbx,4), %edx
shrl %edx
leaq (%rdx,%rdx,4), %rdx
cmpl $0x0, 0x10(%rcx,%rdx,8)
je 0x152412
leaq (%rcx,%rdx,8), %rcx
cmpl $0x0, 0x10(%rcx)
je 0x152412
xorl %edx, %edx
movq 0x18(%rcx), %rsi
movq (%rsi,%rdx,8), %rsi
movq 0x28(%rbp), %r8
movq 0x40(%rbp), %rdi
shrq $0x21, %rsi
movl (%rdi,%rsi,4), %r10d
movl 0x4(%rdi,%rsi,4), %r9d
subl %r10d, %r9d
leal 0x1(%r10), %esi
movl (%r8,%r10,4), %edi
movl (%r8,%rsi,4), %esi
addl $-0x2, %r9d
je 0x1523db
leaq (%r8,%r10,4), %r8
movl %r9d, %r9d
xorl %r10d, %r10d
movl 0x8(%r8,%r10,4), %r11d
xorq $0x1, %r11
movb %al, (%r12,%r11)
movl 0x8(%r8,%r10,4), %r11d
movb %al, (%r12,%r11)
incq %r10
cmpq %r10, %r9
jne 0x1523bd
cmpl $-0x1, %edi
je 0x1523ef
movq %rdi, %r8
xorq $0x1, %r8
movb %al, (%r12,%r8)
movb %al, (%r12,%rdi)
cmpl $-0x1, %esi
je 0x152403
movq %rsi, %rdi
xorq $0x1, %rdi
movb %al, (%r12,%rdi)
movb %al, (%r12,%rsi)
incq %rdx
movl 0x10(%rcx), %esi
cmpq %rsi, %rdx
jb 0x152381
incl %ebx
cmpq %rbx, 0x38(%r15)
ja 0x152355
movq 0xc8(%rsp), %rdi
movabsq $0x100000000, %rsi      # imm = 0x100000000
movq 0x10(%r14), %rcx
movl 0x18(%rsp), %r8d
movl %r8d, %eax
shrl %eax
leaq (%rax,%rax,4), %rdx
movq 0x18(%rcx,%rdx,8), %rax
testb $0x1, %r8b
jne 0x152465
movq (%rax), %rcx
movq 0x40(%rbp), %rax
movq %rcx, %rdx
shrq $0x21, %rdx
movl (%rax,%rdx,4), %eax
btq $0x20, %rcx
jmp 0x152487
leaq (%rcx,%rdx,8), %rcx
movl 0x10(%rcx), %ecx
decl %ecx
movq (%rax,%rcx,8), %rax
movq %rax, %rcx
andq %rsi, %rcx
movq 0x40(%rbp), %rdx
shrq $0x21, %rax
movl (%rdx,%rax,4), %eax
cmpq $0x1, %rcx
adcl $0x0, %eax
movq %r14, 0x30(%rsp)
movq 0x28(%rbp), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %r14d
movq %r14, 0x18(%rsp)
xorq $0x1, %r14
movb $0x0, (%r12,%r14)
movq $0x0, (%rdi)
cmpq $0x0, 0x8(%rdi)
jne 0x1524df
movq $0x2, 0x8(%rdi)
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %rdi
movl $0x8, %esi
callq 0x2370
movq 0xc8(%rsp), %rdi
movq %rax, 0x10(%rdi)
movq (%rdi), %rcx
movq 0x10(%rdi), %rdx
movq %rcx, %rax
incq %rax
movq %rax, (%rdi)
movl %r14d, (%rdx,%rcx,4)
je 0x152626
leaq -0x1(%rax), %rcx
movq %rcx, (%rdi)
movq 0x10(%rdi), %rcx
movl -0x4(%rcx,%rax,4), %eax
movq %r12, %rbx
cmpb $0x0, (%r12,%rax)
jne 0x152617
movb $0x1, (%rbx,%rax)
movl %eax, %ecx
shrl %ecx
movq 0xb0(%rsp), %rdx
cmpb $0x0, (%rdx,%rcx)
jne 0x15253e
movl 0xe0(%rsp), %edx
movq 0xb0(%rsp), %rsi
movb %dl, (%rsi,%rcx)
movq 0xc0(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rdx
movq (%rdx,%rax,8), %rax
testl %eax, %eax
je 0x152617
movq 0x8(%rcx), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
movl %eax, %eax
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %r12
addq $0x8, %r12
shlq $0x3, %rax
leaq (%rax,%rax,2), %r13
xorl %r14d, %r14d
cmpl $0x0, 0x4(%r12,%r14)
js 0x15260a
movl (%r12,%r14), %eax
cmpb $0x0, (%rbx,%rax)
jne 0x15260a
shrl %eax
movq 0xb0(%rsp), %rcx
movzbl (%rcx,%rax), %eax
testl %eax, %eax
setne %cl
movl 0xe0(%rsp), %edx
cmpl %edx, %eax
setne %al
testb %al, %cl
jne 0x15260a
movq 0x8(%rdi), %rax
cmpq %rax, (%rdi)
jne 0x1525f5
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rdi)
movq 0xc8(%rsp), %rax
movq 0x10(%rax), %rdi
shlq $0x2, %rsi
callq 0x2370
movq 0xc8(%rsp), %rdi
movq %rax, 0x10(%rdi)
movl (%r12,%r14), %eax
movq (%rdi), %rcx
movq 0x10(%rdi), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rdi)
movl %eax, (%rdx,%rcx,4)
addq $0x18, %r14
cmpq %r14, %r13
jne 0x15257e
movq (%rdi), %rax
testq %rax, %rax
movq %rbx, %r12
jne 0x1524f9
movq %r15, 0x38(%rsp)
movq 0x18(%rsp), %rax
shrl %eax
movl %eax, 0x14(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x8(%rsp), %esi
movl %esi, %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %rdx
movq 0x18(%rax,%rdx,8), %rcx
testb $0x1, %sil
jne 0x152681
leaq (%rax,%rdx,8), %rax
movl 0x10(%rax), %eax
decl %eax
movq (%rcx,%rax,8), %rax
movabsq $0x100000000, %rdx      # imm = 0x100000000
andq %rax, %rdx
movq 0x40(%rbp), %rcx
shrq $0x21, %rax
movl (%rcx,%rax,4), %eax
cmpq $0x1, %rdx
jmp 0x152697
movq (%rcx), %rcx
movq 0x40(%rbp), %rax
movq %rcx, %rdx
shrq $0x21, %rdx
movl (%rax,%rdx,4), %eax
btq $0x20, %rcx
adcl $0x0, %eax
movq 0xc0(%rsp), %r13
movq 0x28(%rbp), %rcx
movl %eax, %eax
movl (%rcx,%rax,4), %eax
movq %rax, %rdx
xorq $0x1, %rdx
shrl %eax
movl %eax, 0x10(%rsp)
movq 0x18(%r13), %rcx
movq 0x28(%rcx), %rax
movq (%rax,%rdx,8), %rax
testl %eax, %eax
je 0x152743
movq 0x8(%rcx), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
movl %eax, %eax
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rbx
addq $0xc, %rbx
shlq $0x3, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
cmpl $0x0, (%rbx,%r15)
js 0x15273a
movl -0x4(%rbx,%r15), %edi
movl %edi, %eax
shrl %eax
movq 0xb0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x15273a
leaq 0x14(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rcx
movq 0xb0(%rsp), %r8
movq %r12, %r9
pushq 0xc8(%rsp)
movl 0xe8(%rsp), %eax
pushq %rax
callq 0x149e92
addq $0x10, %rsp
addq $0x18, %r15
cmpq %r15, %r14
jne 0x1526ec
movq 0x18(%r13), %rax
testl $0x7fffffff, 0x14(%rax) # imm = 0x7FFFFFFF
je 0x1528b8
xorl %edx, %edx
movq 0xb0(%rsp), %rcx
movq %rdx, 0x8(%rsp)
movzbl (%rcx,%rdx), %ecx
movl 0xe0(%rsp), %edx
cmpl %edx, %ecx
jne 0x15289a
movq 0x28(%rax), %rcx
movq 0x8(%rsp), %rdx
shlq $0x4, %rdx
movq (%rcx,%rdx), %rcx
testl %ecx, %ecx
je 0x152806
movq 0x8(%rax), %rax
movq %rcx, %rdx
shrq $0x20, %rdx
movl %ecx, %ecx
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %rbx
addq $0xc, %rbx
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %r14
xorl %r15d, %r15d
cmpl $0x0, (%rbx,%r15)
js 0x1527fd
movl -0x4(%rbx,%r15), %edi
movl %edi, %eax
shrl %eax
movq 0xb0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x1527fd
leaq 0x14(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rcx
movq 0xb0(%rsp), %r8
movq %r12, %r9
pushq 0xc8(%rsp)
movl 0xe8(%rsp), %eax
pushq %rax
callq 0x149e92
addq $0x10, %rsp
addq $0x18, %r15
cmpq %r15, %r14
jne 0x1527af
movq 0x8(%rsp), %rax
addq %rax, %rax
movq 0x18(%r13), %rcx
movq 0x28(%rcx), %rdx
movq 0x8(%rdx,%rax,8), %rax
testl %eax, %eax
je 0x15289a
movq 0x8(%rcx), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
movl %eax, %eax
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rbx
addq $0xc, %rbx
shlq $0x3, %rax
leaq (%rax,%rax,2), %r14
xorl %r15d, %r15d
cmpl $0x0, (%rbx,%r15)
js 0x152891
movl -0x4(%rbx,%r15), %edi
movl %edi, %eax
shrl %eax
movq 0xb0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x152891
leaq 0x14(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rcx
movq 0xb0(%rsp), %r8
movq %r12, %r9
pushq 0xc8(%rsp)
movl 0xe8(%rsp), %eax
pushq %rax
callq 0x149e92
addq $0x10, %rsp
addq $0x18, %r15
cmpq %r15, %r14
jne 0x152843
movq 0x8(%rsp), %rdx
incq %rdx
movq 0x18(%r13), %rax
movl 0x14(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rdx
jb 0x152756
movq 0xd0(%rsp), %rbx
movq %r12, %rdi
xorl %esi, %esi
movq 0x20(%rsp), %rdx
callq 0x20e0
movq 0xf0(%rsp), %rax
testq %rax, %rax
je 0x1528e2
movl $0x0, (%rax)
movq $0x0, (%rbx)
movq 0x38(%rsp), %rcx
cmpq $0x0, 0x38(%rcx)
je 0x152a1a
xorl %edx, %edx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x2c(%rsp), %r14
movq %rbp, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x48(%rcx), %rcx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0x10(%rax,%rcx,8)
movq %rdx, 0x40(%rsp)
je 0x1529fa
leaq (%rax,%rcx,8), %rcx
cmpl $0x0, 0x10(%rcx)
je 0x1529fa
xorl %r13d, %r13d
movq %rcx, 0x20(%rsp)
movq 0x18(%rcx), %rax
movq (%rax,%r13,8), %rax
movq 0x40(%rbp), %rdx
shrq $0x21, %rax
movl (%rdx,%rax,4), %ecx
movl 0x4(%rdx,%rax,4), %eax
subl %ecx, %eax
addl $-0x2, %eax
je 0x1529e1
movq 0x28(%rbp), %rdx
leaq (%rdx,%rcx,4), %r15
addq $0x8, %r15
movl %eax, %ebp
xorl %ebx, %ebx
movl (%r15,%rbx,4), %edi
shrl %edi
subq $0x8, %rsp
movq 0xb8(%rsp), %rsi
movq %r12, %rdx
movq 0x50(%rsp), %rcx
movq 0xd0(%rsp), %r8
pushq %r14
movl 0xf0(%rsp), %eax
pushq %rax
movl 0xf0(%rsp), %eax
pushq %rax
callq 0x1520a9
movq 0x110(%rsp), %rcx
addq $0x20, %rsp
testq %rcx, %rcx
je 0x1529c9
movl 0x2c(%rsp), %eax
addl %eax, (%rcx)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
incq %rbx
cmpq %rbx, %rbp
jne 0x152979
incq %r13
movq 0x20(%rsp), %rcx
movl 0x10(%rcx), %eax
cmpq %rax, %r13
movq 0x18(%rsp), %rbp
jb 0x15294b
movq 0x40(%rsp), %rdx
incl %edx
movq 0x38(%rsp), %rcx
cmpq %rdx, 0x38(%rcx)
movq 0xc0(%rsp), %r13
ja 0x15290f
jmp 0x152a24
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x18(%r13), %rax
testl $0x7fffffff, 0x14(%rax) # imm = 0x7FFFFFFF
je 0x152ae1
movq 0xe8(%rsp), %rbx
xorl %r14d, %r14d
movl $0x2, %r15d
xorl %r12d, %r12d
movq 0xb0(%rsp), %rax
movzbl (%rax,%r12), %eax
movl 0xe0(%rsp), %ecx
cmpl %ecx, %eax
jne 0x152ac5
movq 0xb0(%rsp), %rax
movb $0x0, (%rax,%r12)
testq %rbx, %rbx
je 0x152ac5
movq (%rbp), %rax
movq 0x80(%rbp), %rcx
movl (%rax,%r12,4), %eax
incq %rcx
cmpq %rax, %rcx
jb 0x152ac5
movq 0x8(%rbx), %rax
cmpq %rax, (%rbx)
jne 0x152ab3
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r15, %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movl %r14d, (%rcx,%rax,4)
incq %r12
movq 0x18(%r13), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl $0x2, %r14d
cmpq %rax, %r12
jb 0x152a49
movsd 0x8(%rsp), %xmm0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq