void bioD3_3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength,
              ylength, zlength, ifnotAllskip) float *invector;
float *HLL, *HLH, *HHL, *HHH;
float *LLL, *LLH, *LHL, *LHH;
int xlength, ylength, zlength;
int ifnotAllskip;
{
  float x0 = -0.5;
  float X0 = x0;
  float X1 = x0;
  int pairity;
  float Norm;
  int dim;
  dim = (xlength > 1) + (ylength > 1) + (zlength > 1);
  ;
  if (dim == 3)
    Norm = x0;
  if (dim == 2)
    Norm = 1.0;
  if (dim == 1)
    Norm = 1.0 / x0;
  if (xlength > 1)
    Norm /= (1.0);
  if (ylength > 1)
    Norm /= (1.0);
  if (zlength > 1)
    Norm /= (1.0);
  if (dim == 0) {
    Norm = 1.0;
    X0 = 1.0, X1 = 1.0;
  }
  pairity = 1;
  bio_3d_premult(invector, xlength, ylength, zlength, X0, pairity);
  if (ifnotAllskip)
    bioD1__3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength,
              ylength, zlength, X1, Norm);
  else
    bioD1_3dskip(invector, LLL, xlength, ylength, zlength, X1, Norm);
}


x86 assembly (clang, -O0):
<bioD3_3d>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x38(%rbp)
mov    %r8,-0x40(%rbp)
mov    %r9,-0x48(%rbp)
movss  0xe8b(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
cmpl   $0x1,0x28(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x1,0x30(%rbp)
setg   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
cmpl   $0x1,0x38(%rbp)
setg   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
mov    %eax,-0x60(%rbp)
cmpl   $0x3,-0x60(%rbp)
jne    11cf <bioD3_3d+0x9f>
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x2,-0x60(%rbp)
jne    11e6 <bioD3_3d+0xb6>
movss  0xe23(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,-0x60(%rbp)
jne    120e <bioD3_3d+0xde>
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe07(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x28(%rbp)
jle    1236 <bioD3_3d+0x106>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xddf(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x30(%rbp)
jle    125e <bioD3_3d+0x12e>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdb7(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x38(%rbp)
jle    1286 <bioD3_3d+0x156>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd8f(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x0,-0x60(%rbp)
jne    12b7 <bioD3_3d+0x187>
movss  0xd6c(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  0xd5f(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xd52(%rip),%xmm0
movss  %xmm0,-0x54(%rbp)
movl   $0x1,-0x58(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x38(%rbp),%ecx
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x58(%rbp),%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
cmpl   $0x0,0x40(%rbp)
je     1352 <bioD3_3d+0x222>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    -0x40(%rbp),%r8
mov    -0x48(%rbp),%r9
mov    0x10(%rbp),%r15
mov    0x18(%rbp),%r14
mov    0x20(%rbp),%rbx
mov    0x28(%rbp),%r11d
mov    0x30(%rbp),%r10d
mov    0x38(%rbp),%eax
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x5c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10d,0x20(%rsp)
mov    %eax,0x28(%rsp)
mov    $0x2,%al
call   1030 <bioD1__3d@plt>
jmp    137d <bioD3_3d+0x24d>
mov    -0x20(%rbp),%rdi
mov    0x20(%rbp),%rsi
mov    0x28(%rbp),%edx
mov    0x30(%rbp),%ecx
mov    0x38(%rbp),%r8d
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x5c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1040 <bioD1_3dskip@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<bioD3_3d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,0x40(%rsp)
mov    %r8,0x38(%rsp)
mov    %rcx,0x30(%rsp)
mov    %rdx,0x28(%rsp)
mov    %rsi,0x20(%rsp)
mov    %rdi,%r13
mov    0xa8(%rsp),%ebx
mov    0xa0(%rsp),%r15d
mov    0x98(%rsp),%r14d
xor    %ecx,%ecx
cmp    $0x2,%r14d
setge  %cl
xor    %eax,%eax
cmp    $0x2,%r15d
setge  %al
add    %ecx,%eax
xor    %ecx,%ecx
cmp    $0x2,%ebx
setge  %cl
lea    (%rax,%rcx,1),%edx
movsd  0xe68(%rip),%xmm0
movsd  0xe68(%rip),%xmm2
movaps %xmm0,%xmm1
cmp    $0x2,%edx
je     11ab <bioD3_3d+0x7b>
movaps %xmm2,%xmm1
cmp    $0x1,%edx
jne    11b8 <bioD3_3d+0x88>
movsd  0xe58(%rip),%xmm1
movaps %xmm0,%xmm3
add    %ecx,%eax
je     11c5 <bioD3_3d+0x95>
movaps %xmm2,%xmm0
movaps %xmm1,%xmm3
movsd  %xmm0,0x8(%rsp)
movsd  %xmm3,0x10(%rsp)
mov    0x90(%rsp),%r12
mov    0x88(%rsp),%rbp
mov    0x80(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    $0x1,%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
cmpl   $0x0,0xb0(%rsp)
je     125a <bioD3_3d+0x12a>
mov    %r13,%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x30(%rsp),%rcx
mov    0x38(%rsp),%r8
mov    0x40(%rsp),%r9
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    $0x2,%al
push   %rbx
push   %r15
push   %r14
push   %r12
push   %rbp
push   0x40(%rsp)
call   1030 <bioD1__3d@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %ebx,%r8d
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    $0x2,%al
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <bioD1_3dskip@plt>

LLVM IR (-O0):
define void @bioD3_3d(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, i32 %9, i32 %10, i32 %11, i32 %12) {
%14 = alloca float*
%15 = alloca float*
%16 = alloca float*
%17 = alloca float*
%18 = alloca float*
%19 = alloca float*
%20 = alloca float*
%21 = alloca float*
%22 = alloca float*
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca i32
%31 = alloca float
%32 = alloca i32
store float* %0, float** %14
store float* %1, float** %15
store float* %2, float** %16
store float* %3, float** %17
store float* %4, float** %18
store float* %5, float** %19
store float* %6, float** %20
store float* %7, float** %21
store float* %8, float** %22
store i32 %9, i32* %23
store i32 %10, i32* %24
store i32 %11, i32* %25
store i32 %12, i32* %26
store float -5.000000e-01, float* %27
%33 = load float, float* %27
store float %33, float* %28
%34 = load float, float* %27
store float %34, float* %29
%35 = load i32, i32* %23
%36 = icmp sgt i32 %35, 1
%37 = zext i1 %36 to i32
%38 = load i32, i32* %24
%39 = icmp sgt i32 %38, 1
%40 = zext i1 %39 to i32
%41 = add nsw i32 %37, %40
%42 = load i32, i32* %25
%43 = icmp sgt i32 %42, 1
%44 = zext i1 %43 to i32
%45 = add nsw i32 %41, %44
store i32 %45, i32* %32
%46 = load i32, i32* %32
%47 = icmp eq i32 %46, 3
br i1 %47, label %48, label %50
48: ; preds = %13
%49 = load float, float* %27
store float %49, float* %31
br label %50
50: ; preds = %48, %13
%51 = load i32, i32* %32
%52 = icmp eq i32 %51, 2
br i1 %52, label %53, label %54
53: ; preds = %50
store float 1.000000e+00, float* %31
br label %54
54: ; preds = %53, %50
%55 = load i32, i32* %32
%56 = icmp eq i32 %55, 1
br i1 %56, label %57, label %62
57: ; preds = %54
%58 = load float, float* %27
%59 = fpext float %58 to double
%60 = fdiv double 1.000000e+00, %59
%61 = fptrunc double %60 to float
store float %61, float* %31
br label %62
62: ; preds = %57, %54
%63 = load i32, i32* %23
%64 = icmp sgt i32 %63, 1
br i1 %64, label %65, label %70
65: ; preds = %62
%66 = load float, float* %31
%67 = fpext float %66 to double
%68 = fdiv double %67, 1.000000e+00
%69 = fptrunc double %68 to float
store float %69, float* %31
br label %70
70: ; preds = %65, %62
%71 = load i32, i32* %24
%72 = icmp sgt i32 %71, 1
br i1 %72, label %73, label %78
73: ; preds = %70
%74 = load float, float* %31
%75 = fpext float %74 to double
%76 = fdiv double %75, 1.000000e+00
%77 = fptrunc double %76 to float
store float %77, float* %31
br label %78
78: ; preds = %73, %70
%79 = load i32, i32* %25
%80 = icmp sgt i32 %79, 1
br i1 %80, label %81, label %86
81: ; preds = %78
%82 = load float, float* %31
%83 = fpext float %82 to double
%84 = fdiv double %83, 1.000000e+00
%85 = fptrunc double %84 to float
store float %85, float* %31
br label %86
86: ; preds = %81, %78
%87 = load i32, i32* %32
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %90
89: ; preds = %86
store float 1.000000e+00, float* %31
store float 1.000000e+00, float* %28
store float 1.000000e+00, float* %29
br label %90
90: ; preds = %89, %86
store i32 1, i32* %30
%91 = load float*, float** %14
%92 = load i32, i32* %23
%93 = load i32, i32* %24
%94 = load i32, i32* %25
%95 = load float, float* %28
%96 = fpext float %95 to double
%97 = load i32, i32* %30
%98 = call i32 (float*, i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @bio_3d_premult to i32 (float*, i32, i32, i32, double, i32, ...)*)(float* %91, i32 %92, i32 %93, i32 %94, double %96, i32 %97)
%99 = load i32, i32* %26
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %119
101: ; preds = %90
%102 = load float*, float** %14
%103 = load float*, float** %15
%104 = load float*, float** %16
%105 = load float*, float** %17
%106 = load float*, float** %18
%107 = load float*, float** %19
%108 = load float*, float** %20
%109 = load float*, float** %21
%110 = load float*, float** %22
%111 = load i32, i32* %23
%112 = load i32, i32* %24
%113 = load i32, i32* %25
%114 = load float, float* %29
%115 = fpext float %114 to double
%116 = load float, float* %31
%117 = fpext float %116 to double
%118 = call i32 (float*, float*, float*, float*, float*, float*, float*, float*, float*, i32, i32, i32, double, double, ...) bitcast (i32 (...)* @bioD1__3d to i32 (float*, float*, float*, float*, float*, float*, float*, float*, float*, i32, i32, i32, double, double, ...)*)(float* %102, float* %103, float* %104, float* %105, float* %106, float* %107, float* %108, float* %109, float* %110, i32 %111, i32 %112, i32 %113, double %115, double %117)
br label %130
119: ; preds = %90
%120 = load float*, float** %14
%121 = load float*, float** %22
%122 = load i32, i32* %23
%123 = load i32, i32* %24
%124 = load i32, i32* %25
%125 = load float, float* %29
%126 = fpext float %125 to double
%127 = load float, float* %31
%128 = fpext float %127 to double
%129 = call i32 (float*, float*, i32, i32, i32, double, double, ...) bitcast (i32 (...)* @bioD1_3dskip to i32 (float*, float*, i32, i32, i32, double, double, ...)*)(float* %120, float* %121, i32 %122, i32 %123, i32 %124, double %126, double %128)
br label %130
130: ; preds = %119, %101
ret void
}

LLVM IR (-O2):
define void @bioD3_3d(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, i32 %9, i32 %10, i32 %11, i32 %12) {
%14 = icmp sgt i32 %9, 1
%15 = zext i1 %14 to i32
%16 = icmp sgt i32 %10, 1
%17 = zext i1 %16 to i32
%18 = add nuw nsw i32 %17, %15
%19 = icmp sgt i32 %11, 1
%20 = zext i1 %19 to i32
%21 = add nuw nsw i32 %18, %20
%22 = icmp eq i32 %21, 2
%23 = icmp eq i32 %21, 1
%24 = icmp eq i32 %21, 0
%25 = select i1 %24, double 1.000000e+00, double -5.000000e-01
%26 = tail call i32 (float*, i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @bio_3d_premult to i32 (float*, i32, i32, i32, double, i32, ...)*)(float* %0, i32 %9, i32 %10, i32 %11, double %25, i32 1)
%27 = icmp eq i32 %12, 0
%28 = select i1 %22, double 1.000000e+00, double -5.000000e-01
%29 = select i1 %23, double -2.000000e+00, double %28
%30 = select i1 %24, double 1.000000e+00, double %29
br i1 %27, label %33, label %31
31: ; preds = %13
%32 = tail call i32 (float*, float*, float*, float*, float*, float*, float*, float*, float*, i32, i32, i32, double, double, ...) bitcast (i32 (...)* @bioD1__3d to i32 (float*, float*, float*, float*, float*, float*, float*, float*, float*, i32, i32, i32, double, double, ...)*)(float* %0, float* %1, float* %2, float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, i32 %9, i32 %10, i32 %11, double %25, double %30)
br label %35
33: ; preds = %13
%34 = tail call i32 (float*, float*, i32, i32, i32, double, double, ...) bitcast (i32 (...)* @bioD1_3dskip to i32 (float*, float*, i32, i32, i32, double, double, ...)*)(float* %0, float* %8, i32 %9, i32 %10, i32 %11, double %25, double %30)
br label %35
35: ; preds = %33, %31
ret void
}