// File: /workspace/github_cpp_makefile_star2_O3/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, 0x130(%rsp)
movq %r9, 0x120(%rsp)
movq %r8, %r14
movq %rcx, 0x118(%rsp)
movq %rdx, 0x110(%rsp)
movq %rsi, 0x100(%rsp)
movq %rdi, 0xf8(%rsp)
movq 0x18(%rdi), %rbx
movl 0x14(%rbx), %eax
addl %eax, %eax
movl %eax, 0x84(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xc0(%rsp)
movapd %xmm0, 0xd0(%rsp)
movapd %xmm0, 0xe0(%rsp)
movq %rax, 0xf0(%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)
movq %rax, 0x1a0(%rsp)
testq %r8, %r8
je 0xf1568
movq (%r14), %rsi
movq %rbx, %rdi
callq 0xa7ebe
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xa02e3
movq %r14, 0x128(%rsp)
movl 0x84(%rsp), %r15d
movq %r15, (%rsp)
movl $0x64, %ecx
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0xe96a2
movq %rax, 0x88(%rsp)
cmpl $0x0, 0x84(%rsp)
je 0xf223a
xorl %r12d, %r12d
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
movl %r12d, %r14d
shrl %r14d
cmpl $0x0, (%rax,%r14,8)
js 0xf1deb
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movq %rax, %rcx
andq %r11, %rcx
je 0xf1deb
movq 0x8(%rbx), %rdx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
addq $0xc, %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
xorl %esi, %esi
movl (%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0xf15f4
cmpl $0x1, %esi
jne 0xf1deb
movl %r12d, %r15d
xorl $0x1, %r15d
movq %rbx, %rdi
xorl %esi, %esi
movl %r15d, %edx
leaq 0x74(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x138(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpl $0x3, %eax
jne 0xf1de1
movq 0x28(%rbx), %rax
movl 0x74(%rsp), %edx
movq (%rax,%rdx,8), %rdi
movq %rdi, %rsi
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
andq %r11, %rsi
je 0xf1de7
movq 0x8(%rbx), %rcx
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
leaq (%rcx,%rdi,8), %rdi
addq $0xc, %rdi
leaq (,%rsi,8), %r8
leaq (%r8,%r8,2), %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
movl (%rdi,%r9), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %r10d
addq $0x18, %r9
cmpq %r9, %r8
jne 0xf1697
cmpl $0x1, %r10d
jne 0xf1de1
movq (%rax,%r12,8), %r9
movq %r9, %r8
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
andq %r11, %r8
je 0xf16ff
shrq $0x20, %r9
shlq $0x3, %r8
leaq (%r8,%r8,2), %r8
leaq (%r9,%r9,2), %r9
leaq (%rcx,%r9,8), %r9
addq $0xc, %r9
xorl %r10d, %r10d
cmpl $0x0, (%r9,%r10)
js 0xf16f6
movl -0x4(%r9,%r10), %r13d
movl %r13d, 0x1c(%rsp)
addq $0x18, %r10
cmpq %r10, %r8
jne 0xf16e5
cmpl $0x0, (%rdi)
js 0xf1707
movl -0x4(%rdi), %ebp
addq $0x18, %rdi
decq %rsi
jne 0xf16ff
movl 0x1c(%rsp), %esi
shrl %esi
cmpl %esi, %r14d
je 0xf1de7
movl %ebp, %edi
shrl %edi
cmpl %edi, %r14d
je 0xf1de7
shrl %edx
cmpl %esi, %edx
je 0xf1de7
cmpl %edi, %edx
je 0xf1de7
movl 0x1c(%rsp), %edx
cmpl %ebp, %edx
jne 0xf1afa
movl %edx, %esi
xorl $0x1, %esi
movq (%rax,%rsi,8), %rax
movq %rax, %rsi
andq %r11, %rsi
movl %edx, %ebp
je 0xf1de7
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %rax
addq $0xc, %rax
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rcx
xorl %edx, %edx
xorl %esi, %esi
movl (%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0xf177d
cmpl $0x2, %esi
jne 0xf1de7
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x108(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpl $0x4, %eax
jne 0xf1de1
movl 0xc(%rsp), %esi
movq 0x28(%rbx), %rcx
movq (%rcx,%rsi,8), %rdi
movq %rdi, %rdx
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
andq %r11, %rdx
je 0xf1de7
movq 0x8(%rbx), %rax
movq %rdi, %r8
shrq $0x20, %r8
leaq (%r8,%r8,2), %r8
leaq (%rax,%r8,8), %r9
addq $0xc, %r9
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %r10d, %r10d
xorl %r11d, %r11d
movl (%r9,%r10), %ebp
notl %ebp
shrl $0x1f, %ebp
addl %ebp, %r11d
addq $0x18, %r10
cmpq %r10, %rdx
jne 0xf1817
cmpl $0x2, %r11d
jne 0xf1ddd
cvtsi2sdq 0x108(%rsp), %xmm0
cvtsi2sdq 0x138(%rsp), %xmm1
mulsd 0x130(%rsp), %xmm1
ucomisd %xmm1, %xmm0
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movl 0x1c(%rsp), %ebp
jae 0xf1de7
movl %edi, %edi
testq %rdi, %rdi
je 0xf1de7
leaq (%rax,%r8,8), %rdi
addq $0x8, %rdi
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
xorl %r8d, %r8d
xorl %r9d, %r9d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rdi,%r8)
js 0xf18ac
cmpl $0x1, %r9d
je 0xf18a5
testl %r9d, %r9d
jne 0xf18a9
movl (%rdi,%r8), %r13d
jmp 0xf18a9
movl (%rdi,%r8), %r10d
incl %r9d
addq $0x18, %r8
cmpq %r8, %rdx
jne 0xf188c
cmpl $0x2, %r9d
jne 0xf1de7
movl %r10d, %edx
xorl %r13d, %edx
cmpl $0x2, %edx
jb 0xf1de7
movl %r13d, %r14d
xorl $0x1, %r14d
movq (%rcx,%r14,8), %rdx
movq %rdx, %rdi
andq %r11, %rdi
je 0xf1de7
movl %r10d, 0x10(%rsp)
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rdi
leaq (%rdi,%rdi,2), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
movl (%rdx,%r8), %r10d
notl %r10d
shrl $0x1f, %r10d
addl %r10d, %r9d
addq $0x18, %r8
cmpq %r8, %rdi
jne 0xf1908
cmpl $0x1, %r9d
jne 0xf1de7
movl 0x10(%rsp), %r8d
movl %r8d, %edx
xorl $0x1, %edx
movq (%rcx,%rdx,8), %rdx
movq %rdx, %rcx
andq %r11, %rcx
je 0xf1de7
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %rax
addq $0xc, %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
xorl %edi, %edi
movl (%rax,%rdx), %r9d
notl %r9d
shrl $0x1f, %r9d
addl %r9d, %edi
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0xf1960
cmpl $0x1, %edi
jne 0xf1de7
movq 0x128(%rsp), %rax
testq %rax, %rax
je 0xf19aa
movq (%rax), %rcx
movq 0x20(%rax), %rdx
movq %rbx, %rdi
callq 0xe5e6d
movl 0x10(%rsp), %r8d
testq %rax, %rax
jne 0xf1de1
movq %rbx, %rdi
movq 0xf8(%rsp), %rsi
movq 0x100(%rsp), %rdx
movl %r13d, %ecx
movq 0x110(%rsp), %r9
pushq $0x1
pushq $0x2
pushq 0x130(%rsp)
pushq 0x130(%rsp)
leaq 0x160(%rsp), %rax
pushq %rax
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x105913
addq $0x30, %rsp
testl %eax, %eax
je 0xf1de1
movl 0xc(%rsp), %ebp
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
testq %rcx, %rcx
jne 0xf1a30
movq $0x2, 0x38(%rsp)
movl $0x10, %esi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x40(%rsp)
movl $0x2, %ecx
movq %rcx, 0x28(%rsp)
xorl $0x1, %ebp
movq $0x1, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movq %r14, (%rax)
movq $0x0, 0xc8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl %ebp, %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf2034
movl $0x1, %ebp
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r13
cmpq %r13, %rbp
jne 0xf1ad5
leaq (,%rbp,2), %r13
testq %rbp, %rbp
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rsi
callq 0x2370
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%rbp,8)
incq %rbp
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf1aac
jmp 0xf2043
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x108(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpl $0x4, %eax
jne 0xf1de1
movl 0xc(%rsp), %eax
xorl %ebp, %eax
cmpl $0x1, %eax
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
jne 0xf1de7
movq 0x28(%rbx), %rcx
movl 0x1c(%rsp), %eax
xorl $0x1, %eax
movq (%rcx,%rax,8), %rax
testl %eax, %eax
je 0xf1de7
movq 0x8(%rbx), %rdx
movq %rax, %rsi
shrq $0x20, %rsi
movl %eax, %eax
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0xc, %rsi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
xorl %r9d, %r9d
cmpl $0x0, (%rsi,%r8)
js 0xf1ba1
incl %r9d
movl -0x4(%rsi,%r8), %r10d
cmpl %r15d, %r10d
cmovnel %r10d, %eax
addq $0x18, %r8
cmpq %r8, %rdi
jne 0xf1b8b
cmpl $0x2, %r9d
movq (%rsp), %r15
jne 0xf1deb
movl %ebp, %esi
xorl $0x1, %esi
movq (%rcx,%rsi,8), %rdi
testl %edi, %edi
je 0xf1deb
movq %rdi, %r8
shrq $0x20, %r8
movl 0x74(%rsp), %esi
movl %edi, %r9d
leaq (%r8,%r8,2), %rdi
leaq (%rdx,%rdi,8), %rdi
addq $0xc, %rdi
shlq $0x3, %r9
leaq (%r9,%r9,2), %r8
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpl $0x0, (%rdi,%r9)
js 0xf1c1a
incl %r10d
movl -0x4(%rdi,%r9), %r11d
movl %esi, %r14d
xorl %r11d, %r14d
cmpl $0x1, %r14d
cmovnel %r11d, %r13d
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
addq $0x18, %r9
cmpq %r9, %r8
jne 0xf1bf7
cmpl $0x2, %r10d
jne 0xf1deb
movl %eax, %r14d
xorl $0x1, %r14d
movq (%rcx,%r14,8), %rsi
movq %rsi, %rdi
andq %r11, %rdi
je 0xf1deb
shrq $0x20, %rsi
leaq (%rsi,%rsi,2), %rsi
leaq (%rdx,%rsi,8), %rsi
addq $0xc, %rsi
shlq $0x3, %rdi
leaq (%rdi,%rdi,2), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
movl (%rsi,%r8), %r10d
notl %r10d
shrl $0x1f, %r10d
addl %r10d, %r9d
addq $0x18, %r8
cmpq %r8, %rdi
jne 0xf1c62
cmpl $0x1, %r9d
jne 0xf1deb
movl %r13d, %esi
xorl $0x1, %esi
movq (%rcx,%rsi,8), %rcx
movq %rcx, %rsi
andq %r11, %rsi
je 0xf1deb
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rdx,%rcx,8), %rcx
addq $0xc, %rcx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl (%rcx,%rsi), %r8d
notl %r8d
shrl $0x1f, %r8d
addl %r8d, %edi
addq $0x18, %rsi
cmpq %rsi, %rdx
jne 0xf1cb5
cmpl $0x1, %edi
jne 0xf1deb
xorl %r13d, %eax
cmpl $0x2, %eax
jb 0xf1deb
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
testq %rcx, %rcx
jne 0xf1d10
movq $0x2, 0x38(%rsp)
movl $0x10, %esi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x40(%rsp)
movl $0x2, %ecx
movq %rcx, 0x10(%rsp)
movq $0x1, 0x30(%rsp)
movq %rax, 0x20(%rsp)
movq %r14, (%rax)
movq $0x0, 0xc8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl 0x1c(%rsp), %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf1dfc
movl $0x1, %r15d
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
cmpq %rcx, %r15
jne 0xf1dbb
leaq (%r15,%r15), %rcx
testq %r15, %r15
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %rsi
callq 0x2370
movq 0x10(%rsp), %rcx
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%r15,8)
incq %r15
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf1d8c
jmp 0xf1e0c
movl 0x1c(%rsp), %ebp
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movq (%rsp), %r15
incq %r12
cmpq %r15, %r12
jne 0xf15ab
jmp 0xf223a
movl $0x1, %r15d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq %r15, 0x30(%rsp)
movq %rcx, 0x10(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdi, 0x40(%rsp)
movq $0x0, 0xc8(%rsp)
movl 0x74(%rsp), %edx
xorl $0x1, %edx
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf1ed5
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
cmpq %rcx, %r15
jne 0xf1eb3
leaq (%r15,%r15), %rcx
testq %r15, %r15
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %rsi
callq 0x2370
movq 0x10(%rsp), %rcx
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%r15,8)
incq %r15
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf1e84
jmp 0xf1edf
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq %r15, 0x30(%rsp)
movq %rcx, 0x10(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdi, 0x40(%rsp)
movq $0x0, 0xc8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl 0x1c(%rsp), %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf1fa5
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
cmpq %rcx, %r15
jne 0xf1f83
leaq (%r15,%r15), %rcx
testq %r15, %r15
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rsp)
leaq (,%rcx,8), %rsi
callq 0x2370
movq 0x10(%rsp), %rcx
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%r15,8)
incq %r15
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf1f54
jmp 0xf1faf
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq %r15, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
cmpq %rcx, %r15
jne 0xf1fe9
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x38(%rsp)
shlq $0x3, %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x40(%rsp)
movl %r13d, %eax
leaq 0x1(%r15), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, (%rdi,%r15,8)
movq (%rsp), %r15
movq 0xf8(%rsp), %rdi
movq 0x100(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0xf0b68
movq 0x88(%rsp), %rax
incl %eax
movq %rax, 0x88(%rsp)
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
jmp 0xf1deb
movl $0x1, %ebp
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %r13
movq %rbp, 0x30(%rsp)
movq %r13, 0x28(%rsp)
movq %r13, 0x38(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdi, 0x40(%rsp)
movq $0x0, 0xc8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl %r15d, %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf2109
xorl %r14d, %r14d
movq (%rsp), %r15
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rcx
cmpq %rcx, %rbp
jne 0xf20e7
leaq (,%rbp,2), %r13
testq %rbp, %rbp
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rsi
callq 0x2370
movq %r13, %rcx
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%rbp,8)
incq %rbp
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf20bb
jmp 0xf2117
movq (%rsp), %r15
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq %rbp, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdi, 0x40(%rsp)
movq $0x0, 0xc8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
movl 0x1c(%rsp), %edx
leaq 0xc(%rsp), %rcx
leaq 0x68(%rsp), %r8
leaq 0x78(%rsp), %r9
leaq 0x90(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0x68(%rsp), %rax
pushq %rax
leaq 0x78(%rsp), %rax
pushq %rax
callq 0x1053a7
addq $0x20, %rsp
cmpq $0x0, 0xc8(%rsp)
je 0xf21da
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rcx
cmpq %rcx, %rbp
jne 0xf21b8
leaq (,%rbp,2), %r13
testq %rbp, %rbp
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rsi
callq 0x2370
movq %r13, %rcx
movq %rax, %rdi
movq 0xd8(%rsp), %rax
movl (%rax,%r14,4), %eax
movq %rax, (%rdi,%rbp,8)
incq %rbp
incl %r14d
cmpq %r14, 0xc8(%rsp)
ja 0xf218c
jmp 0xf21e4
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq %rbp, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdi, 0x40(%rsp)
cmpq %rcx, %rbp
jne 0xf221e
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x38(%rsp)
shlq $0x3, %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x40(%rsp)
movl 0x10(%rsp), %eax
movl %eax, %eax
leaq 0x1(%rbp), %rcx
movq %rcx, 0x30(%rsp)
movq %rax, (%rdi,%rbp,8)
movl 0x1c(%rsp), %ebp
jmp 0xf1ffd
cmpl $0x0, 0x88(%rsp)
jne 0xf157c
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