// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot::plotfile_x(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plotfile_x(const std::string &filename,
                             const unsigned int column,
                             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;

    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()); //nplots++; two_dim = true;  already in cmd();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -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 0x5aa9
movq -0x1d0(%rbp), %rax
movb 0x9(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x5aa9
leaq 0xa799(%rip), %rsi      # 0x1021b
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x5a90
jmp 0x5ac0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1a0(%rbp)
movl %eax, -0x1a4(%rbp)
jmp 0x5c8f
leaq 0xa76d(%rip), %rsi      # 0x1021d
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x5abe
jmp 0x5ac0
leaq 0xa8de(%rip), %rsi      # 0x103a5
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x1d8(%rbp)
jmp 0x5adc
movq -0x1d8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x3270
movq %rax, -0x1e0(%rbp)
jmp 0x5af5
movq -0x1e0(%rbp), %rdi
leaq 0xa752(%rip), %rsi      # 0x10255
callq 0x3280
movq %rax, -0x1e8(%rbp)
jmp 0x5b11
movq -0x1e8(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x33c0
jmp 0x5b22
movq -0x20(%rbp), %rdi
callq 0x3490
testb $0x1, %al
jne 0x5b31
jmp 0x5b48
leaq 0xa726(%rip), %rsi      # 0x1025e
leaq -0x198(%rbp), %rdi
callq 0x3280
jmp 0x5b46
jmp 0x5b94
leaq 0xa752(%rip), %rsi      # 0x102a1
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x1f0(%rbp)
jmp 0x5b64
movq -0x1f0(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x3270
movq %rax, -0x1f8(%rbp)
jmp 0x5b7d
movq -0x1f8(%rbp), %rdi
leaq 0xa6dd(%rip), %rsi      # 0x10268
callq 0x3280
jmp 0x5b92
jmp 0x5b94
movq -0x1d0(%rbp), %rdi
addq $0x30, %rdi
callq 0x3490
testb $0x1, %al
jne 0x5baa
jmp 0x5be1
leaq 0xa684(%rip), %rsi      # 0x10235
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x200(%rbp)
jmp 0x5bc6
movq -0x200(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
addq $0x10, %rsi
callq 0x3270
jmp 0x5bdf
jmp 0x5c18
leaq 0xa683(%rip), %rsi      # 0x1026b
leaq -0x198(%rbp), %rdi
callq 0x3280
movq %rax, -0x208(%rbp)
jmp 0x5bfd
movq -0x208(%rbp), %rdi
movq -0x1d0(%rbp), %rsi
addq $0x30, %rsi
callq 0x3270
jmp 0x5c16
jmp 0x5c18
leaq -0x1c8(%rbp), %rdi
leaq -0x198(%rbp), %rsi
callq 0x32b0
jmp 0x5c2d
movq -0x1d0(%rbp), %rdi
leaq -0x1c8(%rbp), %rsi
callq 0x3d00
movq %rax, -0x210(%rbp)
jmp 0x5c49
leaq -0x1c8(%rbp), %rdi
callq 0x35c8
leaq -0x198(%rbp), %rdi
callq 0x3090
movq -0x210(%rbp), %rax
addq $0x210, %rsp            # imm = 0x210
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
nopw (%rax,%rax)