// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/htslib/hts.c
// Function: hts_idx_load2
hts_idx_t *hts_idx_load2(const char *fn, const char *fnidx)
{
    // Check that the index file is up to date, the main file might have changed
    struct stat stat_idx,stat_main;
    if ( !stat(fn, &stat_main) && !stat(fnidx, &stat_idx) )
    {
        if ( stat_idx.st_mtime < stat_main.st_mtime )
            fprintf(stderr, "Warning: The index file is older than the data file: %s\n", fnidx);
    }

    return hts_idx_load_local(fnidx);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x150, %rsp            # imm = 0x150
movq %rsi, %rbx
leaq 0x30(%rsp), %rsi
callq 0x6630
testl %eax, %eax
jne 0x4a58e
leaq 0xc0(%rsp), %rsi
movq %rbx, %rdi
callq 0x6630
testl %eax, %eax
jne 0x4a58e
movq 0x118(%rsp), %rax
cmpq 0x88(%rsp), %rax
jl 0x4a7e6
leaq 0x3a874(%rip), %rsi     # 0x84e09
movq %rbx, %rdi
callq 0x5bd04
testq %rax, %rax
je 0x4a755
movq %rax, %rbx
leaq 0x8(%rsp), %rsi
pushq $0x4
popq %rdx
movq %rax, %rdi
callq 0x5ca56
cmpq $0x4, %rax
jne 0x4a737
cmpl $0x1495343, 0x8(%rsp)   # imm = 0x1495343
je 0x4a5f5
cmpl $0x1494254, 0x8(%rsp)   # imm = 0x1494254
je 0x4a651
cmpl $0x1494142, 0x8(%rsp)   # imm = 0x1494142
je 0x4a6f0
callq 0x6060
movl $0x16, (%rax)
jmp 0x4a737
leaq 0x10(%rsp), %rsi
pushq $0xc
popq %rdx
movq %rbx, %rdi
callq 0x5ca56
cmpq $0xc, %rax
jne 0x4a737
movl 0x18(%rsp), %r14d
testq %r14, %r14
je 0x4a776
movq %r14, %rdi
callq 0x69d0
testq %rax, %rax
je 0x4a737
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x5ca56
movl 0x18(%rsp), %ecx
cmpq %rcx, %rax
je 0x4a779
jmp 0x4a7de
leaq 0x10(%rsp), %rsi
pushq $0x20
popq %rdx
movq %rbx, %rdi
callq 0x5ca56
cmpq $0x20, %rax
jne 0x4a76b
movl 0x10(%rsp), %edi
xorl %r12d, %r12d
pushq $0x2
popq %rsi
pushq $0xe
popq %rcx
pushq $0x5
popq %r8
xorl %edx, %edx
callq 0x487ad
testq %rax, %rax
je 0x4a76e
movq %rax, %r14
movl 0x2c(%rsp), %r15d
leal 0x1c(%r15), %edi
movl %edi, 0x10(%rax)
callq 0x69d0
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x4a6eb
movups 0x14(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups %xmm1, 0xc(%rax)
movups %xmm0, (%rax)
addq $0x1c, %rax
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x5ca56
movl 0x2c(%rsp), %ecx
cmpq %rcx, %rax
jne 0x4a6eb
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4ac30
testl %eax, %eax
jns 0x4a7d1
movq %r14, %r12
jmp 0x4a76e
leaq 0x10(%rsp), %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0x5ca56
cmpq $0x4, %rax
jne 0x4a737
movl 0x10(%rsp), %edi
pushq $0x1
popq %rbp
pushq $0xe
popq %rcx
pushq $0x5
popq %r8
movl %ebp, %esi
xorl %edx, %edx
callq 0x487ad
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x4ac30
testl %eax, %eax
jns 0x4a7d1
jmp 0x4a73a
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x5d0b0
movq %r14, %rdi
callq 0x492db
movq %r15, %rdi
callq 0x68a0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r12, %r14
jmp 0x4a73d
xorl %r15d, %r15d
leaq 0xc(%rsp), %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0x5ca56
cmpq $0x4, %rax
jne 0x4a7de
movl 0xc(%rsp), %edi
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x487ad
testq %rax, %rax
je 0x4a7de
movq %rax, %r14
movl 0x18(%rsp), %eax
movl %eax, 0x10(%r14)
movq %r15, 0x38(%r14)
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x4ac30
testl %eax, %eax
js 0x4a73d
movq %rbx, %rdi
callq 0x5d0b0
jmp 0x4a758
xorl %r14d, %r14d
jmp 0x4a73d
movq 0x687eb(%rip), %rax     # 0xb2fd8
movq (%rax), %rdi
leaq 0x3cf5a(%rip), %rsi     # 0x87751
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6a90
jmp 0x4a58e