// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_demultiplex
KDQ_INIT(uint64_t)

void scg_demultiplex(scg_t *g)
{
    uint64_t i, j, k, n, m, v, w, nv, pv, *a;
    int8_t *flag;
    kdq_t(uint64_t) *q;
    kvec_t(uint64_t) sub_g;
    asmg_arc_t *av;
    asmg_vtx_t *vtx;
    asmg_t *utg_g, *de_g;
    khint_t k1;
    kh_u64_t *h_scm;
    ks_u128_t *arc_s;
    int absent;

    utg_g = g->utg_asmg;
    q = kdq_init(uint64_t, 0);
    MYCALLOC(flag, utg_g->n_vtx * 2);
    MYCALLOC(de_g, 1);
    h_scm = kh_u64_init();
    arc_s = ks_u128_init();
    kv_init(sub_g);
    for (i = 0, n = utg_g->n_vtx * 2; i < n; ++i) {
        if (flag[i] || utg_g->vtx[i>>1].del)
            continue;

        // get a sub graph
        sub_g.n = 0;
        kdq_push(uint64_t, q, i);
        kdq_push(uint64_t, q, i^1);
        while (kdq_size(q) > 0) {
            v = *kdq_shift(uint64_t, q);
            if (flag[v]) continue;
            if (v & 1) kv_push(uint64_t, sub_g, v>>1);
            nv = asmg_arc_n(utg_g, v);
            av = asmg_arc_a(utg_g, v);
            for (j = 0; j < nv; ++j) {
                if (av[j].del) continue;
                if (flag[av[j].w] == 0)
                    kdq_push(uint64_t, q, av[j].w);
                if (flag[av[j].w^1] == 0)
                    kdq_push(uint64_t, q, av[j].w^1);
            }
            flag[v] = 1;
        }

#ifdef DEBUG_UTG_DEMULTIPLEX
        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] processing subgraph:", __func__);
        for (j = 0; j < sub_g.n; ++j) fprintf(stderr, " u%lu", sub_g.a[j]);
        fprintf(stderr, "\n");
#endif
        // processing individual unitigs in sub_g
        for (j = 0; j < sub_g.n; ++j) {
#ifdef DEBUG_UTG_DEMULTIPLEX
            fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] process utg: u%lu\n", __func__, sub_g.a[j]);
#endif
            a = utg_g->vtx[sub_g.a[j]].a;
            m = utg_g->vtx[sub_g.a[j]].n;
            nv = 0;
            for (k = 0; k < m; ++k) {
                pv = nv;
                v = a[k] >> 1;
                k1 = kh_u64_put(h_scm, v, &absent);
                if (absent) {
                    // add v
                    nv = scg_add_utg_p(de_g, &vtx);
                    MYBZERO(vtx, 1);
                    MYMALLOC(vtx->a, 1);
                    vtx->n = 1;
                    vtx->a[0] = v << 1;
                    kh_val(h_scm, k1) = nv;
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add vtx: %lu [%lu%c]\n", 
                            __func__, nv, v, "+-"[a[k]&1]);
#endif
                } else {
                    // v has been added
                    nv = kh_val(h_scm, k1);
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] existed vtx: %lu [%lu%c]\n", 
                            __func__, nv, v, "+-"[a[k]&1]);
#endif
                }
                if (k > 0) {
                    // add arc pv->nv
                    v = pv << 1 | (a[k-1]&1);
                    w = nv << 1 | (a[k]&1);
                    k1 = ks_u128_get(arc_s, (uint128_t) v<<64 | w);
                    if (k1 >= kh_end(arc_s)) {
                        // arc does not exist
                        asmg_arc_add2(de_g, v, w, 0, 0, 0, 0, 0);
                        ks_u128_put(arc_s, (uint128_t) v<<64 | w, &absent);
                        ks_u128_put(arc_s, (uint128_t) (w^1)<<64 | (v^1), &absent);
#ifdef DEBUG_UTG_DEMULTIPLEX
                        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add arc: %lu%c -> %lu%c\n", 
                                __func__, v>>1, "+-"[v&1], w>>1, "+-"[w&1]);
#endif
                    }
#ifdef DEBUG_UTG_DEMULTIPLEX
                    else {
                        fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] existed arc: %lu%c -> %lu%c\n",
                                __func__, v>>1, "+-"[v&1], w>>1, "+-"[w&1]);
                    }
#endif
                }
            }
        }
        
        // add arcs between unitigs
        m = sub_g.n * 2;
        for (j = 0; j < m; ++j) {
            v = sub_g.a[j>>1];
            a = utg_g->vtx[v].a;
            pv = (j&1)? a[0]^1 : a[utg_g->vtx[v].n-1];
            k1 = kh_u64_get(h_scm, pv>>1);
            pv = kh_val(h_scm, k1)<<1 | (pv&1);
            for (k = 0; k < m; ++k) {
                w = sub_g.a[k>>1];
                av = asmg_arc1(utg_g, v<<1|(j&1), w<<1|(k&1));
                if (av == 0 || av->ln > 0)
                    continue;
                a = utg_g->vtx[w].a;
                nv = (k&1)? a[utg_g->vtx[w].n-1]^1 : a[0];
                k1 = kh_u64_get(h_scm, nv>>1);
                nv = kh_val(h_scm, k1)<<1 | (nv&1);
                if (ks_u128_get(arc_s, (uint128_t) pv<<64 | nv) >= kh_end(arc_s)) {
                    // add vtx pv->nv
                    asmg_arc_add(de_g, pv, nv, 0, 0, 0, 0, 0);
                    ks_u128_put(arc_s, (uint128_t) pv<<64 | nv, &absent);
#ifdef DEBUG_UTG_DEMULTIPLEX
                    fprintf(stderr, "[DEBUG_UTG_DEMULTIPLEX::%s] add inter-utg arc: %lu%c -> %lu%c\n",
                            __func__, pv>>1, "+-"[pv&1], nv>>1, "+-"[nv&1]);
#endif
                }
            }
        }
        
        kh_u64_m_clear(h_scm);
        ks_u128_s_clear(arc_s);
    }
    
    kdq_destroy(uint64_t, q);
    kv_destroy(sub_g);
    kh_u64_destroy(h_scm);
    ks_u128_destroy(arc_s);
    free(flag);
    
    // sort arc and build index
    asmg_finalize(de_g, 1);
    
    // update utg graph
    asmg_destroy(utg_g);
    g->utg_asmg = de_g;

    // postprocessing for mergeable utgs after purging
    process_mergeable_unitigs(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movabsq $0x3ffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFF
movq %rdi, 0x88(%rsp)
movq 0x8(%rdi), %rbp
xorl %ebx, %ebx
movl $0x1, %esi
movl $0x28, %edx
xorl %edi, %edi
callq 0x1b528
movq %rax, %r13
movq (%rax), %rax
andq %r14, %rax
btsq $0x3b, %rax
movq %rax, (%r13)
movq $0x3, 0x10(%r13)
movl $0x20, %esi
xorl %edi, %edi
callq 0x1b695
movq %rax, 0x18(%r13)
movq %rbx, 0x20(%r13)
xorl %r14d, %r14d
movq (%rbp), %rdi
addq %rdi, %rdi
movl $0x1, %esi
callq 0x2250
movq %rax, %r12
movl $0x1, %edi
movl $0x40, %esi
callq 0x2250
movq %rax, %r15
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x1b528
movq %rax, %rbx
movq %r14, 0x18(%rax)
movl $0x1, %esi
movl $0x20, %edx
xorl %edi, %edi
callq 0x1b528
movq %rbp, %r10
movq %rax, %rbp
movq %r14, 0x18(%rax)
movq (%r10), %rdx
movl $0x0, %eax
movq %rax, 0x20(%rsp)
addq %rdx, %rdx
movq %r10, 0x8(%rsp)
je 0x9ece
xorl %r14d, %r14d
movq $0x0, 0x20(%rsp)
movq $0x0, 0x70(%rsp)
movq %r15, 0x40(%rsp)
movq %rbp, 0x38(%rsp)
movq %rbx, 0x30(%rsp)
movq %r12, 0x98(%rsp)
movq %r13, 0x90(%rsp)
movq %rdx, 0x60(%rsp)
cmpb $0x0, (%r12,%r14)
jne 0x9ec2
movq 0x10(%r10), %rax
movq %r14, %rcx
shrq %rcx
leaq (%rcx,%rcx,4), %rcx
testb $0x40, 0x23(%rax,%rcx,8)
jne 0x9ec2
movq %r13, %rdi
movq %r14, %rsi
callq 0x9f8a
movq %r14, 0x68(%rsp)
xorq $0x1, %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0x9f8a
movq 0x8(%rsp), %r10
movq $0x0, 0x10(%rsp)
movq 0x8(%r13), %rax
decq %rax
cmpq $-0x1, %rax
je 0x9162
movq (%r13), %rcx
movq 0x18(%r13), %rdx
movq %rcx, %rsi
movabsq $0x3ffffffffffffff, %r8 # imm = 0x3FFFFFFFFFFFFFF
andq %r8, %rsi
leaq 0x1(%rcx), %rdi
andq %r8, %rdi
andq 0x10(%r13), %rdi
movabsq $-0x400000000000000, %r8 # imm = 0xFC00000000000000
andq %r8, %rcx
orq %rcx, %rdi
movq %rdi, (%r13)
movq %rax, 0x8(%r13)
movq (%rdx,%rsi,8), %r14
decq %rax
cmpb $0x0, (%r12,%r14)
jne 0x9030
testb $0x1, %r14b
je 0x90e4
movq 0x70(%rsp), %rax
cmpq %rax, 0x10(%rsp)
jne 0x90c3
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq 0x20(%rsp), %rdi
callq 0x2360
movq %rbx, 0x70(%rsp)
movq 0x8(%rsp), %r10
jmp 0x90c8
movq 0x20(%rsp), %rax
movq %r14, %rcx
shrq %rcx
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdx
movq %rcx, (%rax,%rdx,8)
incq %rdx
movq %rdx, 0x10(%rsp)
movq 0x38(%r10), %rax
movq (%rax,%r14,8), %r15
testq %r15, %r15
je 0x9149
movq 0x8(%rsp), %rcx
movq 0x28(%rcx), %rax
movq 0x30(%rcx), %rcx
movq (%rcx,%r14,8), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rbx
addq $0x8, %rbx
testb $0x40, 0x1b(%rbx)
jne 0x9140
movq (%rbx), %rsi
cmpb $0x0, (%r12,%rsi)
jne 0x912a
movq %r13, %rdi
callq 0x9f8a
movq (%rbx), %rsi
xorq $0x1, %rsi
cmpb $0x0, (%r12,%rsi)
jne 0x9140
movq %r13, %rdi
callq 0x9f8a
addq $0x30, %rbx
decq %r15
jne 0x9112
movb $0x1, (%r12,%r14)
movq 0x8(%rsp), %r10
movq 0x40(%rsp), %r15
movq 0x30(%rsp), %rbx
jmp 0x9029
cmpq $0x0, 0x10(%rsp)
je 0x9983
xorl %edx, %edx
movq 0x10(%r10), %rax
movq 0x20(%rsp), %rcx
movq %rdx, 0xa0(%rsp)
movq (%rcx,%rdx,8), %rcx
leaq (%rcx,%rcx,4), %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, 0xa8(%rsp)
testq %rdx, %rdx
je 0x996d
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0x78(%rsp)
xorl %edi, %edi
xorl %r14d, %r14d
cmpq $0x0, 0x10(%rbx)
movq %r14, 0xb0(%rsp)
je 0x91c9
movb (%rbx), %cl
movl $0x1, %r13d
shll %cl, %r13d
jmp 0x91cc
xorl %r13d, %r13d
movq 0x78(%rsp), %rax
movq (%rax,%rdi,8), %r9
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
movl 0x4(%rbx), %eax
movl %r13d, %ecx
shrl %ecx
movl %r13d, %edx
shrl $0x2, %edx
addl %ecx, %edx
cmpl %edx, %eax
movq %rdi, 0x28(%rsp)
movq %r9, 0x80(%rsp)
jb 0x9480
leal 0x1(%r13), %ecx
bsrl %ecx, %edx
cmpl $0x2, %ecx
movl $0x0, %esi
cmovbl %esi, %edx
andl %r13d, %ecx
cmpl $0x1, %ecx
sbbl $-0x1, %edx
cmpl $0x3, %edx
movl $0x2, %ecx
cmovael %edx, %ecx
movl $0x1, %r14d
shll %cl, %r14d
movl %r14d, %edi
shrl %edi
movl %r14d, %esi
shrl $0x2, %esi
addl %edi, %esi
cmpl %esi, %eax
ja 0x9475
movl %ecx, 0x54(%rsp)
movq %r10, %r12
movq 0x18(%rbx), %rdi
movq %r14, 0x58(%rsp)
shrl $0x3, %r14d
andl $-0x4, %r14d
cmpl $0x5, %edx
movl $0x4, %eax
cmovbl %eax, %r14d
movq %r14, %rsi
callq 0x1b695
movq %rax, %rbp
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x21e0
testq %rbp, %rbp
je 0x929d
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x92a5
movb (%rbx), %cl
movl $0x1, %r14d
shll %cl, %r14d
jmp 0x92a8
movq %r12, %r10
jmp 0x9545
xorl %r14d, %r14d
movq 0x58(%rsp), %rax
cmpl %eax, %r14d
jae 0x92ee
movq 0x18(%rbx), %rdi
movl %eax, %edx
shlq $0x4, %rdx
callq 0x1b798
testq %rax, %rax
je 0x92cc
movq %rax, 0x10(%rbx)
jmp 0x92e2
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %rax, 0x48(%rsp)
callq 0x1b5ca
movq 0x48(%rsp), %rax
testq %rax, %rax
movq %r12, %r10
je 0x9545
testl %r14d, %r14d
je 0x9426
movq 0x58(%rsp), %rax
leal -0x1(%rax), %edi
movq 0x30(%rsp), %rax
movq 0x8(%rax), %r8
movl $0x20, %eax
subl 0x54(%rsp), %eax
movl %r14d, %ecx
movq %rcx, 0x48(%rsp)
xorl %edx, %edx
movl %edx, %esi
shrl $0x5, %esi
movl (%r8,%rsi,4), %ebx
movl $0x1, %r15d
movl %edx, %ecx
shll %cl, %r15d
btl %edx, %ebx
jae 0x9418
movq 0x30(%rsp), %rcx
movq 0x10(%rcx), %r10
movq %rdx, %rcx
shlq $0x4, %rcx
movq (%r10,%rcx), %r13
movq 0x8(%r10,%rcx), %r9
notl %r15d
andl %r15d, %ebx
movl %ebx, (%r8,%rsi,4)
movq %r13, %rcx
notq %rcx
movq %r13, %rsi
shlq $0x15, %rsi
addq %rcx, %rsi
movq %rsi, %rcx
shrq $0x18, %rcx
xorq %rsi, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rsi
shrq $0xe, %rsi
xorq %rcx, %rsi
leaq (%rsi,%rsi,4), %rcx
leaq (%rsi,%rcx,4), %rcx
movq %rcx, %rsi
shrq $0x1c, %rsi
xorl %ecx, %esi
imull $0x1e3779b9, %esi, %esi # imm = 0x1E3779B9
movl %eax, %ecx
shrl %cl, %esi
movl %esi, %r12d
shrl $0x5, %r12d
movl (%rbp,%r12,4), %r15d
movl $0x1, %ebx
movl %esi, %ecx
shll %cl, %ebx
btl %esi, %r15d
jae 0x93c2
incl %esi
andl %edi, %esi
jmp 0x93a1
orl %ebx, %r15d
movl %r15d, (%rbp,%r12,4)
movl %esi, %ecx
cmpl %r14d, %esi
jae 0x9401
movl (%r8,%r12,4), %esi
testl %ebx, %esi
je 0x9401
shlq $0x4, %rcx
movq (%r10,%rcx), %r15
movq 0x8(%r10,%rcx), %r11
movq %r13, (%r10,%rcx)
movq %r9, 0x8(%r10,%rcx)
notl %ebx
andl %ebx, %esi
movl %esi, (%r8,%r12,4)
movb $0x1, %cl
movq %r11, %r9
movq %r15, %r13
jmp 0x9410
shlq $0x4, %rcx
movq %r13, (%r10,%rcx)
movq %r9, 0x8(%r10,%rcx)
xorl %ecx, %ecx
testb %cl, %cl
jne 0x935b
incq %rdx
cmpq 0x48(%rsp), %rdx
jne 0x931b
movq 0x58(%rsp), %rax
cmpl %eax, %r14d
movq 0x30(%rsp), %rbx
jbe 0x944c
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdi
movl %eax, %edx
shlq $0x4, %rdx
callq 0x1b798
movq %rax, 0x10(%rbx)
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdi
callq 0x1b5ca
movq %rbp, 0x8(%rbx)
movl 0x54(%rsp), %eax
movl %eax, (%rbx)
movq 0x8(%rsp), %r10
movq 0x40(%rsp), %r15
movq 0x80(%rsp), %r9
movb (%rbx), %cl
movl $0x1, %r13d
shll %cl, %r13d
movq %r9, %rax
shrq %rax
movq %rax, %rcx
notq %rcx
movq %rax, %rdx
shlq $0x15, %rdx
addq %rcx, %rdx
movq %rdx, %rcx
shrq $0x18, %rcx
xorq %rdx, %rcx
imulq $0x109, %rcx, %rcx      # imm = 0x109
movq %rcx, %rdx
shrq $0xe, %rdx
xorq %rcx, %rdx
leaq (%rdx,%rdx,4), %rcx
leaq (%rdx,%rcx,4), %rcx
movq %rcx, %rdx
shrq $0x1c, %rdx
xorl %ecx, %edx
imull $0x1e3779b9, %edx, %esi # imm = 0x1E3779B9
movb (%rbx), %dl
xorl %ecx, %ecx
subb %dl, %cl
shrl %cl, %esi
movl %r13d, %ecx
decl %ecx
movq 0x8(%rbx), %rdx
movl %esi, %r13d
movl %r13d, %edi
shrl $0x5, %edi
movl (%rdx,%rdi,4), %edi
btl %r13d, %edi
jae 0x9507
movq 0x10(%rbx), %rdi
movl %r13d, %r8d
shlq $0x4, %r8
cmpq %rax, (%rdi,%r8)
je 0x9507
incl %r13d
andl %ecx, %r13d
cmpl %esi, %r13d
jne 0x94dc
movl %r13d, %esi
movl $0x1, %edi
movl %r13d, %ecx
shll %cl, %edi
shrl $0x5, %esi
movl (%rdx,%rsi,4), %ecx
xorl %r8d, %r8d
btl %r13d, %ecx
jb 0x9540
movq 0x10(%rbx), %r8
movl %r13d, %r9d
shlq $0x4, %r9
movq %rax, (%r8,%r9)
orl %ecx, %edi
movl %edi, (%rdx,%rsi,4)
incl 0x4(%rbx)
movl $0x1, %r8d
movl %r8d, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
je 0x962a
movq 0x8(%r15), %rax
cmpq %rax, (%r15)
movq 0x38(%rsp), %rbp
jne 0x95ba
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
orq %rcx, %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%r15)
movq 0x10(%r15), %rdi
leaq 0x8(,%rax,8), %rax
leaq (%rax,%rax,4), %rsi
callq 0x2360
movq %rax, 0x10(%r15)
movq (%r15), %r14
movq 0x10(%r15), %rbx
leaq 0x1(%r14), %rax
movq %rax, (%r15)
leaq (%r14,%r14,4), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx,%r15,8)
movups %xmm0, (%rbx,%r15,8)
movq $0x0, 0x20(%rbx,%r15,8)
movl $0x8, %edi
callq 0x2320
movq %rax, 0x8(%rbx,%r15,8)
movq $0x1, (%rbx,%r15,8)
movq 0x40(%rsp), %r15
movq 0x80(%rsp), %rcx
andq $-0x2, %rcx
movq %rcx, (%rax)
movq 0x30(%rsp), %rbx
movq 0x10(%rbx), %rax
movl %r13d, %ecx
shlq $0x4, %rcx
movq %r14, 0x8(%rax,%rcx)
movq 0x8(%rsp), %r10
jmp 0x963f
movq 0x10(%rbx), %rax
movl %r13d, %ecx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %r14
movq 0x38(%rsp), %rbp
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x995c
movq 0x78(%rsp), %rcx
movq -0x8(%rcx,%rdi,8), %rax
movq (%rcx,%rdi,8), %rcx
andl $0x1, %eax
movq 0xb0(%rsp), %rdx
leaq (%rax,%rdx,2), %r12
andl $0x1, %ecx
leaq (%rcx,%r14,2), %r13
movq 0x10(%rbp), %rsi
xorl %eax, %eax
movl $0x0, %edx
testq %rsi, %rsi
je 0x97b9
movb (%rbp), %cl
movl $0x1, %edx
shll %cl, %edx
movq %r13, %rdi
notq %rdi
movq %r13, %r8
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %r8
movq %r8, %rdi
shrq $0x1c, %rdi
xorq %r8, %rdi
movq %r12, %r8
notq %r8
movq %r12, %r9
shlq $0x15, %r9
addq %r8, %r9
movq %r9, %r8
shrq $0x18, %r8
xorq %r9, %r8
imulq $0x109, %r8, %r8        # imm = 0x109
movq %r8, %r9
shrq $0xe, %r9
xorq %r8, %r9
leaq (%r9,%r9,4), %r8
leaq (%r9,%r8,4), %r8
movq %r8, %r9
shrq $0x1c, %r9
xorl %r8d, %r9d
movl $0x80000001, %r8d       # imm = 0x80000001
imull %r9d, %r8d
movabsq $-0x7fffffff00000000, %r9 # imm = 0x8000000100000000
imulq %r9, %rdi
orq %rdi, %r8
movq %r8, %rdi
notq %rdi
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorl %edi, %r8d
imull $0x1e3779b9, %r8d, %edi # imm = 0x1E3779B9
negb %cl
shrl %cl, %edi
leal -0x1(%rdx), %ecx
movq 0x8(%rbp), %r8
movl %edi, %r9d
movl %r9d, %r10d
shrl $0x5, %r10d
movl (%r8,%r10,4), %r10d
btl %r9d, %r10d
jae 0x97af
movl %r9d, %r10d
shlq $0x4, %r10
movq 0x8(%rsi,%r10), %r11
xorq %r12, %r11
movq (%rsi,%r10), %r10
xorq %r13, %r10
orq %r11, %r10
je 0x97ac
incl %r9d
andl %ecx, %r9d
cmpl %edi, %r9d
jne 0x9773
jmp 0x97af
movl %r9d, %edx
movq 0x8(%rsp), %r10
movq 0x28(%rsp), %rdi
testq %rsi, %rsi
je 0x97c8
movb (%rbp), %cl
movl $0x1, %eax
shll %cl, %eax
cmpl %eax, %edx
jb 0x995c
movq 0x20(%r15), %rax
cmpq %rax, 0x18(%r15)
jne 0x9831
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
orq %rcx, %rax
incq %rax
movq %rax, 0x20(%r15)
movq 0x28(%r15), %rdi
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2360
movq %rax, 0x28(%r15)
movq 0x18(%r15), %rax
movq 0x28(%r15), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%r15)
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq %r12, (%rcx,%rax)
movq %r13, 0x8(%rcx,%rax)
movq $0x0, 0x28(%rcx,%rax)
movq %r13, %rbx
xorq $0x1, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rcx,%rax)
movl $0x0, 0x20(%rcx,%rax)
cmpq %r12, %rbx
je 0x991d
movq 0x20(%r15), %rax
cmpq %rax, 0x18(%r15)
jne 0x98dc
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
orq %rcx, %rax
incq %rax
movq %rax, 0x20(%r15)
movq 0x28(%r15), %rdi
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2360
movq %rax, 0x28(%r15)
movq %r12, %rax
xorq $0x1, %rax
movq 0x18(%r15), %rcx
movq 0x28(%r15), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, 0x18(%r15)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq %rbx, (%rdx,%rcx)
movq %rax, 0x8(%rdx,%rcx)
movq $0x0, 0x28(%rdx,%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdx,%rcx)
movl $0x80000000, 0x20(%rdx,%rcx) # imm = 0x80000000
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
leaq 0x1c(%rsp), %r13
movq %r13, %rcx
callq 0x89f2
xorq $0x1, %r12
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x89f2
movq 0x30(%rsp), %rbx
movq 0x8(%rsp), %r10
movq 0x28(%rsp), %rdi
incq %rdi
cmpq 0xa8(%rsp), %rdi
jne 0x91ad
movq 0xa0(%rsp), %rdx
incq %rdx
cmpq 0x10(%rsp), %rdx
jne 0x9170
movq 0x10(%rsp), %rax
addq %rax, %rax
movq %rax, 0x10(%rsp)
je 0x9e2f
xorl %edx, %edx
movq %rdx, %rax
andq $-0x2, %rax
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,4), %rax
movq 0x10(%r10), %rsi
leaq (%rax,%rax,4), %rdi
movq 0x8(%rsi,%rdi,8), %rcx
movq %rdx, 0x48(%rsp)
andq $0x1, %rdx
jne 0x99ce
leaq (%rsi,%rdi,8), %rsi
movq (%rsi), %rsi
movq -0x8(%rcx,%rsi,8), %rsi
jmp 0x99d5
movq (%rcx), %rsi
xorq $0x1, %rsi
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9a77
movq %rsi, %r9
movb (%rbx), %cl
movl $0x1, %r8d
shll %cl, %r8d
shrq %r9
movq %r9, %r10
notq %r10
movq %r9, %r11
shlq $0x15, %r11
addq %r10, %r11
movq %r11, %r10
shrq $0x18, %r10
xorq %r11, %r10
imulq $0x109, %r10, %r10      # imm = 0x109
movq %r10, %r11
shrq $0xe, %r11
xorq %r10, %r11
leaq (%r11,%r11,4), %r10
leaq (%r11,%r10,4), %r10
movq %r10, %r11
shrq $0x1c, %r11
xorl %r10d, %r11d
imull $0x1e3779b9, %r11d, %r10d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r10d
leal -0x1(%r8), %ecx
movq 0x8(%rbx), %rbx
movl %r10d, %r11d
movl %r11d, %r14d
shrl $0x5, %r14d
movl (%rbx,%r14,4), %ebp
btl %r11d, %ebp
jae 0x9a7b
movl %r11d, %r14d
shlq $0x4, %r14
cmpq %r9, (%rdi,%r14)
movq 0x38(%rsp), %rbp
je 0x9a82
incl %r11d
andl %ecx, %r11d
cmpl %r10d, %r11d
jne 0x9a47
jmp 0x9a85
xorl %ecx, %ecx
jmp 0x9a92
movq 0x38(%rsp), %rbp
jmp 0x9a85
movl %r11d, %r8d
movl %r8d, %ecx
movq 0x8(%rsp), %r10
movq 0x30(%rsp), %rbx
shlq $0x4, %rcx
movq 0x8(%rdi,%rcx), %rcx
andl $0x1, %esi
leaq (%rsi,%rcx,2), %r13
leaq (%rdx,%rax,2), %r15
movq %r13, %rax
notq %rax
movq %r13, %rcx
shlq $0x15, %rcx
addq %rax, %rcx
movq %rcx, %rax
shrq $0x18, %rax
xorq %rcx, %rax
imulq $0x109, %rax, %rax      # imm = 0x109
movq %rax, %rcx
shrq $0xe, %rcx
xorq %rax, %rcx
leaq (%rcx,%rcx,4), %rax
leaq (%rcx,%rax,4), %rax
movq %rax, %rcx
shrq $0x1c, %rcx
xorl %eax, %ecx
movl $0x80000001, %eax       # imm = 0x80000001
imull %ecx, %eax
movq %rax, 0x28(%rsp)
xorl %r14d, %r14d
movq %r14, %rax
andq $-0x2, %rax
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,4), %rax
movl %r14d, %ecx
andl $0x1, %ecx
movq 0x38(%r10), %rdx
movq (%rdx,%r15,8), %rsi
testq %rsi, %rsi
je 0x9b42
leaq (%rcx,%rax,2), %rdi
movq 0x30(%r10), %rdx
movq (%rdx,%r15,8), %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
addq 0x28(%r10), %rdx
cmpq %rdi, 0x8(%rdx)
jne 0x9b39
testb $0x40, 0x23(%rdx)
je 0x9b44
addq $0x30, %rdx
decq %rsi
jne 0x9b2d
xorl %edx, %edx
testq %rdx, %rdx
je 0x9e09
cmpq $0x0, 0x10(%rdx)
jne 0x9e09
movq 0x10(%r10), %rdx
leaq (%rax,%rax,4), %rsi
movq 0x8(%rdx,%rsi,8), %rax
testq %rcx, %rcx
jne 0x9b6f
movq (%rax), %rax
jmp 0x9b7f
leaq (%rdx,%rsi,8), %rcx
movq (%rcx), %rcx
movq -0x8(%rax,%rcx,8), %rax
xorq $0x1, %rax
movq 0x10(%rbx), %rdx
testq %rdx, %rdx
je 0x9c19
movq %rax, %rdi
movb (%rbx), %cl
movl $0x1, %esi
shll %cl, %esi
shrq %rdi
movq %rdi, %r8
notq %r8
movq %rdi, %r9
shlq $0x15, %r9
addq %r8, %r9
movq %r9, %r8
shrq $0x18, %r8
xorq %r9, %r8
imulq $0x109, %r8, %r8        # imm = 0x109
movq %r8, %r9
shrq $0xe, %r9
xorq %r8, %r9
leaq (%r9,%r9,4), %r8
leaq (%r9,%r8,4), %r8
movq %r8, %r9
shrq $0x1c, %r9
xorl %r8d, %r9d
imull $0x1e3779b9, %r9d, %r8d # imm = 0x1E3779B9
negb %cl
shrl %cl, %r8d
leal -0x1(%rsi), %ecx
movq 0x8(%rbx), %r10
movl %r8d, %r9d
movl %r9d, %r11d
shrl $0x5, %r11d
movl (%r10,%r11,4), %r11d
btl %r9d, %r11d
jae 0x9c20
movl %r9d, %r11d
shlq $0x4, %r11
cmpq %rdi, (%rdx,%r11)
je 0x9c1d
incl %r9d
andl %ecx, %r9d
cmpl %r8d, %r9d
jne 0x9bee
jmp 0x9c20
xorl %ecx, %ecx
jmp 0x9c27
movl %r9d, %esi
movl %esi, %ecx
movq 0x8(%rsp), %r10
shlq $0x4, %rcx
movq 0x8(%rdx,%rcx), %rcx
andl $0x1, %eax
leaq (%rax,%rcx,2), %r12
movq 0x10(%rbp), %rsi
xorl %eax, %eax
movl $0x0, %edx
testq %rsi, %rsi
je 0x9d35
movb (%rbp), %cl
movl $0x1, %edx
shll %cl, %edx
movq %r12, %rdi
notq %rdi
movq %r12, %r8
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorq %rdi, %r8
movabsq $-0x7fffffff00000000, %rdi # imm = 0x8000000100000000
imulq %rdi, %r8
orq 0x28(%rsp), %r8
movq %r8, %rdi
notq %rdi
shlq $0x15, %r8
addq %rdi, %r8
movq %r8, %rdi
shrq $0x18, %rdi
xorq %r8, %rdi
imulq $0x109, %rdi, %rdi      # imm = 0x109
movq %rdi, %r8
shrq $0xe, %r8
xorq %rdi, %r8
leaq (%r8,%r8,4), %rdi
leaq (%r8,%rdi,4), %rdi
movq %rdi, %r8
shrq $0x1c, %r8
xorl %edi, %r8d
imull $0x1e3779b9, %r8d, %edi # imm = 0x1E3779B9
negb %cl
shrl %cl, %edi
leal -0x1(%rdx), %ecx
movq 0x8(%rbp), %r8
movl %edi, %r9d
movl %r9d, %r10d
shrl $0x5, %r10d
movl (%r8,%r10,4), %r10d
btl %r9d, %r10d
jae 0x9d30
movl %r9d, %r10d
shlq $0x4, %r10
movq 0x8(%rsi,%r10), %r11
xorq %r13, %r11
movq (%rsi,%r10), %r10
xorq %r12, %r10
orq %r11, %r10
je 0x9d2d
incl %r9d
andl %ecx, %r9d
cmpl %edi, %r9d
jne 0x9cf4
jmp 0x9d30
movl %r9d, %edx
movq 0x8(%rsp), %r10
testq %rsi, %rsi
je 0x9d44
movb (%rbp), %cl
movl $0x1, %eax
shll %cl, %eax
cmpl %eax, %edx
jb 0x9e09
movq 0x40(%rsp), %rbp
movq 0x20(%rbp), %rax
cmpq %rax, 0x18(%rbp)
jne 0x9db2
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x20, %rax
orq %rcx, %rax
incq %rax
movq %rax, 0x20(%rbp)
movq 0x28(%rbp), %rdi
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2360
movq %rax, 0x28(%rbp)
movq 0x18(%rbp), %rax
movq 0x28(%rbp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%rbp)
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq %r13, (%rcx,%rax)
movq %r12, 0x8(%rcx,%rax)
movq $0x0, 0x28(%rcx,%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rcx,%rax)
movl $0x0, 0x20(%rcx,%rax)
movq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
movq %r13, %rdx
leaq 0x1c(%rsp), %rcx
callq 0x89f2
movq 0x8(%rsp), %r10
incq %r14
cmpq 0x10(%rsp), %r14
jne 0x9af2
movq 0x48(%rsp), %rdx
incq %rdx
cmpq 0x10(%rsp), %rdx
movq 0x40(%rsp), %r15
jne 0x9998
testq %rbx, %rbx
movq 0x98(%rsp), %r12
movq 0x90(%rsp), %r13
je 0x9e7b
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x9e7b
movl (%rbx), %ecx
movl $0x1, %edx
shll %cl, %edx
shrl $0x3, %edx
andl $-0x4, %edx
cmpl $0x5, %ecx
movl $0x4, %eax
cmovbl %eax, %edx
xorl %esi, %esi
movq %r10, %r14
callq 0x21e0
movq %r14, %r10
movl $0x0, 0x4(%rbx)
testq %rbp, %rbp
je 0x9eb8
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x9eb8
movl (%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
shrl $0x3, %edx
andl $-0x4, %edx
cmpl $0x5, %ecx
movl $0x4, %eax
cmovbl %eax, %edx
xorl %esi, %esi
movq %r10, %r14
callq 0x21e0
movq %r14, %r10
movl $0x0, 0x4(%rbp)
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %r14
incq %r14
cmpq %rdx, %r14
jne 0x8fd8
movq 0x18(%r13), %rsi
movq 0x20(%r13), %rdi
callq 0x1b5ca
movq 0x20(%r13), %rdi
movq %r13, %rsi
callq 0x1b5ca
movq 0x20(%rsp), %rdi
callq 0x2060
testq %rbx, %rbx
je 0x9f1d
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x1b5ca
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x1b5ca
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b5ca
testq %rbp, %rbp
je 0x9f49
movq 0x10(%rbp), %rsi
movq 0x18(%rbp), %rbx
movq %rbx, %rdi
callq 0x1b5ca
movq 0x8(%rbp), %rsi
movq %rbx, %rdi
callq 0x1b5ca
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x1b5ca
movq %r12, %rdi
callq 0x2060
movq %r15, %rdi
movl $0x1, %esi
callq 0x15237
movq 0x8(%rsp), %rdi
callq 0x14f4c
movq 0x88(%rsp), %rdi
movq %r15, 0x8(%rdi)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6e8e