// File: ArashPartow[P]exprtk-extras/./exprtk.hpp
// Function: exprtk::rtl::io::file::open<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
      {
         const std::string file_name = to_str(string_t(parameters[0]));

         if (file_name.empty())
         {
            return T(0);
         }

         if ((1 == ps_index) && (0 == string_t(parameters[1]).size()))
         {
            return T(0);
         }

         const std::string access =
            (0 == ps_index) ? "r" : to_str(string_t(parameters[1]));

         details::file_descriptor* fd = new details::file_descriptor(file_name,access);

         if (fd->open())
         {
            T t = T(0);

            const std::size_t fd_size = sizeof(details::file_descriptor*);

            std::memcpy(reinterpret_cast<char*>(&t ),
                        reinterpret_cast<char*>(&fd),
                        fd_size);
            return t;
         }
         else
         {
            delete fd;
            return T(0);
         }
      }

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdx, 0x118(%rsp)
movq %rdi, 0x110(%rsp)
movq %rsi, 0x108(%rsp)
movq $0x0, 0xd0(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x262640
movq %rax, %rsi
leaq 0xd8(%rsp), %rdi
callq 0x262670
leaq 0xe8(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x2625a0
leaq 0xe8(%rsp), %rdi
callq 0x119270
testb $0x1, %al
jne 0x2621e8
jmp 0x262204
xorps %xmm0, %xmm0
movsd %xmm0, 0x120(%rsp)
movl $0x1, 0xcc(%rsp)
jmp 0x2624b4
movq 0x108(%rsp), %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq (%rdx), %rcx
movb %al, 0x47(%rsp)
jne 0x26227d
movq $0x1, 0xb0(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x262640
movq %rax, 0x38(%rsp)
jmp 0x262244
movq 0x38(%rsp), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x262670
jmp 0x262258
leaq 0xb8(%rsp), %rdi
callq 0x2626a0
movq %rax, 0x30(%rsp)
jmp 0x26226c
movq 0x30(%rsp), %rcx
xorl %eax, %eax
cmpq %rcx, %rax
sete %al
movb %al, 0x47(%rsp)
movb 0x47(%rsp), %al
testb $0x1, %al
jne 0x262287
jmp 0x2622bc
xorps %xmm0, %xmm0
movsd %xmm0, 0x120(%rsp)
movl $0x1, 0xcc(%rsp)
jmp 0x2624b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x2624d2
movq 0x108(%rsp), %rax
movq (%rax), %rcx
movb $0x0, 0x7e(%rsp)
xorl %eax, %eax
cmpq %rcx, %rax
jne 0x262304
leaq 0x7f(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x1197d0
movq 0x28(%rsp), %rdx
movb $0x1, 0x7e(%rsp)
leaq 0x22a17a(%rip), %rsi    # 0x48c46d
leaq 0x80(%rsp), %rdi
callq 0x120970
jmp 0x262302
jmp 0x26234d
movq $0x1, 0x60(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x262640
movq %rax, 0x20(%rsp)
jmp 0x262326
movq 0x20(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0x262670
jmp 0x262337
leaq 0x80(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x2625a0
jmp 0x26234b
jmp 0x26234d
testb $0x1, 0x7e(%rsp)
jne 0x262356
jmp 0x262360
leaq 0x7f(%rsp), %rdi
callq 0x119950
movl $0x30, %edi
callq 0x119190
movq %rax, 0x18(%rsp)
jmp 0x262371
movq 0x18(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x2626c0
jmp 0x26238d
movq 0x18(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
callq 0x262710
movb %al, 0x17(%rsp)
jmp 0x2623a7
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0x2623b4
jmp 0x262456
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movq $0x8, 0x48(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x120(%rsp)
movl $0x1, 0xcc(%rsp)
jmp 0x262496
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
testb $0x1, 0x7e(%rsp)
jne 0x26240c
jmp 0x262416
leaq 0x7f(%rsp), %rdi
callq 0x119950
jmp 0x2624d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x2624a5
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
movl $0x30, %esi
callq 0x119130
jmp 0x2624a5
movq 0x58(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x26247f
movq 0x8(%rsp), %rdi
callq 0x2629e0
movq 0x8(%rsp), %rdi
movl $0x30, %esi
callq 0x119130
xorps %xmm0, %xmm0
movsd %xmm0, 0x120(%rsp)
movl $0x1, 0xcc(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x119968
jmp 0x2624b4
leaq 0x80(%rsp), %rdi
callq 0x119968
jmp 0x2624d2
leaq 0xe8(%rsp), %rdi
callq 0x119968
movsd 0x120(%rsp), %xmm0
addq $0x128, %rsp            # imm = 0x128
retq
leaq 0xe8(%rsp), %rdi
callq 0x119968
movq 0xa8(%rsp), %rdi
callq 0x119570
nopl (%rax)