// File: /workspace/github_cpp_makefile_star2_O3/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 0xbbb1
movq %rdx, %r15
movq %rsi, %r12
movq (%rdx), %rdx
movq 0x8(%r15), %rsi
cmpq %rsi, %rdx
je 0xbbb1
subq %rcx, %rax
subq %rdx, %rsi
cmpq %rsi, %rax
jne 0xbc16
movq %rdi, %rbx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x33b0
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6112
movq %r13, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0xbc78
movq (%r12), %rax
cmpq %rax, 0x8(%r12)
je 0xbb1a
xorl %ebx, %ebx
leaq 0x58(%rsp), %r13
leaq 0x1871(%rip), %rbp      # 0xd319
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 0xbaa8
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 0x5758
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbb6a
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x542f(%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 0x1e75(%rip), %rsi      # 0xda43
leaq 0x1e84(%rip), %rdx      # 0xda59
leaq 0x58(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x516a(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x5136(%rip), %rsi      # 0x10d38
movq 0x53af(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xbcd8
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1e27(%rip), %rsi      # 0xda5a
leaq 0x1e42(%rip), %rdx      # 0xda7c
leaq 0x58(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x5105(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x50d1(%rip), %rsi      # 0x10d38
movq 0x534a(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xbcd8
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1de8(%rip), %rsi      # 0xda7d
leaq 0x1dfb(%rip), %rdx      # 0xda97
leaq 0x38(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x50a3(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x506f(%rip), %rsi      # 0x10d38
movq 0x52e8(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xbcf2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3210
testb %bpl, %bpl
jne 0xbcfc
jmp 0xbd42
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0xbd42
jmp 0xbd0f
jmp 0xbd30
movq %rax, %rbx
jmp 0xbd5d
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xbd29
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3210
testb %bpl, %bpl
jne 0xbd33
jmp 0xbd67
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0xbd67
jmp 0xbd3f
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd5d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x33f0
nop