// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ug_ext(ul_resolve_t*, usg_t*, unsigned long*, unsigned long, unsigned long*, unsigned int, unsigned char*, unsigned int*, unsigned long*, asg64_v*, asg64_v*)
uint32_t ug_ext(ul_resolve_t *uidx, usg_t *ng, uint64_t *int_idx, uint64_t int_idx_n, uint64_t *int_a, uint32_t max_ext, 
uint8_t *ff, uint32_t *ng_occ, uint64_t *i_idx, asg64_v *b64, asg64_v *ub64)
{
    uint32_t n_vtx = ng->n<<1, k, i; uint64_t pi, ei, *pz, v, b64_n;
    uint64_t *r_a, r_n, zs, ze, s, e, a_n, ua_n, bn, n_clus;
    memset(ff, 0, sizeof((*ff))*n_vtx);
    memset(ng_occ, 0, sizeof((*ng_occ))*n_vtx); 
    memset(i_idx, 0, sizeof((*i_idx))*n_vtx); 
    b64->n = ub64->n = 0;

    for (k = 0; k < int_idx_n; k++) {///scan all integer contigs
        r_a = int_a + (int_idx[k]>>32); r_n = (uint32_t)int_idx[k];
        assert(r_n >= 2);
        for (i = 1; i + 1 < r_n; i++) {
            ng_occ[r_a[i]]++; ng_occ[r_a[i]^1]++;
        }
        ng_occ[r_a[0]]++; ng_occ[r_a[r_n-1]^1]++;
    }

    ma_ug_t *un_g = ma_ug_hybrid_gen(ng); 
    int32_t ui, un; ma_utg_t *u = NULL;
    for (k = 0; k < un_g->u.n; k++) {///all unitigs of raw utg 
        u = &(un_g->u.a[k]); 
        zs = ze = (uint32_t)-1; un = u->n;
        for (ui = 0; ui < un; ui++) {
            if(occ_m(ng_occ[(u->a[ui]>>32)^1]) == 1) {
                zs = ui; break;
            }
        }

        for (ui = ((int32_t)un)-1; ui >= 0; ui--) {
            if(occ_m(ng_occ[u->a[ui]>>32]) == 1) {
                ze = ui; break;
            }
        }
        if(zs != (uint32_t)-1 && ze != (uint32_t)-1 && zs > ze) continue;
        if(zs != (uint32_t)-1) ng_occ[(u->a[zs]>>32)^1] |= ((uint32_t)0x80000000);
        if(ze != (uint32_t)-1) ng_occ[(u->a[ze]>>32)] |= ((uint32_t)0x80000000);
    }
    ma_ug_destroy(un_g);

        // fprintf(stderr, ">>>>>>[M::%s::] int_idx[0]::%lu, int_idx[1]::%lu\n", __func__, int_idx[0], int_idx[1]);
    // prt_intg_info(int_idx, int_idx_n, int_a, "intg");
    for (i = b64->n = ua_n = a_n = 0; i < int_idx_n; i++) {///scan all integer contigs
        s = int_idx[i]>>32; e = s + ((uint32_t)int_idx[i]); 
        assert(e > s + 1);//the length is at least 2
        for (k = s, bn = b64->n, pi = (uint64_t)-1; k < e; k++) {
            v = int_a[k]; 
            if((!(ng_occ[v]&((uint32_t)0x80000000)))&&(!(ng_occ[v^1]&((uint32_t)0x80000000)))) {
                continue;///it must be a unique node
            }
            if((pi != (uint64_t)-1) && (ng_occ[v^1]&((uint32_t)0x80000000))) {
                pz = (b64->n>0)? &(b64->a[b64->n-1]):(NULL);
                if((!pz) || (((*pz)>>32) != pi)) {//keep the shortest pi<->k 
                    kv_pushp(uint64_t, *b64, &pz); 
                    *pz = pi; (*pz) <<= 32; (*pz) |= k;
                    a_n++;
                }
            }
            if(ng_occ[v]&((uint32_t)0x80000000)) pi = k;//keep the shortest pi<->k
        }

        b64_n = b64->n;
        for (k = bn, pi = s; k < b64_n; k++) {
            ei = b64->a[k]>>32;
            if(pi < ei) {
                kv_pushp(uint64_t, *b64, &pz); ua_n++;
                (*pz) = pi; (*pz) <<= 32; (*pz) |= ei; (*pz) |= ((uint64_t)0x8000000000000000);
            }
            pi = (uint32_t)b64->a[k];
        }

        ei = e - 1;
        if(pi < ei) {
            kv_pushp(uint64_t, *b64, &pz); ua_n++;
            (*pz) = pi; (*pz) <<= 32; (*pz) |= ei; (*pz) |= ((uint64_t)0x8000000000000000);
        }
    }
    assert(a_n + ua_n == b64->n);
    // prt_thread_info(b64.a, a_n+ua_n, NULL, 0, "tt_minus");
    // fprintf(stderr, "**0**[M::%s::] a_n::%lu, ua_n::%lu\n", __func__, a_n, ua_n);
    radix_sort_srt64(b64->a, b64->a + b64->n);///keeps the coordinates within int_a[]


    for (i = a_n; i < b64->n; i++) {///unavailable intervals; mask all unavailable nodes
        assert(b64->a[i]&((uint64_t)0x8000000000000000)); ua_n--;
        s = (b64->a[i]<<1)>>33; e = (uint32_t)b64->a[i]; assert(e > s);//[s, e]
        for (k = s + 1; k < e; k++) {///note: here is [s, e]
            i_idx[int_a[k]] |= ((uint64_t)0x8000000000000000);
            i_idx[int_a[k]^1] |= ((uint64_t)0x8000000000000000);
        }
        i_idx[int_a[s]] |= ((uint64_t)0x8000000000000000);
        i_idx[int_a[e]^1] |= ((uint64_t)0x8000000000000000);
    }
    // prt_thread_info(b64.a, a_n, NULL, 0, "tt1");
    ///unavailable intervals are useless
    b64->n = a_n; assert(ua_n == 0);
    for (i = 0; i < a_n; i++) { ///available intervals
        s = b64->a[i]>>32; e = (uint32_t)b64->a[i]; assert(e > s);///[s, e] -> coordinates within int_a[]
        assert(!(b64->a[i]&((uint64_t)0x8000000000000000)));

        for (k = s + 1; k < e; k++) {///note: here is [s, e]; s && e are unique, but [s+1, e-1] are not unique
            kv_pushp(uint64_t, *b64, &pz); //i_idx[int_a[k]]++;
            (*pz) = int_a[k]; (*pz) <<= 32; (*pz) |= i;///(raw unitig/non-unqiue node id)|(integer contig id)

            kv_pushp(uint64_t, *b64, &pz); //i_idx[int_a[k]^1]++;
            (*pz) = int_a[k]^1; (*pz) <<= 32; (*pz) |= i;
        }
        kv_pushp(uint64_t, *b64, &pz); //i_idx[int_a[s]]++;
        (*pz) = int_a[s]; (*pz) <<= 32; (*pz) |= i;

        kv_pushp(uint64_t, *b64, &pz); //i_idx[int_a[e]^1]++;
        (*pz) = int_a[e]^1; (*pz) <<= 32; (*pz) |= i;
    }
    // prt_thread_info(b64.a, a_n, NULL, 0, "tt2");
    // fprintf(stderr, "**1**[M::%s::] a_n::%lu, ua_n::%lu\n", __func__, a_n, ua_n);
    ///index
    radix_sort_srt64(b64->a + a_n, b64->a + b64->n);///(raw unitig node id)|(integer contig id)
    for (k = a_n + 1, i = a_n; k <= b64->n; k++) {
        if(k == b64->n || (b64->a[k]>>32) != (b64->a[i]>>32)) {
            i_idx[b64->a[i]>>32] |= (((uint64_t)i)<<32)|((uint64_t)k);///b64.a[i]>>32 appear once (unique ends)/multipe times
            i = k;
        }
    }
    // prt_thread_info(b64.a, a_n, NULL, 0, "tt3");
    // fprintf(stderr, "**2**[M::%s::] a_n::%lu, ua_n::%lu\n", __func__, a_n, ua_n);
    ///b64.a[0, a_n]:: all resolvable paths with unique beg && end
    ///b64.a[a_n, b64.n]:: (raw unitig/non-unqiue node id)|(resolvable path id)
    // n_clus = usg_unique_arcs_cluster(&b64, a_n, i_idx, int_a);///this function might be wrong
    n_clus = usg_unique_arcs_cluster_adv(b64, a_n, i_idx, int_a, ub64);
    // fprintf(stderr, "**3**[M::%s::] a_n::%lu, n_clus::%lu\n", __func__, a_n, n_clus);
    // prt_thread_info(b64.a, a_n, NULL, 0, "tt4");
    assert(b64->n == (a_n<<1));
    old_path_ext(uidx, ng, b64, ub64, a_n, n_clus, i_idx, int_a, ff, ng_occ, max_ext);
    // new_path_ext(uidx, ng, &b64, &ub64, a_n, n_clus, i_idx, int_a, ff, ng_occ, max_ext);//wrong
    return b64->n - a_n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, 0x40(%rsp)
movq %r8, %r14
movq %rcx, %rbp
movq %rdx, 0x58(%rsp)
movq %rdi, 0x70(%rsp)
movq 0xc8(%rsp), %rbx
movq 0xb8(%rsp), %r12
movq 0xb0(%rsp), %rdi
movq %rsi, 0x48(%rsp)
movl 0x8(%rsi), %r13d
addl %r13d, %r13d
xorl %r15d, %r15d
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
leaq (,%r13,4), %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20e0
shlq $0x3, %r13
movq 0xc0(%rsp), %rdi
movq %rbp, %r12
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
movq 0xb8(%rsp), %rbp
movq 0xd0(%rsp), %rax
andq $0x0, (%rax)
andq $0x0, (%rbx)
leaq 0x8(%r14), %rax
movl %r15d, %r15d
cmpq %r12, %r15
jae 0x1cf348
movq 0x58(%rsp), %rcx
movq (%rcx,%r15,8), %rdi
movl %edi, %ecx
cmpq $0x2, %rcx
jb 0x1cfa14
shrq $0x20, %rdi
leaq (%r14,%rdi,8), %rdx
leaq -0x2(%rcx), %rsi
leaq (%rax,%rdi,8), %rdi
xorl %r8d, %r8d
cmpq %r8, %rsi
je 0x1cf32f
movq (%rdi,%r8,8), %r9
incl (%rbp,%r9,4)
xorq $0x1, %r9
incl (%rbp,%r9,4)
incq %r8
jmp 0x1cf313
movq (%rdx), %rsi
incl (%rbp,%rsi,4)
movq -0x8(%rdx,%rcx,8), %rcx
xorq $0x1, %rcx
incl (%rbp,%rcx,4)
incl %r15d
jmp 0x1cf2e3
movq %r14, 0x28(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rdi
callq 0x1cbbbd
movq (%rax), %rcx
xorl %edx, %edx
pushq $-0x1
popq %rsi
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
movq 0xc0(%rsp), %r13
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x1cf46d
movq 0x10(%rax), %r9
imulq $0x28, %rdx, %r10
leaq (%r9,%r10), %r8
movl 0x10(%r9,%r10), %r9d
testl %r9d, %r9d
movl $0x0, %r11d
cmovgl %r9d, %r11d
negq %r11
movq %rsi, %r10
leaq (%r11,%r10), %r14
cmpq $-0x1, %r14
je 0x1cf3d8
movq 0x18(%r8), %r14
movl 0xc(%r14,%r10,8), %r14d
shlq $0x2, %r14
xorq $0x4, %r14
movq 0xb8(%rsp), %r15
movl (%r15,%r14), %ebp
andl %edi, %ebp
incq %r10
cmpl $0x1, %ebp
jne 0x1cf3a5
jmp 0x1cf3de
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
testl %r9d, %r9d
jle 0x1cf406
movq 0x18(%r8), %r11
movl -0x4(%r11,%r9,8), %r11d
decq %r9
movq 0xb8(%rsp), %r14
movl (%r14,%r11,4), %r11d
andl %edi, %r11d
cmpl $0x1, %r11d
jne 0x1cf3de
jmp 0x1cf40c
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
cmpq %r11, %r10
je 0x1cf41c
cmpq %r9, %r10
ja 0x1cf466
cmpq %r11, %r10
je 0x1cf442
movq 0x18(%r8), %r11
movl 0x4(%r11,%r10,8), %r10d
shlq $0x2, %r10
xorq $0x4, %r10
movq 0xb8(%rsp), %r11
orl $0x80000000, (%r11,%r10) # imm = 0x80000000
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
cmpq %r10, %r9
je 0x1cf466
movq 0x18(%r8), %r8
movl 0x4(%r8,%r9,8), %r8d
movq 0xb8(%rsp), %r9
orl $0x80000000, (%r9,%r8,4) # imm = 0x80000000
incl %edx
jmp 0x1cf376
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
movq %rax, %rdi
callq 0x6921d
andq $0x0, (%rbx)
movq $0x0, 0x30(%rsp)
xorl %r9d, %r9d
xorl %eax, %eax
movq 0x28(%rsp), %rdi
movq 0xb8(%rsp), %r8
movq %r12, 0x50(%rsp)
cmpl %r12d, %eax
movq %r9, 0x60(%rsp)
jae 0x1cf6eb
movl %eax, 0x44(%rsp)
movl %eax, %eax
movq 0x58(%rsp), %rcx
movq (%rcx,%rax,8), %r15
movl %r15d, %r10d
cmpq $0x1, %r10
jbe 0x1cfa33
shrq $0x20, %r15
addq %r15, %r10
movq (%rbx), %r12
pushq $-0x1
popq %r13
movl %r15d, %ebp
movq %r10, 0x68(%rsp)
movl %ebp, %ebp
cmpq %rbp, %r10
jbe 0x1cf5af
movq (%rdi,%rbp,8), %r14
movl (%r8,%r14,4), %ecx
testl %ecx, %ecx
js 0x1cf50c
movq %r14, %rax
xorq $0x1, %rax
cmpl $0x0, (%r8,%rax,4)
jns 0x1cf5a8
cmpq $-0x1, %r13
je 0x1cf5a2
movq %r14, %rax
xorq $0x1, %rax
cmpl $0x0, (%r8,%rax,4)
jns 0x1cf5a2
movq (%rbx), %rdx
movq 0x10(%rbx), %rax
testq %rdx, %rdx
je 0x1cf542
leaq (%rax,%rdx,8), %rsi
addq $-0x8, %rsi
je 0x1cf542
movl 0x4(%rsi), %esi
cmpq %r13, %rsi
je 0x1cf5a2
cmpq 0x8(%rbx), %rdx
jne 0x1cf588
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x68(%rsp), %r10
movq 0x60(%rsp), %r9
movq 0xb8(%rsp), %r8
movq 0x28(%rsp), %rdi
movq %rax, 0x10(%rbx)
movq (%rbx), %rdx
movl (%r8,%r14,4), %ecx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbx)
movq %r13, %rsi
shlq $0x20, %rsi
orq %rbp, %rsi
movq %rsi, (%rax,%rdx,8)
incq 0x30(%rsp)
testl %ecx, %ecx
cmovsq %rbp, %r13
incl %ebp
jmp 0x1cf4e3
movq (%rbx), %r13
movabsq $-0x8000000000000000, %rbp # imm = 0x8000000000000000
movl %r12d, %r12d
cmpq %r12, %r13
jbe 0x1cf651
movq 0x10(%rbx), %rax
movq (%rax,%r12,8), %rcx
movq %rcx, %r14
shrq $0x20, %r14
cmpq %r14, %r15
jae 0x1cf646
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jne 0x1cf62a
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
movq %r9, %rbx
callq 0x2370
movq 0x68(%rsp), %r10
movq %rbx, %r9
movq 0xc8(%rsp), %rbx
movq 0xb8(%rsp), %r8
movq 0x28(%rsp), %rdi
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
incq %r9
shlq $0x20, %r15
orq %r15, %r14
orq %rbp, %r14
movq %r14, (%rax,%rcx,8)
movl (%rax,%r12,8), %ecx
movl %ecx, %r15d
incl %r12d
jmp 0x1cf5bc
decq %r10
cmpq %r10, %r15
jae 0x1cf6d3
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rcx
movq 0xc0(%rsp), %r13
movq 0x50(%rsp), %r12
jne 0x1cf6b9
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
movq %r9, %rbx
movq %r10, %r14
callq 0x2370
movq %r14, %r10
movq %rbx, %r9
movq 0xc8(%rsp), %rbx
movq 0xb8(%rsp), %r8
movq 0x28(%rsp), %rdi
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
incq %r9
shlq $0x20, %r15
orq %r15, %r10
orq %rbp, %r10
movq %r10, (%rax,%rcx,8)
jmp 0x1cf6e0
movq 0xc0(%rsp), %r13
movq 0x50(%rsp), %r12
movl 0x44(%rsp), %eax
incl %eax
jmp 0x1cf4a3
movq 0x30(%rsp), %r14
leaq (%r9,%r14), %rax
cmpq (%rbx), %rax
jne 0x1cface
movq 0x10(%rbx), %rdi
leaq (%rdi,%rax,8), %rsi
callq 0x1a3def
movl %r14d, %eax
movq 0x28(%rsp), %r8
movq 0x60(%rsp), %r9
movl %eax, %eax
cmpq %rax, (%rbx)
jbe 0x1cf788
movq 0x10(%rbx), %rcx
movq (%rcx,%rax,8), %rdx
testq %rdx, %rdx
jns 0x1cfa52
movq %rdx, %rcx
shrq $0x20, %rcx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %edx, %edx
cmpq %rcx, %rdx
jbe 0x1cfa71
decq %r9
leaq 0x1(%rcx), %rsi
cmpq %rsi, %rdx
jbe 0x1cf76e
movq (%r8,%rsi,8), %rdi
orq %rbp, (%r13,%rdi,8)
movq (%r8,%rsi,8), %rdi
xorq $0x1, %rdi
orq %rbp, (%r13,%rdi,8)
incq %rsi
jmp 0x1cf74e
movq (%r8,%rcx,8), %rcx
orq %rbp, (%r13,%rcx,8)
movq (%r8,%rdx,8), %rcx
xorq $0x1, %rcx
orq %rbp, (%r13,%rcx,8)
incl %eax
jmp 0x1cf717
movq 0x30(%rsp), %rax
movq %rax, (%rbx)
testq %r9, %r9
jne 0x1cfaed
xorl %eax, %eax
incq 0x38(%rsp)
movl %eax, %r15d
movq 0x10(%rbx), %rax
cmpq %r15, 0x30(%rsp)
jbe 0x1cf925
movq (%rax,%r15,8), %rcx
movq %rcx, %r13
shrq $0x20, %r13
movl %ecx, %r12d
cmpq %r13, %r12
jbe 0x1cfa90
testq %rcx, %rcx
js 0x1cfaaf
leaq 0x1(%r13), %rbp
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
cmpq %rbp, %r12
jbe 0x1cf881
cmpq %rdx, %rcx
jne 0x1cf815
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x28(%rsp), %r8
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq (%r8,%rbp,8), %rdx
shlq $0x20, %rdx
orq %r15, %rdx
movq %rdx, (%rax,%rcx,8)
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jne 0x1cf85e
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x28(%rsp), %r8
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq (%r8,%rbp,8), %rdx
shlq $0x20, %rdx
orq %r15, %rdx
xorq 0x38(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
incq %rbp
jmp 0x1cf7d6
cmpq %rdx, %rcx
jne 0x1cf8b0
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x28(%rsp), %r8
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq (%r8,%r13,8), %rdx
shlq $0x20, %rdx
orq %r15, %rdx
movq %rdx, (%rax,%rcx,8)
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jne 0x1cf8f9
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x28(%rsp), %r8
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
movq 0xc0(%rsp), %r13
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq (%r8,%r12,8), %rdx
shlq $0x20, %rdx
orq %r15, %rdx
xorq 0x38(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
leal 0x1(%r15), %eax
jmp 0x1cf7a0
movq 0x30(%rsp), %r14
leaq (%rax,%r14,8), %rdi
movq (%rbx), %rcx
leaq (%rax,%rcx,8), %rsi
callq 0x1a3def
movq 0x28(%rsp), %rcx
movl %r14d, %eax
movq 0xd0(%rsp), %r15
movq (%rbx), %rsi
movl %eax, %r10d
incl %eax
movl %eax, %r8d
movl %r8d, %edx
cmpq %rdx, %rsi
jb 0x1cf99b
movl %r8d, %eax
movq 0x10(%rbx), %r8
je 0x1cf980
movq (%r8,%r10,8), %rdi
movq (%r8,%rdx,8), %r9
xorq %rdi, %r9
shrq $0x20, %r9
leal 0x1(%rax), %r8d
testq %r9, %r9
je 0x1cf955
jmp 0x1cf984
movq (%r8,%r10,8), %rdi
shlq $0x20, %r10
shrq $0x20, %rdi
orq (%r13,%rdi,8), %r10
orq %rdx, %r10
movq %r10, (%r13,%rdi,8)
jmp 0x1cf94a
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r13, %rdx
movq %rsi, %r12
movq %r15, %r8
movq %rcx, %r14
callq 0x1ca70e
leaq (%r12,%r12), %rax
cmpq %rax, (%rbx)
jne 0x1cfb0c
movl 0x40(%rsp), %eax
movl %eax, 0x20(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x1cd29e
movl (%rbx), %eax
subl %r12d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b53a(%rip), %rdi     # 0x1faf55
leaq 0x27ab7(%rip), %rsi     # 0x1f74d9
leaq 0x2b7d0(%rip), %rcx     # 0x1fb1f9
movl $0x35e9, %edx           # imm = 0x35E9
callq 0x2110
leaq 0x2b191(%rip), %rdi     # 0x1fabcb
leaq 0x27a98(%rip), %rsi     # 0x1f74d9
leaq 0x2b7b1(%rip), %rcx     # 0x1fb1f9
movl $0x360a, %edx           # imm = 0x360A
callq 0x2110
leaq 0x2b843(%rip), %rdi     # 0x1fb29c
leaq 0x27a79(%rip), %rsi     # 0x1f74d9
leaq 0x2b792(%rip), %rcx     # 0x1fb1f9
movl $0x3632, %edx           # imm = 0x3632
callq 0x2110
leaq 0x2ad56(%rip), %rdi     # 0x1fa7ce
leaq 0x27a5a(%rip), %rsi     # 0x1f74d9
leaq 0x2b773(%rip), %rcx     # 0x1fb1f9
movl $0x3633, %edx           # imm = 0x3633
callq 0x2110
leaq 0x2ad37(%rip), %rdi     # 0x1fa7ce
leaq 0x27a3b(%rip), %rsi     # 0x1f74d9
leaq 0x2b754(%rip), %rcx     # 0x1fb1f9
movl $0x363f, %edx           # imm = 0x363F
callq 0x2110
leaq 0x2b80f(%rip), %rdi     # 0x1fb2c5
leaq 0x27a1c(%rip), %rsi     # 0x1f74d9
leaq 0x2b735(%rip), %rcx     # 0x1fb1f9
movl $0x3640, %edx           # imm = 0x3640
callq 0x2110
leaq 0x2b7b2(%rip), %rdi     # 0x1fb287
leaq 0x279fd(%rip), %rsi     # 0x1f74d9
leaq 0x2b716(%rip), %rcx     # 0x1fb1f9
movl $0x362b, %edx           # imm = 0x362B
callq 0x2110
leaq 0x2b509(%rip), %rdi     # 0x1faffd
leaq 0x279de(%rip), %rsi     # 0x1f74d9
leaq 0x2b6f7(%rip), %rcx     # 0x1fb1f9
movl $0x363d, %edx           # imm = 0x363D
callq 0x2110
leaq 0x2ad3a(%rip), %rdi     # 0x1fa84d
leaq 0x279bf(%rip), %rsi     # 0x1f74d9
leaq 0x2b6d8(%rip), %rcx     # 0x1fb1f9
movl $0x3661, %edx           # imm = 0x3661
callq 0x2110