LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: bcf_sr_destroy1
static void bcf_sr_destroy1(bcf_sr_t *reader, int closefile)
{
    free(reader->fname);
    if ( reader->tbx_idx ) tbx_destroy(reader->tbx_idx);
    if ( reader->bcf_idx ) hts_idx_destroy(reader->bcf_idx);
    bcf_hdr_destroy(reader->header);
    if (closefile) {
        hts_close(reader->file);
    }
    if ( reader->itr ) tbx_itr_destroy(reader->itr);
    int j;
    for (j=0; j<reader->mbuffer; j++)
        bcf_destroy1(reader->buffer[j]);
    free(reader->buffer);
    free(reader->samples);
    free(reader->filter_ids);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
callq 0x45d0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x220ab
callq 0x24e31
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x220b9
callq 0x9b36
movq 0x18(%rbx), %rdi
callq 0x2a050
testl %ebp, %ebp
je 0x220ce
movq (%rbx), %rdi
callq 0x99d1
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x220dc
callq 0xc3d9
xorl %r14d, %r14d
movslq 0x3c(%rbx), %rax
movq 0x30(%rbx), %rdi
cmpq %rax, %r14
jge 0x220fa
movq (%rdi,%r14,8), %rdi
callq 0x2ac4c
incq %r14
jmp 0x220df
callq 0x45d0
movq 0x50(%rbx), %rdi
callq 0x45d0
movq 0x48(%rbx), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x45d0
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: bcf_sr_remove_reader
void bcf_sr_remove_reader(bcf_srs_t *files, int i)
{
    assert( !files->samples );  // not ready for this yet
    int *autoclose = BCF_SR_AUX(files)->closefile;

    bcf_sr_sort_remove_reader(files, &BCF_SR_AUX(files)->sort, i);
    bcf_sr_destroy1(&files->readers[i], autoclose[i]);
    if ( i+1 < files->nreaders )
    {
        memmove(&files->readers[i], &files->readers[i+1], (files->nreaders-i-1)*sizeof(bcf_sr_t));
        memmove(&files->has_line[i], &files->has_line[i+1], (files->nreaders-i-1)*sizeof(int));
        memmove(&autoclose[i], &autoclose[i+1], (files->nreaders-i-1)*sizeof(int));
    }
    files->nreaders--;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x40(%rdi)
jne 0x221e4
movl %esi, %ebp
movq %rdi, %rbx
movq 0x88(%rdi), %rsi
movq 0x1e0(%rsi), %r12
movl %ebp, %edx
callq 0x6fca4
movslq %ebp, %r13
imulq $0x60, %r13, %r15
movq 0x28(%rbx), %rdi
addq %r15, %rdi
movl (%r12,%r13,4), %esi
callq 0x2208b
leal 0x1(%r13), %ecx
movl 0x30(%rbx), %eax
cmpl %eax, %ecx
jge 0x221d0
leaq (%r12,%r13,4), %rdx
movq %rdx, (%rsp)
movq 0x28(%rbx), %rdx
addq %rdx, %r15
movslq %ecx, %rbp
imulq $0x60, %rbp, %rsi
addq %rdx, %rsi
movl %r13d, %r14d
notl %r14d
addl %r14d, %eax
cltq
imulq $0x60, %rax, %rdx
movq %r15, %rdi
callq 0x4860
movq 0x18(%rbx), %rax
leaq (%rax,%r13,4), %rdi
leaq (%rax,%rbp,4), %rsi
movl 0x30(%rbx), %eax
addl %r14d, %eax
movslq %eax, %rdx
shlq $0x2, %rdx
callq 0x4860
leaq (%r12,%rbp,4), %rsi
addl 0x30(%rbx), %r14d
movslq %r14d, %rdx
shlq $0x2, %rdx
movq (%rsp), %rdi
callq 0x4860
movl 0x30(%rbx), %eax
decl %eax
movl %eax, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68d08(%rip), %rdi     # 0x8aef3
leaq 0x68d11(%rip), %rsi     # 0x8af03
leaq 0x68d1e(%rip), %rcx     # 0x8af17
movl $0x1f6, %edx            # imm = 0x1F6
callq 0x42e0
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: bcf_sr_seek
int bcf_sr_seek(bcf_srs_t *readers, const char *seq, hts_pos_t pos)
{
    if ( !readers->regions ) return 0;
    bcf_sr_sort_reset(&BCF_SR_AUX(readers)->sort);
    if ( !seq && !pos )
    {
        // seek to start
        bcf_sr_seek_start(readers);
        return 0;
    }

    int i, nret = 0;

    // Need to position both the readers and the regions. The latter is a bit of a mess
    // because we can have in memory or external regions. The safe way is:
    //  - reset all regions as if they were not read from at all (bcf_sr_seek_start)
    //  - find the requested iseq (stored in the seq_hash)
    //  - position regions to the requested position (bcf_sr_regions_overlap)
    bcf_sr_seek_start(readers);
    if ( khash_str2int_get(readers->regions->seq_hash, seq, &i)>=0 ) readers->regions->iseq = i;
    _bcf_sr_regions_overlap(readers->regions, seq, pos, pos, 0);

    for (i=0; i<readers->nreaders; i++)
    {
        nret += _reader_seek(&readers->readers[i],seq,pos,MAX_CSI_COOR-1);
    }
    return nret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebp, %ebp
cmpq $0x0, 0x48(%rdi)
je 0x22cc2
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x88(%rdi), %rdi
callq 0x6fd49
movq %r15, %rax
orq %r14, %rax
je 0x22cba
movq %rbx, %rdi
callq 0x2155d
movq 0x48(%rbx), %r12
movq 0x88(%r12), %rdi
leaq 0x4(%rsp), %rdx
movq %r15, %rsi
callq 0x22cd3
testl %eax, %eax
js 0x22c67
movl 0x4(%rsp), %eax
movl %eax, 0x9c(%r12)
xorl %r13d, %r13d
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x22d0b
movabsq $0xffffffffffe, %r12    # imm = 0xFFFFFFFFFFE
xorl %ebp, %ebp
movl %r13d, 0x4(%rsp)
cmpl 0x30(%rbx), %r13d
jge 0x22cc2
movslq %r13d, %rax
imulq $0x60, %rax, %rdi
addq 0x28(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x22e44
addl %eax, %ebp
movl 0x4(%rsp), %r13d
incl %r13d
jmp 0x22c8a
movq %rbx, %rdi
callq 0x2155d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: bcf_sr_regions_overlap
static int _bcf_sr_regions_overlap(bcf_sr_regions_t *reg, const char *seq, hts_pos_t start, hts_pos_t end, int missed_reg_handler)
{
    int iseq;
    if ( khash_str2int_get(reg->seq_hash, seq, &iseq)<0 ) return -1;    // no such sequence
    if ( missed_reg_handler && !reg->missed_reg_handler ) missed_reg_handler = 0;

    if ( reg->prev_seq==-1 || iseq!=reg->prev_seq || reg->prev_start > start ) // new chromosome or after a seek
    {
        // flush regions left on previous chromosome
        if ( missed_reg_handler && reg->prev_seq!=-1 && reg->iseq!=-1 )
            bcf_sr_regions_flush(reg);

        bcf_sr_regions_seek(reg, seq);
        reg->start = reg->end = -1;
    }
    if ( reg->prev_seq==iseq && reg->iseq!=iseq ) return -2;    // no more regions on this chromosome
    reg->prev_seq = reg->iseq;
    reg->prev_start = start;

    while ( iseq==reg->iseq && reg->end < start )
    {
        if ( bcf_sr_regions_next(reg) < 0 ) return -2;  // no more regions left
        if ( reg->iseq != iseq ) return -1; // does not overlap any regions
        if ( missed_reg_handler && reg->end < start ) reg->missed_reg_handler(reg, reg->missed_reg_data);
    }
    if ( reg->start <= end ) return 0;    // region overlap
    return -1;  // no overlap
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
movq 0x88(%rdi), %rdi
leaq 0x4(%rsp), %rdx
callq 0x22cd3
pushq $-0x1
popq %rbx
testl %eax, %eax
js 0x22e33
testl %ebp, %ebp
je 0x22d50
cmpq $0x0, 0x70(%r15)
sete %bpl
jmp 0x22d53
movb $0x1, %bpl
movl 0xb0(%r15), %eax
cmpl $-0x1, %eax
je 0x22d6e
cmpl %eax, 0x4(%rsp)
jne 0x22d6e
cmpq %r12, 0xb8(%r15)
jle 0x22db0
cmpl $-0x1, %eax
sete %al
orb %bpl, %al
jne 0x22d8b
cmpl $-0x1, 0x9c(%r15)
je 0x22d8b
movq %r15, %rdi
callq 0x2383c
movq %r15, %rdi
movq %r13, %rsi
callq 0x234b4
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0xa0(%r15)
movl 0x4(%rsp), %eax
cmpl %eax, 0xb0(%r15)
jne 0x22dc0
movl %eax, %ecx
cmpl %eax, 0x9c(%r15)
je 0x22dc7
pushq $-0x2
popq %rbx
jmp 0x22e33
movl 0x9c(%r15), %ecx
movl %ecx, 0xb0(%r15)
movq %r12, 0xb8(%r15)
cmpl %ecx, %eax
jne 0x22e25
cmpq %r12, 0xa8(%r15)
jge 0x22e25
movq %r15, %rdi
callq 0x23554
testl %eax, %eax
js 0x22dbb
movl 0x9c(%r15), %ecx
cmpl 0x4(%rsp), %ecx
jne 0x22e33
movl %ecx, %eax
testb %bpl, %bpl
jne 0x22dd5
movl %ecx, %eax
cmpq %r12, 0xa8(%r15)
jge 0x22dd5
movq 0x78(%r15), %rsi
movq %r15, %rdi
callq *0x70(%r15)
movl 0x4(%rsp), %eax
movl 0x9c(%r15), %ecx
jmp 0x22dd5
xorl %ebx, %ebx
cmpq %r14, 0xa0(%r15)
setg %bl
negl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: reader_seek
static int _reader_seek(bcf_sr_t *reader, const char *seq, hts_pos_t start, hts_pos_t end)
{
    if ( end>=MAX_CSI_COOR )
    {
        hts_log_error("The coordinate is out of csi index limit: %"PRIhts_pos, end+1);
        exit(1);
    }
    if ( reader->itr )
    {
        hts_itr_destroy(reader->itr);
        reader->itr = NULL;
    }
    reader->nbuffer = 0;
    if ( reader->tbx_idx )
    {
        int tid = tbx_name2id(reader->tbx_idx, seq);
        if ( tid==-1 ) return -1;    // the sequence not present in this file
        reader->itr = tbx_itr_queryi(reader->tbx_idx,tid,start,end+1);
    }
    else
    {
        int tid = bcf_hdr_name2id(reader->header, seq);
        if ( tid==-1 ) return -1;    // the sequence not present in this file
        reader->itr = bcf_itr_queryi(reader->bcf_idx,tid,start,end+1);
    }
    if (!reader->itr) {
        hts_log_error("Could not seek: %s:%"PRIhts_pos"-%"PRIhts_pos, seq, start + 1, end + 1);
        abort();
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movabsq $0xfffffffffff, %rax    # imm = 0xFFFFFFFFFFF
cmpq %rax, %rcx
jge 0x22f2c
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x22e7f
callq 0xc3d9
andq $0x0, 0x20(%r12)
andl $0x0, 0x38(%r12)
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x22eb6
movq %r15, %rsi
callq 0x23f14
cmpl $-0x1, %eax
je 0x22f20
movq 0x8(%r12), %rcx
movq 0x18(%rcx), %rdi
leaq 0x1(%rbx), %rcx
leaq 0x19e3(%rip), %r8       # 0x24897
jmp 0x22edb
movq 0x18(%r12), %rdi
pushq $0x1
popq %rsi
movq %r15, %rdx
callq 0x29398
cmpl $-0x1, %eax
je 0x22f20
movq 0x10(%r12), %rdi
leaq 0x1(%rbx), %rcx
leaq 0x89a6(%rip), %r8       # 0x2b881
movl %eax, %esi
movq %r14, %rdx
callq 0xbc19
movq %rax, %rcx
movq %rax, 0x20(%r12)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x22f23
incq %r14
incq %rbx
leaq 0x682dd(%rip), %rsi     # 0x8b1de
leaq 0x68311(%rip), %rdx     # 0x8b219
pushq $0x1
popq %rdi
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
xorl %eax, %eax
callq 0x86fa
callq 0x4260
pushq $-0x1
popq %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
incq %rbx
leaq 0x682a8(%rip), %rsi     # 0x8b1de
leaq 0x682ae(%rip), %rdx     # 0x8b1eb
pushq $0x1
popq %rbp
movl %ebp, %edi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x86fa
movl %ebp, %edi
callq 0x4600
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: bcf_sr_regions_seek
int bcf_sr_regions_seek(bcf_sr_regions_t *reg, const char *seq)
{
    reg->iseq = reg->start = reg->end = -1;
    if ( khash_str2int_get(reg->seq_hash, seq, &reg->iseq) < 0 ) return -1;  // sequence seq not in regions

    // using in-memory regions
    if ( reg->regs )
    {
        reg->regs[reg->iseq].creg = -1;
        return 0;
    }

    // reading regions from tabix
    if ( reg->itr ) tbx_itr_destroy(reg->itr);
    reg->itr = tbx_itr_querys(reg->tbx, seq);
    if ( reg->itr ) return 0;

    return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9c(%rdi), %r15
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x9c(%rdi)
orl $-0x1, 0xac(%rdi)
movq 0x88(%rdi), %rdi
movq %r15, %rdx
callq 0x22cd3
testl %eax, %eax
js 0x23508
movq 0x80(%rbx), %rax
testq %rax, %rax
je 0x2350d
movslq (%r15), %rcx
imulq $0x18, %rcx, %rcx
orl $-0x1, 0x10(%rax,%rcx)
xorl %eax, %eax
jmp 0x2354e
pushq $-0x1
popq %rax
jmp 0x2354e
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2351b
callq 0xc3d9
movq (%rbx), %rcx
movq 0x18(%rcx), %rdi
leaq 0x9eb(%rip), %rdx       # 0x23f14
leaq -0x17917(%rip), %r8     # 0xbc19
leaq 0x1360(%rip), %r9       # 0x24897
movq %r14, %rsi
callq 0xdbb9
movq %rax, %rcx
movq %rax, 0x8(%rbx)
xorl %eax, %eax
cmpq $0x1, %rcx
sbbl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: set_variant_boundaries
static void _set_variant_boundaries(bcf1_t *rec, hts_pos_t *beg, hts_pos_t *end)
{
    hts_pos_t off;
    if ( rec->n_allele )
    {
        off = rec->rlen;
        bcf_unpack(rec, BCF_UN_STR);
        int i;
        for (i=1; i<rec->n_allele; i++)
        {
            // Make symbolic alleles start at POS, although this is not strictly true for
            // <DEL>,<INS> where POS should be the position BEFORE the deletion/insertion.
            // However, since arbitrary symbolic alleles can be defined by the user, we
            // will simplify the interpretation of --targets-overlap and --region-overlap.
            int j = 0;
            char *ref = rec->d.allele[0];
            char *alt = rec->d.allele[i];
            while ( ref[j] && alt[j] && ref[j]==alt[j] ) j++;
            if ( off > j ) off = j;
            if ( !off ) break;
        }
    }
    else
        off = 0;

    *beg = rec->pos + off;
    *end = rec->pos + rec->rlen - 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
cmpw $0x0, 0x1a(%rdi)
je 0x23988
movq 0x8(%r14), %r12
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x2fc94
movzwl 0x1a(%r14), %eax
pushq $0x1
popq %rcx
cmpq %rax, %rcx
jae 0x2398b
movq 0x88(%r14), %rsi
movq (%rsi), %rdx
movq (%rsi,%rcx,8), %rsi
xorl %r8d, %r8d
movq %r8, %rdi
movb (%rdx,%r8), %r9b
testb %r9b, %r9b
je 0x23979
leaq 0x1(%rdi), %r8
cmpb (%rsi,%rdi), %r9b
je 0x23963
cmpq %rdi, %r12
cmovgeq %rdi, %r12
incq %rcx
testq %r12, %r12
jne 0x2394d
xorl %r12d, %r12d
addq (%r14), %r12
movq %r12, (%r15)
movq (%r14), %rax
movq 0x8(%r14), %rcx
addq %rcx, %rax
decq %rax
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/synced_bcf_reader.c
// Function: regions_cmp
static int regions_cmp(const void *aptr, const void *bptr)
{
    region1_t *a = (region1_t*)aptr;
    region1_t *b = (region1_t*)bptr;
    if ( a->start < b->start ) return -1;
    if ( a->start > b->start ) return 1;
    if ( a->end < b->end ) return -1;
    if ( a->end > b->end ) return 1;
    return 0;
}

// Assembly:
movq (%rsi), %rcx
pushq $-0x1
popq %rax
cmpq %rcx, (%rdi)
jge 0x23efc
retq
jle 0x23f02
pushq $0x1
popq %rax
retq
movq 0x8(%rsi), %rcx
cmpq %rcx, 0x8(%rdi)
jl 0x23efb
setg %al
movzbl %al, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/bcf_sr_sort.c
// Function: bcf_sr_sort_set_active
int bcf_sr_sort_set_active(sr_sort_t *srt, int idx)
{
    hts_expand(int,idx+1,srt->mactive,srt->active);
    srt->nactive = 1;
    srt->active[srt->nactive - 1] = idx;
    return 0; // FIXME: check for errs in this function
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq 0x1c8(%rdi), %rsi
cmpl %ebx, %esi
jg 0x6e369
leal 0x1(%rbx), %eax
testl %ebx, %ebx
pushq $0x1
popq %rcx
cmovnsl %eax, %ecx
movslq %ecx, %rdi
leaq 0x1d0(%r14), %r9
leaq 0x2722b(%rip), %rax     # 0x9557b
movq %rax, (%rsp)
pushq $0x4
popq %rcx
movq %rcx, %rdx
xorl %r8d, %r8d
callq 0xf517
movl %eax, 0x1c8(%r14)
movl $0x1, 0x1c4(%r14)
movq 0x1d0(%r14), %rax
movl %ebx, (%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/bcf_sr_sort.c
// Function: bcf_sr_sort_add_active
int bcf_sr_sort_add_active(sr_sort_t *srt, int idx)
{
    hts_expand(int,idx+1,srt->mactive,srt->active);
    srt->nactive++;
    srt->active[srt->nactive - 1] = idx;
    return 0; // FIXME: check for errs in this function
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movslq 0x1c8(%rdi), %rsi
cmpl %ebx, %esi
jg 0x6e3d0
leal 0x1(%rbx), %eax
testl %ebx, %ebx
pushq $0x1
popq %rcx
cmovnsl %eax, %ecx
movslq %ecx, %rdi
leaq 0x1d0(%r14), %r9
leaq 0x271db(%rip), %rax     # 0x95592
movq %rax, (%rsp)
pushq $0x4
popq %rcx
movq %rcx, %rdx
xorl %r8d, %r8d
callq 0xf517
movl %eax, 0x1c8(%r14)
movslq 0x1c4(%r14), %rax
leal 0x1(%rax), %ecx
movl %ecx, 0x1c4(%r14)
movq 0x1d0(%r14), %rcx
movl %ebx, (%rcx,%rax,4)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/bcf_sr_sort.c
// Function: bcf_sr_sort_remove_reader
void bcf_sr_sort_remove_reader(bcf_srs_t *readers, sr_sort_t *srt, int i)
{
    //vcf_buf is allocated only in bcf_sr_sort_next
    //So, a call to bcf_sr_add_reader() followed immediately by bcf_sr_remove_reader()
    //would cause the program to crash in this segment
    if (srt->vcf_buf)
    {
        free(srt->vcf_buf[i].rec);
        if ( i+1 < srt->nsr )
            memmove(&srt->vcf_buf[i], &srt->vcf_buf[i+1], (srt->nsr - i - 1)*sizeof(vcf_buf_t));
        memset(srt->vcf_buf + srt->nsr - 1, 0, sizeof(vcf_buf_t));
    }
}

// Assembly:
movq 0x150(%rsi), %rax
testq %rax, %rax
je 0x6fd2a
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movslq %edx, %r15
movq %r15, %r14
shlq $0x4, %r14
movq 0x8(%rax,%r14), %rdi
callq 0x45d0
incl %r15d
movl 0x1b8(%rbx), %eax
cmpl %eax, %r15d
jge 0x6fd0b
movq 0x150(%rbx), %rcx
addq %rcx, %r14
movslq %r15d, %rsi
shlq $0x4, %rsi
addq %rcx, %rsi
notl %ebp
addl %ebp, %eax
movslq %eax, %rdx
shlq $0x4, %rdx
movq %r14, %rdi
callq 0x4860
movl 0x1b8(%rbx), %eax
movq 0x150(%rbx), %rcx
cltq
shlq $0x4, %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x10(%rcx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/bcf_sr_sort.c
// Function: bcf_sr_sort_destroy
void bcf_sr_sort_destroy(sr_sort_t *srt)
{
    free(srt->active);
    if ( srt->var_str2int ) khash_str2int_destroy_free(srt->var_str2int);
    if ( srt->grp_str2int ) khash_str2int_destroy_free(srt->grp_str2int);
    int i;
    for (i=0; i<srt->nsr; i++) free(srt->vcf_buf[i].rec);
    free(srt->vcf_buf);
    for (i=0; i<srt->mvar; i++)
    {
        free(srt->var[i].str);
        free(srt->var[i].vcf);
        free(srt->var[i].rec);
        kbs_destroy(srt->var[i].mask);
    }
    free(srt->var);
    for (i=0; i<srt->mgrp; i++)
        free(srt->grp[i].var);
    free(srt->grp);
    for (i=0; i<srt->mvset; i++)
    {
        kbs_destroy(srt->vset[i].mask);
        free(srt->vset[i].var);
    }
    free(srt->vset);
    free(srt->str.s);
    free(srt->off);
    free(srt->charp);
    free(srt->cnt);
    free(srt->pmat);
    memset(srt,0,sizeof(*srt));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x1d0(%rdi), %rdi
callq 0x45d0
movq 0x168(%rbx), %rdi
testq %rdi, %rdi
je 0x6fd77
callq 0x6fedf
movq 0x160(%rbx), %rdi
testq %rdi, %rdi
je 0x6fd88
callq 0x6fedf
pushq $0x8
popq %r14
xorl %r15d, %r15d
movslq 0x1b8(%rbx), %rax
movq 0x150(%rbx), %rdi
cmpq %rax, %r15
jge 0x6fdb4
movq (%rdi,%r14), %rdi
callq 0x45d0
incq %r15
addq $0x10, %r14
jmp 0x6fd8f
callq 0x45d0
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x104(%rbx), %rax
movq 0x108(%rbx), %rdi
cmpq %rax, %r15
jge 0x6fe17
movq (%rdi,%r14), %rdi
callq 0x45d0
movq 0x108(%rbx), %rax
movq 0x18(%rax,%r14), %rdi
callq 0x45d0
movq 0x108(%rbx), %rax
movq 0x20(%rax,%r14), %rdi
callq 0x45d0
movq 0x108(%rbx), %rax
movq 0x28(%rax,%r14), %rdi
callq 0x45d0
incq %r15
addq $0x30, %r14
jmp 0x6fdbf
callq 0x45d0
pushq $0x10
popq %r14
xorl %r15d, %r15d
movslq 0x12c(%rbx), %rax
movq 0x140(%rbx), %rdi
cmpq %rax, %r15
jge 0x6fe48
movq (%rdi,%r14), %rdi
callq 0x45d0
incq %r15
addq $0x20, %r14
jmp 0x6fe23
callq 0x45d0
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x114(%rbx), %rax
movq 0x148(%rbx), %rdi
cmpq %rax, %r15
jge 0x6fe8a
movq 0x18(%rdi,%r14), %rdi
callq 0x45d0
movq 0x148(%rbx), %rax
movq 0x8(%rax,%r14), %rdi
callq 0x45d0
incq %r15
addq $0x20, %r14
jmp 0x6fe53
callq 0x45d0
movq 0x180(%rbx), %rdi
callq 0x45d0
movq 0x190(%rbx), %rdi
callq 0x45d0
movq 0x1a0(%rbx), %rdi
callq 0x45d0
movq 0x138(%rbx), %rdi
callq 0x45d0
movq 0x120(%rbx), %rdi
callq 0x45d0
movl $0x1d8, %edx            # imm = 0x1D8
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x4250
// File: /workspace/github_c_makefile_star2_O2/samtools[P]htslib/./htslib/khash_str2int.h
// Function: khash_str2int_destroy_free
static inline void khash_str2int_destroy_free(void *_hash)
{
    khash_t(str2int) *hash = (khash_t(str2int)*)_hash;
    khint_t k;
    if (hash == 0) return;
    for (k = 0; k < kh_end(hash); ++k)
        if (kh_exist(hash, k)) free((char*)kh_key(hash, k));
    kh_destroy(str2int, hash);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movl (%rbx), %eax
cmpq %rax, %r15
jae 0x6ff24
movq 0x10(%rbx), %rax
movq %r15, %rcx
shrq $0x4, %rcx
movl (%rax,%rcx,4), %eax
movl %r14d, %ecx
andb $0x1e, %cl
shrl %cl, %eax
testb $0x3, %al
jne 0x6ff1b
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x45d0
incq %r15
addl $0x2, %r14d
jmp 0x6feed
movq 0x18(%rbx), %rdi
callq 0x45d0
movq 0x10(%rbx), %rdi
callq 0x45d0
movq 0x20(%rbx), %rdi
callq 0x45d0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x45d0
// File: /workspace/github_c_makefile_star2_O2/ryuichiueda[P]glueutils/src/juz.c
// Function: usage
void usage(void){
	fputs("juz: repeatedly chain the same command in a pipeline\n", stderr);
	fputs("usage: juz <num> <command> [args]\n", stderr);
	fputs("\nCopyright (C) 2021 Ryuichi Ueda\n", stderr);
	fputs("Released under the MIT License.\n", stderr);
	fputs("https://github.com/ryuichiueda/glueutils\n", stderr);
}

// Assembly:
pushq %rbx
movq 0x2e04(%rip), %rbx      # 0x3ff8
movq (%rbx), %rsi
leaq 0xe06(%rip), %rdi       # 0x2004
callq 0x1060
movq (%rbx), %rsi
leaq 0xe2d(%rip), %rdi       # 0x203a
callq 0x1060
movq (%rbx), %rsi
leaq 0xe41(%rip), %rdi       # 0x205d
callq 0x1060
movq (%rbx), %rsi
leaq 0xe54(%rip), %rdi       # 0x207f
callq 0x1060
movq (%rbx), %rsi
leaq 0xe66(%rip), %rdi       # 0x20a0
popq %rbx
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O2/ryuichiueda[P]glueutils/src/juz.c
// Function: dup_and_close
void dup_and_close(int old, int new)
{
	try_close(new);
	if(dup2(old, new) == -1){
		printf("Error: %s\n", strerror(errno));
		exit(1);
	}
	try_close(old);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movl %edi, %ebx
movl %esi, %edi
callq 0x1240
movl %ebx, %edi
movl %ebp, %esi
callq 0x1040
cmpl $-0x1, %eax
je 0x129b
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1240
callq 0x1030
movl (%rax), %edi
callq 0x10d0
leaq 0xe1c(%rip), %rdi       # 0x20ca
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
pushq $0x1
popq %rdi
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O2/ryuichiueda[P]glueutils/src/juz.c
// Function: main
int main(int argc, char * argv[])
{
	if(argc < 3){
		usage();
		exit(1);
	}

	long rep = strtol(argv[1], NULL, 10);
	if(errno != 0){
		printf("Error: %s\n", strerror(errno));
		exit(1);
	}

	for(int i=0;i<rep;i++){
		int pips[2];
		if(pipe(pips) < 0){
			fputs("Error: pipe open error", stderr);
			exit(1);
		}

		int pid = fork();
		if(pid == 0){//child proc
			if(i < rep-1){
				try_close(pips[0]);
				dup_and_close(pips[1], 1);
			}else{
				try_close(pips[1]);
			}
			return -execvp(argv[2], &argv[2]);
		}

		//parent proc
		try_close(pips[1]);
		dup_and_close(pips[0], 0);
	}

	int wstatus;
	int wpid;
	int lasterror = 0;
	while((wpid = waitpid(-1, &wstatus, 0)) > 0){
		if(WIFEXITED(wstatus) && WEXITSTATUS(wstatus)){
			lasterror = WEXITSTATUS(wstatus);
		}
	}
	exit(lasterror);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x2, %edi
jle 0x13e1
movq %rsi, %rbx
movq 0x8(%rsi), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x1090
movq %rax, %r14
callq 0x1030
movl (%rax), %edi
testl %edi, %edi
jne 0x13e8
xorl %r12d, %r12d
testq %r14, %r14
movl $0x0, %r13d
cmovgq %r14, %r13
leaq 0xc(%rsp), %r15
cmpq %r12, %r13
je 0x138f
movq %r15, %rdi
callq 0x1080
testl %eax, %eax
js 0x13bc
callq 0x10e0
testl %eax, %eax
je 0x1346
movl 0x10(%rsp), %edi
callq 0x1240
movl 0xc(%rsp), %edi
xorl %esi, %esi
callq 0x1272
incq %r12
jmp 0x130f
decq %r14
cmpq %r12, %r14
jbe 0x1365
movl 0xc(%rsp), %edi
callq 0x1240
movl 0x10(%rsp), %edi
pushq $0x1
popq %rsi
callq 0x1272
jmp 0x136e
movl 0x10(%rsp), %edi
callq 0x1240
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
movq %rbx, %rsi
callq 0x10b0
negl %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebx, %ebx
pushq $-0x1
popq %rbp
leaq 0x14(%rsp), %r14
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x10a0
testl %eax, %eax
jle 0x13da
movl 0x14(%rsp), %eax
movzbl %ah, %ecx
testl %ecx, %ecx
cmovel %ebx, %ecx
testb $0x7f, %al
cmovel %ecx, %ebx
jmp 0x1399
movq 0x2c35(%rip), %rax      # 0x3ff8
movq (%rax), %rsi
leaq 0xd08(%rip), %rdi       # 0x20d5
callq 0x1060
pushq $0x1
popq %rdi
callq 0x10c0
movl %ebx, %edi
callq 0x10c0
callq 0x11ec
jmp 0x13d2
callq 0x10d0
leaq 0xcd6(%rip), %rdi       # 0x20ca
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
jmp 0x13d2
// File: /workspace/github_c_makefile_star2_O2/eric-lo[P]3150/9-File/getchar_eof.c
// Function: main
int main(void)
{
	char c;
	unsigned long long count = 0;
	while(1)
	{
		c = getchar();
		if(c == EOF)
			break;
		else
			count++;
	}
	printf("EOF is reached. Read %lld bytes.\n", count);
	return 0;
}

// Assembly:
pushq %rbx
pushq $-0x1
popq %rbx
callq 0x1040
incq %rbx
cmpb $-0x1, %al
jne 0x1150
leaq 0xea1(%rip), %rdi       # 0x2004
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/mpc/mpc.c
// Function: mpcf_freefold
mpc_val_t *mpcf_freefold(int n, mpc_val_t **xs) {
  int i;
  for (i = 0; i < n; i++) {
    free(xs[i]);
  }
  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
xorl %r15d, %r15d
testl %edi, %edi
cmovlel %r15d, %r14d
cmpq %r15, %r14
je 0x6294
movq (%rbx,%r15,8), %rdi
callq 0x2280
incq %r15
jmp 0x6281
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/mpc/mpc.c
// Function: mpc_nodecount_unretained
static int mpc_nodecount_unretained(mpc_parser_t* p, int force) {

  int i, total;

  if (p->retained && !force) { return 0; }

  if (p->type == MPC_TYPE_EXPECT) { return 1 + mpc_nodecount_unretained(p->data.expect.x, 0); }

  if (p->type == MPC_TYPE_APPLY)    { return 1 + mpc_nodecount_unretained(p->data.apply.x, 0); }
  if (p->type == MPC_TYPE_APPLY_TO) { return 1 + mpc_nodecount_unretained(p->data.apply_to.x, 0); }
  if (p->type == MPC_TYPE_PREDICT)  { return 1 + mpc_nodecount_unretained(p->data.predict.x, 0); }

  if (p->type == MPC_TYPE_CHECK)    { return 1 + mpc_nodecount_unretained(p->data.check.x, 0); }
  if (p->type == MPC_TYPE_CHECK_WITH) { return 1 + mpc_nodecount_unretained(p->data.check_with.x, 0); }

  if (p->type == MPC_TYPE_NOT)   { return 1 + mpc_nodecount_unretained(p->data.not.x, 0); }
  if (p->type == MPC_TYPE_MAYBE) { return 1 + mpc_nodecount_unretained(p->data.not.x, 0); }

  if (p->type == MPC_TYPE_MANY)  { return 1 + mpc_nodecount_unretained(p->data.repeat.x, 0); }
  if (p->type == MPC_TYPE_MANY1) { return 1 + mpc_nodecount_unretained(p->data.repeat.x, 0); }
  if (p->type == MPC_TYPE_COUNT) { return 1 + mpc_nodecount_unretained(p->data.repeat.x, 0); }

  if (p->type == MPC_TYPE_OR) {
    total = 1;
    for(i = 0; i < p->data.or.n; i++) {
      total += mpc_nodecount_unretained(p->data.or.xs[i], 0);
    }
    return total;
  }

  if (p->type == MPC_TYPE_AND) {
    total = 1;
    for(i = 0; i < p->data.and.n; i++) {
      total += mpc_nodecount_unretained(p->data.and.xs[i], 0);
    }
    return total;
  }

  return 1;

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
xorl %r15d, %r15d
pushq $0x1
popq %rbx
leaq 0x2ef5(%rip), %rax      # 0xb25c
testl %esi, %esi
setne %cl
testb $0x1, %cl
jne 0x8378
cmpb $0x0, 0x31(%r14)
jne 0x83bd
movzbl 0x30(%r14), %ecx
addl $-0x5, %ecx
cmpl $0x15, %ecx
ja 0x83bf
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x8(%r14), %r14
incl %r15d
xorl %ecx, %ecx
jmp 0x836c
movq 0x8(%r14), %r14
incl %r15d
xorl %esi, %esi
jmp 0x8367
movq 0x8(%r14), %rdi
jmp 0x83ae
movq 0x18(%r14), %rdi
xorl %esi, %esi
callq 0x834e
leal (%rax,%r15), %ebx
incl %ebx
jmp 0x83c2
xorl %ebx, %ebx
addl %r15d, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl 0x8(%r14), %r12d
xorl %r13d, %r13d
testl %r12d, %r12d
cmovlel %r13d, %r12d
pushq $0x1
popq %rbx
cmpq %r13, %r12
je 0x83bf
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rdi
xorl %esi, %esi
callq 0x834e
addl %eax, %ebx
incq %r13
jmp 0x83df
movl 0x8(%r14), %r12d
xorl %r13d, %r13d
testl %r12d, %r12d
cmovlel %r13d, %r12d
pushq $0x1
popq %rbx
cmpq %r13, %r12
je 0x83bf
movq 0x18(%r14), %rax
movq (%rax,%r13,8), %rdi
xorl %esi, %esi
callq 0x834e
addl %eax, %ebx
incq %r13
jmp 0x840b
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/libs/stdin.c
// Function: stdin_read
uint8_t* stdin_read(size_t* size) {
  size_t max = chunk_size;
  size_t offset = 0;
  uint8_t* buffer = malloc(max);

  // Read stdin into a auto-growing buffer
  while (true) {
    ssize_t bytes_read = read(0, buffer + offset, max - offset);
    if (bytes_read < 0) return NULL;
    if (bytes_read == 0) break;
    offset += bytes_read;
    if (offset == max) {
      max = offset + chunk_size;
      buffer = realloc(buffer, max);
    }
  }

  // Optionally record size
  if (size) *size = offset;

  // Clean up freespace and add null terminator
  buffer = realloc(buffer, offset + 1);
  buffer[offset] = 0;

  return buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x100, %r12d           # imm = 0x100
movl $0x100, %edi            # imm = 0x100
callq 0x21a0
movq %rax, %r15
xorl %r14d, %r14d
xorl %r13d, %r13d
leaq (%r15,%r13), %rsi
movq %r12, %rdx
subq %r13, %rdx
xorl %edi, %edi
callq 0x2130
testq %rax, %rax
js 0x8a72
je 0x8a56
addq %rax, %r13
cmpq %r12, %r13
jne 0x8a1f
addq $0x100, %r12            # imm = 0x100
movq %r15, %rdi
movq %r12, %rsi
callq 0x21d0
movq %rax, %r15
jmp 0x8a1f
testq %rbx, %rbx
je 0x8a5e
movq %r13, (%rbx)
leaq 0x1(%r13), %rsi
movq %r15, %rdi
callq 0x21d0
movq %rax, %r14
movb $0x0, (%rax,%r13)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/compile.c
// Function: parse_number
uint32_t parse_number(mpc_ast_t* ast) {
  if (is(ast, "number|decimal|regex")) {
    return atoi(ast->contents);
  }
  if (is(ast, "number|boolean|string")) {
    return !strcmp(ast->contents, "true");
  }
  if (is(ast, "number|hex|regex")) {
    return strtol(ast->contents + 2, NULL, 16);
  }
  assert(false); // Unknown tag for number
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x2bb9(%rip), %rsi      # 0xb64d
callq 0x8b19
testb %al, %al
je 0x8aa7
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x2210
leaq 0x2bb4(%rip), %rsi      # 0xb662
movq %rbx, %rdi
callq 0x8b19
testb %al, %al
je 0x8ad5
movq 0x8(%rbx), %rdi
leaq 0x2bb3(%rip), %rsi      # 0xb678
callq 0x2150
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
jmp 0x8afa
leaq 0x2ba1(%rip), %rsi      # 0xb67d
movq %rbx, %rdi
callq 0x8b19
testb %al, %al
je 0x8afc
movq 0x8(%rbx), %rdi
addq $0x2, %rdi
pushq $0x10
popq %rdx
xorl %esi, %esi
callq 0x2180
popq %rbx
retq
leaq 0x2b8b(%rip), %rdi      # 0xb68e
leaq 0x2b8a(%rip), %rsi      # 0xb694
leaq 0x2b91(%rip), %rcx      # 0xb6a2
pushq $0x52
popq %rdx
callq 0x20e0
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/compile.c
// Function: generate_block
static void generate_block(mpc_ast_t* ast) {
  if (ast->children_num > 3) pushchar(DO);
  for (int i = 1; i < ast->children_num - 1; i++) {
    generate_statement(ast->children[i]);
  }
  if (ast->children_num > 3) pushchar(END);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x4, 0x30(%rdi)
jl 0x900e
movzwl 0x81e7(%rip), %eax      # 0x111e0
leal 0x1(%rax), %ecx
movw %cx, 0x81dd(%rip)       # 0x111e0
leaq 0x81f6(%rip), %rcx      # 0x11200
movb $-0x54, (%rax,%rcx)
pushq $0x1
popq %r14
movslq 0x30(%rbx), %rax
leaq -0x1(%rax), %rcx
cmpq %rcx, %r14
jge 0x9031
movq 0x38(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x9dd4
incq %r14
jmp 0x9012
cmpl $0x3, %eax
jle 0x9052
movzwl 0x81a3(%rip), %eax      # 0x111e0
leal 0x1(%rax), %ecx
movw %cx, 0x8199(%rip)       # 0x111e0
leaq 0x81b2(%rip), %rcx      # 0x11200
movb $-0x53, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/compile.c
// Function: generate_number
static void generate_number(uint32_t num) {
  // fprintf(stderr, "Generate Num %u - %08x\n", num, num);
  if (num < 0x80) {
    pushchar((char)num);
  }
  else if (num < 0x100) {
    pushchar(UINT8);
    pushchar(num);
  }
  else if (num < 0x10000) {
    pushchar(UINT16);
    pushchar(num >> 8);
    pushchar(num);
  }
  else if (num < 0x1000000) {
    pushchar(UINT24);
    pushchar(num >> 16);
    pushchar(num >> 8);
    pushchar(num);
  }
  else {
    pushchar(UINT32);
    pushchar(num >> 24);
    pushchar(num >> 16);
    pushchar(num >> 8);
    pushchar(num);
  }
}

// Assembly:
movl %edi, %eax
cmpl $0x7f, %edi
ja 0xa403
movzwl 0x6df2(%rip), %ecx      # 0x111e0
leal 0x1(%rcx), %edx
movw %dx, 0x6de8(%rip)       # 0x111e0
leaq 0x6e01(%rip), %rdx      # 0x11200
movb %al, (%rcx,%rdx)
retq
cmpl $0xff, %eax
ja 0xa430
movzwl 0x6dcf(%rip), %ecx      # 0x111e0
leal 0x1(%rcx), %edx
leaq 0x6de5(%rip), %rsi      # 0x11200
movb $-0x80, (%rcx,%rsi)
addl $0x2, %ecx
movw %cx, 0x6db7(%rip)       # 0x111e0
movzwl %dx, %ecx
movb %al, (%rcx,%rsi)
retq
cmpl $0xffff, %eax           # imm = 0xFFFF
ja 0xa46c
movzwl 0x6da2(%rip), %edx      # 0x111e0
leal 0x1(%rdx), %esi
leaq 0x6db8(%rip), %rcx      # 0x11200
movb $-0x7f, (%rdx,%rcx)
leal 0x2(%rdx), %edi
movl $0xffff, %r8d           # imm = 0xFFFF
andl %r8d, %esi
movb %ah, (%rsi,%rcx)
addl $0x3, %edx
movw %dx, 0x6d7b(%rip)       # 0x111e0
andl %r8d, %edi
movb %al, (%rdi,%rcx)
retq
pushq %rbx
movzwl 0x6d6c(%rip), %ecx      # 0x111e0
leal 0x1(%rcx), %edi
leal 0x2(%rcx), %esi
movl $0xffff, %r8d           # imm = 0xFFFF
andl %r8d, %edi
leal 0x3(%rcx), %edx
andl %r8d, %esi
andl %r8d, %edx
leaq 0x6d6d(%rip), %rbx      # 0x11200
cmpl $0xffffff, %eax         # imm = 0xFFFFFF
ja 0xa4bb
movb $-0x7e, (%rcx,%rbx)
movl %eax, %r8d
shrl $0x10, %r8d
movb %r8b, (%rdi,%rbx)
movb %ah, (%rsi,%rbx)
addl $0x4, %ecx
movw %cx, 0x6d2a(%rip)       # 0x111e0
movb %al, (%rdx,%rbx)
jmp 0xa4e9
movb $-0x7d, (%rcx,%rbx)
movl %eax, %r8d
shrl $0x18, %r8d
movb %r8b, (%rdi,%rbx)
movl %eax, %edi
shrl $0x10, %edi
movb %dil, (%rsi,%rbx)
leal 0x4(%rcx), %esi
movb %ah, (%rdx,%rbx)
addl $0x5, %ecx
movw %cx, 0x6cfd(%rip)       # 0x111e0
movzwl %si, %ecx
movb %al, (%rcx,%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/creationix[P]color-control/src/compile.c
// Function: intern_ident
static uint8_t intern_ident(const char* ident) {
  for (int i = 0; i < 8; i++) {
    if (!names[i]) {
      names[i] = ident;
      // fprintf(stderr, "Found %s at %d\n", ident, i);
      return i;
    }
    if (!strcmp(names[i], ident)) {
      // fprintf(stderr, "Added %s at %d\n", ident, i);
      return i;
    }
  }
  return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x16d16(%rip), %r15     # 0x21210
xorl %ebx, %ebx
cmpq $0x8, %rbx
je 0xa51f
movq (%r15), %rdi
testq %rdi, %rdi
je 0xa523
movq %r14, %rsi
callq 0x2150
testl %eax, %eax
je 0xa526
incq %rbx
addq $0x8, %r15
jmp 0xa4fc
movb $-0x1, %bl
jmp 0xa526
movq %r14, (%r15)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/./edge264_bitstream.c
// Function: cabac_start
static int cabac_start(Edge264Context *ctx) {
	// reclaim bits from cache while realigning with CPB on a byte boundary
	int extra_bits = SIZE_BIT - 1 - ctz(ctx->t._gb.lsb_cache);
	int shift = extra_bits & 7;
	int ret = shift > 0 && (ssize_t)ctx->t._gb.msb_cache >> (SIZE_BIT - shift) != -1; // return 1 if not all alignment bits are ones
	ctx->t._gb.codIOffset = shld(ctx->t._gb.lsb_cache, ctx->t._gb.msb_cache, shift); // codIOffset and msb_cache are the same memory slot
	ctx->t._gb.lsb_cache >>= (SIZE_BIT - extra_bits) & (SIZE_BIT - 1);
	while (extra_bits >= 8) {
		int32_t i = 0;
		if ((intptr_t)(ctx->t._gb.end - ctx->t._gb.CPB) >= 0)
			memcpy(&i, ctx->t._gb.CPB - 4, 4);
		ctx->t._gb.CPB -= 1 + ((big_endian32(i) & 0xffffff) == 3);
		ctx->t._gb.lsb_cache >>= 8;
		extra_bits -= 8;
	}
	ctx->t._gb.codIRange = (size_t)510 << (SIZE_BIT - 9);
	ctx->t._gb.codIOffset = (ctx->t._gb.codIOffset < ctx->t._gb.codIRange) ? ctx->t._gb.codIOffset : ctx->t._gb.codIRange - 1; // protection against invalid bitstream
	return ret;
}

// Assembly:
pushq %rbp
pushq %rbx
movq 0x10(%rdi), %r8
movq 0x18(%rdi), %rax
tzcntq %r8, %rsi
xorl $0x3f, %esi
movl %esi, %ecx
andl $0x7, %ecx
movq %rax, -0x8(%rsp)
movq %rax, %rdx
shldq %cl, %r8, %rdx
movq %rdx, 0x18(%rdi)
movl %esi, %r8d
negb %r8b
shrxq %r8, 0x10(%rdi), %r8
movq %r8, 0x10(%rdi)
movabsq $-0x1, %r9
movl $0xffffff00, %r10d      # imm = 0xFFFFFF00
cmpl $0x8, %esi
jl 0x5874
movq (%rdi), %r11
cmpq %r11, 0x8(%rdi)
movq %r9, %rbx
js 0x5861
movl -0x4(%r11), %ebp
andl %r10d, %ebp
xorl %ebx, %ebx
cmpl $0x3000000, %ebp        # imm = 0x3000000
sete %bl
notq %rbx
addq %rbx, %r11
movq %r11, (%rdi)
shrq $0x8, %r8
movq %r8, 0x10(%rdi)
addl $-0x8, %esi
jmp 0x583b
testl %ecx, %ecx
setne %sil
negb %cl
sarxq %rcx, %rax, %rax
cmpq $-0x1, %rax
setne %al
andb %sil, %al
movzbl %al, %eax
movabsq $-0x100000000000000, %rcx # imm = 0xFF00000000000000
movq %rcx, 0x10(%rdi)
movabsq $-0x100000000000001, %rcx # imm = 0xFEFFFFFFFFFFFFFF
cmpq %rcx, %rdx
cmovbq %rdx, %rcx
movq %rcx, 0x18(%rdi)
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/./edge264_bitstream.c
// Function: get_uv
static noinline unsigned get_uv(Edge264GetBits *gb, unsigned v) {
	unsigned ret = gb->msb_cache >> (SIZE_BIT - v);
	if (SIZE_BIT == 32 && __builtin_expect(v == 32, 0)) {
		gb->msb_cache = gb->lsb_cache;
		gb->lsb_cache = 0;
	} else {
		gb->msb_cache = shld(gb->lsb_cache, gb->msb_cache, v);
		gb->lsb_cache <<= v;
	}
	if (gb->lsb_cache)
		return ret;
	return refill(gb, ret);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x10(%rdi), %rax
movq 0x18(%rdi), %r14
movq %r14, (%rsp)
movq %r14, %rdx
movl %esi, %ecx
shldq %cl, %rax, %rdx
movq %rdx, 0x18(%rdi)
shlxq %rbx, 0x10(%rdi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
jne 0x9d93
callq 0xb845
negb %bl
shrxq %rbx, %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/./edge264_headers.c
// Function: finish_frame
static void finish_frame(Edge264Decoder *dec) {
	int non_base_view = dec->non_base_views >> dec->currPic & 1;
	if (dec->pic_reference_flags & 1 << dec->currPic) {
		dec->PrevRefFrameNum[non_base_view] = dec->FrameNums[dec->currPic];
		dec->prevPicOrderCnt[non_base_view] = dec->FieldOrderCnt[0][dec->currPic];
	}
	unsigned other_views = non_base_view ? ~dec->non_base_views : dec->non_base_views;
	dec->reference_flags = (dec->reference_flags & other_views) | dec->pic_reference_flags;
	dec->long_term_flags = (dec->long_term_flags & other_views) | dec->pic_long_term_flags;
	dec->LongTermFrameIdx_v[0] = dec->pic_LongTermFrameIdx_v[0];
	dec->LongTermFrameIdx_v[1] = dec->pic_LongTermFrameIdx_v[1];
	dec->prevPic = dec->currPic;
	dec->currPic = -1;
}

// Assembly:
movl 0x78(%rdi), %ecx
movl 0x24(%rdi), %eax
movl 0x70(%rdi), %edx
shrxl %eax, %ecx, %esi
andl $0x1, %esi
btl %eax, %edx
jae 0x9dd6
movsbq %al, %r8
movl 0x7c(%rdi,%r8,4), %r9d
movl %esi, %r10d
movl %r9d, 0x3c(%rdi,%r10,4)
movl 0x3d0(%rdi,%r8,4), %r8d
movl %r8d, 0x48(%rdi,%r10,4)
negl %esi
xorl %esi, %ecx
movl 0x5c(%rdi), %esi
andl %ecx, %esi
orl %edx, %esi
movl %esi, 0x5c(%rdi)
andl 0x60(%rdi), %ecx
orl 0x74(%rdi), %ecx
movl %ecx, 0x60(%rdi)
vmovups 0x3b0(%rdi), %ymm0
vmovups %ymm0, 0x390(%rdi)
movb %al, 0x25(%rdi)
movb $-0x1, 0x24(%rdi)
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/./edge264_headers.c
// Function: alloc_frame
static int alloc_frame(Edge264Decoder *dec, int id) {
	dec->frame_buffers[id] = malloc(dec->frame_size);
	if (dec->frame_buffers[id] == NULL)
		return ENOMEM;
	Edge264Macroblock *m = (Edge264Macroblock *)(dec->frame_buffers[id] + dec->plane_size_Y + dec->plane_size_C);
	int mbs = (dec->sps.pic_width_in_mbs + 1) * dec->sps.pic_height_in_mbs - 1;
	for (int i = 0; i < mbs; i += dec->sps.pic_width_in_mbs + 1) {
		for (int j = i; j < i + dec->sps.pic_width_in_mbs; j++)
			m[j].recovery_bits = 0;
		if (i + dec->sps.pic_width_in_mbs < mbs)
			m[i + dec->sps.pic_width_in_mbs] = unavail_mb;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq 0x34(%rdi), %rdi
callq 0x10f0
movslq %ebp, %rcx
movq %rax, 0x188(%rbx,%rcx,8)
testq %rax, %rax
je 0x9ecc
movslq 0x2c(%rbx), %rcx
movslq 0x30(%rbx), %rdx
addq %rcx, %rdx
leaq (%rax,%rdx), %rcx
movq %rcx, (%rsp)
movzwl 0x534(%rbx), %r12d
leaq 0x1(%r12), %r13
movswq 0x536(%rbx), %rbp
imulq %r13, %rbp
decq %rbp
leaq (%rax,%rdx), %rbx
incq %rbx
imulq $0x130, %r12, %r14      # imm = 0x130
movl $0x130, %eax            # imm = 0x130
addq %rax, %r14
xorl %r15d, %r15d
cmpq %rbp, %r15
jge 0x9ec8
leaq (%r15,%r12), %rax
movq %rbx, %rcx
movq %r15, %rdx
cmpq %rax, %rdx
jae 0x9ea0
movb $0x0, (%rcx)
incq %rdx
addq $0x130, %rcx            # imm = 0x130
jmp 0x9e8c
cmpl %eax, %ebp
jle 0x9ec0
imulq $0x130, %rax, %rdi      # imm = 0x130
addq (%rsp), %rdi
movl $0x130, %edx            # imm = 0x130
leaq 0x30215(%rip), %rsi     # 0x3a0d0
callq 0x10c0
addq %r13, %r15
addq %r14, %rbx
jmp 0x9e7d
xorl %eax, %eax
jmp 0x9ecf
pushq $0xc
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/./edge264_bitstream.c
// Function: get_u1
static noinline int get_u1(Edge264GetBits *gb) {
	int ret = gb->msb_cache >> (SIZE_BIT - 1);
	gb->msb_cache = shld(gb->lsb_cache, gb->msb_cache, 1);
	if (gb->lsb_cache <<= 1)
		return ret;
	return refill(gb, ret);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq 0x10(%rdi), %rax
movq 0x18(%rdi), %rbx
movq %rbx, 0x8(%rsp)
pushq $0x1
popq %rcx
movq %rbx, %rdx
shldq %cl, %rax, %rdx
movq %rdx, 0x18(%rdi)
movq 0x10(%rdi), %rax
addq %rax, %rax
movq %rax, 0x10(%rdi)
jne 0x9f10
callq 0xb845
shrq $0x3f, %rbx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/edge264_headers.c
// Function: parse_access_unit_delimiter_log
int ADD_VARIANT(parse_access_unit_delimiter)(Edge264Decoder *dec, int non_blocking, void(*free_cb)(void*,int), void *free_arg) {
	const char *primary_pic_type_names[8] =
		{"I", "I,P", "I,P,B", "SI", "SI,SP", "I,SI", "I,SI,P,SP", "I,SI,P,SP,B"};
	int primary_pic_type = get_uv(&dec->_gb, 3);
	log_dec(dec, "  primary_pic_type: %u # %s\n",
		primary_pic_type, primary_pic_type_names[primary_pic_type]);
	if (print_dec(dec))
		return ENOTSUP;
	if (!rbsp_end(&dec->_gb))
		return EBADMSG;
	return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x3
popq %rsi
callq 0x1539a
movzwl 0x7cb0(%rbx), %ecx
cmpq $0x2541, %rcx           # imm = 0x2541
ja 0x1f776
leaq (%rbx,%rcx), %rdi
addq $0x7cb2, %rdi           # imm = 0x7CB2
movl $0x2542, %edx           # imm = 0x2542
subl %ecx, %edx
movzwl %dx, %esi
movslq %eax, %rcx
leaq 0x123e0(%rip), %rdx     # 0x31b38
movslq (%rdx,%rcx,4), %r8
addq %rdx, %r8
leaq 0x143ce(%rip), %rdx     # 0x33b34
movl %eax, %ecx
xorl %eax, %eax
callq 0x1070
addw %ax, 0x7cb0(%rbx)
movq %rbx, %rdi
callq 0x15361
testl %eax, %eax
je 0x1f786
pushq $0x5f
jmp 0x1f7c2
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %rdx
movq %rdx, %rax
shrq $0x3f, %rax
shlxq %rax, %rdx, %rdx
blsrq %rcx, %rsi
orq %rdx, %rsi
jne 0x1f7c0
tzcntq %rcx, %rcx
addl %eax, %ecx
movl (%rbx), %eax
subl 0x8(%rbx), %eax
leal (%rcx,%rax,8), %ecx
addl $0xffffff78, %ecx       # imm = 0xFFFFFF78
xorl %eax, %eax
cmpl $-0x11, %ecx
ja 0x1f7c3
pushq $0x4a
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tvlabs[P]edge264/edge264_headers.c
// Function: parse_nal_unit_header_extension_log
int ADD_VARIANT(parse_nal_unit_header_extension)(Edge264Decoder *dec, int non_blocking, void(*free_cb)(void*,int), void *free_arg) {
	unsigned u = get_uv(&dec->_gb, 24);
	if (u & 1 << 23)
		return ENOTSUP;
	dec->IdrPicFlag = u >> 22 & 1 ^ 1;
	log_dec(dec, "  idr_flag: %u\n"
		"  priority_id: %d\n"
		"  view_id: %d\n"
		"  temporal_id: %d\n"
		"  anchor_pic_flag: %u\n"
		"  inter_view_flag: %u\n",
		dec->IdrPicFlag,
		u >> 16 & 0x3f,
		u >> 6 & 0x3ff,
		u >> 3 & 7,
		u >> 2 & 1,
		u >> 1 & 1);
	if (dec->nal_unit_type == 20)
		return ADD_VARIANT(parse_slice_layer_without_partitioning)(dec, non_blocking, free_cb, free_arg);
	// spec doesn't mention rbsp_trailing_bits at the end of prefix_nal_unit_rbsp
	if (!rbsp_end(&dec->_gb))
		return EBADMSG;
	if (print_dec(dec))
		return ENOTSUP;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
pushq $0x18
popq %rsi
callq 0x1539a
btl $0x17, %eax
jb 0x1f898
movl %eax, %r10d
xorl %ecx, %ecx
btl $0x16, %eax
setae %al
setae 0x23(%rbx)
movzwl 0x7cb0(%rbx), %edx
cmpq $0x2541, %rdx           # imm = 0x2541
ja 0x1f87a
leaq (%rbx,%rdx), %rdi
addq $0x7cb2, %rdi           # imm = 0x7CB2
movl $0x2542, %esi           # imm = 0x2542
subl %edx, %esi
movzwl %si, %esi
movb %al, %cl
movl %r10d, %r8d
shrl $0x10, %r8d
andl $0x3f, %r8d
movl %r10d, %r9d
shrl $0x6, %r9d
andl $0x3ff, %r9d            # imm = 0x3FF
movl %r10d, %r11d
shrl $0x3, %r11d
andl $0x7, %r11d
movl %r10d, %r12d
shrl $0x2, %r12d
andl $0x1, %r12d
shrl %r10d
andl $0x1, %r10d
subq $0x8, %rsp
leaq 0x142ef(%rip), %rdx     # 0x33b51
xorl %eax, %eax
pushq %r10
pushq %r12
pushq %r11
callq 0x1070
addq $0x20, %rsp
addw %ax, 0x7cb0(%rbx)
cmpb $0x14, 0x22(%rbx)
jne 0x1f8a4
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %r14, %rcx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1178
pushq $0x5f
popq %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rax
movq %rax, %rcx
shrq $0x3f, %rcx
shlxq %rcx, %rax, %rsi
blsrq %rdx, %rdi
pushq $0x4a
popq %rax
orq %rsi, %rdi
jne 0x1f89b
tzcntq %rdx, %rdx
movl (%rbx), %esi
subl 0x8(%rbx), %esi
addl %ecx, %edx
leal (%rdx,%rsi,8), %ecx
addl $0xffffff78, %ecx       # imm = 0xFFFFFF78
cmpl $-0x10, %ecx
jb 0x1f89b
movq %rbx, %rdi
callq 0x15361
movl %eax, %ecx
testl %eax, %eax
pushq $0x5f
popq %rax
cmovel %ecx, %eax
jmp 0x1f89b