// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/hic.cpp
// Function: get_chain_weight(bubble_type*, ma_ug_t*, buf_t*, unsigned int, unsigned int, hc_links*, 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(bubble_type* bub, ma_ug_t *bub_ug, buf_t* b, uint32_t v, uint32_t convex_source, hc_links* link, 
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;
    ///fprintf(stderr, "root=utg%.6dl\n", (root>>1)+1);
    is_vis[root] = 0; 
    stack->a.n = 0;
    kv_push(uint32_t, stack->a, root);
    while (stack->a.n > 0)
    {
        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;
       
        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);
        }
    }



    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;

    ///fprintf(stderr, "aim_0=utg%.6ul, aim_1=utg%.6ul\n", aim_0+1, aim_1+1);

    cur = 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;
        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(uID, vis_flag, is_vis, link, 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 $0x88, %rsp
movq %r9, %r12
movl %r8d, 0x28(%rsp)
movl %ecx, %r11d
movq %rdx, %r14
movq %rdi, %rbp
movq 0x100(%rsp), %rbx
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %r15d
andq $0x0, 0x38(%rdx)
movq 0xc8(%rsp), %r13
addl %r15d, %r15d
movq %rsi, 0x40(%rsp)
movq 0x18(%rsi), %rdi
leaq 0x68(%rsp), %rax
leaq 0x70(%rsp), %r10
leaq 0x64(%rsp), %rcx
leaq 0x80(%rsp), %r8
leaq 0x78(%rsp), %r9
xorl %esi, %esi
movl %r11d, 0x54(%rsp)
movl %r11d, %edx
pushq %r14
pushq $0x1
pushq %rax
pushq %r10
callq 0xc2ebf
addq $0x20, %rsp
movq %r13, %rdi
xorl %esi, %esi
movq %r15, 0x30(%rsp)
movq %r15, %rdx
callq 0x20e0
movq %rbp, %rdi
xorl %ecx, %ecx
movb $0x1, %r15b
movq %r14, 0x38(%rsp)
movq %rbp, 0x20(%rsp)
movl %ecx, %ecx
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
cmpq %rcx, 0x38(%r14)
jbe 0x10841c
movq 0x48(%r14), %rax
movq %rcx, 0x8(%rsp)
movl (%rax,%rcx,4), %eax
shrl %eax
imulq $0x28, %rax, %rcx
movl 0x10(%rsi,%rcx), %eax
testl %eax, %eax
je 0x10840b
addq %rcx, %rsi
xorl %r14d, %r14d
movl %eax, %eax
cmpq %rax, %r14
jae 0x10840b
movq %rsi, %rbp
movq 0x18(%rsi), %rax
movq (%rax,%r14,8), %rsi
shrq $0x21, %rsi
subq $0x8, %rsp
leaq 0x68(%rsp), %rdx
leaq 0x64(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x24(%rsp), %r9
pushq $0x0
callq 0xf6ab5
addq $0x10, %rsp
movl 0x1c(%rsp), %eax
movq 0x48(%rsp), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x1083bf
movl (%rcx,%rdx,4), %esi
xorq $0x1, %rsi
movb %r15b, (%r13,%rsi)
movl (%rcx,%rdx,4), %esi
movb %r15b, (%r13,%rsi)
incq %rdx
jmp 0x1083a1
movl 0x60(%rsp), %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rdx, %rax
je 0x1083de
movq %rax, %rcx
xorq $0x1, %rcx
movb %r15b, (%r13,%rcx)
movb %r15b, (%r13,%rax)
movl 0x5c(%rsp), %eax
cmpq %rdx, %rax
movq %rbp, %rsi
movq 0x20(%rsp), %rdi
je 0x108400
movq %rax, %rcx
xorq $0x1, %rcx
movb %r15b, (%r13,%rcx)
movb %r15b, (%r13,%rax)
incq %r14
movl 0x10(%rsi), %eax
jmp 0x108359
movq 0x8(%rsp), %rcx
incl %ecx
movq 0x38(%rsp), %r14
jmp 0x108320
movabsq $0x100000000, %rdi      # imm = 0x100000000
movl 0x54(%rsp), %edx
movl %edx, %eax
shrl %eax
imulq $0x28, %rax, %rcx
movq 0x18(%rsi,%rcx), %rax
testb $0x1, %dl
jne 0x108456
movq (%rax), %rcx
movq %rcx, %rsi
shrq $0x21, %rsi
xorl %edx, %edx
andq %rdi, %rcx
leaq 0x4(%rsp), %rax
cmoveq %rax, %rdx
jmp 0x108477
addq %rcx, %rsi
movl 0x10(%rsi), %ecx
decl %ecx
movq (%rax,%rcx,8), %rdx
movq %rdx, %rsi
shrq $0x21, %rsi
xorl %eax, %eax
andq %rdi, %rdx
leaq 0x4(%rsp), %rcx
cmovneq %rcx, %rdx
cmovneq %rax, %rcx
subq $0x8, %rsp
movq 0x28(%rsp), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0xf6ab5
popq %rax
popq %rcx
movl 0x4(%rsp), %ecx
xorq $0x1, %rcx
movl %ecx, 0x4(%rsp)
movb $0x0, (%r13,%rcx)
movq 0xd8(%rsp), %rdi
andq $0x0, (%rdi)
cmpq $0x0, 0x8(%rdi)
je 0x1084c0
movq 0x10(%rdi), %rax
xorl %esi, %esi
jmp 0x1084ef
movq $0x2, 0x8(%rdi)
movq 0xd8(%rsp), %rax
movq 0x10(%rax), %rdi
pushq $0x8
popq %rsi
callq 0x2370
movq 0xd8(%rsp), %rdi
movq %rax, 0x10(%rdi)
movl 0x4(%rsp), %ecx
movq (%rdi), %rsi
leaq 0x1(%rsi), %rdx
movq %rdx, (%rdi)
movl %ecx, (%rax,%rsi,4)
testq %rdx, %rdx
je 0x108612
leaq -0x1(%rdx), %rcx
movq %rcx, (%rdi)
movq 0x10(%rdi), %rax
movl -0x4(%rax,%rdx,4), %eax
cmpb $0x0, (%r13,%rax)
movq %rcx, %rdx
jne 0x1084f9
movb $0x1, (%r13,%rax)
movl %eax, %ecx
shrl %ecx
movq 0xc0(%rsp), %rdx
cmpb $0x0, (%rdx,%rcx)
jne 0x108546
movl 0xf0(%rsp), %edx
movq 0xc0(%rsp), %rsi
movb %dl, (%rsi,%rcx)
movq 0xd0(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x8(%rcx), %rdx
movq 0x28(%rcx), %rcx
movq (%rcx,%rax,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
imulq $0x18, %rcx, %rbp
imulq $0x18, %rax, %rax
leaq (%rdx,%rax), %r15
addq $0x8, %r15
xorl %r14d, %r14d
cmpq %r14, %rbp
je 0x10860a
cmpl $0x0, 0x4(%r15,%r14)
js 0x108601
movl (%r15,%r14), %ecx
cmpb $0x0, (%r13,%rcx)
jne 0x108601
movl %ecx, %eax
shrl %eax
movq 0xc0(%rsp), %rdx
movzbl (%rdx,%rax), %eax
testl %eax, %eax
setne %dl
movl 0xf0(%rsp), %esi
cmpl %esi, %eax
setne %al
testb %al, %dl
jne 0x108601
movq (%rdi), %rdx
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rdx
jne 0x1085f7
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdi)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2370
movq 0xd8(%rsp), %rdi
movq %rax, 0x10(%rdi)
movl (%r15,%r14), %ecx
movq (%rdi), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rdi)
movl %ecx, (%rax,%rdx,4)
addq $0x18, %r14
jmp 0x108577
movq (%rdi), %rdx
jmp 0x1084f9
movl 0x4(%rsp), %eax
shrl %eax
movl %eax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x28(%rsp), %esi
movl %esi, %ecx
shrl %ecx
imulq $0x28, %rcx, %rdx
movq 0x18(%rax,%rdx), %rcx
testb $0x1, %sil
movq 0x20(%rsp), %rdi
jne 0x108673
addq %rdx, %rax
movl 0x10(%rax), %eax
decl %eax
movq (%rcx,%rax,8), %rax
movq %rax, %rsi
shrq $0x21, %rsi
xorl %r8d, %r8d
movabsq $0x100000000, %rdx      # imm = 0x100000000
andq %rax, %rdx
leaq 0x10(%rsp), %rcx
cmovneq %rcx, %rdx
cmovneq %r8, %rcx
jmp 0x108699
movq (%rcx), %rax
movq %rax, %rsi
shrq $0x21, %rsi
xorl %edx, %edx
movabsq $0x100000000, %rcx      # imm = 0x100000000
andq %rax, %rcx
leaq 0x10(%rsp), %rax
cmoveq %rax, %rdx
cmovneq %rax, %rcx
subq $0x8, %rsp
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq $0x0
callq 0xf6ab5
popq %rax
popq %rcx
movl 0x10(%rsp), %eax
movq %rax, %rcx
xorq $0x1, %rcx
movl %ecx, 0x10(%rsp)
shrl %eax
leaq 0x14(%rsp), %rdx
movl %eax, (%rdx)
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rdx
movq 0x28(%rax), %rax
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
imulq $0x18, %rcx, %r14
imulq $0x18, %rax, %rax
leaq (%rax,%rdx), %r15
addq $0xc, %r15
xorl %ebp, %ebp
cmpq %rbp, %r14
je 0x108750
cmpl $0x0, (%r15,%rbp)
js 0x10874a
movl -0x4(%r15,%rbp), %edi
movl %edi, %eax
shrl %eax
movq 0xc0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x10874a
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %r13, %r9
pushq 0xd8(%rsp)
movl 0xf8(%rsp), %eax
pushq %rax
callq 0x10808c
popq %rax
popq %rcx
addq $0x18, %rbp
jmp 0x1086f4
xorl %edx, %edx
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rdx
jae 0x1088c3
movq 0xc0(%rsp), %rcx
movq %rdx, 0x8(%rsp)
movzbl (%rcx,%rdx), %ecx
movl 0xf0(%rsp), %edx
cmpl %edx, %ecx
jne 0x1088b6
movq 0x8(%rsp), %rdx
leaq (%rdx,%rdx), %rcx
movq %rcx, 0x28(%rsp)
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
shlq $0x4, %rdx
movq (%rax,%rdx), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r15
imulq $0x18, %rax, %rax
leaq (%rcx,%rax), %rbp
addq $0xc, %rbp
xorl %r14d, %r14d
cmpq %r14, %r15
je 0x108824
cmpl $0x0, (%rbp,%r14)
js 0x10881e
movl -0x4(%rbp,%r14), %edi
movl %edi, %eax
shrl %eax
movq 0xc0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x10881e
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %r13, %r9
pushq 0xd8(%rsp)
movl 0xf8(%rsp), %eax
pushq %rax
callq 0x10808c
popq %rax
popq %rcx
addq $0x18, %r14
jmp 0x1087c7
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x28(%rax), %rax
movq 0x28(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rax
movl %eax, %edx
shrq $0x20, %rax
imulq $0x18, %rdx, %r14
imulq $0x18, %rax, %rax
leaq (%rcx,%rax), %r15
addq $0xc, %r15
xorl %ebp, %ebp
cmpq %rbp, %r14
je 0x1088b6
cmpl $0x0, (%r15,%rbp)
js 0x1088b0
movl -0x4(%r15,%rbp), %edi
movl %edi, %eax
shrl %eax
movq 0xc0(%rsp), %rcx
cmpb $0x0, (%rcx,%rax)
jne 0x1088b0
leaq 0x18(%rsp), %rsi
leaq 0x14(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0xc0(%rsp), %r8
movq %r13, %r9
pushq 0xd8(%rsp)
movl 0xf8(%rsp), %eax
pushq %rax
callq 0x10808c
popq %rax
popq %rcx
addq $0x18, %rbp
jmp 0x10885a
movq 0x8(%rsp), %rdx
incq %rdx
jmp 0x108752
xorl %r14d, %r14d
movq %r13, %rdi
xorl %esi, %esi
movq 0x30(%rsp), %rdx
callq 0x20e0
testq %rbx, %rbx
je 0x1088dd
andl $0x0, (%rbx)
movq 0xe0(%rsp), %rax
andq $0x0, (%rax)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x58(%rsp), %r15
movq 0x20(%rsp), %rbp
movq 0x38(%rsp), %rdx
movl %r14d, %r14d
cmpq %r14, 0x38(%rdx)
jbe 0x108a11
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x48(%rdx), %rax
movl (%rax,%r14,4), %eax
shrl %eax
imulq $0x28, %rax, %rcx
movl 0x10(%rsi,%rcx), %eax
testl %eax, %eax
je 0x108a09
movq %r14, 0x30(%rsp)
addq %rcx, %rsi
xorl %r14d, %r14d
movq %rsi, 0x28(%rsp)
movl %eax, %eax
cmpq %rax, %r14
jae 0x1089ff
movq 0x18(%rsi), %rax
movq (%rax,%r14,8), %rax
movq 0x28(%rbp), %rcx
movq 0x40(%rbp), %rdx
shrq $0x21, %rax
movl (%rdx,%rax,4), %esi
leaq (%rcx,%rsi,4), %rcx
addq $0x8, %rcx
movq %rcx, 0x48(%rsp)
movl 0x4(%rdx,%rax,4), %eax
subl %esi, %eax
addl $-0x2, %eax
movl %eax, 0x1c(%rsp)
xorl %ebp, %ebp
movl %eax, %eax
cmpq %rax, %rbp
jae 0x1089ea
movq 0x48(%rsp), %rax
movl (%rax,%rbp,4), %edi
shrl %edi
subq $0x8, %rsp
movq 0xc8(%rsp), %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0xe0(%rsp), %r8
pushq %r15
movl 0x100(%rsp), %eax
pushq %rax
movl 0x100(%rsp), %eax
pushq %rax
callq 0x107f01
addq $0x20, %rsp
testq %rbx, %rbx
je 0x1089d1
movl 0x58(%rsp), %eax
addl %eax, (%rbx)
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
incq %rbp
movl 0x1c(%rsp), %eax
jmp 0x108980
incq %r14
movq 0x28(%rsp), %rsi
movl 0x10(%rsi), %eax
movq 0x20(%rsp), %rbp
jmp 0x108942
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %r14
incl %r14d
jmp 0x108902
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0xf8(%rsp), %r15
movq 0xd0(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r14
jae 0x108ac3
movq 0xc0(%rsp), %rax
movzbl (%rax,%r14), %eax
movl 0xf0(%rsp), %ecx
cmpl %ecx, %eax
jne 0x108ab8
movq 0xc0(%rsp), %rax
movb $0x0, (%rax,%r14)
testq %r15, %r15
je 0x108ab8
movq (%rbp), %rax
movq 0x80(%rbp), %rcx
movl (%rax,%r14,4), %eax
incq %rcx
cmpq %rax, %rcx
jb 0x108ab8
movq (%r15), %rcx
movq 0x10(%r15), %rax
cmpq 0x8(%r15), %rcx
jne 0x108aae
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r15)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r15)
movq (%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r15)
movl %ebx, (%rax,%rcx,4)
incq %r14
addl $0x2, %ebx
jmp 0x108a1e
movsd 0x8(%rsp), %xmm0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq