// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/mathexpr.cpp
// Function: BCSimple(void (**&)(double*&), void (**)(double*&), double**&, double**, double*&, double*, RFunction**&, RFunction**, void (*)(double*&))
void BCSimple(pfoncld*&pf,pfoncld*pf1,double**&pv,double**pv1,
	double*&pp,double*pp1,RFunction**&prf,RFunction**prf1,pfoncld f)
{
  pfoncld*pf3,*pf4=pf1;long n;
  for(n=0;*pf4!=NULL;pf4++,n++);
  pf=new pfoncld[n+2];
  for(pf4=pf1,pf3=pf;*pf4!=NULL;pf3++,pf4++)*pf3=*pf4;
  *pf3++=f;*pf3=NULL;//delete[]pf1;
  double**pv3,**pv4=pv1;
  for(n=0;*pv4!=NULL;pv4++,n++);
  pv=new double*[n+1];
  for(pv3=pv,pv4=pv1;*pv4!=NULL;pv3++,pv4++)*pv3=*pv4;
  *pv3=NULL;//delete[]pv1;
  double*pp3,*pp4=pp1;
  for(n=0;*pp4!=ErrVal;pp4++,n++);
  pp=new double[n+1];
  for(pp3=pp,pp4=pp1;*pp4!=ErrVal;pp3++,pp4++)*pp3=0;
  *pp3=ErrVal;//delete[]pp1;
  RFunction**prf3,**prf4=prf1;
  for(n=0;*prf4!=NULL;prf4++,n++);
  prf=new RFunction*[n+1];
  for(prf3=prf,prf4=prf1;*prf4!=NULL;prf3++,prf4++)*prf3=*prf4;
  *prf3=NULL;//delete[]prf1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, (%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
cmpq $0x0, (%rsi)
je 0x14217
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r13,%rcx,8)
movq %rax, %rcx
jne 0x14206
jmp 0x14219
xorl %eax, %eax
movq 0x50(%rsp), %r14
movabsq $0x1ffffffffffffffe, %rcx # imm = 0x1FFFFFFFFFFFFFFE
decq %rcx
cmpq %rcx, %rax
leaq 0x10(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%rbp)
movq (%r13), %rcx
testq %rcx, %rcx
je 0x1426b
addq $0x8, %r13
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r13), %rcx
addq $0x8, %r13
testq %rcx, %rcx
jne 0x14257
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
cmpq $0x0, (%r15)
je 0x14299
xorl %ecx, %ecx
movabsq $0x1ffffffffffffffe, %r14 # imm = 0x1FFFFFFFFFFFFFFE
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r15,%rcx,8)
movq %rax, %rcx
jne 0x14288
jmp 0x142a5
xorl %eax, %eax
movabsq $0x1ffffffffffffffe, %r14 # imm = 0x1FFFFFFFFFFFFFFE
cmpq %r14, %rax
leaq 0x8(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r12)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x142e3
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x142d0
movq $0x0, (%rax)
movsd (%rbx), %xmm0
xorl %eax, %eax
ucomisd 0x185b0(%rip), %xmm0    # 0x2c8a8
jne 0x142fc
jnp 0x14315
movsd 0x185a4(%rip), %xmm0    # 0x2c8a8
movsd 0x8(%rbx,%rax,8), %xmm1
incq %rax
ucomisd %xmm0, %xmm1
jne 0x14304
jp 0x14304
movq 0x48(%rsp), %r15
cmpq %r14, %rax
leaq 0x8(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq (%rsp), %rcx
movq %rax, (%rcx)
movsd (%rbx), %xmm0
ucomisd 0x18560(%rip), %xmm0    # 0x2c8a8
jne 0x1434c
jnp 0x14373
addq $0x8, %rbx
movsd 0x18550(%rip), %xmm0    # 0x2c8a8
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%rbx), %xmm1
addq $0x8, %rbx
ucomisd %xmm0, %xmm1
jne 0x14358
jp 0x14358
movq 0x40(%rsp), %rbx
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
cmpq $0x0, (%r15)
je 0x1439e
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r15,%rcx,8)
movq %rax, %rcx
jne 0x1438d
jmp 0x143a0
xorl %eax, %eax
cmpq %r14, %rax
leaq 0x8(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%rbx)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x143dd
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x143ca
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq