// File: /workspace/github_cpp_makefile_star2_O3/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 0xc30b
movq %rsi, %r13
movq (%r12), %rsi
movq 0x8(%r12), %rax
cmpq %rax, %rsi
je 0xc30b
movq %r8, %rbp
movq %rdi, %r14
movq (%r15), %rdi
movq 0x8(%r15), %r8
cmpq %r8, %rdi
je 0xc30b
subq %rdx, %rcx
subq %rsi, %rax
cmpq %rax, %rcx
jne 0xc370
subq %rdi, %r8
cmpq %r8, %rax
jne 0xc370
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x33b0
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x6112
movq %rbp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0xc3d2
movq (%r13), %rax
cmpq %rax, 0x8(%r13)
je 0xc26e
xorl %ebp, %ebp
leaq 0x1146(%rip), %r14      # 0xd319
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 0xc1d3
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 0x5982
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc2c4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
movq 0x4cd5(%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 0x171b(%rip), %rsi      # 0xda43
leaq 0x172a(%rip), %rdx      # 0xda59
leaq 0x58(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x4a10(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x49dc(%rip), %rsi      # 0x10d38
movq 0x4c55(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xc432
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x16cd(%rip), %rsi      # 0xda5a
leaq 0x16e8(%rip), %rdx      # 0xda7c
leaq 0x58(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x58(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x49ab(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x4977(%rip), %rsi      # 0x10d38
movq 0x4bf0(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
jmp 0xc432
movl $0x10, %edi
callq 0x3120
movq %rax, %r14
leaq 0x48(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x168e(%rip), %rsi      # 0xda7d
leaq 0x16a1(%rip), %rdx      # 0xda97
leaq 0x38(%rsp), %rdi
callq 0xc700
movb $0x1, %bpl
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
callq 0x32a0
leaq 0x4949(%rip), %rax      # 0x10d60
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x4915(%rip), %rsi      # 0x10d38
movq 0x4b8e(%rip), %rdx      # 0x10fb8
movq %r14, %rdi
callq 0x33c0
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r15, %rdi
je 0xc44c
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3210
testb %bpl, %bpl
jne 0xc456
jmp 0xc49c
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0xc49c
jmp 0xc469
jmp 0xc48a
movq %rax, %rbx
jmp 0xc4b7
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0xc483
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3210
testb %bpl, %bpl
jne 0xc48d
jmp 0xc4c1
movq %rax, %rbx
movq %r14, %rdi
callq 0x3190
jmp 0xc4c1
jmp 0xc499
movq %rax, %rbx
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc4b7
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x33f0
nop