// File: /workspace/github_cpp_makefile_star2_O2/srajangarg[P]raytracer/src/core/mathexpr.cpp
// Function: BCFun(void (**&)(double*&), void (**)(double*&), double**&, double**, double*&, double*, RFunction**&, RFunction**, RFunction*)
void BCFun(pfoncld*&pf,pfoncld*pf1,double**&pv,double**pv1,
	double*&pp,double*pp1,RFunction**&prf,RFunction**prf1,PRFunction rf)
{
  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++=&RFunc;*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;
  PRFunction*prf3,*prf4=prf1;
  for(n=0;*prf4!=NULL;prf4++,n++);
  prf=new PRFunction[n+2];
  for(prf4=prf1,prf3=prf;*prf4!=NULL;prf3++,prf4++)*prf3=*prf4;
  *prf3++=rf;*prf3=NULL;//delete[]pf1;
}

// 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
pushq $0x10
popq %rdi
movq 0x48(%rsp), %r14
xorl %eax, %eax
cmpq $0x0, (%r13,%rax,8)
je 0x11e22
incq %rax
addq $0x8, %rdi
jmp 0x11e11
movabsq $0x1ffffffffffffffd, %rcx # imm = 0x1FFFFFFFFFFFFFFD
cmpq %rcx, %rax
pushq $-0x1
popq %rax
cmovaq %rax, %rdi
callq 0x4040
movq %rax, (%rbp)
xorl %ecx, %ecx
movq (%r13,%rcx), %rdx
testq %rdx, %rdx
je 0x11e55
movq %rdx, (%rax,%rcx)
addq $0x8, %rcx
jmp 0x11e41
leaq -0x728(%rip), %rdx      # 0x11734
movq %rdx, (%rax,%rcx)
andq $0x0, 0x8(%rax,%rcx)
xorl %eax, %eax
movq %r15, %rcx
pushq $-0x1
popq %rbp
cmpq $0x0, (%rcx)
je 0x11e7d
addq $0x8, %rcx
incq %rax
jmp 0x11e6e
movabsq $0x1ffffffffffffffd, %rcx # imm = 0x1FFFFFFFFFFFFFFD
leaq 0x1(%rcx), %r13
cmpq %r13, %rax
leaq 0x8(,%rax,8), %rdi
cmovaq %rbp, %rdi
callq 0x4040
movq %rax, (%r12)
xorl %ecx, %ecx
movq (%r15,%rcx), %rdx
testq %rdx, %rdx
je 0x11eb8
movq %rdx, (%rax,%rcx)
addq $0x8, %rcx
jmp 0x11ea5
andq $0x0, (%rax,%rcx)
xorl %eax, %eax
movq %rbx, %rcx
movsd (%rcx), %xmm0
ucomisd 0xfa02(%rip), %xmm0     # 0x218d0
jne 0x11ed2
jnp 0x11edb
addq $0x8, %rcx
incq %rax
jmp 0x11ec2
cmpq %r13, %rax
leaq 0x8(,%rax,8), %rdi
cmovaq %rbp, %rdi
callq 0x4040
movsd 0xf9d9(%rip), %xmm1     # 0x218d0
movq (%rsp), %rcx
movq %rax, (%rcx)
xorl %ecx, %ecx
movsd (%rbx,%rcx), %xmm0
ucomisd %xmm1, %xmm0
jne 0x11f0d
jnp 0x11f18
andq $0x0, (%rax,%rcx)
addq $0x8, %rcx
jmp 0x11f00
movabsq $0x7fefffffffffffff, %rdx # imm = 0x7FEFFFFFFFFFFFFF
movq %rdx, (%rax,%rcx)
xorl %eax, %eax
movq %r14, %rcx
cmpq $0x0, (%rcx)
je 0x11f3a
addq $0x8, %rcx
incq %rax
jmp 0x11f2b
movabsq $0x1ffffffffffffffd, %rcx # imm = 0x1FFFFFFFFFFFFFFD
cmpq %rcx, %rax
leaq 0x10(,%rax,8), %rdi
cmovaq %rbp, %rdi
callq 0x4040
movq 0x40(%rsp), %rcx
movq %rax, (%rcx)
xorl %ecx, %ecx
movq (%r14,%rcx), %rdx
testq %rdx, %rdx
je 0x11f75
movq %rdx, (%rax,%rcx)
addq $0x8, %rcx
jmp 0x11f62
movq 0x50(%rsp), %rdx
movq %rdx, (%rax,%rcx)
andq $0x0, 0x8(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq