// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %rbx
leaq 0x38(%rsp), %rsi
callq 0x6630
testl %eax, %eax
jne 0x51c79
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6630
testl %eax, %eax
jne 0x51c79
movq 0x120(%rsp), %rax
cmpq 0x90(%rsp), %rax
jl 0x51f04
leaq 0x441a9(%rip), %rsi     # 0x95e29
movq %rbx, %rdi
callq 0x66a24
testq %rax, %rax
je 0x51cf7
movq %rax, %rbx
leaq 0x8(%rsp), %rsi
movl $0x4, %edx
movq %rax, %rdi
callq 0x67976
cmpq $0x4, %rax
jne 0x51cd9
cmpl $0x1495343, 0x8(%rsp)   # imm = 0x1495343
je 0x51d0c
cmpl $0x1494254, 0x8(%rsp)   # imm = 0x1494254
je 0x51d6a
cmpl $0x1494142, 0x8(%rsp)   # imm = 0x1494142
je 0x51e23
callq 0x6060
movl $0x16, (%rax)
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x68168
movq %r14, %rdi
callq 0x5049c
movq %r15, %rdi
callq 0x68a0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x10(%rsp), %rsi
movl $0xc, %edx
movq %rbx, %rdi
callq 0x67976
cmpq $0xc, %rax
jne 0x51e18
movl 0x18(%rsp), %r14d
testq %r14, %r14
je 0x51e77
movq %r14, %rdi
callq 0x69d0
testq %rax, %rax
je 0x51e18
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x67976
movl 0x18(%rsp), %ecx
cmpq %rcx, %rax
je 0x51e7a
jmp 0x51edb
leaq 0x10(%rsp), %rsi
movl $0x20, %edx
movq %rbx, %rdi
callq 0x67976
cmpq $0x20, %rax
jne 0x51e70
movl 0x10(%rsp), %edi
xorl %r14d, %r14d
movl $0x2, %esi
xorl %edx, %edx
movl $0xe, %ecx
movl $0x5, %r8d
callq 0x4f58f
testq %rax, %rax
je 0x51e73
movq %rax, %r15
movl 0x2c(%rsp), %r14d
leal 0x1c(%r14), %edi
movl %edi, 0x10(%rax)
callq 0x69d0
movq %rax, 0x38(%r15)
testq %rax, %rax
je 0x51eea
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 %r14, %rdx
callq 0x67976
movl 0x2c(%rsp), %ecx
cmpq %rcx, %rax
jne 0x51eea
movq %r15, %rdi
movq %rbx, %rsi
movl $0x2, %edx
callq 0x52388
testl %eax, %eax
setns %al
jmp 0x51eec
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x51ede
leaq 0x10(%rsp), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x67976
cmpq $0x4, %rax
jne 0x51e70
movl 0x10(%rsp), %edi
movl $0x1, %esi
xorl %edx, %edx
movl $0xe, %ecx
movl $0x5, %r8d
callq 0x4f58f
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x52388
testl %eax, %eax
setns %al
jmp 0x51eef
xorl %r14d, %r14d
xorl %eax, %eax
jmp 0x51eef
xorl %r15d, %r15d
leaq 0xc(%rsp), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x67976
cmpq $0x4, %rax
jne 0x51edb
movl 0xc(%rsp), %edi
movl 0x10(%rsp), %ecx
movl 0x14(%rsp), %r8d
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x4f58f
testq %rax, %rax
je 0x51ede
movq %rax, %r12
movl 0x18(%rsp), %eax
movl %eax, 0x10(%r12)
movq %r15, 0x38(%r12)
xorl %r15d, %r15d
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x52388
testl %eax, %eax
setns %al
movq %r12, %r14
jmp 0x51ee0
xorl %r14d, %r14d
xorl %eax, %eax
testb %al, %al
je 0x51cdf
jmp 0x51ef7
xorl %eax, %eax
movq %r15, %r14
testb %al, %al
je 0x51cdc
movq %rbx, %rdi
callq 0x68168
jmp 0x51cfa
movq 0x6d0cd(%rip), %rax     # 0xbefd8
movq (%rax), %rdi
leaq 0x4681a(%rip), %rsi     # 0x9872f
movq %rbx, %rdx
xorl %eax, %eax
callq 0x6a90
jmp 0x51c79