// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/htslib/tbx.c
// Function: get_intv
static inline int get_intv(tbx_t *tbx, kstring_t *str, tbx_intv_t *intv, int is_add)
{
    if (tbx_parse1(&tbx->conf, str->l, str->s, intv) == 0) {
        int c = *intv->se;
        *intv->se = '\0'; intv->tid = get_tid(tbx, intv->ss, is_add); *intv->se = c;
        return (intv->tid >= 0 && intv->beg >= 0 && intv->end >= 0)? 0 : -1;
    } else {
        char *type = NULL;
        switch (tbx->conf.preset&0xffff)
        {
            case TBX_SAM: type = "TBX_SAM"; break;
            case TBX_VCF: type = "TBX_VCF"; break;
            case TBX_UCSC: type = "TBX_UCSC"; break;
            default: type = "TBX_GENERIC"; break;
        }
        if ((str->l > 0) && (*str->s != tbx->conf.meta_char))
            fprintf(stderr, "[E::%s] failed to parse %s, was wrong -p [type] used?\nThe offending line was: \"%s\"\n", __func__, type, str->s);
        return -1;
    }
}

// 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)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %esi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x20(%rbp), %rcx
callq 0x78cf0
cmpl $0x0, %eax
jne 0x79288
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movsbl (%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
movl -0x24(%rbp), %edx
callq 0x78c10
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x20(%rax)
movl -0x28(%rbp), %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x20(%rcx)
movb %al, -0x31(%rbp)
jl 0x79270
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, -0x31(%rbp)
jl 0x79270
movq -0x20(%rbp), %rax
cmpq $0x0, 0x8(%rax)
setge %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %dl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x79339
movq $0x0, -0x30(%rbp)
movq -0x10(%rbp), %rax
movzwl (%rax), %eax
movl %eax, -0x38(%rbp)
subl $0x1, %eax
je 0x792b7
jmp 0x792a1
movl -0x38(%rbp), %eax
subl $0x2, %eax
je 0x792c4
jmp 0x792ab
movl -0x38(%rbp), %eax
subl $0x10000, %eax          # imm = 0x10000
je 0x792d1
jmp 0x792de
leaq 0x6947d(%rip), %rax     # 0xe273b
movq %rax, -0x30(%rbp)
jmp 0x792e9
leaq 0x69478(%rip), %rax     # 0xe2743
movq %rax, -0x30(%rbp)
jmp 0x792e9
leaq 0x69473(%rip), %rax     # 0xe274b
movq %rax, -0x30(%rbp)
jmp 0x792e9
leaq 0x6946f(%rip), %rax     # 0xe2754
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, (%rax)
jbe 0x79332
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movsbl (%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x10(%rcx), %eax
je 0x79332
movq 0x8bcc2(%rip), %rax     # 0x104fd0
movq (%rax), %rdi
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %r8
leaq 0x6943c(%rip), %rsi     # 0xe2760
leaq 0x69489(%rip), %rdx     # 0xe27b4
movb $0x0, %al
callq 0x6a80
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)