// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot::file_available(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool Gnuplot::file_available(const std::string &filename)
{
    std::ostringstream except;
    if( Gnuplot::file_exists(filename, 0) ) // check existence
    {
        if( !(Gnuplot::file_exists(filename, 4)) ) // check read permission
        {
            except << "No read permission for File \"" << filename << "\"";
            throw GnuplotException( except.str() );
        }
        return true;
    }
    except << "File \"" << filename << "\" does not exist";
    throw GnuplotException( except.str() );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x33d0
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x3970
movb %al, -0x1da(%rbp)
jmp 0x5cde
movb -0x1da(%rbp), %al
testb $0x1, %al
jne 0x5ced
jmp 0x5e43
movq -0x8(%rbp), %rdi
movl $0x4, %esi
callq 0x3970
movb %al, -0x1db(%rbp)
jmp 0x5d03
movb -0x1db(%rbp), %al
testb $0x1, %al
jne 0x5e2a
jmp 0x5d13
leaq 0xa66f(%rip), %rsi      # 0x10389
leaq -0x180(%rbp), %rdi
callq 0x3280
movq %rax, -0x1e8(%rbp)
jmp 0x5d2f
movq -0x1e8(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x3270
movq %rax, -0x1f0(%rbp)
jmp 0x5d48
movq -0x1f0(%rbp), %rdi
leaq 0xa64f(%rip), %rsi      # 0x103a5
callq 0x3280
jmp 0x5d5d
movb $0x1, -0x1b1(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x1f8(%rbp)
leaq -0x1b0(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x32b0
jmp 0x5d8a
movq -0x1f8(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0xbcd0
jmp 0x5d9f
movq -0x1f8(%rbp), %rdi
movb $0x0, -0x1b1(%rbp)
leaq 0xff94(%rip), %rsi      # 0x15d48
leaq 0x5f55(%rip), %rdx      # 0xbd10
callq 0x34d0
jmp 0x5f55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
jmp 0x5f3d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
jmp 0x5e0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x35c8
testb $0x1, -0x1b1(%rbp)
jne 0x5e19
jmp 0x5e25
movq -0x1f8(%rbp), %rdi
callq 0x3210
jmp 0x5f3d
leaq -0x180(%rbp), %rdi
callq 0x3090
movb $0x1, %al
andb $0x1, %al
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
leaq 0xa556(%rip), %rsi      # 0x103a0
leaq -0x180(%rbp), %rdi
callq 0x3280
movq %rax, -0x200(%rbp)
jmp 0x5e5f
movq -0x200(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x3270
movq %rax, -0x208(%rbp)
jmp 0x5e78
movq -0x208(%rbp), %rdi
leaq 0xa521(%rip), %rsi      # 0x103a7
callq 0x3280
jmp 0x5e8d
movb $0x1, -0x1d9(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x210(%rbp)
leaq -0x1d8(%rbp), %rdi
leaq -0x180(%rbp), %rsi
callq 0x32b0
jmp 0x5eba
movq -0x210(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0xbcd0
jmp 0x5ecf
movq -0x210(%rbp), %rdi
movb $0x0, -0x1d9(%rbp)
leaq 0xfe64(%rip), %rsi      # 0x15d48
leaq 0x5e25(%rip), %rdx      # 0xbd10
callq 0x34d0
jmp 0x5f55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
jmp 0x5f24
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x188(%rbp)
movl %eax, -0x18c(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x35c8
testb $0x1, -0x1d9(%rbp)
jne 0x5f2f
jmp 0x5f3b
movq -0x210(%rbp), %rdi
callq 0x3210
jmp 0x5f3d
leaq -0x180(%rbp), %rdi
callq 0x3090
movq -0x188(%rbp), %rdi
callq 0x3500
nopw %cs:(%rax,%rax)