// File: /workspace/github_cpp_makefile_star2_O3/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
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, 0x8(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movabsq $0x1ffffffffffffffc, %r14 # imm = 0x1FFFFFFFFFFFFFFC
cmpq $0x0, (%rsi)
je 0x1401c
xorl %eax, %eax
movq %r13, %rcx
cmpq $0x0, 0x8(%rcx)
movq %rax, %rdx
leaq 0x8(%rcx), %rcx
leaq 0x1(%rax), %rax
jne 0x13ff2
cmpq %r14, %rdx
leaq 0x10(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
jmp 0x14021
movl $0x10, %edi
callq 0x4040
movq %rax, (%rbp)
movq (%r13), %rcx
testq %rcx, %rcx
je 0x1404b
addq $0x8, %r13
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r13), %rcx
addq $0x8, %r13
testq %rcx, %rcx
jne 0x14037
leaq -0x8ec(%rip), %rcx      # 0x13766
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
cmpq $0x0, (%r15)
je 0x14091
movl $0x8, %edi
movq $-0x1, %rax
incq %rax
cmpq $0x0, (%r15,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x1406f
leaq 0x1(%r14), %rcx
cmpq %rcx, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
jmp 0x14096
movl $0x8, %edi
callq 0x4040
movq %rax, (%r12)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x140be
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x140ab
movq 0x58(%rsp), %r15
movq $0x0, (%rax)
movsd (%rbx), %xmm0
ucomisd 0x1779a(%rip), %xmm0    # 0x2b870
jne 0x140de
jnp 0x14162
movsd %xmm0, 0x10(%rsp)
movl $0x8, %edi
movq $-0x1, %rax
movsd (%rbx,%rdi), %xmm0
addq $0x8, %rdi
incq %rax
ucomisd 0x1776c(%rip), %xmm0    # 0x2b870
jne 0x140f0
jp 0x140f0
leaq 0x1(%r14), %rcx
cmpq %rcx, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
callq 0x4040
movsd 0x10(%rsp), %xmm0
ucomisd 0x17743(%rip), %xmm0    # 0x2b870
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
jne 0x14139
jnp 0x14174
addq $0x8, %rbx
movsd 0x1772b(%rip), %xmm1    # 0x2b870
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%rbx), %xmm0
addq $0x8, %rbx
ucomisd %xmm1, %xmm0
jne 0x14145
jp 0x14145
jmp 0x14174
movl $0x8, %edi
callq 0x4040
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x50(%rsp), %rbx
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
cmpq $0x0, (%r15)
je 0x141b7
movl $0x10, %edi
movq $-0x1, %rax
incq %rax
cmpq $0x0, -0x8(%r15,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x14198
cmpq %r14, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
jmp 0x141bc
movl $0x10, %edi
movq 0x60(%rsp), %r14
callq 0x4040
movq %rax, (%rbx)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x141e8
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x141d5
movq %r14, (%rax)
movq $0x0, 0x8(%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop