// File: /workspace/github_cpp_makefile_star2_O1/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
cmpq $0x0, (%rsi)
je 0x1442a
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r13,%rcx,8)
movq %rax, %rcx
jne 0x14419
jmp 0x1442c
xorl %eax, %eax
movabsq $0x1ffffffffffffffd, %rcx # imm = 0x1FFFFFFFFFFFFFFD
movq %rcx, %r14
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 0x14479
addq $0x8, %r13
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r13), %rcx
addq $0x8, %r13
testq %rcx, %rcx
jne 0x14465
leaq -0x89c(%rip), %rcx      # 0x13be4
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
cmpq $0x0, (%r15)
movq %r14, %rbp
je 0x144a7
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r15,%rcx,8)
movq %rax, %rcx
jne 0x14496
jmp 0x144a9
xorl %eax, %eax
leaq 0x1(%rbp), %r13
cmpq %r13, %rax
leaq 0x8(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r12)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x144eb
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x144d8
movq $0x0, (%rax)
movsd (%rbx), %xmm0
xorl %eax, %eax
ucomisd 0x183a8(%rip), %xmm0    # 0x2c8a8
jne 0x14504
jnp 0x1451d
movsd 0x1839c(%rip), %xmm0    # 0x2c8a8
movsd 0x8(%rbx,%rax,8), %xmm1
incq %rax
ucomisd %xmm0, %xmm1
jne 0x1450c
jp 0x1450c
movq 0x48(%rsp), %r15
cmpq %r13, %rax
leaq 0x8(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq (%rsp), %rcx
movq %rax, (%rcx)
movsd (%rbx), %xmm0
ucomisd 0x18358(%rip), %xmm0    # 0x2c8a8
jne 0x14554
jnp 0x1457b
addq $0x8, %rbx
movsd 0x18348(%rip), %xmm0    # 0x2c8a8
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%rbx), %xmm1
addq $0x8, %rbx
ucomisd %xmm0, %xmm1
jne 0x14560
jp 0x14560
movq 0x40(%rsp), %r14
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
cmpq $0x0, (%r15)
je 0x145a6
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r15,%rcx,8)
movq %rax, %rcx
jne 0x14595
jmp 0x145a8
xorl %eax, %eax
movq 0x50(%rsp), %rbx
cmpq %rbp, %rax
leaq 0x10(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r14)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x145ea
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x145d7
movq %rbx, (%rax)
movq $0x0, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq