// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/tovlp.cpp
// Function: asg_arc_decompress_mul(asg_t*, ma_ug_t*, asg_t*, unsigned int, unsigned int, ma_hit_t_alloc*, R_to_U*, utg_trans_t*)
int asg_arc_decompress_mul(asg_t *g, ma_ug_t *ug, asg_t *read_sg, uint32_t positive_flag, uint32_t negative_flag,
ma_hit_t_alloc* reverse_sources, R_to_U* ruIndex, utg_trans_t *o)
{
    double startTime = Get_T();
    asg_arc_t *as = NULL, *pm = NULL;
    u_trans_t *kt = NULL;
    uint32_t v, s, sv, nc, ns, n_vtx = g->n_seq * 2, n_reduced = 0, convex, pi, qn, tn;
    uint32_t return_flag, k, m, i, p_n, a_n, *a_a = NULL;
    uint8_t fp = 1, fa = 2, found;
    long long ll, tmp, max_stop_nodeLen, max_stop_baseLen;
    kvec_t_u32_warp tt; kv_init(tt.a);
    kvec_t_u32_warp stack; kv_init(stack.a);
    uint8_t *vis = NULL; CALLOC(vis, n_vtx);
    buf_t b;
    memset(&b, 0, sizeof(buf_t));
    pdq pq_p, pq_a;
    init_pdq(&pq_p, g->n_seq<<1);
    init_pdq(&pq_a, g->n_seq<<1);
    uint32_t *path_p = NULL, *path_q = NULL; 
    CALLOC(path_p, g->n_seq<<1);
    CALLOC(path_q, g->n_seq<<1);
    clean_mul_t *cl = init_clean_mul_t(g, ug, asm_opt.thread_num, fp, fa);
    
    while (get_min_dec(cl, positive_flag, negative_flag, o, &v))
    {
        if(g->seq[v>>1].del || g->seq[v>>1].c == ALTER_LABLE) continue;
        if(asg_arc_n(g, v) == 0 || get_real_length(g, v, NULL) != 1) continue;
        get_real_length(g, v, &s);
        if(get_real_length(g, s^1, NULL) < 2) continue;
        return_flag = get_unitig(g, ug, v^1, &convex, &ll, &tmp, &max_stop_nodeLen,&max_stop_baseLen, 1, NULL);
        if(return_flag == LOOP) continue;

        as = asg_arc_a(g, convex); ns = asg_arc_n(g, convex);
        for (i = nc = 0; i < ns; i++)
        {
            if(as[i].del) continue;
            if(get_real_length(g, as[i].v^1, NULL) < 2) break;
            nc++;
        }
        if(nc == 0 || i < ns) continue;

        tt.a.n = 0; s^=1; sv = v^1;
        dfs_set(g, sv, s>>1, &stack, &tt, vis, fp);
        p_n = tt.a.n;
        as = asg_arc_a(g, s); ns = asg_arc_n(g, s); found = 0;
        for (i = 0, pm = NULL; i < ns; i++)
        {
            if(as[i].del || as[i].v != sv) continue;
            pm = &(as[i]);
            break;
        }
 
        for (i = 0; i < ns; i++)
        {
            if(as[i].del || as[i].v == sv) continue;
            nc = dfs_set(g, as[i].v, s>>1, &stack, &tt, vis, fa);
            if(nc && check_trans_relation_by_path(sv, as[i].v, &pq_p, path_p, &(o->b0), &pq_a, path_q, &(o->b1), g, 
            vis, fp+fa, nc, 0.45, NULL))
            {
                found = 1;
            }
            a_a = tt.a.a + p_n; a_n = tt.a.n - p_n;
            for (k = 0; k < a_n; k++)
            {
                if(vis[a_a[k]]&fa) vis[a_a[k]] -= fa;
            }
            tt.a.n = p_n;
            if(found) break;
        }
        a_a = tt.a.a; a_n = p_n;
        for (k = 0; k < a_n; k++) vis[a_a[k]] = 0;

        if(found == 0) fprintf(stderr, "ERROR-found\n");
        if(found)
        {
            b.b.n = 0;
            get_unitig(g, ug, sv, &convex, &ll, &tmp, &max_stop_nodeLen, &max_stop_baseLen, 1, &b);
            for (k = 0; k < b.b.n; k++)
            {
                g->seq[b.b.a[k]>>1].c = ALTER_LABLE;
            }

            for (k = 0; k < b.b.n; k++)
            {
                asg_seq_drop(g, b.b.a[k]>>1);
            }

            // uint32_t ui;
            // fprintf(stderr, "\n");
            // for (ui = 0; ui < o->b0.b.n; ui++)
            // {
            //     fprintf(stderr, "p-utg%.6ul\n", (o->b0.b.a[ui]>>1)+1);
            // }
            // for (ui = 0; ui < o->b1.b.n; ui++)
            // {
            //     fprintf(stderr, "a-utg%.6ul\n", (o->b1.b.a[ui]>>1)+1);
            // }


            if(o->b0.b.n < b.b.n)  fprintf(stderr, "ERROR-ll\n"); 
            o->b0.b.n = b.b.n; pi = o->k_trans.n;
            collect_trans_ovlp(__func__, &(o->b0), pm->ol, &(o->b1), as[i].ol, ug, o);

            for (k = m = pi; k < o->k_trans.n; k++)
            {
                kt = &(o->k_trans.a[k]);
                if(is_hap_ovlp(ug, read_sg, reverse_sources, ruIndex, &(kt->qn), 1, &(kt->tn), 1) || 
                      is_hap_ovlp(ug, read_sg, reverse_sources, ruIndex, &(kt->tn), 1, &(kt->qn), 1))
                {
                    qn = get_dir_v(kt->qn, &(o->b0));
                    tn = get_dir_v(kt->tn, &(o->b1));

                    if(dfs_reach(o->cug->g, qn, tn, &stack, &tt, vis) || dfs_reach(o->cug->g, tn, qn, &stack, &tt, vis))
                    {
                        // fprintf(stderr, "<<<<<<DEL: q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                        // kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                        continue;
                    }

                    // fprintf(stderr, "q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                    // kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                    o->k_trans.a[m] = *kt;
                    m++;
                }
                // else
                // {
                //     fprintf(stderr, "******delete: q-utg%.6ul (qs: %u, qe: %u), t-utg%.6ul (ts: %u, te: %u)\n", 
                //     kt->qn + 1, kt->qs, kt->qe, kt->tn + 1, kt->ts, kt->te);
                // }      
            }
            o->k_trans.n = m;
        }
    }
    
    if(VERBOSE >= 1)
    {
        fprintf(stderr, "[M::%s] removed %d long tips\n", 
        __func__, n_reduced);
    }
    fprintf(stderr, "[M::%s] takes %0.2f s\n\n", __func__, Get_T()-startTime);
    asg_cleanup(g);
    asg_symm(g);
    free(b.b.a);
    kv_destroy(tt.a);
    kv_destroy(stack.a);
    free(vis);
    destory_pdq(&pq_p);
    destory_pdq(&pq_a);
    free(path_p);
    free(path_q);
    destroy_clean_mul_t(&cl);
    return n_reduced;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r9, 0x98(%rsp)
movl %r8d, %r14d
movl %ecx, %ebp
movq %rdx, 0x90(%rsp)
movq %rsi, %r13
movq %rdi, %rbx
callq 0x300fc
movsd %xmm0, 0xa0(%rsp)
movl 0x14(%rbx), %r15d
addl %r15d, %r15d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x50(%rsp)
andq $0x0, 0x60(%rsp)
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x2120
andq $0x0, 0x100(%rsp)
movq %rax, 0x8(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xf0(%rsp)
movapd %xmm0, 0x160(%rsp)
movapd %xmm0, 0x150(%rsp)
movapd %xmm0, 0x140(%rsp)
movapd %xmm0, 0x130(%rsp)
movapd %xmm0, 0x120(%rsp)
movapd %xmm0, 0x110(%rsp)
andq $0x0, 0x170(%rsp)
movslq %r15d, %rsi
leaq 0x1e0(%rsp), %rdi
callq 0x13bb82
movl 0x14(%rbx), %eax
addl %eax, %eax
movslq %eax, %rsi
leaq 0x178(%rsp), %rdi
callq 0x13bb82
movl 0x14(%rbx), %eax
addl %eax, %eax
movslq %eax, %r15
pushq $0x4
popq %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2120
movq %rax, 0x78(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %r12d
callq 0x2120
movq %rax, 0x70(%rsp)
leaq 0x266d1d(%rip), %rax    # 0x28a758
movslq 0x7c(%rax), %rdx
pushq $0x1
popq %rcx
pushq $0x2
popq %r8
movq %rbx, %rdi
movq %r13, 0x28(%rsp)
movq %r13, %rsi
callq 0x18dfb0
movq %rax, 0xc8(%rsp)
leaq 0x34(%rsp), %r8
movq %rax, 0xc0(%rsp)
movq %rax, %rdi
movl %ebp, %esi
movl %r14d, %edx
movq 0x288(%rsp), %rcx
callq 0x19128d
testl %eax, %eax
jne 0x23b45
movq 0x266551(%rip), %rax    # 0x289fe0
movq (%rax), %r15
callq 0x300fc
subsd 0xa0(%rsp), %xmm0
leaq 0x20655a(%rip), %rsi    # 0x22a001
leaq 0x20fca4(%rip), %rdx    # 0x233752
movq %r15, %rdi
movb $0x1, %al
callq 0x22b0
movq %rbx, %rdi
callq 0xa02fa
movq %rbx, %rdi
callq 0xa047e
movq 0x158(%rsp), %rdi
callq 0x2220
movq 0x60(%rsp), %rdi
callq 0x2220
movq 0x100(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rdi
callq 0x2220
leaq 0x1e0(%rsp), %rdi
callq 0x13bc20
leaq 0x178(%rsp), %rdi
callq 0x13bc20
movq 0x78(%rsp), %rdi
callq 0x2220
movq 0x70(%rsp), %rdi
callq 0x2220
leaq 0xc8(%rsp), %rdi
callq 0x18e13b
xorl %eax, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x288(%rsp), %rax
leaq 0x160(%rax), %rcx
movq %rcx, 0x88(%rsp)
addq $0x1c8, %rax            # imm = 0x1C8
movq %rax, 0x80(%rsp)
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r14d, 0x1c(%rsp)
movl %r12d, 0x4(%rsp)
movq 0x20(%rbx), %rax
movl 0x34(%rsp), %r13d
movl %r13d, %ecx
shrl %ecx
cmpl $0x0, (%rax,%rcx,8)
movq 0x288(%rsp), %r11
js 0x23c5b
cmpb $0x1, 0x4(%rax,%rcx,8)
je 0x23c5b
movq 0x28(%rbx), %rax
movq (%rax,%r13,8), %rdx
movq %rdx, %rcx
andq %r15, %rcx
je 0x23c5b
movq 0x8(%rbx), %rsi
shrq $0x20, %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rsi
addq $0xc, %rsi
imulq $0x18, %rcx, %rcx
xorl %edi, %edi
xorl %r8d, %r8d
movl (%rsi,%rdi), %r9d
notl %r9d
shrl $0x1f, %r9d
addl %r9d, %r8d
addq $0x18, %rdi
cmpq %rdi, %rcx
jne 0x23bd5
cmpl $0x1, %r8d
jne 0x23c5b
movq 0x8(%rbx), %rsi
addq %rsi, %rdx
addq $0xc, %rdx
xorl %esi, %esi
cmpl $0x0, (%rdx,%rsi)
js 0x23c09
movl -0x4(%rdx,%rsi), %ebp
addq $0x18, %rsi
cmpq %rsi, %rcx
jne 0x23bff
movl %ebp, %ecx
xorl $0x1, %ecx
movq %rcx, 0x48(%rsp)
movq (%rax,%rcx,8), %rax
movq %rax, %rcx
andq %r15, %rcx
je 0x23c5b
movq 0x8(%rbx), %rdx
shrq $0x20, %rax
imulq $0x18, %rax, %rax
addq %rdx, %rax
addq $0xc, %rax
imulq $0x18, %rcx, %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 0x23c43
cmpl $0x2, %esi
jge 0x23c89
movl %ebp, %r13d
movq 0xc0(%rsp), %rdi
movl %r12d, %esi
movl %r14d, %edx
movq %r11, %rcx
leaq 0x34(%rsp), %r8
callq 0x19128d
movl %r13d, %ebp
testl %eax, %eax
jne 0x23b7a
jmp 0x23a88
xorl $0x1, %r13d
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl %r13d, %edx
leaq 0x30(%rsp), %rcx
leaq 0xe8(%rsp), %r8
leaq 0xe0(%rsp), %r9
pushq $0x0
pushq $0x1
leaq 0xe0(%rsp), %rax
pushq %rax
leaq 0xf0(%rsp), %rax
pushq %rax
callq 0x10109f
addq $0x20, %rsp
cmpl $0x7, %eax
jne 0x23cde
movl %ebp, %r13d
movq 0x288(%rsp), %r11
jmp 0x23c5e
movq 0x28(%rbx), %rcx
movl 0x30(%rsp), %eax
movq %rcx, 0x10(%rsp)
movq (%rcx,%rax,8), %rdi
movq %rdi, %rax
shlq $0x20, %rax
setne %al
movq 0x288(%rsp), %r11
je 0x23d9e
movq 0x8(%rbx), %rdx
movq %rdi, %rsi
shrq $0x20, %rsi
imulq $0x18, %rsi, %rsi
addq %rdx, %rsi
movl %edi, %r8d
addq $0xc, %rdx
xorl %r9d, %r9d
xorl %edi, %edi
imulq $0x18, %r9, %r10
cmpl $0x0, 0xc(%rsi,%r10)
js 0x23d91
addq %rsi, %r10
movl 0x8(%r10), %r10d
xorq $0x1, %r10
movq 0x10(%rsp), %rcx
movq (%rcx,%r10,8), %r10
movq %r10, %r11
andq %r15, %r11
je 0x23da2
shrq $0x20, %r10
imulq $0x18, %r10, %r10
addq %rdx, %r10
imulq $0x18, %r11, %r11
xorl %r14d, %r14d
xorl %r12d, %r12d
movl (%r10,%r14), %ecx
notl %ecx
shrl $0x1f, %ecx
addl %ecx, %r12d
addq $0x18, %r14
cmpq %r14, %r11
jne 0x23d62
cmpl $0x2, %r12d
movl 0x1c(%rsp), %r14d
movq 0x288(%rsp), %r11
jl 0x23dac
incl %edi
movl 0x4(%rsp), %r12d
incq %r9
cmpq %r8, %r9
setb %al
jne 0x23d25
jmp 0x23db1
movb $0x1, %cl
jmp 0x23db6
movq 0x288(%rsp), %r11
jmp 0x23db1
movl 0x4(%rsp), %r12d
testl %edi, %edi
sete %cl
movq 0x8(%rsp), %r9
testb %cl, %cl
jne 0x23c5b
testb $0x1, %al
jne 0x23c5b
andq $0x0, 0x50(%rsp)
shrl %ebp
subq $0x8, %rsp
movq %rbx, %rdi
movl %r13d, %esi
movl %ebp, %edx
leaq 0xf8(%rsp), %rcx
leaq 0x58(%rsp), %r8
pushq $0x1
callq 0x1903fd
addq $0x10, %rsp
movq 0x28(%rbx), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, %rax
shrq $0x20, %rax
imulq $0x18, %rax, %rdi
addq 0x8(%rbx), %rdi
testl %edx, %edx
je 0x23e3a
movl %edx, %eax
movq %rdi, %rcx
movq 0x8(%rsp), %r9
cmpl $0x0, 0xc(%rcx)
js 0x23e2d
cmpl %r13d, 0x8(%rcx)
je 0x23e41
addq $0x18, %rcx
decq %rax
jne 0x23e21
xorl %ecx, %ecx
jmp 0x23e41
xorl %ecx, %ecx
movq 0x8(%rsp), %r9
movq %rcx, 0xb0(%rsp)
movq 0x50(%rsp), %r10
testl %edx, %edx
setne %r8b
movq %rdi, 0x38(%rsp)
je 0x23fb6
movl %r10d, %eax
movq %rax, 0x40(%rsp)
movq %rdx, 0xa8(%rsp)
movl %edx, %eax
xorl %r12d, %r12d
movq %r10, 0x20(%rsp)
movq %rax, 0xb8(%rsp)
imulq $0x18, %r12, %r14
cmpl $0x0, 0xc(%rdi,%r14)
js 0x23f8f
addq %rdi, %r14
movl 0x8(%r14), %esi
cmpl %r13d, %esi
je 0x23f8f
movb %r8b, 0x10(%rsp)
subq $0x8, %rsp
movq %rbx, %rdi
movl %ebp, %edx
leaq 0xf8(%rsp), %rcx
leaq 0x58(%rsp), %r8
pushq $0x2
callq 0x1903fd
popq %rcx
popq %rdx
testl %eax, %eax
je 0x23f24
movl 0x8(%r14), %esi
subq $0x8, %rsp
movl %r13d, %edi
leaq 0x1e8(%rsp), %rdx
movq 0x80(%rsp), %rcx
movq 0x90(%rsp), %r8
leaq 0x180(%rsp), %r9
movsd 0x20f804(%rip), %xmm0   # 0x233700
pushq $0x0
pushq %rax
pushq $0x3
pushq 0x28(%rsp)
pushq %rbx
pushq 0xb0(%rsp)
pushq 0xa8(%rsp)
callq 0x13c3e2
addq $0x40, %rsp
testl %eax, %eax
sete %al
jmp 0x23f26
movb $0x1, %al
movq 0x50(%rsp), %rdx
movq 0x20(%rsp), %r10
subq %r10, %rdx
testl %edx, %edx
movq 0x8(%rsp), %r9
je 0x23f6f
movq 0x40(%rsp), %rcx
leaq (,%rcx,4), %rcx
addq 0x60(%rsp), %rcx
movl %edx, %edx
xorl %esi, %esi
movl (%rcx,%rsi,4), %edi
movb (%r9,%rdi), %r8b
testb $0x2, %r8b
je 0x23f67
addb $-0x2, %r8b
movb %r8b, (%r9,%rdi)
incq %rsi
cmpq %rsi, %rdx
jne 0x23f52
movq 0x40(%rsp), %rcx
movq %rcx, 0x50(%rsp)
testb %al, %al
movq 0x38(%rsp), %rdi
movb 0x10(%rsp), %r8b
movq 0xb8(%rsp), %rax
je 0x23fa7
incq %r12
cmpq %rax, %r12
setb %r8b
jne 0x23e81
movq 0xa8(%rsp), %r12
movl %r12d, %ebp
movl 0x1c(%rsp), %r14d
movl 0x4(%rsp), %r12d
jmp 0x23fb8
xorl %ebp, %ebp
testl %r10d, %r10d
je 0x23fd7
movq 0x60(%rsp), %rax
movl %r10d, %ecx
xorl %edx, %edx
movl (%rax,%rdx,4), %esi
movb $0x0, (%r9,%rsi)
incq %rdx
cmpq %rdx, %rcx
jne 0x23fc7
testb $0x1, %r8b
je 0x243cb
andq $0x0, 0x148(%rsp)
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
movl %r13d, %edx
leaq 0x30(%rsp), %rcx
leaq 0xe8(%rsp), %r8
leaq 0xe0(%rsp), %r9
leaq 0x110(%rsp), %rax
pushq %rax
pushq $0x1
leaq 0xe0(%rsp), %rax
pushq %rax
leaq 0xf0(%rsp), %rax
pushq %rax
callq 0x10109f
addq $0x20, %rsp
movq 0x148(%rsp), %rax
testq %rax, %rax
je 0x2405f
movq 0x20(%rbx), %rcx
movq 0x158(%rsp), %rdx
xorl %esi, %esi
movl (%rdx,%rsi,4), %edi
shrl %edi
movb $0x1, 0x4(%rcx,%rdi,8)
incq %rsi
movl %esi, %edi
cmpq %rdi, %rax
ja 0x2404b
movq 0x148(%rsp), %rcx
testq %rcx, %rcx
je 0x24168
xorl %eax, %eax
movq 0x158(%rsp), %rcx
movl (%rcx,%rax,4), %ecx
movl %ecx, %edx
shrl %edx
movq 0x20(%rbx), %rsi
cmpb $0x1, 0x4(%rsi,%rdx,8)
jne 0x24155
andl $-0x2, %ecx
xorl %edx, %edx
leaq (%rdx,%rcx), %rsi
movq 0x28(%rbx), %rdi
movq (%rdi,%rsi,8), %r8
movq %r8, %rdi
andq %r15, %rdi
je 0x24145
shrq $0x20, %r8
imulq $0x18, %r8, %r8
addq 0x8(%rbx), %r8
xorl %r9d, %r9d
imulq $0x18, %r9, %r10
movl 0xc(%r8,%r10), %r11d
testl %r11d, %r11d
js 0x24139
addq %r8, %r10
movq 0x20(%rbx), %r12
movl 0x8(%r10), %r14d
movl %r14d, %r13d
shrl %r13d
cmpb $0x1, 0x4(%r12,%r13,8)
je 0x24139
orl $0x80000000, %r11d      # imm = 0x80000000
movl %r11d, 0xc(%r10)
xorq $0x1, %r14
movq 0x28(%rbx), %r10
movq (%r10,%r14,8), %r11
movq %r11, %r10
andq %r15, %r10
je 0x24139
movq 0x8(%rbx), %r14
shrq $0x20, %r11
imulq $0x18, %r10, %r10
imulq $0x18, %r11, %r11
addq %r14, %r11
addq $0xc, %r11
xorl %r14d, %r14d
movl -0x4(%r11,%r14), %r12d
xorl %esi, %r12d
cmpl $0x1, %r12d
jne 0x24130
orb $-0x80, 0x3(%r11,%r14)
addq $0x18, %r14
cmpq %r14, %r10
jne 0x2411c
incq %r9
cmpq %rdi, %r9
jne 0x240bc
leaq 0x1(%rdx), %rsi
testq %rdx, %rdx
movq %rsi, %rdx
je 0x24095
incl %eax
movq 0x148(%rsp), %rcx
cmpq %rax, %rcx
ja 0x24072
movq 0x288(%rsp), %rdi
cmpq %rcx, 0x198(%rdi)
jb 0x243f1
movq 0x148(%rsp), %rax
movq %rax, 0x198(%rdi)
movq 0xb0(%rdi), %r14
movl %r14d, %r12d
movq 0xb0(%rsp), %rax
movl 0xc(%rax), %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andq %rcx, %rdx
imulq $0x18, %rbp, %rax
movq 0x38(%rsp), %rsi
movl 0xc(%rsi,%rax), %r8d
andq %rcx, %r8
subq $0x8, %rsp
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rcx
movq 0x30(%rsp), %r9
pushq %rdi
callq 0x1902f0
movq 0x298(%rsp), %r11
addq $0x10, %rsp
cmpq %r12, 0xb0(%r11)
movq %r14, 0x20(%rsp)
jbe 0x243ac
movq %r14, 0x10(%rsp)
movq 0xc0(%r11), %rbp
imulq $0x30, %r12, %rax
leaq (%rax,%rbp), %r12
addq $0x8, %r12
movq %rax, 0x40(%rsp)
leaq 0x14(%rbp,%rax), %r14
movq 0x28(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x280(%rsp), %rcx
movq %r12, %r8
pushq $0x1
popq %r9
pushq $0x1
pushq %r14
movq %r11, %r13
callq 0x190883
popq %rcx
popq %rdx
testl %eax, %eax
jne 0x24286
movq 0x28(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x280(%rsp), %rcx
movq %r14, %r8
pushq $0x1
popq %r9
pushq $0x1
pushq %r12
callq 0x190883
popq %rcx
popq %rdx
testl %eax, %eax
je 0x24391
movq %rbp, 0x38(%rsp)
movq 0x198(%r13), %rax
pushq $-0x1
popq %rbp
testq %rax, %rax
movq 0x8(%rsp), %r9
leaq 0xf0(%rsp), %rcx
leaq 0x50(%rsp), %r8
je 0x242d4
movl (%r12), %r11d
movq 0x1a8(%r13), %rdx
pushq $0x1
popq %rsi
xorl %edi, %edi
movl (%rdx,%rdi,4), %ebp
movl %ebp, %edi
shrl %edi
cmpl %r11d, %edi
je 0x242d4
movl %esi, %edi
incl %esi
cmpq %rdi, %rax
ja 0x242bc
pushq $-0x1
popq %rbp
movq 0x200(%r13), %rax
pushq $-0x1
popq %r12
testq %rax, %rax
je 0x2430e
movl (%r14), %r11d
movq 0x210(%r13), %rdx
pushq $0x1
popq %rsi
xorl %edi, %edi
movl (%rdx,%rdi,4), %r12d
movl %r12d, %edi
shrl %edi
cmpl %r11d, %edi
je 0x2430e
movl %esi, %edi
incl %esi
cmpq %rdi, %rax
ja 0x242f3
pushq $-0x1
popq %r12
movq 0x108(%r13), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
movl %r12d, %edx
movq %r9, %r14
callq 0x19069f
testl %eax, %eax
jne 0x24391
movq 0x108(%r13), %rax
movq 0x18(%rax), %rdi
movl %r12d, %esi
movl %ebp, %edx
leaq 0xf0(%rsp), %rcx
leaq 0x50(%rsp), %r8
movq %r14, %r9
callq 0x19069f
testl %eax, %eax
jne 0x24391
movq 0x38(%rsp), %rsi
addq 0x40(%rsp), %rsi
movq 0xc0(%r13), %rax
movq 0x20(%rsp), %rdx
movl %edx, %ecx
imulq $0x30, %rcx, %rcx
movupd (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups 0x20(%rsi), %xmm2
movups %xmm2, 0x20(%rax,%rcx)
movups %xmm1, 0x10(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
incl %edx
movq %rdx, 0x20(%rsp)
movq %r13, %r11
movq 0x10(%rsp), %r14
incl %r14d
movq %r14, %r12
cmpq %r14, 0xb0(%r13)
ja 0x241f7
movl 0x20(%rsp), %eax
movq %rax, 0xb0(%r11)
movl 0x1c(%rsp), %r14d
movl 0x4(%rsp), %r12d
movq 0x48(%rsp), %r13
jmp 0x23c5e
movq 0x265c0e(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x20f35f(%rip), %rdi    # 0x23373b
pushq $0xc
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq 0x288(%rsp), %r11
jmp 0x243c1
movq 0x265be8(%rip), %rax    # 0x289fe0
movq (%rax), %rcx
leaq 0x20f346(%rip), %rdi    # 0x233748
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq 0x288(%rsp), %rdi
jmp 0x2417d