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

    if (x.size() != y.size() || y.size() != dy.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] << " " << dy[i] << std::endl;
    }
    // Cleanup
    tmp.flush();
    tmp.close();
    // Do the actual plot
    plotfile_xy_err(name, 1, 2, 3, title);

    return *this;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rcx, %r15
movq %rdx, %r12
movq (%rsi), %rdx
movq 0x8(%rsi), %rcx
cmpq %rcx, %rdx
je 0x8943
movq %rsi, %r13
movq (%r12), %rsi
movq 0x8(%r12), %rax
cmpq %rax, %rsi
je 0x8943
movq %r8, %rbp
movq %rdi, %rbx
movq (%r15), %rdi
movq 0x8(%r15), %r8
cmpq %r8, %rdi
je 0x8943
subq %rdx, %rcx
subq %rsi, %rax
cmpq %rax, %rcx
jne 0x8991
subq %rdi, %r8
cmpq %r8, %rax
jne 0x8991
leaq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x3380
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x53a0
movq %rbp, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x89dc
xorl %ebx, %ebx
leaq 0x58(%rsp), %rbp
leaq 0x19e9(%rip), %r14      # 0xa269
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbx
jae 0x88e5
movsd (%rax,%rbx,8), %xmm0
movq %rbp, %rdi
callq 0x3330
movq %rax, %rdi
movq %r14, %rsi
callq 0x31f0
movq (%r12), %rcx
movsd (%rcx,%rbx,8), %xmm0
movq %rax, %rdi
callq 0x3330
movq %rax, %rdi
movq %r14, %rsi
callq 0x31f0
movq (%r15), %rcx
movsd (%rcx,%rbx,8), %xmm0
movq %rax, %rdi
callq 0x3330
movq %rax, %rdi
callq 0x3100
incq %rbx
jmp 0x8880
leaq 0x58(%rsp), %rdi
callq 0x3170
movq 0x10(%rsp), %rbx
leaq 0x58(%rsp), %rdi
callq 0x32d0
leaq 0x18(%rsp), %rsi
pushq $0x1
popq %rdx
pushq $0x2
popq %rcx
pushq $0x3
popq %r8
movq %rbx, %rdi
movq 0x8(%rsp), %r9
callq 0x4e46
leaq 0x18(%rsp), %rdi
callq 0x3448
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0x203e(%rip), %rsi      # 0xa993
leaq 0x58(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x7cca
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x7d5c
xorl %ebp, %ebp
leaq 0x63cb(%rip), %rsi      # 0xed48
movq 0x6634(%rip), %rdx      # 0xefb8
movq %r14, %rdi
callq 0x3390
jmp 0x8a25
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0x2007(%rip), %rsi      # 0xa9aa
leaq 0x58(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x7cca
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x7d5c
xorl %ebp, %ebp
leaq 0x637d(%rip), %rsi      # 0xed48
movq 0x65e6(%rip), %rdx      # 0xefb8
movq %r14, %rdi
callq 0x3390
jmp 0x8a25
pushq $0x10
popq %rdi
callq 0x3110
movq %rax, %r14
leaq 0x1fdf(%rip), %rsi      # 0xa9cd
leaq 0x38(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x7cca
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x7d5c
xorl %ebp, %ebp
leaq 0x6332(%rip), %rsi      # 0xed48
movq 0x659b(%rip), %rdx      # 0xefb8
movq %r14, %rdi
callq 0x3390
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x3448
testb %bpl, %bpl
jne 0x8a3c
jmp 0x8a75
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0x8a75
jmp 0x8a4f
jmp 0x8a63
movq %rax, %rbx
jmp 0x8a7f
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x3448
testb %bpl, %bpl
jne 0x8a66
jmp 0x8a89
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0x8a89
jmp 0x8a72
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x3448
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x33b0
nop