LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_flush
int hts_flush(htsFile *fp)
{
    if (fp == NULL) return 0;

    switch (fp->format.format) {
    case binary_format:
    case bam:
    case bcf:
        return bgzf_flush(fp->fp.bgzf);

    case cram:
        return cram_flush(fp->fp.cram);

    case empty_format:
    case text_format:
    case bed:
    case fasta_format:
    case fastq_format:
    case sam:
    case vcf:
        if (fp->format.compression != no_compression)
            return bgzf_flush(fp->fp.bgzf);
        else
            return hflush(fp->fp.hfile);

    default:
        break;
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x1d6bf
movl $0x0, -0x4(%rbp)
jmp 0x1d777
movq -0x10(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x14(%rbp)
subl $0x1, %eax
je 0x1d71c
jmp 0x1d6d0
movl -0x14(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x1d740
jmp 0x1d6dd
movl -0x14(%rbp), %eax
subl $0x4, %eax
je 0x1d71c
jmp 0x1d6e7
movl -0x14(%rbp), %eax
subl $0x6, %eax
je 0x1d72e
jmp 0x1d6f1
movl -0x14(%rbp), %eax
subl $0x8, %eax
je 0x1d740
jmp 0x1d6fb
movl -0x14(%rbp), %eax
subl $0x9, %eax
je 0x1d71c
jmp 0x1d705
movl -0x14(%rbp), %eax
subl $0xd, %eax
je 0x1d740
jmp 0x1d70f
movl -0x14(%rbp), %eax
addl $-0xf, %eax
subl $0x3, %eax
jb 0x1d740
jmp 0x1d76e
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0xf820
movl %eax, -0x4(%rbp)
jmp 0x1d777
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x798a0
movl %eax, -0x4(%rbp)
jmp 0x1d777
movq -0x10(%rbp), %rax
cmpl $0x0, 0x54(%rax)
je 0x1d75c
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0xf820
movl %eax, -0x4(%rbp)
jmp 0x1d777
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x143b0
movl %eax, -0x4(%rbp)
jmp 0x1d777
jmp 0x1d770
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_format_file_extension
const char *hts_format_file_extension(const htsFormat *format) {
    if (!format)
        return "?";

    switch (format->format) {
    case sam:  return "sam";
    case bam:  return "bam";
    case bai:  return "bai";
    case cram: return "cram";
    case crai: return "crai";
    case vcf:  return "vcf";
    case bcf:  return "bcf";
    case csi:  return "csi";
    case fai_format:   return "fai";
    case fqi_format:   return "fqi";
    case gzi:  return "gzi";
    case tbi:  return "tbi";
    case bed:  return "bed";
    case d4_format:    return "d4";
    case fasta_format: return "fa";
    case fastq_format: return "fq";
    default:   return "?";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x1d7cf
leaq 0xd4d57(%rip), %rax     # 0xf251d
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
addl $-0x3, %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0x12, %eax
ja 0x1d8e1
movq -0x18(%rbp), %rax
leaq 0xd21fd(%rip), %rcx     # 0xef9f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xd5426(%rip), %rax     # 0xf2c29
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2c6a(%rip), %rax     # 0xf047d
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2fcb(%rip), %rax     # 0xf07ee
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2fd7(%rip), %rax     # 0xf080a
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd3343(%rip), %rax     # 0xf0b86
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2dfa(%rip), %rax     # 0xf064d
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2def(%rip), %rax     # 0xf0652
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2f80(%rip), %rax     # 0xf07f3
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd8511(%rip), %rax     # 0xf5d91
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2767(%rip), %rax     # 0xefff4
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xda0ab(%rip), %rax     # 0xf7945
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2f51(%rip), %rax     # 0xf07f8
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xcfd54(%rip), %rax     # 0xed608
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2c51(%rip), %rax     # 0xf0512
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2bd1(%rip), %rax     # 0xf049f
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd2bac(%rip), %rax     # 0xf0487
movq %rax, -0x8(%rbp)
jmp 0x1d8ec
leaq 0xd4c35(%rip), %rax     # 0xf251d
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_set_threads
int hts_set_threads(htsFile *fp, int n)
{
    if (fp->format.format == sam) {
        return sam_set_threads(fp, n);
    } else if (fp->format.compression == bgzf) {
        return bgzf_mt(hts_get_bgzfp(fp), n, 256/*unused*/);
    } else if (fp->format.format == cram) {
        return hts_set_opt(fp, CRAM_OPT_NTHREADS, n);
    }
    else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x3, 0x4c(%rax)
jne 0x1d92a
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x3c0e0
movl %eax, -0x4(%rbp)
jmp 0x1d97b
movq -0x10(%rbp), %rax
cmpl $0x2, 0x54(%rax)
jne 0x1d952
movq -0x10(%rbp), %rdi
callq 0x1dbb0
movq %rax, %rdi
movl -0x14(%rbp), %esi
movl $0x100, %edx            # imm = 0x100
callq 0xf770
movl %eax, -0x4(%rbp)
jmp 0x1d97b
movq -0x10(%rbp), %rax
cmpl $0x6, 0x4c(%rax)
jne 0x1d974
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %edx
movl $0xe, %esi
movb $0x0, %al
callq 0x1bf80
movl %eax, -0x4(%rbp)
jmp 0x1d97b
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_hfile
static hFILE *hts_hfile(htsFile *fp) {
    switch (fp->format.format) {
    case binary_format:// fall through
    case bcf:          // fall through
    case bam:          return bgzf_hfile(fp->fp.bgzf);
    case cram:         return cram_hfile(fp->fp.cram);
    case text_format:  // fall through
    case vcf:          // fall through
    case fastq_format: // fall through
    case fasta_format: // fall through
    case sam:          return fp->format.compression != no_compression
                              ? bgzf_hfile(fp->fp.bgzf)
                              : fp->fp.hfile;
    default:           return NULL;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x14(%rbp)
subl $0x1, %eax
je 0x1d9ef
jmp 0x1d9ad
movl -0x14(%rbp), %eax
addl $-0x2, %eax
subl $0x2, %eax
jb 0x1da15
jmp 0x1d9ba
movl -0x14(%rbp), %eax
subl $0x4, %eax
je 0x1d9ef
jmp 0x1d9c4
movl -0x14(%rbp), %eax
subl $0x6, %eax
je 0x1da02
jmp 0x1d9ce
movl -0x14(%rbp), %eax
subl $0x8, %eax
je 0x1da15
jmp 0x1d9d8
movl -0x14(%rbp), %eax
subl $0x9, %eax
je 0x1d9ef
jmp 0x1d9e2
movl -0x14(%rbp), %eax
addl $-0x10, %eax
subl $0x2, %eax
jb 0x1da15
jmp 0x1da48
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x11e10
movq %rax, -0x8(%rbp)
jmp 0x1da50
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x26f30
movq %rax, -0x8(%rbp)
jmp 0x1da50
movq -0x10(%rbp), %rax
cmpl $0x0, 0x54(%rax)
je 0x1da32
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x11e10
movq %rax, -0x20(%rbp)
jmp 0x1da3e
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1da50
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_set_thread_pool
int hts_set_thread_pool(htsFile *fp, htsThreadPool *p) {
    if (fp->format.format == sam || fp->format.format == text_format) {
        return sam_set_thread_pool(fp, p);
    } else if (fp->format.compression == bgzf) {
        return bgzf_thread_pool(hts_get_bgzfp(fp), p->pool, p->qsize);
    } else if (fp->format.format == cram) {
        return hts_set_opt(fp, CRAM_OPT_THREAD_POOL, p);
    }
    else return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x3, 0x4c(%rax)
je 0x1da84
movq -0x10(%rbp), %rax
cmpl $0x2, 0x4c(%rax)
jne 0x1da96
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x3bf20
movl %eax, -0x4(%rbp)
jmp 0x1daee
movq -0x10(%rbp), %rax
cmpl $0x2, 0x54(%rax)
jne 0x1dac4
movq -0x10(%rbp), %rdi
callq 0x1dbb0
movq %rax, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
callq 0xec20
movl %eax, -0x4(%rbp)
jmp 0x1daee
movq -0x10(%rbp), %rax
cmpl $0x6, 0x4c(%rax)
jne 0x1dae7
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl $0xf, %esi
movb $0x0, %al
callq 0x1bf80
movl %eax, -0x4(%rbp)
jmp 0x1daee
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_set_filter_expression
int hts_set_filter_expression(htsFile *fp, const char *expr)
{
    if (fp->filter)
        hts_filter_free(fp->filter);

    if (!expr)
        return 0;

    return (fp->filter = hts_filter_init(expr))
        ? 0 : -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x80(%rax)
je 0x1db6e
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rdi
callq 0x29990
cmpq $0x0, -0x18(%rbp)
jne 0x1db7e
movl $0x0, -0x4(%rbp)
jmp 0x1dba6
movq -0x18(%rbp), %rdi
callq 0x29900
movq %rax, %rdx
movq -0x10(%rbp), %rax
movq %rdx, 0x80(%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_set_fai_filename
int hts_set_fai_filename(htsFile *fp, const char *fn_aux)
{
    free(fp->fn_aux);
    if (fn_aux) {
        fp->fn_aux = strdup(fn_aux);
        if (fp->fn_aux == NULL) return -1;
    }
    else fp->fn_aux = NULL;

    if (fp->format.format == cram)
        if (cram_set_option(fp->fp.cram, CRAM_OPT_REFERENCE, fp->fn_aux))
            return -1;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x45a0
cmpq $0x0, -0x18(%rbp)
je 0x1dc3e
movq -0x18(%rbp), %rdi
callq 0x4920
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x1dc3c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1dc87
jmp 0x1dc4a
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
cmpl $0x6, 0x4c(%rax)
jne 0x1dc80
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdx
movl $0x9, %esi
movb $0x0, %al
callq 0x79f60
cmpl $0x0, %eax
je 0x1dc7e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1dc87
jmp 0x1dc80
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_open_tmpfile
hFILE *hts_open_tmpfile(const char *fname, const char *mode, kstring_t *tmpname)
{
    int pid = (int) getpid();
    unsigned ptr = (uintptr_t) tmpname;
    int n = 0;
    hFILE *fp = NULL;

    do {
        // Attempt to further uniquify the temporary filename
        unsigned t = ((unsigned) time(NULL)) ^ ((unsigned) clock()) ^ ptr;
        n++;

        ks_clear(tmpname);
        if (ksprintf(tmpname, "%s.tmp_%d_%d_%u", fname, pid, n, t) < 0) break;

        fp = hopen(tmpname->s, mode);
    } while (fp == NULL && errno == EEXIST && n < 100);

    return fp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
callq 0x4720
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movl %eax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq $0x0, -0x30(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x4440
movl %eax, -0x38(%rbp)
callq 0x4300
movq %rax, %rcx
movl -0x38(%rbp), %eax
xorl %ecx, %eax
xorl -0x20(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movq -0x18(%rbp), %rdi
callq 0x1dd70
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movl -0x24(%rbp), %r8d
movl -0x34(%rbp), %r9d
leaq 0xd2859(%rip), %rsi     # 0xf0566
movb $0x0, %al
callq 0xb040
cmpl $0x0, %eax
jge 0x1dd1b
jmp 0x1dd65
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
movb $0x0, %al
callq 0x158b0
movq %rax, -0x30(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x30(%rbp)
movb %al, -0x39(%rbp)
jne 0x1dd5a
callq 0x4050
movq %rax, %rcx
xorl %eax, %eax
cmpl $0x11, (%rcx)
movb %al, -0x39(%rbp)
jne 0x1dd5a
cmpl $0x64, -0x24(%rbp)
setl %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x1dcc2
movq -0x30(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: is_utf16_text
static int is_utf16_text(const unsigned char *u, const unsigned char *ulim)
{
    if (ulim - u >= 6 &&
        ((u[0] == 0xfe && u[1] == 0xff && alternate_zeros(u+2, ulim)) ||
         (u[0] == 0xff && u[1] == 0xfe && alternate_zeros(u+3, ulim))))
        return 2;
    else if (ulim - u >= 8 &&
             (alternate_zeros(u, ulim) || alternate_zeros(u+1, ulim)))
        return 1;
    else
        return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
cmpq $0x6, %rax
jl 0x1de80
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jne 0x1de44
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xff, %eax
jne 0x1de44
movq -0x10(%rbp), %rdi
addq $0x2, %rdi
movq -0x18(%rbp), %rsi
callq 0x26f50
cmpl $0x0, %eax
jne 0x1de77
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
jne 0x1de80
movq -0x10(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xfe, %eax
jne 0x1de80
movq -0x10(%rbp), %rdi
addq $0x3, %rdi
movq -0x18(%rbp), %rsi
callq 0x26f50
cmpl $0x0, %eax
je 0x1de80
movl $0x2, -0x4(%rbp)
jmp 0x1dec9
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
cmpq $0x8, %rax
jl 0x1dec2
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x26f50
cmpl $0x0, %eax
jne 0x1deb9
movq -0x10(%rbp), %rdi
addq $0x1, %rdi
movq -0x18(%rbp), %rsi
callq 0x26f50
cmpl $0x0, %eax
je 0x1dec2
movl $0x1, -0x4(%rbp)
jmp 0x1dec9
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_getline
int hts_getline(htsFile *fp, int delimiter, kstring_t *str)
{
    int ret;
    if (! (delimiter == KS_SEP_LINE || delimiter == '\n')) {
        hts_log_error("Unexpected delimiter %d", delimiter);
        abort();
    }

    switch (fp->format.compression) {
    case no_compression:
        str->l = 0;
        ret = kgetline2(str, (kgets_func2 *) hgetln, fp->fp.hfile);
        if (ret >= 0) ret = (str->l <= INT_MAX)? (int) str->l : INT_MAX;
        else if (herrno(fp->fp.hfile)) ret = -2, errno = herrno(fp->fp.hfile);
        else ret = -1;
        break;

    case gzip:
    case bgzf:
        ret = bgzf_getline(fp->fp.bgzf, '\n', str);
        break;

    default:
        abort();
    }

    ++fp->lineno;
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x2, -0xc(%rbp)
je 0x1e011
cmpl $0xa, -0xc(%rbp)
je 0x1e011
movl -0xc(%rbp), %ecx
movl $0x1, %edi
leaq 0xd2578(%rip), %rsi     # 0xf0576
leaq 0xd257d(%rip), %rdx     # 0xf0582
movb $0x0, %al
callq 0x1b030
callq 0x4260
movq -0x8(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, -0x20(%rbp)
testl %eax, %eax
je 0x1e034
jmp 0x1e021
movl -0x20(%rbp), %eax
decl %eax
subl $0x2, %eax
jb 0x1e0cb
jmp 0x1e0e6
movq -0x18(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdx
leaq 0xbe(%rip), %rsi        # 0x1e110
callq 0xb7b0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jl 0x1e08b
movq -0x18(%rbp), %rax
cmpq $0x7fffffff, (%rax)     # imm = 0x7FFFFFFF
ja 0x1e079
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, -0x24(%rbp)
jmp 0x1e083
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x24(%rbp)
jmp 0x1e083
movl -0x24(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x1e0c9
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x1e140
cmpl $0x0, %eax
je 0x1e0c0
movl $0xfffffffe, -0x1c(%rbp) # imm = 0xFFFFFFFE
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x1e140
movl %eax, -0x28(%rbp)
callq 0x4050
movl -0x28(%rbp), %ecx
movl %ecx, (%rax)
jmp 0x1e0c7
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
jmp 0x1e0c9
jmp 0x1e0eb
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x18(%rbp), %rdx
movl $0xa, %esi
callq 0x10f40
movl %eax, -0x1c(%rbp)
jmp 0x1e0eb
callq 0x4260
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_file_type
int hts_file_type(const char *fname)
{
    int len = strlen(fname);
    if ( !strcasecmp(".vcf.gz",fname+len-7) ) return FT_VCF_GZ;
    if ( !strcasecmp(".vcf",fname+len-4) ) return FT_VCF;
    if ( !strcasecmp(".bcf",fname+len-4) ) return FT_BCF_GZ;
    if ( !strcmp("-",fname) ) return FT_STDIN;

    hFILE *f = hopen(fname, "r");
    if (f == NULL) return 0;

    htsFormat fmt;
    if (hts_detect_format2(f, fname, &fmt) < 0) { hclose_abruptly(f); return 0; }
    if (hclose(f) < 0) return 0;

    switch (fmt.format) {
    case vcf: return (fmt.compression == no_compression)? FT_VCF : FT_VCF_GZ;
    case bcf: return (fmt.compression == no_compression)? FT_BCF : FT_BCF_GZ;
    default:  return 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x41b0
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
addq $-0x7, %rsi
leaq 0xd1b46(%rip), %rdi     # 0xf0644
callq 0x4500
cmpl $0x0, %eax
jne 0x1eb14
movl $0x3, -0x4(%rbp)
jmp 0x1ec43
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
addq $-0x4, %rsi
leaq 0xd1b22(%rip), %rdi     # 0xf064c
callq 0x4500
cmpl $0x0, %eax
jne 0x1eb40
movl $0x2, -0x4(%rbp)
jmp 0x1ec43
movq -0x10(%rbp), %rsi
movslq -0x14(%rbp), %rax
addq %rax, %rsi
addq $-0x4, %rsi
leaq 0xd1afb(%rip), %rdi     # 0xf0651
callq 0x4500
cmpl $0x0, %eax
jne 0x1eb6c
movl $0x5, -0x4(%rbp)
jmp 0x1ec43
movq -0x10(%rbp), %rsi
leaq 0xd387e(%rip), %rdi     # 0xf23f5
callq 0x4690
cmpl $0x0, %eax
jne 0x1eb8d
movl $0x8, -0x4(%rbp)
jmp 0x1ec43
movq -0x10(%rbp), %rdi
leaq 0xd3f59(%rip), %rsi     # 0xf2af1
movb $0x0, %al
callq 0x158b0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x1ebb6
movl $0x0, -0x4(%rbp)
jmp 0x1ec43
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x18450
cmpl $0x0, %eax
jge 0x1ebde
movq -0x20(%rbp), %rdi
callq 0x149d0
movl $0x0, -0x4(%rbp)
jmp 0x1ec43
movq -0x20(%rbp), %rdi
callq 0x14920
cmpl $0x0, %eax
jge 0x1ebf5
movl $0x0, -0x4(%rbp)
jmp 0x1ec43
movl -0x3c(%rbp), %eax
movl %eax, -0x44(%rbp)
subl $0x8, %eax
je 0x1ec0c
jmp 0x1ec02
movl -0x44(%rbp), %eax
subl $0x9, %eax
je 0x1ec24
jmp 0x1ec3c
movl -0x34(%rbp), %edx
movl $0x3, %eax
movl $0x2, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x1ec43
movl -0x34(%rbp), %edx
movl $0x5, %eax
movl $0x4, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x1ec43
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_check_EOF
int hts_check_EOF(htsFile *fp)
{
    if (fp->format.compression == bgzf)
        return bgzf_check_EOF(hts_get_bgzfp(fp));
    else if (fp->format.format == cram)
        return cram_check_EOF(fp->fp.cram);
    else
        return 3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, 0x54(%rax)
jne 0x1ec7c
movq -0x10(%rbp), %rdi
callq 0x1dbb0
movq %rax, %rdi
callq 0x107e0
movl %eax, -0x4(%rbp)
jmp 0x1ec9f
movq -0x10(%rbp), %rax
cmpl $0x6, 0x4c(%rax)
jne 0x1ec98
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x7b330
movl %eax, -0x4(%rbp)
jmp 0x1ec9f
movl $0x3, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_finish
int hts_idx_finish(hts_idx_t *idx, uint64_t final_offset)
{
    int i, ret = 0;
    if (idx == NULL || idx->z.finished) return 0; // do not run this function on an empty index or multiple times
    if (idx->z.save_tid >= 0) {
        ret |= insert_to_b(idx->bidx[idx->z.save_tid], idx->z.save_bin, idx->z.save_off, final_offset);
        ret |= insert_to_b(idx->bidx[idx->z.save_tid], META_BIN(idx), idx->z.off_beg, final_offset);
        ret |= insert_to_b(idx->bidx[idx->z.save_tid], META_BIN(idx), idx->z.n_mapped, idx->z.n_unmapped);
    }
    for (i = 0; i < idx->n; ++i) {
        update_loff(idx, i, (idx->fmt == HTS_FMT_CSI));
        ret |= compress_binning(idx, i);
    }
    idx->z.finished = 1;

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x1ee88
movq -0x10(%rbp), %rax
cmpl $0x0, 0x60(%rax)
je 0x1ee94
movl $0x0, -0x4(%rbp)
jmp 0x1efa4
movq -0x10(%rbp), %rax
cmpl $0x0, 0x5c(%rax)
jl 0x1ef48
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rax
movl 0x4c(%rax), %esi
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rdx
movq -0x18(%rbp), %rcx
callq 0x1efb0
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %esi
addl $0x1, %esi
movq -0x10(%rbp), %rax
movq 0x78(%rax), %rdx
movq -0x18(%rbp), %rcx
callq 0x1efb0
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x5c(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movq -0x10(%rbp), %rax
movl 0xc(%rax), %esi
addl $0x1, %esi
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rcx
callq 0x1efb0
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jge 0x1ef93
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
sete %al
andb $0x1, %al
movzbl %al, %edx
callq 0x1f130
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x1f300
orl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1ef4f
movq -0x10(%rbp), %rax
movl $0x1, 0x60(%rax)
movl -0x20(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: insert_to_b
static inline int insert_to_b(bidx_t *b, int bin, uint64_t beg, uint64_t end)
{
    khint_t k;
    bins_t *l;
    int absent;
    k = kh_put(bin, b, bin, &absent);
    if (absent < 0) return -1; // Out of memory
    l = &kh_value(b, k);
    if (absent) {
        l->m = 1; l->n = 0;
        l->list = (hts_pair64_t*)calloc(l->m, sizeof(hts_pair64_t));
        if (!l->list) {
            kh_del(bin, b, k);
            return -1;
        }
    } else if (l->n == l->m) {
        uint32_t new_m = l->m ? l->m << 1 : 1;
        hts_pair64_t *new_list = realloc(l->list, new_m * sizeof(hts_pair64_t));
        if (!new_list) return -1;
        l->list = new_list;
        l->m = new_m;
    }
    l->list[l->n].u = beg;
    l->list[l->n++].v = end;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
leaq -0x3c(%rbp), %rdx
callq 0x26fa0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jge 0x1efec
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1f122
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl -0x2c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x1f05e
movq -0x38(%rbp), %rax
movl $0x1, (%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x38(%rbp), %rax
movslq (%rax), %rdi
movl $0x10, %esi
callq 0x42f0
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x1f05c
movq -0x10(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x272f0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1f122
jmp 0x1f0d4
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x1f0d2
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x1f083
movq -0x38(%rbp), %rax
movl (%rax), %eax
shll %eax
movl %eax, -0x4c(%rbp)
jmp 0x1f08d
movl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x1f08d
movl -0x4c(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x40(%rbp), %eax
movl %eax, %esi
shlq $0x4, %rsi
callq 0x4820
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x1f0bd
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1f122
movq -0x48(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movl -0x40(%rbp), %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
jmp 0x1f0d4
movq -0x20(%rbp), %rcx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rdx
movslq 0x4(%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rsi
movl 0x4(%rsi), %edx
movl %edx, %edi
addl $0x1, %edi
movl %edi, 0x4(%rsi)
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_check_range
int hts_idx_check_range(hts_idx_t *idx, int tid, hts_pos_t beg, hts_pos_t end)
{
    hts_pos_t maxpos = hts_idx_maxpos(idx);
    if (tid < 0 || (beg <= maxpos && end <= maxpos))
        return 0;

    if (idx->fmt == HTS_FMT_CSI) {
        hts_log_error("Region %"PRIhts_pos"..%"PRIhts_pos" "
                      "cannot be stored in a csi index with these parameters. "
                      "Please use a larger min_shift or depth",
                      beg, end);
    } else {
        hts_log_error("Region %"PRIhts_pos"..%"PRIhts_pos
                      " cannot be stored in a %s index. Try using a csi index",
                      beg, end, idx_format_name(idx->fmt));
    }
    errno = ERANGE;
    return -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1f8f0
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x1f85e
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x1f867
movq -0x28(%rbp), %rax
cmpq -0x30(%rbp), %rax
jg 0x1f867
movl $0x0, -0x4(%rbp)
jmp 0x1f8e6
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x1f894
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
movl $0x1, %edi
leaq 0xd0dd2(%rip), %rsi     # 0xf0656
leaq 0xd0ddf(%rip), %rdx     # 0xf066a
movb $0x0, %al
callq 0x1b030
jmp 0x1f8d4
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
callq 0x1f920
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %r8
movq %rax, %r9
movl $0x1, %edi
leaq 0xd0d90(%rip), %rsi     # 0xf0656
leaq 0xd0e0b(%rip), %rdx     # 0xf06d8
movb $0x0, %al
callq 0x1b030
callq 0x4050
movl $0x22, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: idx_format_name
static char * idx_format_name(int fmt) {
    switch (fmt) {
        case HTS_FMT_CSI: return "csi";
        case HTS_FMT_BAI: return "bai";
        case HTS_FMT_TBI: return "tbi";
        case HTS_FMT_CRAI: return "crai";
        default: return "unknown";
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x18(%rbp)
subq $0x3, %rax
ja 0x1f97c
movq -0x18(%rbp), %rax
leaq 0xd00fd(%rip), %rcx     # 0xefa3c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xd0ea4(%rip), %rax     # 0xf07f3
movq %rax, -0x8(%rbp)
jmp 0x1f987
leaq 0xd0e92(%rip), %rax     # 0xf07ee
movq %rax, -0x8(%rbp)
jmp 0x1f987
leaq 0xd0e8f(%rip), %rax     # 0xf07f8
movq %rax, -0x8(%rbp)
jmp 0x1f987
leaq 0xd1210(%rip), %rax     # 0xf0b86
movq %rax, -0x8(%rbp)
jmp 0x1f987
leaq 0xcfa8b(%rip), %rax     # 0xef40e
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: insert_to_l
static inline int insert_to_l(lidx_t *l, int64_t _beg, int64_t _end, uint64_t offset, int min_shift)
{
    int i;
    hts_pos_t beg, end;
    beg = _beg >> min_shift;
    end = (_end - 1) >> min_shift;
    if (l->m < end + 1) {
        size_t new_m = l->m * 2 > end + 1 ? l->m * 2 : end + 1;
        uint64_t *new_offset;

        new_offset = (uint64_t*)realloc(l->offset, new_m * sizeof(uint64_t));
        if (!new_offset) return -1;

        // fill unused memory with (uint64_t)-1
        memset(new_offset + l->m, 0xff, sizeof(uint64_t) * (new_m - l->m));
        l->m = new_m;
        l->offset = new_offset;
    }
    for (i = beg; i <= end; ++i) {
        if (l->offset[i] == (uint64_t)-1) l->offset[i] = offset;
    }
    if (l->n < end + 1) l->n = end + 1;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movq -0x18(%rbp), %rax
movl -0x2c(%rbp), %ecx
sarq %cl, %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
subq $0x1, %rax
movl -0x2c(%rbp), %ecx
sarq %cl, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x40(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jge 0x20053
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq -0x40(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jle 0x1ffce
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x58(%rbp)
jmp 0x1ffda
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x48(%rbp), %rsi
shlq $0x3, %rsi
callq 0x4820
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x2000e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x200c2
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x48(%rbp), %rdx
movq -0x10(%rbp), %rax
subq 0x8(%rax), %rdx
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x4250
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x50(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x38(%rbp), %rax
movl %eax, -0x30(%rbp)
movslq -0x30(%rbp), %rax
cmpq -0x40(%rbp), %rax
jg 0x20098
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
cmpq $-0x1, (%rax,%rcx,8)
jne 0x2008b
movq -0x28(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x30(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x2008d
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2005a
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jge 0x200bb
movq -0x40(%rbp), %rcx
addq $0x1, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/./htslib/hts.h
// Function: hts_reg2bin
static inline int hts_reg2bin(hts_pos_t beg, hts_pos_t end, int min_shift, int n_lvls)
{
    int l, s = min_shift, t = ((1<<((n_lvls<<1) + n_lvls)) - 1) / 7;
    for (--end, l = n_lvls; l > 0; --l, s += 3, t -= 1<<((l<<1)+l))
        if (beg>>s == end>>s) return t + (beg>>s);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x20(%rbp), %ecx
shll %ecx
addl -0x20(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl $0x7, %ecx
cltd
idivl %ecx
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0x20181
movq -0x10(%rbp), %rax
movl -0x28(%rbp), %ecx
sarq %cl, %rax
movq -0x18(%rbp), %rdx
movl -0x28(%rbp), %ecx
sarq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
jne 0x20152
movslq -0x2c(%rbp), %rax
movq -0x10(%rbp), %rdx
movl -0x28(%rbp), %ecx
sarq %cl, %rdx
movq %rdx, %rcx
addq %rcx, %rax
movl %eax, -0x4(%rbp)
jmp 0x20188
jmp 0x20154
movl -0x24(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x28(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %ecx
shll %ecx
addl -0x24(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movl -0x2c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x2c(%rbp)
jmp 0x20117
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_tbi_name
int hts_idx_tbi_name(hts_idx_t *idx, int tid, const char *name) {
    // Horrid - we have to map incoming tid to a tbi alternative tid.
    // This is because TBI counts tids by "covered" refs while everything
    // else counts by Nth SQ/contig record in header.
    if (tid == idx->last_tbi_tid || tid < 0 || !name)
        return idx->tbi_n;

    uint32_t len = strlen(name)+1;
    uint8_t *tmp = (uint8_t *)realloc(idx->meta, idx->l_meta + len);
    if (!tmp)
        return -1;

    // Append name
    idx->meta = tmp;
    strcpy((char *)idx->meta + idx->l_meta, name);
    idx->l_meta += len;

    // Update seq length
    u32_to_le(le_to_u32(idx->meta+24)+len, idx->meta+24);

    idx->last_tbi_tid = tid;
    return ++idx->tbi_n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x44(%rcx), %eax
je 0x201bc
cmpl $0x0, -0x14(%rbp)
jl 0x201bc
cmpq $0x0, -0x20(%rbp)
jne 0x201cb
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2027f
movq -0x20(%rbp), %rdi
callq 0x41b0
addq $0x1, %rax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
addl -0x24(%rbp), %eax
movl %eax, %eax
movl %eax, %esi
callq 0x4820
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x2020a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2027f
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
addq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x4450
movl -0x24(%rbp), %ecx
movq -0x10(%rbp), %rax
addl 0x10(%rax), %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
addq $0x18, %rdi
callq 0x202b0
movl %eax, %edi
addl -0x24(%rbp), %edi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
addq $0x18, %rsi
callq 0x20290
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x44(%rax)
movq -0x10(%rbp), %rcx
movl 0x40(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x40(%rcx)
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_save
int hts_idx_save(const hts_idx_t *idx, const char *fn, int fmt)
{
    int ret, save;
    if (idx == NULL || fn == NULL) { errno = EINVAL; return -1; }
    char *fnidx = (char*)calloc(1, strlen(fn) + 5);
    if (fnidx == NULL) return -1;

    strcpy(fnidx, fn);
    switch (fmt) {
    case HTS_FMT_BAI: strcat(fnidx, ".bai"); break;
    case HTS_FMT_CSI: strcat(fnidx, ".csi"); break;
    case HTS_FMT_TBI: strcat(fnidx, ".tbi"); break;
    default: abort();
    }

    ret = hts_idx_save_as(idx, fn, fnidx, fmt);
    save = errno;
    free(fnidx);
    errno = save;
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x20361
cmpq $0x0, -0x18(%rbp)
jne 0x20378
callq 0x4050
movl $0x16, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20451
movq -0x18(%rbp), %rdi
callq 0x41b0
movq %rax, %rsi
addq $0x5, %rsi
movl $0x1, %edi
callq 0x42f0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x203a9
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20451
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x4450
movl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
testl %eax, %eax
je 0x203e8
jmp 0x203c2
movl -0x34(%rbp), %eax
subl $0x1, %eax
je 0x203d6
jmp 0x203cc
movl -0x34(%rbp), %eax
subl $0x2, %eax
je 0x203fa
jmp 0x2040c
movq -0x30(%rbp), %rdi
leaq 0xd040c(%rip), %rsi     # 0xf07ed
callq 0x48e0
jmp 0x20411
movq -0x30(%rbp), %rdi
leaq 0xd03ff(%rip), %rsi     # 0xf07f2
callq 0x48e0
jmp 0x20411
movq -0x30(%rbp), %rdi
leaq 0xd03f2(%rip), %rsi     # 0xf07f7
callq 0x48e0
jmp 0x20411
callq 0x4260
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl -0x1c(%rbp), %ecx
callq 0x20460
movl %eax, -0x20(%rbp)
callq 0x4050
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x30(%rbp), %rdi
callq 0x45a0
movl -0x24(%rbp), %eax
movl %eax, -0x38(%rbp)
callq 0x4050
movl -0x38(%rbp), %ecx
movl %ecx, (%rax)
movl -0x20(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_save_as
int hts_idx_save_as(const hts_idx_t *idx, const char *fn, const char *fnidx, int fmt)
{
    BGZF *fp;

    if (fnidx == NULL)
        return hts_idx_save(idx, fn, fmt);

    fp = bgzf_open(fnidx, (fmt == HTS_FMT_BAI)? "wu" : "w");
    if (fp == NULL) return -1;

    if (hts_idx_write_out(idx, fp, fmt) < 0) {
        int save_errno = errno;
        bgzf_close(fp);
        errno = save_errno;
        return -1;
    }

    return bgzf_close(fp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x20496
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x20340
movl %eax, -0x4(%rbp)
jmp 0x20518
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %ecx
leaq 0xd1868(%rip), %rsi     # 0xf1d0c
leaq 0xcd2b4(%rip), %rax     # 0xed75f
cmpl $0x1, %ecx
cmoveq %rax, %rsi
callq 0xc090
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x204cb
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20518
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x20530
cmpl $0x0, %eax
jge 0x2050c
callq 0x4050
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x30(%rbp), %rdi
callq 0x103d0
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
callq 0x4050
movl -0x38(%rbp), %ecx
movl %ecx, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20518
movq -0x30(%rbp), %rdi
callq 0x103d0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_write_out
static int hts_idx_write_out(const hts_idx_t *idx, BGZF *fp, int fmt)
{
    #define check(ret) if ((ret) < 0) return -1

    if (fmt == HTS_FMT_CSI) {
        check(bgzf_write(fp, "CSI\1", 4));
        check(idx_write_int32(fp, idx->min_shift));
        check(idx_write_int32(fp, idx->n_lvls));
        check(idx_write_uint32(fp, idx->l_meta));
        if (idx->l_meta) check(bgzf_write(fp, idx->meta, idx->l_meta));
    } else if (fmt == HTS_FMT_TBI) {
        check(bgzf_write(fp, "TBI\1", 4));
    } else if (fmt == HTS_FMT_BAI) {
        check(bgzf_write(fp, "BAI\1", 4));
    } else abort();

    check(idx_save_core(idx, fp, fmt));

    #undef check
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x20614
movq -0x18(%rbp), %rdi
leaq 0xcfa28(%rip), %rsi     # 0xeff80
movl $0x4, %edx
callq 0xffb0
cmpq $0x0, %rax
jge 0x20574
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %esi
callq 0x280d0
cmpq $0x0, %rax
jge 0x20596
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x280d0
cmpq $0x0, %rax
jge 0x205b8
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x28110
cmpq $0x0, %rax
jge 0x205da
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x20612
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
callq 0xffb0
cmpq $0x0, %rax
jge 0x20610
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
jmp 0x20612
jmp 0x20675
cmpl $0x2, -0x1c(%rbp)
jne 0x20640
movq -0x18(%rbp), %rdi
leaq 0xcf960(%rip), %rsi     # 0xeff85
movl $0x4, %edx
callq 0xffb0
cmpq $0x0, %rax
jge 0x2063e
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
jmp 0x20673
cmpl $0x1, -0x1c(%rbp)
jne 0x2066c
movq -0x18(%rbp), %rdi
leaq 0xcf920(%rip), %rsi     # 0xeff71
movl $0x4, %edx
callq 0xffb0
cmpq $0x0, %rax
jge 0x2066a
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
jmp 0x20671
callq 0x4260
jmp 0x20673
jmp 0x20675
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x1c(%rbp), %edx
callq 0x28150
cmpl $0x0, %eax
jge 0x20693
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2069a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_save_but_not_close
int hts_idx_save_but_not_close(hts_idx_t *idx, const char *fnidx, int fmt)
{
    idx->otf_fp = bgzf_open(fnidx, (fmt == HTS_FMT_BAI)? "wu" : "w");
    if (idx->otf_fp == NULL) return -1;

    if (hts_idx_write_out(idx, idx->otf_fp, fmt) < 0) {
        int save_errno = errno;
        bgzf_close(idx->otf_fp);
        idx->otf_fp = NULL;
        errno = save_errno;
        return -1;
    }

    return bgzf_flush(idx->otf_fp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %ecx
leaq 0xd163b(%rip), %rsi     # 0xf1d0c
leaq 0xcd087(%rip), %rax     # 0xed75f
cmpl $0x1, %ecx
cmoveq %rax, %rsi
callq 0xc090
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x98(%rax)
jne 0x20709
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2077a
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rsi
movl -0x1c(%rbp), %edx
callq 0x20530
cmpl $0x0, %eax
jge 0x20767
callq 0x4050
movl (%rax), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rdi
callq 0x103d0
movq -0x10(%rbp), %rax
movq $0x0, 0x98(%rax)
movl -0x20(%rbp), %eax
movl %eax, -0x24(%rbp)
callq 0x4050
movl -0x24(%rbp), %ecx
movl %ecx, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2077a
movq -0x10(%rbp), %rax
movq 0x98(%rax), %rdi
callq 0xf820
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_set_meta
int hts_idx_set_meta(hts_idx_t *idx, uint32_t l_meta, uint8_t *meta,
                      int is_copy)
{
    uint8_t *new_meta = meta;
    if (is_copy) {
        size_t l = l_meta;
        if (l > SIZE_MAX - 1) {
            errno = ENOMEM;
            return -1;
        }
        new_meta = malloc(l + 1);
        if (!new_meta) return -1;
        memcpy(new_meta, meta, l);
        // Prevent possible strlen past the end in tbx_index_load2
        new_meta[l] = '\0';
    }
    if (idx->meta) free(idx->meta);
    idx->l_meta = l_meta;
    idx->meta = new_meta;
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x20814
movl -0x14(%rbp), %eax
movq %rax, -0x38(%rbp)
cmpq $-0x2, -0x38(%rbp)
jbe 0x207d6
callq 0x4050
movl $0xc, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20849
movq -0x38(%rbp), %rdi
addq $0x1, %rdi
callq 0x4650
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x207f7
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x20849
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x43b0
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x2082c
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x45a0
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/samtools[P]htslib/hts.c
// Function: hts_idx_seqnames
const char **hts_idx_seqnames(const hts_idx_t *idx, int *n, hts_id2name_f getid, void *hdr)
{
    if ( !idx || !idx->n )
    {
        *n = 0;
        return NULL;
    }

    int tid = 0, i;
    const char **names = (const char**) calloc(idx->n,sizeof(const char*));
    for (i=0; i<idx->n; i++)
    {
        bidx_t *bidx = idx->bidx[i];
        if ( !bidx ) continue;
        names[tid++] = getid(hdr,i);
    }
    *n = tid;
    return names;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x208b9
movq -0x10(%rbp), %rax
cmpl $0x0, 0x14(%rax)
jne 0x208d0
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x2095f
movl $0x0, -0x2c(%rbp)
movq -0x10(%rbp), %rax
movslq 0x14(%rax), %rdi
movl $0x8, %esi
callq 0x42f0
movq %rax, -0x38(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jge 0x2094e
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x2091d
jmp 0x20943
movq -0x20(%rbp), %rax
movq -0x28(%rbp), %rdi
movl -0x30(%rbp), %esi
callq *%rax
movq %rax, %rdx
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x2c(%rbp)
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x208f4
movl -0x2c(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)