// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot::plotfile_xy(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plotfile_xy(const std::string &filename,
                              const unsigned int column_x,
                              const unsigned int column_y,
                              const std::string &title)
{
    //
    // check if file exists
    //
    file_available(filename);

    std::ostringstream cmdstr;
    //
    // command to be sent to gnuplot
    //
    if (nplots > 0  &&  two_dim == true)
    {
        cmdstr << "replot ";
    }
    else
    {
        cmdstr << "plot ";
    }

    cmdstr << "\"" << filename << "\" using " << column_x << ":" << column_y;

    if (title.empty())
    {
        cmdstr << " notitle ";
    }
    else
    {
        cmdstr << " title \"" << title << "\" ";
    }

    if(smooth.empty())
    {
        cmdstr << "with " << pstyle;
    }
    else
    {
        cmdstr << "smooth " << smooth;
    }

    //
    // Do the actual plot
    //
    return cmd(cmdstr.str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5cb0
leaq -0x198(%rbp), %rdi
callq 0x33d0
movq -0x1d0(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jle 0x5fec
movq -0x1d0(%rbp), %rax
movb 0x9(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x5fec
leaq 0xa256(%rip), %rsi      # 0x1021b
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x5fd3
jmp 0x6003
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x6206
leaq 0xa22a(%rip), %rsi      # 0x1021d
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x6001
jmp 0x6003
leaq 0xa39b(%rip), %rsi      # 0x103a5
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x1d8(%rbp)
jmp 0x601f
movq -0x1d8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3270
movq %rax, -0x1e0(%rbp)
jmp 0x6038
movq -0x1e0(%rbp), %rdi
leaq 0xa20f(%rip), %rsi      # 0x10255
callq 0x3280
movq %rax, -0x1e8(%rbp)
jmp 0x6054
movq -0x1e8(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x33c0
movq %rax, -0x1f0(%rbp)
jmp 0x606c
movq -0x1f0(%rbp), %rdi
leaq 0xa178(%rip), %rsi      # 0x101f2
callq 0x3280
movq %rax, -0x1f8(%rbp)
jmp 0x6088
movq -0x1f8(%rbp), %rdi
movl -0x18(%rbp), %esi
callq 0x33c0
jmp 0x6099
movq -0x20(%rbp), %rdi
callq 0x3490
testb $0x1, %al
jne 0x60a8
jmp 0x60bf
leaq 0xa1af(%rip), %rsi      # 0x1025e
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x60bd
jmp 0x610b
leaq 0xa1db(%rip), %rsi      # 0x102a1
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x200(%rbp)
jmp 0x60db
movq -0x200(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x3270
movq %rax, -0x208(%rbp)
jmp 0x60f4
movq -0x208(%rbp), %rdi
leaq 0xa166(%rip), %rsi      # 0x10268
callq 0x3280
jmp 0x6109
jmp 0x610b
movq -0x1d0(%rbp), %rdi
addq $0x30, %rdi
callq 0x3490
testb $0x1, %al
jne 0x6121
jmp 0x6158
leaq 0xa10d(%rip), %rsi      # 0x10235
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x210(%rbp)
jmp 0x613d
movq -0x210(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
addq $0x10, %rsi
callq 0x3270
jmp 0x6156
jmp 0x618f
leaq 0xa10c(%rip), %rsi      # 0x1026b
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x218(%rbp)
jmp 0x6174
movq -0x218(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
addq $0x30, %rsi
callq 0x3270
jmp 0x618d
jmp 0x618f
leaq -0x1c8(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x32b0
jmp 0x61a4
movq -0x1d0(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x3d00
movq %rax, -0x220(%rbp)
jmp 0x61c0
leaq -0x1c8(%rbp), %rdi
callq 0x35c8
leaq -0x198(%rbp), %rdi
callq 0x3090
movq -0x220(%rbp), %rax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x35c8
leaq -0x198(%rbp), %rdi
callq 0x3090
movq -0x1a0(%rbp), %rdi
callq 0x3500
nop