// File: /workspace/github_cpp_makefile_star2_O3/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
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, 0x10(%rsp)
movq %rcx, %r15
movq %rdx, 0x8(%rsp)
movq %rsi, %r13
movq %rdi, %rbp
movabsq $0x1ffffffffffffffd, %rsi # imm = 0x1FFFFFFFFFFFFFFD
cmpq $0x0, (%r13)
je 0x13de2
xorl %eax, %eax
movq %r13, %rcx
cmpq $0x0, 0x8(%rcx)
movq %rax, %rdx
leaq 0x8(%rcx), %rcx
leaq 0x1(%rax), %rax
jne 0x13db1
movq %rsi, %r14
leaq -0x1(%rsi), %rcx
cmpq %rcx, %rdx
leaq 0x10(,%rax,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
jmp 0x13dea
movq %rsi, %r14
movl $0x10, %edi
movq 0x60(%rsp), %r12
callq 0x4040
movq %rax, (%rbp)
movq (%r13), %rcx
testq %rcx, %rcx
je 0x13e19
addq $0x8, %r13
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r13), %rcx
addq $0x8, %r13
testq %rcx, %rcx
jne 0x13e05
movq %r12, (%rax)
movq $0x0, 0x8(%rax)
cmpq $0x0, (%r15)
je 0x13e54
movl $0x8, %edi
movq $-0x1, %rax
incq %rax
cmpq $0x0, (%r15,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x13e36
cmpq %r14, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
jmp 0x13e59
movl $0x8, %edi
callq 0x4040
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x13e85
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x13e72
movq 0x58(%rsp), %r15
movq $0x0, (%rax)
movsd (%rbx), %xmm0
ucomisd 0x179d3(%rip), %xmm0    # 0x2b870
jne 0x13ea5
jnp 0x13f25
movsd %xmm0, 0x8(%rsp)
movl $0x8, %edi
movq $-0x1, %rax
movsd (%rbx,%rdi), %xmm0
addq $0x8, %rdi
incq %rax
ucomisd 0x179a5(%rip), %xmm0    # 0x2b870
jne 0x13eb7
jp 0x13eb7
cmpq %r14, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
callq 0x4040
movsd 0x8(%rsp), %xmm0
ucomisd 0x17980(%rip), %xmm0    # 0x2b870
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
jne 0x13efc
jnp 0x13f37
addq $0x8, %rbx
movsd 0x17968(%rip), %xmm1    # 0x2b870
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%rbx), %xmm0
addq $0x8, %rbx
ucomisd %xmm1, %xmm0
jne 0x13f08
jp 0x13f08
jmp 0x13f37
movl $0x8, %edi
callq 0x4040
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq 0x50(%rsp), %rbx
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
cmpq $0x0, (%r15)
je 0x13f79
movl $0x8, %edi
movq $-0x1, %rax
incq %rax
cmpq $0x0, (%r15,%rdi)
leaq 0x8(%rdi), %rdi
jne 0x13f5b
cmpq %r14, %rax
movq $-0x1, %rax
cmovaq %rax, %rdi
jmp 0x13f7e
movl $0x8, %edi
callq 0x4040
movq %rax, (%rbx)
movq (%r15), %rcx
testq %rcx, %rcx
je 0x13fa5
addq $0x8, %r15
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r15), %rcx
addq $0x8, %r15
testq %rcx, %rcx
jne 0x13f92
movq $0x0, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq