// File: /workspace/github_cpp_makefile_star2_O1/orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot& Gnuplot::plot_xy<std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plot_xy(const X& x, const Y& y, const std::string &title)
{
    if (x.empty() || y.empty())
    {
        throw GnuplotException("std::vectors too small");
    }

    if (x.size() != y.size())
    {
        throw GnuplotException("Length of the std::vectors differs");
    }
    std::ofstream tmp;
    const std::string name = create_tmpfile(tmp);
    if (name.empty())
    {
        throw GnuplotException("Unable to create tmp-file.");
    }
    // write the data to file
    for (std::size_t i = 0; i < x.size(); ++i)
    {
        tmp << x[i] << " " << y[i] << std::endl;
    }
    // Cleanup
    tmp.flush();
    tmp.close();
    // Plot
    plotfile_xy(name, 1, 2, title);

    return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rcx, %r13
movq (%rsi), %rcx
movq 0x8(%rsi), %rax
cmpq %rax, %rcx
je 0xb643
movq %rdx, %r15
movq %rsi, %r12
movq (%rdx), %rdx
movq 0x8(%r15), %rsi
cmpq %rsi, %rdx
je 0xb643
subq %rcx, %rax
subq %rdx, %rsi
cmpq %rsi, %rax
jne 0xb6a8
movq %rdi, %rbx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x33b0
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6120
movq %r13, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0xb70a
movq (%r12), %rax
cmpq %rax, 0x8(%r12)
je 0xb5ac
xorl %ebx, %ebx
leaq 0x58(%rsp), %r13
leaq 0x1d2f(%rip), %rbp      # 0xd269
movsd (%rax,%rbx,8), %xmm0
movq %r13, %rdi
callq 0x3350
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x3250
movq (%r15), %rax
movsd (%rax,%rbx,8), %xmm0
movq %r14, %rdi
callq 0x3350
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
incq %rbx
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbx
jb 0xb53a
leaq 0x58(%rsp), %rdi
callq 0x3170
movq 0x10(%rsp), %rbx
leaq 0x58(%rsp), %rdi
callq 0x32d0
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %edx
movl $0x2, %ecx
movq 0x8(%rsp), %r8
callq 0x5766
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb5fc
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x599d(%rip), %rax      # 0x10fa0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x60(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x58(%rsp,%rcx)
callq 0x31c0
leaq 0x150(%rsp), %rdi
callq 0x30c0
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2333(%rip), %rsi      # 0xd993
leaq 0x2342(%rip), %rdx      # 0xd9a9
leaq 0x58(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x56d8(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x56a4(%rip), %rsi      # 0x10d38
movq 0x591d(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xb76a
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x22e5(%rip), %rsi      # 0xd9aa
leaq 0x2300(%rip), %rdx      # 0xd9cc
leaq 0x58(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x5673(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x563f(%rip), %rsi      # 0x10d38
movq 0x58b8(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xb76a
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x22a6(%rip), %rsi      # 0xd9cd
leaq 0x22b9(%rip), %rdx      # 0xd9e7
leaq 0x38(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x5611(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x55dd(%rip), %rsi      # 0x10d38
movq 0x5856(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xb78c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0xb78c
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xb7da
movq %r14, %rdi
callq 0x3190
jmp 0xb7da
jmp 0xb7a4
jmp 0xb7c0
movq %rax, %rbx
jmp 0xb7f5
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xb7c6
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0xb7c6
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xb7ff
movq %r14, %rdi
callq 0x3190
jmp 0xb7ff
jmp 0xb7d7
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb7f5
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x33f0
nop