// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/mathexpr.cpp
// Function: BCDouble(void (**&)(double*&), void (**)(double*&), void (**)(double*&), double**&, double**, double**, double*&, double*, double*, RFunction**&, RFunction**, RFunction**, void (*)(double*&))
void BCDouble(pfoncld*&pf,pfoncld*pf1,pfoncld*pf2,
	      double**&pv,double**pv1,double**pv2,
	      double*&pp,double*pp1,double*pp2,
	      RFunction**&prf,RFunction**prf1,RFunction**prf2,
	      pfoncld f)
{
  pfoncld*pf3,*pf4=pf1;long n1,n2;
  for(n1=0;*pf4!=NULL;pf4++,n1++){};for(n2=0,pf4=pf2;*pf4!=NULL;pf4++,n2++){};
  pf=new pfoncld[n1+n2+2];
  for(pf3=pf,pf4=pf1;*pf4!=NULL;pf3++,pf4++)*pf3=*pf4;
  for(pf4=pf2;*pf4!=NULL;pf3++,pf4++)*pf3=*pf4;
  *pf3++=f;*pf3=NULL;//delete[]pf1,pf2;
  double**pv3,**pv4=pv1;
  for(n1=0;*pv4!=NULL;pv4++,n1++){};for(n2=0,pv4=pv2;*pv4!=NULL;pv4++,n2++){};
  pv=new double*[n1+n2+1];
  for(pv3=pv,pv4=pv1;*pv4!=NULL;pv3++,pv4++)*pv3=*pv4;
  for(pv4=pv2;*pv4!=NULL;pv3++,pv4++)*pv3=*pv4;
  *pv3=NULL;//delete[]pv1,pv2;
  double*pp3,*pp4=pp1;
  for(n1=0;*pp4!=ErrVal;pp4++,n1++){};for(n2=0,pp4=pp2;*pp4!=ErrVal;pp4++,n2++){};
  pp=new double[n1+n2+1];  // Really need to add and not to take max(n1,n2) in case of Juxt operator
  for(pp3=pp,pp4=pp1;*pp4!=ErrVal;pp3++,pp4++)*pp3=0;
  for(pp4=pp2;*pp4!=ErrVal;pp3++,pp4++)*pp3=0;
  *pp3=ErrVal;//delete[]pp1,pp2;
  PRFunction*prf3,*prf4=prf1;
  for(n1=0;*prf4!=NULL;prf4++,n1++){};for(n2=0,prf4=prf2;*prf4!=NULL;prf4++,n2++){};
  prf=new PRFunction[n1+n2+1];
  for(prf3=prf,prf4=prf1;*prf4!=NULL;prf3++,prf4++)*prf3=*prf4;
  for(prf4=prf2;*prf4!=NULL;prf3++,prf4++)*prf3=*prf4;
  *prf3=NULL;//delete[]prf1,prf2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
cmpq $0x0, (%rsi)
je 0x13ed1
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r13,%rcx,8)
movq %rax, %rcx
jne 0x13ec0
jmp 0x13ed3
xorl %eax, %eax
cmpq $0x0, (%r12)
je 0x13eed
xorl %edx, %edx
leaq 0x1(%rdx), %rcx
cmpq $0x0, 0x8(%r12,%rdx,8)
movq %rcx, %rdx
jne 0x13edc
jmp 0x13eef
xorl %ecx, %ecx
movabsq $0x1ffffffffffffffe, %rdx # imm = 0x1FFFFFFFFFFFFFFE
addq %rax, %rcx
leaq -0x1(%rdx), %rax
cmpq %rax, %rcx
leaq 0x10(,%rcx,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%rbp)
movq (%r13), %rcx
testq %rcx, %rcx
je 0x13f40
addq $0x8, %r13
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r13), %rcx
addq $0x8, %r13
testq %rcx, %rcx
jne 0x13f2c
movq 0x70(%rsp), %rcx
movq (%r12), %rdx
testq %rdx, %rdx
je 0x13f66
addq $0x8, %r12
movq %rdx, (%rax)
addq $0x8, %rax
movq (%r12), %rdx
addq $0x8, %r12
testq %rdx, %rdx
jne 0x13f52
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
cmpq $0x0, (%r14)
je 0x13f94
xorl %ecx, %ecx
movabsq $0x1ffffffffffffffe, %r12 # imm = 0x1FFFFFFFFFFFFFFE
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r14,%rcx,8)
movq %rax, %rcx
jne 0x13f83
jmp 0x13fa0
xorl %eax, %eax
movabsq $0x1ffffffffffffffe, %r12 # imm = 0x1FFFFFFFFFFFFFFE
cmpq $0x0, (%rbx)
je 0x13fb9
xorl %edx, %edx
leaq 0x1(%rdx), %rcx
cmpq $0x0, 0x8(%rbx,%rdx,8)
movq %rcx, %rdx
jne 0x13fa8
jmp 0x13fbb
xorl %ecx, %ecx
addq %rax, %rcx
cmpq %r12, %rcx
leaq 0x8(,%rcx,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r15)
movq (%r14), %rcx
testq %rcx, %rcx
je 0x13ffb
addq $0x8, %r14
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r14), %rcx
addq $0x8, %r14
testq %rcx, %rcx
jne 0x13fe8
movq 0x48(%rsp), %r14
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x1401f
addq $0x8, %rbx
movq %rcx, (%rax)
addq $0x8, %rax
movq (%rbx), %rcx
addq $0x8, %rbx
testq %rcx, %rcx
jne 0x1400c
movq 0x50(%rsp), %rbx
movq $0x0, (%rax)
movsd (%r14), %xmm0
xorl %eax, %eax
ucomisd 0x1886e(%rip), %xmm0    # 0x2c8a8
jne 0x1403e
jnp 0x14058
movsd 0x18862(%rip), %xmm0    # 0x2c8a8
movsd 0x8(%r14,%rax,8), %xmm1
incq %rax
ucomisd %xmm0, %xmm1
jne 0x14046
jp 0x14046
movq 0x40(%rsp), %r15
movsd (%rbx), %xmm0
xorl %ecx, %ecx
ucomisd 0x1883d(%rip), %xmm0    # 0x2c8a8
jne 0x1406f
jnp 0x14088
movsd 0x18831(%rip), %xmm0    # 0x2c8a8
movsd 0x8(%rbx,%rcx,8), %xmm1
incq %rcx
ucomisd %xmm0, %xmm1
jne 0x14077
jp 0x14077
addq %rax, %rcx
cmpq %r12, %rcx
leaq 0x8(,%rcx,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r15)
movsd (%r14), %xmm0
ucomisd 0x187f2(%rip), %xmm0    # 0x2c8a8
jne 0x140ba
jnp 0x140e2
addq $0x8, %r14
movsd 0x187e2(%rip), %xmm0    # 0x2c8a8
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%r14), %xmm1
addq $0x8, %r14
ucomisd %xmm0, %xmm1
jne 0x140c6
jp 0x140c6
movq 0x60(%rsp), %r14
movsd (%rbx), %xmm0
ucomisd 0x187b5(%rip), %xmm0    # 0x2c8a8
jne 0x140f7
jnp 0x1411e
addq $0x8, %rbx
movsd 0x187a5(%rip), %xmm0    # 0x2c8a8
movq $0x0, (%rax)
addq $0x8, %rax
movsd (%rbx), %xmm1
addq $0x8, %rbx
ucomisd %xmm0, %xmm1
jne 0x14103
jp 0x14103
movq 0x68(%rsp), %rbx
movabsq $0x7fefffffffffffff, %rcx # imm = 0x7FEFFFFFFFFFFFFF
movq %rcx, (%rax)
cmpq $0x0, (%r14)
je 0x14149
xorl %ecx, %ecx
leaq 0x1(%rcx), %rax
cmpq $0x0, 0x8(%r14,%rcx,8)
movq %rax, %rcx
jne 0x14138
jmp 0x1414b
xorl %eax, %eax
movq 0x58(%rsp), %r15
cmpq $0x0, (%rbx)
je 0x14169
xorl %edx, %edx
leaq 0x1(%rdx), %rcx
cmpq $0x0, 0x8(%rbx,%rdx,8)
movq %rcx, %rdx
jne 0x14158
jmp 0x1416b
xorl %ecx, %ecx
addq %rax, %rcx
cmpq %r12, %rcx
leaq 0x8(,%rcx,8), %rax
movq $-0x1, %rdi
cmovbeq %rax, %rdi
callq 0x4040
movq %rax, (%r15)
movq (%r14), %rcx
testq %rcx, %rcx
je 0x141ab
addq $0x8, %r14
movq %rcx, (%rax)
addq $0x8, %rax
movq (%r14), %rcx
addq $0x8, %r14
testq %rcx, %rcx
jne 0x14198
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x141ca
addq $0x8, %rbx
movq %rcx, (%rax)
addq $0x8, %rax
movq (%rbx), %rcx
addq $0x8, %rbx
testq %rcx, %rcx
jne 0x141b7
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq