// File: ArashPartow[P]exprtk-extras/./exprtk.hpp
// Function: exprtk::rtl::io::file::write<double>::operator()(unsigned long const&, exprtk::type_store<double>::parameter_list)
inline T operator() (const std::size_t& ps_index, parameter_list_t parameters) exprtk_override
      {
         details::file_descriptor* fd = details::make_handle(scalar_t(parameters[0])());

         switch (ps_index)
         {
            case 0  : {
                         const string_t buffer(parameters[1]);
                         const std::size_t amount = buffer.size();
                         return T(fd->write(buffer, amount) ? 1 : 0);
                      }

            case 1  : {
                         const string_t buffer(parameters[1]);
                         const std::size_t amount =
                                  std::min(buffer.size(),
                                           static_cast<std::size_t>(scalar_t(parameters[2])()));
                         return T(fd->write(buffer, amount) ? 1 : 0);
                      }

            case 2  : {
                         const vector_t vec(parameters[1]);
                         const std::size_t amount = vec.size();
                         return T(fd->write(vec, amount) ? 1 : 0);
                      }

            case 3  : {
                         const vector_t vec(parameters[1]);
                         const std::size_t amount =
                                  std::min(vec.size(),
                                           static_cast<std::size_t>(scalar_t(parameters[2])()));
                         return T(fd->write(vec, amount) ? 1 : 0);
                      }
         }

         return T(0);
      }

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rdx, 0x128(%rsp)
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movq $0x0, 0x100(%rsp)
leaq 0x128(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0x108(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x263230
movq 0x30(%rsp), %rdi
callq 0x263250
movsd (%rax), %xmm0
callq 0x262c50
movq %rax, 0x110(%rsp)
movq 0x118(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
subq $0x3, %rax
ja 0x26320f
movq 0x38(%rsp), %rax
leaq 0x224b52(%rip), %rcx    # 0x487a38
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq $0x1, 0xe8(%rsp)
leaq 0x128(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0xf0(%rsp), %rdi
callq 0x262670
leaq 0xf0(%rsp), %rdi
callq 0x2626a0
movq %rax, 0xe0(%rsp)
movq 0x110(%rsp), %rdi
movq 0xe0(%rsp), %rdx
leaq 0xf0(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
callq 0x263260
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x130(%rsp)
jmp 0x26321b
movq $0x1, 0xc8(%rsp)
leaq 0x128(%rsp), %rdi
movq %rdi, 0x20(%rsp)
leaq 0xc8(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0xd0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x262670
movq 0x18(%rsp), %rdi
callq 0x2626a0
movq 0x20(%rsp), %rdi
movq %rax, 0xb8(%rsp)
movq $0x2, 0xa0(%rsp)
leaq 0xa0(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x263230
movq 0x28(%rsp), %rdi
callq 0x263250
movsd (%rax), %xmm0
movsd 0x224083(%rip), %xmm2   # 0x487090
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, 0xb0(%rsp)
leaq 0xb8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x13f0d0
movq (%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0x110(%rsp), %rdi
movq 0xc0(%rsp), %rdx
leaq 0xd0(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
callq 0x263260
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x130(%rsp)
jmp 0x26321b
movq $0x1, 0x88(%rsp)
leaq 0x128(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0x90(%rsp), %rdi
callq 0x263320
leaq 0x90(%rsp), %rdi
callq 0x263350
movq %rax, 0x80(%rsp)
movq 0x110(%rsp), %rdi
movq 0x80(%rsp), %rdx
leaq 0x90(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
callq 0x263370
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x130(%rsp)
jmp 0x26321b
movq $0x1, 0x68(%rsp)
leaq 0x128(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x68(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0x70(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x263320
movq (%rsp), %rdi
callq 0x263350
movq 0x8(%rsp), %rdi
movq %rax, 0x58(%rsp)
movq $0x2, 0x40(%rsp)
leaq 0x40(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x263230
movq 0x10(%rsp), %rdi
callq 0x263250
movsd (%rax), %xmm0
movsd 0x223ef4(%rip), %xmm2   # 0x487090
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
cvttsd2si %xmm0, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, 0x50(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x13f0d0
movq (%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x110(%rsp), %rdi
movq 0x60(%rsp), %rdx
leaq 0x70(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
callq 0x263370
movb %al, %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x130(%rsp)
jmp 0x26321b
xorps %xmm0, %xmm0
movsd %xmm0, 0x130(%rsp)
movsd 0x130(%rsp), %xmm0
addq $0x138, %rsp            # imm = 0x138
retq
nopl (%rax)