// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/hts.c
// Function: hts_itr_query
hts_itr_t *hts_itr_query(const hts_idx_t *idx, int tid, hts_pos_t beg, hts_pos_t end, hts_readrec_func *readrec)
{
    int i, n_off, l, bin;
    hts_pair64_max_t *off;
    khint_t k;
    bidx_t *bidx;
    uint64_t min_off, max_off;
    hts_pos_t idx_maxpos;
    hts_itr_t *iter;
    uint32_t unmapped = 0, rel_off;

    // It's possible to call this function with NULL idx iff
    // tid is one of the special values HTS_IDX_REST or HTS_IDX_NONE
    if (!idx && !(tid == HTS_IDX_REST || tid == HTS_IDX_NONE)) {
        errno = EINVAL;
        return NULL;
    }

    iter = (hts_itr_t*)calloc(1, sizeof(hts_itr_t));
    if (iter) {
        if (tid < 0) {
            uint64_t off = hts_itr_off(idx, tid);
            if (off != (uint64_t) -1) {
                iter->read_rest = 1;
                iter->curr_off = off;
                iter->readrec = readrec;
                if (tid == HTS_IDX_NONE)
                    iter->finished = 1;
            } else {
                free(iter);
                iter = NULL;
            }
        } else if (tid >= idx->n || (bidx = idx->bidx[tid]) == NULL) {
            iter->finished = 1;
        } else {
            if (beg < 0) beg = 0;
            if (end < beg) {
              free(iter);
              return NULL;
            }

            k = kh_get(bin, bidx, META_BIN(idx));
            if (k != kh_end(bidx))
                unmapped = kh_val(bidx, k).list[1].v;
            else
                unmapped = 1;

            iter->tid = tid, iter->beg = beg, iter->end = end; iter->i = -1;
            iter->readrec = readrec;

            if ( !kh_size(bidx) ) { iter->finished = 1; return iter; }

            idx_maxpos = hts_idx_maxpos(idx);
            if (beg >= idx_maxpos) { iter->finished = 1; return iter; }

            rel_off = beg>>idx->min_shift;
            // compute min_off
            bin = hts_bin_first(idx->n_lvls) + rel_off;
            do {
                int first;
                k = kh_get(bin, bidx, bin);
                if (k != kh_end(bidx)) break;
                first = (hts_bin_parent(bin)<<3) + 1;
                if (bin > first) --bin;
                else bin = hts_bin_parent(bin);
            } while (bin);
            if (bin == 0) k = kh_get(bin, bidx, bin);
            min_off = k != kh_end(bidx)? kh_val(bidx, k).loff : 0;
            // min_off can be calculated more accurately if the
            // linear index is available
            if (idx->lidx[tid].offset
                && rel_off < idx->lidx[tid].n) {
                if (min_off < idx->lidx[tid].offset[rel_off])
                    min_off = idx->lidx[tid].offset[rel_off];
                if (unmapped) {
                    // unmapped reads are not covered by the linear index,
                    // so search backwards for a smaller offset
                    int tmp_off;
                    for (tmp_off = rel_off-1; tmp_off >= 0; tmp_off--) {
                        if (idx->lidx[tid].offset[tmp_off] < min_off) {
                            min_off = idx->lidx[tid].offset[tmp_off];
                            break;
                        }
                    }
                    // if the search went too far back or no satisfactory entry
                    // was found, revert to the bin index loff value
                    if (k != kh_end(bidx) && (min_off < kh_val(bidx, k).loff || tmp_off < 0))
                        min_off = kh_val(bidx, k).loff;
                }
            } else if (unmapped) { //CSI index
                if (k != kh_end(bidx))
                    min_off = kh_val(bidx, k).loff;
            }

            // compute max_off: a virtual offset from a bin to the right of end
            // First check if end lies within the range of the index (it won't
            // if it's HTS_POS_MAX)
            if (end <= idx_maxpos) {
                bin = hts_bin_first(idx->n_lvls) + ((end-1) >> idx->min_shift) + 1;
                if (bin >= idx->n_bins) bin = 0;
                while (1) {
                    // search for an extant bin by moving right, but moving up to the
                    // parent whenever we get to a first child (which also covers falling
                    // off the RHS, which wraps around and immediately goes up to bin 0)
                    while (bin % 8 == 1) bin = hts_bin_parent(bin);
                    if (bin == 0) { max_off = UINT64_MAX; break; }
                    k = kh_get(bin, bidx, bin);
                    if (k != kh_end(bidx) && kh_val(bidx, k).n > 0) { max_off = kh_val(bidx, k).list[0].u; break; }
                    bin++;
                }
            } else {
                // Searching to end of reference
                max_off = UINT64_MAX;
            }

            // retrieve bins
            if (reg2bins(beg, end, iter, idx->min_shift, idx->n_lvls, bidx) < 0) {
                hts_itr_destroy(iter);
                return NULL;
            }

            for (i = n_off = 0; i < iter->bins.n; ++i)
                if ((k = kh_get(bin, bidx, iter->bins.a[i])) != kh_end(bidx))
                    n_off += kh_value(bidx, k).n;
            if (n_off == 0) {
                // No overlapping bins means the iterator has already finished.
                iter->finished = 1;
                return iter;
            }
            off = calloc(n_off, sizeof(*off));
            for (i = n_off = 0; i < iter->bins.n; ++i) {
                if ((k = kh_get(bin, bidx, iter->bins.a[i])) != kh_end(bidx)) {
                    int j;
                    bins_t *p = &kh_value(bidx, k);
                    for (j = 0; j < p->n; ++j)
                        if (p->list[j].v > min_off && p->list[j].u < max_off) {
                            off[n_off].u = min_off > p->list[j].u
                                ? min_off : p->list[j].u;
                            off[n_off].v = max_off < p->list[j].v
                                ? max_off : p->list[j].v;
                            // hts_pair64_max_t::max is now used to link
                            // file offsets to region list entries.
                            // The iterator can use this to decide if it
                            // can skip some file regions.
                            off[n_off].max = ((uint64_t) tid << 32) | j;
                            n_off++;
                        }
                }
            }

            if (n_off == 0) {
                free(off);
                iter->finished = 1;
                return iter;
            }
            ks_introsort(_off_max, n_off, off);
            // resolve completely contained adjacent blocks
            for (i = 1, l = 0; i < n_off; ++i)
                if (off[l].v < off[i].v) off[++l] = off[i];
            n_off = l + 1;
            // resolve overlaps between adjacent blocks; this may happen due to the merge in indexing
            for (i = 1; i < n_off; ++i)
                if (off[i-1].v >= off[i].u) off[i-1].v = off[i].u;
            // merge adjacent blocks
            for (i = 1, l = 0; i < n_off; ++i) {
                if (off[l].v>>16 == off[i].u>>16) off[l].v = off[i].v;
                else off[++l] = off[i];
            }
            n_off = l + 1;
            iter->n_off = n_off; iter->off = off;
        }
    }

    return iter;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movl %esi, %r15d
testq %rdi, %rdi
setne %al
leal 0x5(%r15), %ecx
cmpl $0x2, %ecx
setb %cl
orb %al, %cl
je 0x17aae
movq %r8, %rbp
movq %rdx, %r12
movq %rdi, %r13
movl $0x1, %edi
movl $0x90, %esi
callq 0x4300
testq %rax, %rax
je 0x17ab9
movq %rax, %rbx
testl %r15d, %r15d
js 0x17acd
movq %r14, 0x10(%rsp)
cmpl %r15d, 0x14(%r13)
jle 0x17c42
movq 0x28(%r13), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %r14
testq %r14, %r14
je 0x17c42
xorl %eax, %eax
testq %r12, %r12
cmovleq %rax, %r12
cmpq 0x10(%rsp), %r12
jg 0x17afa
movq %rcx, 0x28(%rsp)
movl 0xc(%r13), %ecx
movq %rcx, 0x30(%rsp)
movl (%r14), %ecx
testl %ecx, %ecx
movq %rcx, 0x8(%rsp)
je 0x17b13
movq 0x30(%rsp), %rax
incl %eax
leal -0x1(%rcx), %r8d
movl %r8d, %edi
movl %eax, (%rsp)
andl %eax, %edi
movq 0x10(%r14), %rsi
movl $0x1, %r9d
movl %edi, %eax
movq %r13, 0x18(%rsp)
movl %eax, %ecx
shrl $0x4, %ecx
movl (%rsi,%rcx,4), %r10d
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %r10d, %r11d
shrl %cl, %r11d
testb $0x2, %r11b
jne 0x17b04
testb $0x1, %r11b
jne 0x17a9f
movq 0x18(%r14), %r11
movl %eax, %edx
movq %rbp, %r13
movl %edi, %ebp
movq %rsi, %rdi
movq %rbx, %rsi
movq %r14, %rbx
movq %r12, %r14
movl (%rsp), %r12d
cmpl %r12d, (%r11,%rdx,4)
movq %r14, %r12
movq %rbx, %r14
movq %rsi, %rbx
movq %rdi, %rsi
movl %ebp, %edi
movq %r13, %rbp
movq 0x18(%rsp), %r13
je 0x17b04
addl %r9d, %eax
andl %r8d, %eax
incl %r9d
cmpl %edi, %eax
jne 0x17a43
jmp 0x17b17
callq 0x4050
movl $0x16, (%rax)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
movl %r15d, %esi
callq 0x17777
cmpq $-0x1, %rax
je 0x17afa
movl $0x1, (%rbx)
movq %rax, 0x50(%rbx)
movq %rbp, 0x68(%rbx)
cmpl $-0x5, %r15d
jne 0x17abb
movl $0x3, (%rbx)
jmp 0x17abb
movq %rbx, %rdi
callq 0x45c0
jmp 0x17ab9
shrl %cl, %r10d
testb $0x3, %r10b
movq 0x8(%rsp), %rcx
cmovnel %ecx, %eax
cmpl %ecx, %eax
jne 0x17b1c
xorl %r8d, %r8d
jmp 0x17b33
movq 0x20(%r14), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movq 0x10(%rcx,%rax,8), %rax
cmpl $0x0, 0x18(%rax)
sete %r8b
movl %r15d, 0x4(%rbx)
movq %r12, 0x18(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rbx)
movl $0xffffffff, 0xc(%rbx)  # imm = 0xFFFFFFFF
movq %rbp, 0x68(%rbx)
cmpl $0x0, 0x4(%r14)
je 0x17c42
movl 0x4(%r13), %esi
movl 0x8(%r13), %edx
leal (%rdx,%rdx,2), %eax
leal (%rax,%rsi), %ecx
movl $0x1, %edi
shlq %cl, %rdi
cmpq %rdi, %r12
jge 0x17c42
movl %r8d, 0x24(%rsp)
movq %rdi, 0x38(%rsp)
movq %rdx, 0x50(%rsp)
movq %r12, %rdi
movq %rsi, (%rsp)
movl %esi, %ecx
shrq %cl, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
notl %edx
movl $0x92492493, %ecx       # imm = 0x92492493
imulq %rdx, %rcx
shrq $0x22, %rcx
movq %rcx, 0x40(%rsp)
movq %rdi, 0x48(%rsp)
leal (%rcx,%rdi), %edx
movq 0x8(%rsp), %rbp
leal -0x1(%rbp), %r15d
testl %ebp, %ebp
je 0x17c20
movl %edx, %esi
andl %r15d, %esi
movq 0x10(%r14), %rdi
movl $0x1, %r8d
movl %esi, %eax
movl %eax, %ecx
shrl $0x4, %ecx
movl (%rdi,%rcx,4), %r9d
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %r9d, %r10d
shrl %cl, %r10d
testb $0x2, %r10b
jne 0x17c14
testb $0x1, %r10b
jne 0x17c05
movq 0x18(%r14), %r10
movl %eax, %r11d
cmpl %edx, (%r10,%r11,4)
je 0x17c14
addl %r8d, %eax
andl %r15d, %eax
incl %r8d
cmpl %esi, %eax
jne 0x17bd7
jmp 0x17c26
shrl %cl, %r9d
testb $0x3, %r9b
cmovnel %ebp, %eax
jmp 0x17c22
xorl %eax, %eax
cmpl %ebp, %eax
jne 0x17c4d
leal -0x1(%rdx), %eax
movl %eax, %ecx
andl $-0x8, %ecx
incl %ecx
movl %eax, %esi
sarl $0x3, %esi
cmpl %ecx, %edx
cmovgl %eax, %esi
movl %esi, %edx
testl %esi, %esi
jne 0x17bc2
jmp 0x17c51
movl $0x2, (%rbx)
jmp 0x17abb
testl %edx, %edx
jne 0x17c5b
movq %r14, %rdi
xorl %esi, %esi
callq 0x176f9
cmpl %ebp, %eax
jne 0x17c63
xorl %ebp, %ebp
jmp 0x17c72
movq 0x20(%r14), %rcx
movl %eax, %edx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rbp
movq 0x28(%rsp), %rcx
movl 0x24(%rsp), %r8d
movq 0x30(%r13), %rdx
leaq (%rcx,%rcx,2), %rsi
movq 0x10(%rdx,%rsi,8), %rcx
testq %rcx, %rcx
je 0x17cb2
leaq (%rdx,%rsi,8), %rdx
movl 0x48(%rsp), %edi
cmpq (%rdx), %rdi
jge 0x17cb2
movq (%rcx,%rdi,8), %rdx
cmpq %rdx, %rbp
cmovbeq %rdx, %rbp
testb %r8b, %r8b
je 0x17cd4
movq 0x38(%rsp), %rdi
jmp 0x17d22
cmpl 0x8(%rsp), %eax
sete %cl
orb %cl, %r8b
movq 0x38(%rsp), %rdi
jne 0x17d22
movq 0x20(%r14), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rbp
jmp 0x17d22
decq %rdi
movq %rdi, %rdx
testl %edx, %edx
js 0x17cf5
movl %edx, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq (%rcx,%rsi,8), %rsi
leaq -0x1(%rdx), %rdi
cmpq %rbp, %rsi
jae 0x17cd7
jmp 0x17cf8
movq %rbp, %rsi
cmpl 0x8(%rsp), %eax
movq 0x38(%rsp), %rdi
je 0x17d1f
movq 0x20(%r14), %rcx
movl %eax, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rcx,%rax,8), %rax
cmpq %rax, %rsi
cmovbeq %rax, %rsi
testl %edx, %edx
cmovsq %rax, %rsi
movq %rsi, %rbp
movq $-0x1, %r13
movq 0x10(%rsp), %rax
cmpq %rax, %rdi
jl 0x17e12
decq %rax
movq (%rsp), %rcx
sarq %cl, %rax
movq 0x40(%rsp), %rcx
addl %ecx, %eax
incl %eax
xorl %ecx, %ecx
cmpl 0x30(%rsp), %eax
cmovll %eax, %ecx
movl %ecx, %eax
andl $0x80000007, %eax       # imm = 0x80000007
cmpl $0x1, %eax
jne 0x17d72
decl %ecx
movl %ecx, %eax
shrl $0x3, %eax
andl $0x38, %ecx
cmpl $0x8, %ecx
movl %eax, %ecx
je 0x17d5f
jmp 0x17d74
movl %ecx, %eax
testl %eax, %eax
je 0x17e12
cmpl $0x0, 0x8(%rsp)
je 0x17de2
movl %eax, %esi
andl %r15d, %esi
movq 0x10(%r14), %rdi
movl $0x1, %r8d
movl %esi, %edx
movl %edx, %ecx
shrl $0x4, %ecx
movl (%rdi,%rcx,4), %r9d
leal (%rdx,%rdx), %ecx
andl $0x1e, %ecx
movl %r9d, %r10d
shrl %cl, %r10d
testb $0x2, %r10b
jne 0x17dd1
testb $0x1, %r10b
jne 0x17dc2
movq 0x18(%r14), %r10
movl %edx, %r11d
cmpl %eax, (%r10,%r11,4)
je 0x17dd1
addl %r8d, %edx
andl %r15d, %edx
incl %r8d
cmpl %esi, %edx
jne 0x17d94
jmp 0x17dfe
shrl %cl, %r9d
testb $0x3, %r9b
movq 0x8(%rsp), %rcx
cmovnel %ecx, %edx
jmp 0x17de9
xorl %edx, %edx
movq 0x8(%rsp), %rcx
cmpl %ecx, %edx
je 0x17dfe
movq 0x20(%r14), %rcx
movl %edx, %edx
leaq (%rdx,%rdx,2), %rdx
cmpl $0x0, 0x4(%rcx,%rdx,8)
jg 0x17e07
incl %eax
movl %eax, %ecx
jmp 0x17d53
leaq (%rcx,%rdx,8), %rax
movq 0x10(%rax), %rax
movq (%rax), %r13
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
movq (%rsp), %rcx
movq 0x50(%rsp), %r8
movq %r14, %r9
callq 0x181a4
testl %eax, %eax
js 0x18186
movslq 0x80(%rbx), %rcx
movq %rcx, 0x10(%rsp)
testq %rcx, %rcx
jle 0x1819c
movq 0x88(%rbx), %rax
movq %rax, 0x18(%rsp)
movl (%r14), %esi
leal -0x1(%rsi), %edi
xorl %r8d, %r8d
movl $0x0, (%rsp)
movq %r13, 0x8(%rsp)
movl $0x0, %r9d
testl %esi, %esi
je 0x17ee2
movq 0x18(%rsp), %rax
movl (%rax,%r8,4), %r10d
movl %edi, %r11d
andl %r10d, %r11d
movq 0x10(%r14), %r15
movl $0x1, %r12d
movl %r11d, %r9d
movl %r9d, %eax
shrl $0x4, %eax
movl (%r15,%rax,4), %r13d
leal (%r9,%r9), %ecx
andl $0x1e, %ecx
movl %r13d, %eax
shrl %cl, %eax
testb $0x2, %al
jne 0x17ed2
testb $0x1, %al
jne 0x17ebd
movq 0x18(%r14), %rax
movl %r9d, %edx
cmpl %r10d, (%rax,%rdx,4)
je 0x17ed2
addl %r12d, %r9d
andl %edi, %r9d
incl %r12d
cmpl %r11d, %r9d
jne 0x17e92
movq 0x8(%rsp), %r13
jmp 0x17efc
shrl %cl, %r13d
testb $0x3, %r13b
cmovnel %esi, %r9d
movq 0x8(%rsp), %r13
cmpl %esi, %r9d
je 0x17efc
movq 0x20(%r14), %rax
movl %r9d, %ecx
leaq (%rcx,%rcx,2), %rcx
movl (%rsp), %edx
addl 0x4(%rax,%rcx,8), %edx
movl %edx, (%rsp)
incq %r8
cmpq 0x10(%rsp), %r8
jne 0x17e6c
movl (%rsp), %eax
testl %eax, %eax
je 0x1819c
movslq %eax, %rdi
movl $0x18, %esi
callq 0x4300
movq %rax, (%rsp)
cmpl $0x0, 0x10(%rsp)
jle 0x18193
movq 0x88(%rbx), %rax
movq %rax, 0x30(%rsp)
movl (%r14), %eax
leal -0x1(%rax), %esi
shlq $0x20, 0x28(%rsp)
xorl %edi, %edi
xorl %r12d, %r12d
movq %rax, 0x18(%rsp)
movl $0x0, %r8d
testl %eax, %eax
je 0x17fd3
movq 0x30(%rsp), %rax
movl (%rax,%rdi,4), %r9d
movl %esi, %r10d
andl %r9d, %r10d
movq 0x10(%r14), %r11
movl $0x1, %eax
movl %r10d, %r8d
movl %r8d, %ecx
shrl $0x4, %ecx
movl (%r11,%rcx,4), %edx
leal (%r8,%r8), %ecx
andl $0x1e, %ecx
movl %edx, %r13d
shrl %cl, %r13d
testb $0x2, %r13b
jne 0x17fc0
testb $0x1, %r13b
jne 0x17fa9
movq 0x18(%r14), %r13
movl %r8d, %r15d
cmpl %r9d, (%r13,%r15,4)
je 0x17fc0
addl %eax, %r8d
andl %esi, %r8d
incl %eax
cmpl %r10d, %r8d
jne 0x17f78
movq 0x8(%rsp), %r13
jmp 0x1804a
shrl %cl, %edx
testb $0x3, %dl
movq 0x18(%rsp), %rax
cmovnel %eax, %r8d
movq 0x8(%rsp), %r13
cmpl %eax, %r8d
je 0x1804a
movq 0x20(%r14), %rax
movl %r8d, %ecx
leaq (%rcx,%rcx,2), %rdx
movslq 0x4(%rax,%rdx,8), %rcx
testq %rcx, %rcx
jle 0x1804a
leaq (%rax,%rdx,8), %rax
movq 0x10(%rax), %r8
shlq $0x4, %rcx
movq 0x28(%rsp), %r9
xorl %r10d, %r10d
movq 0x8(%r8,%r10), %rax
cmpq %rbp, %rax
jbe 0x1803e
movq (%r8,%r10), %rdx
cmpq %r13, %rdx
jae 0x1803e
cmpq %rdx, %rbp
cmovaq %rbp, %rdx
movslq %r12d, %r12
leaq (%r12,%r12,2), %r11
cmpq %rax, %r13
cmovbq %r13, %rax
movq (%rsp), %r15
movq %rdx, (%r15,%r11,8)
movq %rax, 0x8(%r15,%r11,8)
movq %r9, 0x10(%r15,%r11,8)
incl %r12d
addq $0x10, %r10
incq %r9
cmpq %r10, %rcx
jne 0x18001
incq %rdi
cmpq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
jne 0x17f53
testl %r12d, %r12d
je 0x18193
movslq %r12d, %rdi
movq (%rsp), %r14
movq %r14, %rsi
callq 0x18565
movl $0x1, %eax
cmpl $0x2, %r12d
jl 0x1817a
movl %r12d, %ecx
leaq 0x20(%r14), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq -0x18(,%rcx,8), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movslq %ecx, %r8
leaq (%r8,%r8,2), %r8
movq 0x8(%r14,%r8,8), %r8
cmpq 0x20(%r14,%rdi), %r8
jae 0x180d1
leaq (%rdx,%rdi), %r8
addq $-0x8, %r8
incl %ecx
movslq %ecx, %r9
leaq (%r9,%r9,2), %r9
movq 0x10(%r8), %r10
movq %r10, 0x10(%r14,%r9,8)
movups (%r8), %xmm0
movups %xmm0, (%r14,%r9,8)
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0x1809b
testl %ecx, %ecx
jle 0x1817a
leal 0x1(%rcx), %edx
leaq (%rdx,%rdx,2), %rdx
leaq -0x18(,%rdx,8), %rdx
xorl %esi, %esi
movq 0x18(%r14,%rsi), %rdi
cmpq %rdi, 0x8(%r14,%rsi)
jb 0x18104
movq %rdi, 0x8(%r14,%rsi)
addq $0x18, %rsi
cmpq %rsi, %rdx
jne 0x180f3
testl %ecx, %ecx
jle 0x1817a
movl %ecx, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rcx
addq $0x18, %rcx
xorl %eax, %eax
movl $0x18, %edx
movslq %eax, %rsi
leaq (%rsi,%rsi,2), %rsi
movq (%r14,%rdx), %rdi
xorq 0x8(%r14,%rsi,8), %rdi
cmpq $0xffff, %rdi           # imm = 0xFFFF
ja 0x18151
leaq (%r14,%rsi,8), %rsi
addq $0x8, %rsi
movq 0x8(%r14,%rdx), %rdi
movq %rdi, (%rsi)
jmp 0x1816f
leaq (%r14,%rdx), %rsi
incl %eax
movslq %eax, %rdi
leaq (%rdi,%rdi,2), %rdi
movq 0x10(%rsi), %r8
movq %r8, 0x10(%r14,%rdi,8)
movups (%rsi), %xmm0
movups %xmm0, (%r14,%rdi,8)
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x18126
incl %eax
movl %eax, 0x8(%rbx)
movq %r14, 0x60(%rbx)
jmp 0x17abb
movq %rbx, %rdi
callq 0x18525
jmp 0x17ab9
movq (%rsp), %rdi
callq 0x45c0
orb $0x2, (%rbx)
jmp 0x17abb