// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: unroll_simple_case_advance(ma_ug_t*, asg_t*, ma_hit_t_alloc*, R_to_U*, bub_label_t*, unsigned char*, double)
void unroll_simple_case_advance(ma_ug_t *ug, asg_t* read_g, ma_hit_t_alloc* reverse_sources, R_to_U* ruIndex, bub_label_t* b_mask_t, uint8_t* is_r_het, double dupLenThres)
{
    asg_t* nsg = ug->g;
    uint32_t v, n_vtx = nsg->n_seq * 2, rnw, nw, beg, end, i;
    uint32_t v_left, v_right, w_left, w_term, w_right, return_flag, convex, /**is_found,**/ n_reduce = 1;
    long long ll, rBase, dupBase, tmp, max_stop_nodeLen, max_stop_baseLen;
    asg_arc_t *aw;
    kvec_t_u64_warp u_vecs;
    kv_init(u_vecs.a);
    buf_t b_0, b_1;
    memset(&b_0, 0, sizeof(buf_t));
    memset(&b_1, 0, sizeof(buf_t));
    if(b_mask_t)
    {
        uint64_t bub_dist = get_s_bub_pop_max_dist_advance(nsg, &(b_mask_t->b[0]));
        reset_bub_label_t(b_mask_t, nsg, bub_dist, 0);
    } 
    

    while (n_reduce > 0)
    {
        n_reduce = 0;
        ///break nearly circle, forget why...
        n_reduce += asg_arc_del_simple_circle_untig(NULL, NULL, nsg, 100, 0);
 
        for (v = 0; v < n_vtx; ++v) 
        {
            if (nsg->seq[v>>1].del) continue;
            v_left = v;
            if(asg_arc_n(nsg, v_left)<1) continue;
            if(get_real_length(nsg, v_left, NULL)!=1) continue;

            return_flag = get_unitig(nsg, NULL, v_left^1, &v_right, &ll, &rBase, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, NULL);
            if(return_flag == LOOP) continue;
            if(return_flag != MUL_INPUT) continue;
            if(asg_arc_n(nsg, v_right)<1) continue;
            if(get_real_length(nsg, v_right, NULL)!=1) continue;

            get_real_length(nsg, v_left, &w_left);
            get_real_length(nsg, v_right, &w_right);
            if((v_left>>1)==(w_left>>1)||(v_left>>1)==(w_right>>1)) continue;
            if((v_right>>1)==(w_left>>1)||(v_right>>1)==(w_right>>1)) continue;

            if(w_left!=w_right)
            {
                return_flag = get_unitig(nsg, NULL, w_left, &convex, &ll, &dupBase, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, NULL);
                if(return_flag == LOOP) continue;
                if(return_flag != MUL_OUTPUT) continue;
                if(convex != (w_right^1)) continue;


                beg = end = (uint32_t)-1;
                aw = asg_arc_a(nsg, w_left^1);
                nw = asg_arc_n(nsg, w_left^1);
                for (i = 0, rnw = 0; i < nw; i++)
                {
                    if(aw[i].del) continue;
                    rnw++;
                    if(aw[i].v == (v_left^1)) continue;
                    beg = aw[i].v;
                }
                if(rnw != 2) continue;

                aw = asg_arc_a(nsg, w_right^1);
                nw = asg_arc_n(nsg, w_right^1);
                for (i = 0, rnw = 0; i < nw; i++)
                {
                    if(aw[i].del) continue;
                    rnw++;
                    if(aw[i].v == (v_right^1)) continue;
                    end = aw[i].v;
                }
                if(rnw != 2) continue;

                if(get_real_length(nsg, beg^1, NULL)!=1) continue;
                if(get_real_length(nsg, end^1, NULL)!=1) continue;
                if((beg>>1) == (end>>1)) continue;

                u_vecs.a.n = 0;
                kv_push(uint64_t, u_vecs.a, beg^1);


                b_0.b.n = 0;
                get_unitig(nsg, NULL, w_left, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }
                b_0.b.n = 0;
                get_unitig(nsg, NULL, v_right^1, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }
                b_0.b.n = 0;
                get_unitig(nsg, NULL, w_left, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }

                kv_push(uint64_t, u_vecs.a, end);
                merge_ug_nodes(ug, read_g, &u_vecs);
                n_reduce++;

                // fprintf(stderr, "++1++v>>1: %u, w_left>>1: %u, w_right>>1: %u\n", 
                //                                             v>>1, w_left>>1, w_right>>1);
            }
            else ///if(w_left == w_right)
            {
                if(get_real_length(nsg, w_left^1, NULL)!=2) continue;
                return_flag = get_unitig(nsg, NULL, w_left, &convex, &ll, &dupBase, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, NULL);
                if(return_flag == LOOP) continue;
                if(return_flag != MUL_OUTPUT) continue;
                if(get_real_length(nsg, convex, NULL)!=2) continue;
                if(dupBase >= rBase*dupLenThres)
                {
                    continue;
                }
                beg = end = (uint32_t)-1;

                aw = asg_arc_a(nsg, convex);
                nw = asg_arc_n(nsg, convex);
                for (i = 0, rnw = 0; i < nw; i++)
                {
                    if(aw[i].del) continue;
                    if(rnw == 0) beg = aw[i].v;
                    if(rnw == 1) end = aw[i].v;
                    rnw++;
                }

                if(rnw != 2) continue;
                if((beg>>1) == (end>>1)) continue;
                if(get_real_length(nsg, beg^1, NULL)!=1) continue;
                if(get_real_length(nsg, end^1, NULL)!=1) continue;


                if(b_mask_t && asg_bub_pop1_label(nsg, convex, b_mask_t->bub_dist, &(b_mask_t->b[0])))
                {
                    continue;
                }

                if(check_different_haps(nsg, ug, read_g, beg, end, reverse_sources, &b_0, &b_1,
                    ruIndex, is_r_het, 2, 1) == PLOID)
                {
                    continue;
                }


                w_term = convex^1;
                u_vecs.a.n = 0;
                kv_push(uint64_t, u_vecs.a, beg^1);

                b_0.b.n = 0;
                get_unitig(nsg, NULL, w_term, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }

                b_0.b.n = 0;
                get_unitig(nsg, NULL, v_left^1, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }

                b_0.b.n = 0;
                get_unitig(nsg, NULL, w_left, &convex, &ll, &tmp, &max_stop_nodeLen, 
                            &max_stop_baseLen, 1, &b_0);
                for (i = 0; i < b_0.b.n; i++)
                {
                    kv_push(uint64_t, u_vecs.a, b_0.b.a[i]);
                }

                kv_push(uint64_t, u_vecs.a, end);
                merge_ug_nodes(ug, read_g, &u_vecs);
                n_reduce++;

                // fprintf(stderr, "--1--v>>1: %u, w_left>>1: %u, w_right>>1: %u\n", 
                //                                             v>>1, w_left>>1, w_right>>1);
            }
        }

        
    }

    free(b_0.b.a);
    free(b_1.b.a);
    kv_destroy(u_vecs.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movsd %xmm0, 0x128(%rsp)
movq %r9, 0x118(%rsp)
movq %r8, %r14
movq %rcx, 0x110(%rsp)
movq %rdx, 0x108(%rsp)
movq %rsi, 0x80(%rsp)
movq %rdi, 0x78(%rsp)
movq 0x18(%rdi), %rbx
movl 0x14(%rbx), %ebp
addl %ebp, %ebp
xorpd %xmm0, %xmm0
andq $0x0, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xc0(%rsp)
andq $0x0, 0xf0(%rsp)
movapd %xmm0, 0xd0(%rsp)
movapd %xmm0, 0xe0(%rsp)
movapd %xmm0, 0x140(%rsp)
movapd %xmm0, 0x150(%rsp)
movapd %xmm0, 0x160(%rsp)
movapd %xmm0, 0x170(%rsp)
movapd %xmm0, 0x180(%rsp)
movapd %xmm0, 0x190(%rsp)
andq $0x0, 0x1a0(%rsp)
testq %r8, %r8
je 0xb1a71
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x6f01e
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0x68def
movq %r14, 0x120(%rsp)
movl %ebp, %r12d
pushq $0x1
popq %rax
leaq 0x138(%rsp), %r13
testl %eax, %eax
je 0xb2459
movq %rbx, %rdx
pushq $0x64
popq %rcx
xorl %r8d, %r8d
callq 0xab04f
movq %rax, 0x70(%rsp)
xorl %r15d, %r15d
cmpq %r12, %r15
je 0xb244f
movq 0x20(%rbx), %rax
movl %r15d, %ebp
shrl %ebp
cmpl $0x0, (%rax,%rbp,8)
js 0xb1b8f
movq 0x28(%rbx), %rax
cmpl $0x0, (%rax,%r15,8)
je 0xb1b8f
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
movl %r15d, %r14d
xorl $0x1, %r14d
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
leaq 0x2c(%rsp), %rcx
movq %r13, %r8
leaq 0x130(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
addq $0x20, %rsp
cmpl $0x3, %eax
jne 0xb1b8f
movq 0x28(%rbx), %rax
movl 0x2c(%rsp), %esi
cmpl $0x0, (%rax,%rsi,8)
je 0xb1b8f
movq %rbx, %rdi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
movq %rbx, %rdi
movl %r15d, %esi
leaq 0x28(%rsp), %rdx
callq 0xc2e7a
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
leaq 0x6c(%rsp), %rdx
callq 0xc2e7a
movl 0x28(%rsp), %edx
movl %edx, %ecx
shrl %ecx
cmpl %ecx, %ebp
je 0xb1b8f
movl 0x6c(%rsp), %eax
movl %eax, %esi
shrl %esi
cmpl %esi, %ebp
je 0xb1b8f
movl 0x2c(%rsp), %edi
shrl %edi
cmpl %ecx, %edi
sete %cl
cmpl %esi, %edi
sete %sil
orb %cl, %sil
je 0xb1b97
incq %r15
jmp 0xb1aa5
cmpl %eax, %edx
jne 0xb1c80
xorl $0x1, %edx
movq %rbx, %rdi
movl %edx, %esi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x2, %eax
jne 0xb1b8f
movl 0x28(%rsp), %edx
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x88(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
addq $0x20, %rsp
cmpl $0x4, %eax
jne 0xb1b8f
movl 0xc(%rsp), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x2, %eax
jne 0xb1b8f
cvtsi2sdq 0x88(%rsp), %xmm0
cvtsi2sdq 0x130(%rsp), %xmm1
mulsd 0x128(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jae 0xb1b8f
movq 0x8(%rbx), %rcx
movq 0x28(%rbx), %rax
movl 0xc(%rsp), %edx
movq (%rax,%rdx,8), %rax
movl %eax, %edx
movq %rax, %rsi
shrq $0x20, %rsi
imulq $0x18, %rdx, %rax
imulq $0x18, %rsi, %rdx
addq %rdx, %rcx
addq $0x8, %rcx
xorl %edx, %edx
pushq $-0x1
popq %rsi
movl %esi, %ebp
movl %esi, %edi
xorl %esi, %esi
cmpq %rdx, %rax
je 0xb1eb3
cmpl $0x0, 0x4(%rcx,%rdx)
js 0xb1c7a
cmpl $0x1, %esi
je 0xb1c75
testl %esi, %esi
jne 0xb1c78
movl (%rcx,%rdx), %ebp
jmp 0xb1c78
movl (%rcx,%rdx), %edi
incl %esi
addq $0x18, %rdx
jmp 0xb1c57
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x88(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
addq $0x20, %rsp
cmpl $0x4, %eax
jne 0xb1b8f
movl 0x6c(%rsp), %ecx
movl 0xc(%rsp), %eax
xorl %ecx, %eax
cmpl $0x1, %eax
jne 0xb1b8f
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rdx
movl 0x28(%rsp), %esi
xorq $0x1, %rsi
movq (%rdx,%rsi,8), %rsi
movl %esi, %edi
movq %rsi, %r8
shrq $0x20, %r8
imulq $0x18, %rdi, %rsi
imulq $0x18, %r8, %rdi
addq %rax, %rdi
addq $0xc, %rdi
xorl %r8d, %r8d
pushq $-0x1
popq %rbp
xorl %r9d, %r9d
cmpq %r8, %rsi
je 0xb1d20
cmpl $0x0, (%rdi,%r8)
js 0xb1d1a
incl %r9d
movl -0x4(%rdi,%r8), %r10d
cmpl %r14d, %r10d
cmovnel %r10d, %ebp
addq $0x18, %r8
jmp 0xb1cff
cmpl $0x2, %r9d
jne 0xb1b8f
xorq $0x1, %rcx
movq (%rdx,%rcx,8), %rcx
movl %ecx, %edx
movq %rcx, %rsi
shrq $0x20, %rsi
movl 0x2c(%rsp), %ecx
imulq $0x18, %rdx, %rdx
imulq $0x18, %rsi, %rsi
addq %rsi, %rax
addq $0xc, %rax
xorl %esi, %esi
pushq $-0x1
popq %r10
xorl %edi, %edi
cmpq %rsi, %rdx
je 0xb1d7c
cmpl $0x0, (%rax,%rsi)
js 0xb1d76
incl %edi
movl -0x4(%rax,%rsi), %r8d
movl %ecx, %r9d
xorl %r8d, %r9d
cmpl $0x1, %r9d
cmovnel %r8d, %r10d
addq $0x18, %rsi
jmp 0xb1d56
cmpl $0x2, %edi
jne 0xb1b8f
movl %r10d, 0x24(%rsp)
movl %ebp, %r14d
xorl $0x1, %r14d
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
movl %r14d, 0x10(%rsp)
movl 0x24(%rsp), %r14d
movl %r14d, %esi
xorl $0x1, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
xorl %r14d, %ebp
cmpl $0x2, %ebp
jb 0xb1b8f
movq 0x38(%rsp), %rbp
movq 0x40(%rsp), %rdi
testq %rbp, %rbp
jne 0xb1e01
movq $0x2, 0x38(%rsp)
pushq $0x10
popq %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x40(%rsp)
pushq $0x2
popq %rbp
movl 0x10(%rsp), %eax
movl %eax, %eax
movq $0x1, 0x30(%rsp)
movq %rax, (%rdi)
andq $0x0, 0xc8(%rsp)
movl 0x28(%rsp), %edx
movq %rdi, %r14
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq %r14, %rdi
addq $0x20, %rsp
pushq $0x1
popq %rcx
movq %rbp, %rdx
leal -0x1(%rcx), %ebp
cmpq %rbp, 0xc8(%rsp)
jbe 0xb2070
cmpq %rdx, %rcx
jne 0xb1e9f
movq %rcx, 0x10(%rsp)
leaq (%rdx,%rdx), %r14
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %r14
leaq (,%r14,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
movq 0xd8(%rsp), %rax
movl (%rax,%rbp,4), %eax
movq %rax, (%rdi,%rcx,8)
incq %rcx
jmp 0xb1e5e
cmpl $0x2, %esi
jne 0xb1b8f
movl %edi, %eax
xorl %ebp, %eax
cmpl $0x2, %eax
jb 0xb1b8f
movl %edi, 0x24(%rsp)
movl %ebp, %esi
xorl $0x1, %esi
movq %rbx, %rdi
movl %esi, 0x18(%rsp)
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
movl 0x24(%rsp), %esi
xorl $0x1, %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
jne 0xb1b8f
movq 0x120(%rsp), %rax
testq %rax, %rax
je 0xb1f2c
movl 0xc(%rsp), %esi
movq (%rax), %rcx
movq 0x20(%rax), %rdx
movq %rbx, %rdi
callq 0xa844c
testq %rax, %rax
jne 0xb1b8f
movq %rbx, %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movl %ebp, %ecx
movl 0x24(%rsp), %r8d
movq 0x108(%rsp), %r9
pushq $0x1
pushq $0x2
pushq 0x128(%rsp)
pushq 0x128(%rsp)
leaq 0x160(%rsp), %rax
pushq %rax
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0xc3307
addq $0x30, %rsp
testl %eax, %eax
je 0xb1b8f
movl 0xc(%rsp), %edx
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdi
testq %rax, %rax
jne 0xb1fb3
movq $0x2, 0x38(%rsp)
pushq $0x10
popq %rsi
movl %edx, %ebp
callq 0x2370
movl %ebp, %edx
movq %rax, %rdi
movq %rax, 0x40(%rsp)
pushq $0x2
popq %rax
movq %rax, 0x10(%rsp)
xorl $0x1, %edx
movl 0x18(%rsp), %eax
movq $0x1, 0x30(%rsp)
movq %rax, (%rdi)
andq $0x0, 0xc8(%rsp)
movq %rdi, %rbp
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq %rbp, %rdi
addq $0x20, %rsp
pushq $0x1
popq %rcx
movq 0x10(%rsp), %rdx
leal -0x1(%rcx), %ebp
cmpq %rbp, 0xc8(%rsp)
jbe 0xb2267
cmpq %rdx, %rcx
jne 0xb205c
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x10(%rsp)
leaq (,%rsi,8), %rsi
movq %rcx, 0x18(%rsp)
callq 0x2370
movq 0x18(%rsp), %rcx
movq %rax, %rdi
movq 0x10(%rsp), %rdx
movq 0xd8(%rsp), %rax
movl (%rax,%rbp,4), %eax
movq %rax, (%rdi,%rcx,8)
incq %rcx
jmp 0xb2014
movq %rcx, 0x30(%rsp)
andq $0x0, 0xc8(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdx, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
movl 0x2c(%rsp), %edx
xorl $0x1, %edx
xorl %ebp, %ebp
movq %rcx, 0x10(%rsp)
movq %rdi, %r14
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq %r14, %rdi
movq 0x30(%rsp), %rcx
addq $0x20, %rsp
movl %ebp, %ebp
cmpq %rbp, 0xc8(%rsp)
jbe 0xb2131
movq 0x18(%rsp), %rax
cmpq %rax, %rcx
jne 0xb211b
movq %rcx, 0x10(%rsp)
leaq (%rax,%rax), %r14
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r14
leaq (,%r14,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %r14, 0x18(%rsp)
movq 0x10(%rsp), %rcx
movq 0xd8(%rsp), %rax
movl (%rax,%rbp,4), %eax
movq %rax, (%rdi,%rcx,8)
incq %rcx
incl %ebp
jmp 0xb20d8
movq %rcx, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
andq $0x0, 0xc8(%rsp)
movl 0x28(%rsp), %edx
xorl %ebp, %ebp
movq %rcx, 0x10(%rsp)
movq %rdi, %r14
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq %r14, %rdi
movq 0x30(%rsp), %r14
addq $0x20, %rsp
movl %ebp, %ebp
cmpq %rbp, 0xc8(%rsp)
jbe 0xb21ef
movq 0x18(%rsp), %rax
cmpq %rax, %r14
jne 0xb21d9
movq %r14, 0x10(%rsp)
leaq (%rax,%rax), %r14
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r14
leaq (,%r14,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %r14, 0x18(%rsp)
movq 0x10(%rsp), %r14
movq 0xd8(%rsp), %rax
movl (%rax,%rbp,4), %eax
movq %rax, (%rdi,%r14,8)
incq %r14
incl %ebp
jmp 0xb2196
movq %r14, 0x30(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
cmpq %rax, %r14
jne 0xb222c
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x38(%rsp)
shlq $0x3, %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x40(%rsp)
movl 0x24(%rsp), %eax
movl %eax, %eax
leaq 0x1(%r14), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, (%rdi,%r14,8)
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0xb120c
movq 0x70(%rsp), %rax
incl %eax
movq %rax, 0x70(%rsp)
jmp 0xb1b8f
movq %rcx, 0x30(%rsp)
movq %rdx, 0x10(%rsp)
movq %rdx, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
andq $0x0, 0xc8(%rsp)
xorl %ebp, %ebp
movq %rdi, 0x100(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movq %rcx, 0x18(%rsp)
movl %r14d, %edx
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq 0x38(%rsp), %rcx
movq 0x120(%rsp), %rdi
addq $0x20, %rsp
movl %ebp, %r14d
cmpq %r14, 0xc8(%rsp)
jbe 0xb2332
movq 0x10(%rsp), %rax
cmpq %rax, %rcx
jne 0xb2319
leaq (%rax,%rax), %rbp
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rsi
movq %rcx, 0x18(%rsp)
callq 0x2370
movq 0x18(%rsp), %rcx
movq %rax, %rdi
movq %rbp, 0x10(%rsp)
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%rcx,8)
incq %rcx
leal 0x1(%r14), %ebp
jmp 0xb22d5
movq %rcx, 0x30(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
andq $0x0, 0xc8(%rsp)
movq %rcx, 0x18(%rsp)
movl 0x28(%rsp), %edx
xorl %r14d, %r14d
movq %rdi, %rbp
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
movq %r13, %r8
leaq 0x60(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x60(%rsp), %rax
pushq %rax
leaq 0x70(%rsp), %rax
pushq %rax
callq 0xc2ebf
movq 0x38(%rsp), %rdx
movq %rbp, %rdi
addq $0x20, %rsp
movl %r14d, %r14d
cmpq %r14, 0xc8(%rsp)
jbe 0xb23f4
movq 0x10(%rsp), %rax
cmpq %rax, %rdx
jne 0xb23dc
leaq (%rax,%rax), %rbp
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rsi
movq %rdx, 0x18(%rsp)
callq 0x2370
movq 0x18(%rsp), %rdx
movq %rax, %rdi
movq %rbp, 0x10(%rsp)
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%rdx,8)
incq %rdx
incl %r14d
jmp 0xb2398
movq %rdx, 0x30(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
cmpq %rax, %rdx
jne 0xb2437
leaq (%rax,%rax), %rsi
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rsi
movq %rsi, 0x38(%rsp)
shlq $0x3, %rsi
movq %rdx, %r14
callq 0x2370
movq %r14, %rdx
movq %rax, %rdi
movq %rax, 0x40(%rsp)
movl 0x24(%rsp), %eax
movl %eax, %eax
leaq 0x1(%rdx), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, (%rdi,%rdx,8)
jmp 0xb223f
movq 0x70(%rsp), %rax
jmp 0xb1a87
movq 0xd8(%rsp), %rdi
callq 0x2220
movq 0x188(%rsp), %rdi
callq 0x2220
movq 0x40(%rsp), %rdi
callq 0x2220
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq