// File: /workspace/github_cpp_makefile_star2_O1/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 0xbda9
movq %rsi, %r13
movq (%r12), %rsi
movq 0x8(%r12), %rax
cmpq %rax, %rsi
je 0xbda9
movq %r8, %rbp
movq %rdi, %r14
movq (%r15), %rdi
movq 0x8(%r15), %r8
cmpq %r8, %rdi
je 0xbda9
subq %rdx, %rcx
subq %rsi, %rax
cmpq %rax, %rcx
jne 0xbe0e
subq %rdi, %r8
cmpq %r8, %rax
jne 0xbe0e
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x33b0
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6120
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0xbe70
movq (%r13), %rax
cmpq %rax, 0x8(%r13)
je 0xbd0c
xorl %ebp, %ebp
leaq 0x15f8(%rip), %r14      # 0xd269
movsd (%rax,%rbp,8), %xmm0
leaq 0x58(%rsp), %rdi
callq 0x3350
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3250
movq (%r12), %rax
movsd (%rax,%rbp,8), %xmm0
movq %rbx, %rdi
callq 0x3350
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3250
movq (%r15), %rax
movsd (%rax,%rbp,8), %xmm0
movq %rbx, %rdi
callq 0x3350
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3170
incq %rbp
movq (%r13), %rax
movq 0x8(%r13), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbp
jb 0xbc71
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
movl $0x3, %r8d
movq 0x8(%rsp), %r9
callq 0x5990
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd62
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x5237(%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 0x1bcd(%rip), %rsi      # 0xd993
leaq 0x1bdc(%rip), %rdx      # 0xd9a9
leaq 0x58(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x4f72(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x4f3e(%rip), %rsi      # 0x10d38
movq 0x51b7(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xbed0
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b7f(%rip), %rsi      # 0xd9aa
leaq 0x1b9a(%rip), %rdx      # 0xd9cc
leaq 0x58(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x4f0d(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x4ed9(%rip), %rsi      # 0x10d38
movq 0x5152(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xbed0
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b40(%rip), %rsi      # 0xd9cd
leaq 0x1b53(%rip), %rdx      # 0xd9e7
leaq 0x38(%rsp), %rdi
callq 0xc19e
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x4eab(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x4e77(%rip), %rsi      # 0x10d38
movq 0x50f0(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xbef2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0xbef2
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xbf40
movq %r14, %rdi
callq 0x3190
jmp 0xbf40
jmp 0xbf0a
jmp 0xbf26
movq %rax, %rbx
jmp 0xbf5b
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xbf2c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0xbf2c
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xbf65
movq %r14, %rdi
callq 0x3190
jmp 0xbf65
jmp 0xbf3d
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbf5b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x33f0
nop