void bioD5_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.50;
  float x1 = 0.25;
  float X0, X1, X2;
  int pairity;
  float Norm;
  int dim;
  dim = (xlength > 1) + (ylength > 1) + (zlength > 1);
  if (0 || ifnotAllskip) {
    X0 = x0;
    X1 = x0 * x1;
    X2 = 1.0 / x1;
  } else {
    X0 = x0;
    X1 = 1.0;
    X2 = 1.0 / x0;
  }
  if (dim == 3)
    Norm = x0;
  if (dim == 2)
    Norm = 1.0;
  if (dim == 1)
    Norm = 1.0 / x0;
  if (xlength > 1)
    Norm /= (0.5);
  if (ylength > 1)
    Norm /= (0.5);
  if (zlength > 1)
    Norm /= (0.5);
  if (dim == 0) {
    Norm = 1.0;
    X0 = 1.0;
    X1 = 1.0;
    X2 = 1.0;
  }
  pairity = 1;
  bio_3d_premult(invector, xlength, ylength, zlength, X0, pairity);
  pairity = 0;
  bio_3d_premult(invector, xlength, ylength, zlength, X1, pairity);
  if (ifnotAllskip)
    bioD1__3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength,
              ylength, zlength, X2, Norm);
  else {
    bioD1_3dskip(invector, LLL, xlength, ylength, zlength, X2, Norm);
  }
}


x86 assembly (clang, -O0):
<bioD5_3d>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x88,%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  0xe8c(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  0xe7b(%rip),%xmm0
movss  %xmm0,-0x50(%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,-0x68(%rbp)
cmpl   $0x0,0x40(%rbp)
je     11fd <bioD5_3d+0xcd>
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x4c(%rbp),%xmm0
mulss  -0x50(%rbp),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe25(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
jmp    1232 <bioD5_3d+0x102>
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  0xdf9(%rip),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xdeb(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x3,-0x68(%rbp)
jne    1246 <bioD5_3d+0x116>
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x2,-0x68(%rbp)
jne    125d <bioD5_3d+0x12d>
movss  0xdb0(%rip),%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x1,-0x68(%rbp)
jne    1285 <bioD5_3d+0x155>
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd98(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x1,0x28(%rbp)
jle    12ad <bioD5_3d+0x17d>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd78(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x1,0x30(%rbp)
jle    12d5 <bioD5_3d+0x1a5>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd50(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x1,0x38(%rbp)
jle    12fd <bioD5_3d+0x1cd>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd28(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
cmpl   $0x0,-0x68(%rbp)
jne    133b <bioD5_3d+0x20b>
movss  0xcf9(%rip),%xmm0
movss  %xmm0,-0x64(%rbp)
movss  0xcec(%rip),%xmm0
movss  %xmm0,-0x54(%rbp)
movss  0xcdf(%rip),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  0xcd2(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
movl   $0x1,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x38(%rbp),%ecx
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x60(%rbp),%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
movl   $0x0,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x38(%rbp),%ecx
movss  -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x60(%rbp),%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
cmpl   $0x0,0x40(%rbp)
je     13fe <bioD5_3d+0x2ce>
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  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x64(%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    1429 <bioD5_3d+0x2f9>
mov    -0x20(%rbp),%rdi
mov    0x20(%rbp),%rsi
mov    0x28(%rbp),%edx
mov    0x30(%rbp),%ecx
mov    0x38(%rbp),%r8d
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x64(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    $0x2,%al
call   1040 <bioD1_3dskip@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<bioD5_3d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,0x20(%rsp)
mov    0xa8(%rsp),%r13d
mov    0xa0(%rsp),%r15d
mov    0x98(%rsp),%r14d
xor    %esi,%esi
cmp    $0x2,%r14d
setge  %sil
xor    %eax,%eax
cmp    $0x2,%r15d
setge  %al
add    %esi,%eax
xor    %ebx,%ebx
cmp    $0x2,%r13d
setge  %bl
lea    (%rax,%rbx,1),%esi
xor    %ebp,%ebp
cmp    $0x2,%esi
sete   %r10b
cmp    $0x1,%esi
je     11a1 <bioD5_3d+0x71>
mov    %r10b,%bpl
lea    0xe6c(%rip),%rsi
movss  (%rsi,%rbp,4),%xmm0
cmp    $0x2,%r14d
jge    11af <bioD5_3d+0x7f>
jmp    11b3 <bioD5_3d+0x83>
movss  0xe7f(%rip),%xmm0
cmp    $0x2,%r14d
jl     11b3 <bioD5_3d+0x83>
addss  %xmm0,%xmm0
cmp    $0x2,%r15d
mov    %r9,0x40(%rsp)
mov    %r8,0x38(%rsp)
mov    %rcx,0x30(%rsp)
mov    %rdx,0x28(%rsp)
jl     11d1 <bioD5_3d+0xa1>
addss  %xmm0,%xmm0
mov    0xb0(%rsp),%ebp
cmp    $0x2,%r13d
jl     11e2 <bioD5_3d+0xb2>
addss  %xmm0,%xmm0
xor    %edx,%edx
test   %ebp,%ebp
sete   %cl
add    %ebx,%eax
je     1223 <bioD5_3d+0xf3>
mov    %cl,%dl
lea    0xe12(%rip),%rax
movss  (%rax,%rdx,4),%xmm1
movss  %xmm1,0xc(%rsp)
lea    0xe08(%rip),%rax
movss  (%rax,%rdx,4),%xmm1
movss  %xmm1,0x4(%rsp)
movss  %xmm0,0x8(%rsp)
movsd  0xdf7(%rip),%xmm0
jmp    1245 <bioD5_3d+0x115>
movsd  0xdf5(%rip),%xmm0
movss  0xdf9(%rip),%xmm1
movss  %xmm1,0x4(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
mov    0x90(%rsp),%r12
mov    0x88(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    0x80(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    %rdi,%rbx
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r13d,%ecx
mov    $0x1,%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %r13d,%ecx
xor    %r8d,%r8d
mov    $0x1,%al
call   1050 <bio_3d_premult@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x8(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %rbx,%rdi
test   %ebp,%ebp
je     12fa <bioD5_3d+0x1ca>
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x30(%rsp),%rcx
mov    0x38(%rsp),%r8
mov    0x40(%rsp),%r9
mov    $0x2,%al
push   %r13
push   %r15
push   %r14
push   %r12
push   0x30(%rsp)
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    %r12,%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %r13d,%r8d
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 @bioD5_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 float
%31 = alloca float
%32 = alloca i32
%33 = alloca float
%34 = 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
store float 2.500000e-01, float* %28
%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* %34
%46 = load i32, i32* %26
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %57
48: ; preds = %13
%49 = load float, float* %27
store float %49, float* %29
%50 = load float, float* %27
%51 = load float, float* %28
%52 = fmul float %50, %51
store float %52, float* %30
%53 = load float, float* %28
%54 = fpext float %53 to double
%55 = fdiv double 1.000000e+00, %54
%56 = fptrunc double %55 to float
store float %56, float* %31
br label %63
57: ; preds = %13
%58 = load float, float* %27
store float %58, float* %29
store float 1.000000e+00, float* %30
%59 = load float, float* %27
%60 = fpext float %59 to double
%61 = fdiv double 1.000000e+00, %60
%62 = fptrunc double %61 to float
store float %62, float* %31
br label %63
63: ; preds = %57, %48
%64 = load i32, i32* %34
%65 = icmp eq i32 %64, 3
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = load float, float* %27
store float %67, float* %33
br label %68
68: ; preds = %66, %63
%69 = load i32, i32* %34
%70 = icmp eq i32 %69, 2
br i1 %70, label %71, label %72
71: ; preds = %68
store float 1.000000e+00, float* %33
br label %72
72: ; preds = %71, %68
%73 = load i32, i32* %34
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %80
75: ; preds = %72
%76 = load float, float* %27
%77 = fpext float %76 to double
%78 = fdiv double 1.000000e+00, %77
%79 = fptrunc double %78 to float
store float %79, float* %33
br label %80
80: ; preds = %75, %72
%81 = load i32, i32* %23
%82 = icmp sgt i32 %81, 1
br i1 %82, label %83, label %88
83: ; preds = %80
%84 = load float, float* %33
%85 = fpext float %84 to double
%86 = fdiv double %85, 5.000000e-01
%87 = fptrunc double %86 to float
store float %87, float* %33
br label %88
88: ; preds = %83, %80
%89 = load i32, i32* %24
%90 = icmp sgt i32 %89, 1
br i1 %90, label %91, label %96
91: ; preds = %88
%92 = load float, float* %33
%93 = fpext float %92 to double
%94 = fdiv double %93, 5.000000e-01
%95 = fptrunc double %94 to float
store float %95, float* %33
br label %96
96: ; preds = %91, %88
%97 = load i32, i32* %25
%98 = icmp sgt i32 %97, 1
br i1 %98, label %99, label %104
99: ; preds = %96
%100 = load float, float* %33
%101 = fpext float %100 to double
%102 = fdiv double %101, 5.000000e-01
%103 = fptrunc double %102 to float
store float %103, float* %33
br label %104
104: ; preds = %99, %96
%105 = load i32, i32* %34
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %104
store float 1.000000e+00, float* %33
store float 1.000000e+00, float* %29
store float 1.000000e+00, float* %30
store float 1.000000e+00, float* %31
br label %108
108: ; preds = %107, %104
store i32 1, i32* %32
%109 = load float*, float** %14
%110 = load i32, i32* %23
%111 = load i32, i32* %24
%112 = load i32, i32* %25
%113 = load float, float* %29
%114 = fpext float %113 to double
%115 = load i32, i32* %32
%116 = call i32 (float*, i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @bio_3d_premult to i32 (float*, i32, i32, i32, double, i32, ...)*)(float* %109, i32 %110, i32 %111, i32 %112, double %114, i32 %115)
store i32 0, i32* %32
%117 = load float*, float** %14
%118 = load i32, i32* %23
%119 = load i32, i32* %24
%120 = load i32, i32* %25
%121 = load float, float* %30
%122 = fpext float %121 to double
%123 = load i32, i32* %32
%124 = call i32 (float*, i32, i32, i32, double, i32, ...) bitcast (i32 (...)* @bio_3d_premult to i32 (float*, i32, i32, i32, double, i32, ...)*)(float* %117, i32 %118, i32 %119, i32 %120, double %122, i32 %123)
%125 = load i32, i32* %26
%126 = icmp ne i32 %125, 0
br i1 %126, label %127, label %145
127: ; preds = %108
%128 = load float*, float** %14
%129 = load float*, float** %15
%130 = load float*, float** %16
%131 = load float*, float** %17
%132 = load float*, float** %18
%133 = load float*, float** %19
%134 = load float*, float** %20
%135 = load float*, float** %21
%136 = load float*, float** %22
%137 = load i32, i32* %23
%138 = load i32, i32* %24
%139 = load i32, i32* %25
%140 = load float, float* %31
%141 = fpext float %140 to double
%142 = load float, float* %33
%143 = fpext float %142 to double
%144 = 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* %128, float* %129, float* %130, float* %131, float* %132, float* %133, float* %134, float* %135, float* %136, i32 %137, i32 %138, i32 %139, double %141, double %143)
br label %156
145: ; preds = %108
%146 = load float*, float** %14
%147 = load float*, float** %22
%148 = load i32, i32* %23
%149 = load i32, i32* %24
%150 = load i32, i32* %25
%151 = load float, float* %31
%152 = fpext float %151 to double
%153 = load float, float* %33
%154 = fpext float %153 to double
%155 = call i32 (float*, float*, i32, i32, i32, double, double, ...) bitcast (i32 (...)* @bioD1_3dskip to i32 (float*, float*, i32, i32, i32, double, double, ...)*)(float* %146, float* %147, i32 %148, i32 %149, i32 %150, double %152, double %154)
br label %156
156: ; preds = %145, %127
ret void
}

LLVM IR (-O2):
define void @bioD5_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 %12, 0
%23 = select i1 %22, float -2.000000e+00, float 4.000000e+00
%24 = select i1 %22, float 1.000000e+00, float -1.250000e-01
%25 = icmp eq i32 %21, 2
%26 = select i1 %25, float 1.000000e+00, float -5.000000e-01
%27 = icmp eq i32 %21, 1
%28 = select i1 %27, float -2.000000e+00, float %26
%29 = fmul float %28, 2.000000e+00
%30 = select i1 %14, float %29, float %28
%31 = fmul float %30, 2.000000e+00
%32 = select i1 %16, float %31, float %30
%33 = fmul float %32, 2.000000e+00
%34 = select i1 %19, float %33, float %32
%35 = icmp eq i32 %21, 0
br i1 %35, label %36, label %37
36: ; preds = %13
br label %37
37: ; preds = %36, %13
%38 = phi float [ 1.000000e+00, %36 ], [ %23, %13 ]
%39 = phi float [ 1.000000e+00, %36 ], [ %24, %13 ]
%40 = phi float [ 1.000000e+00, %36 ], [ %34, %13 ]
%41 = phi double [ 1.000000e+00, %36 ], [ -5.000000e-01, %13 ]
%42 = 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 %41, i32 1)
%43 = fpext float %39 to double
%44 = 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 %43, i32 0)
%45 = fpext float %38 to double
%46 = fpext float %40 to double
br i1 %22, label %49, label %47
47: ; preds = %37
%48 = 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 %45, double %46)
br label %51
49: ; preds = %37
%50 = 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 %45, double %46)
br label %51
51: ; preds = %49, %47
ret void
}