void adjbioR3_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 = 1.0 / x0;
  int pairity;
  float Norm;
  int dim;
  dim = (xlength > 1) + (ylength > 1) + (zlength > 1);
  Norm = 1.0;
  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;
  }
  boundarymultiply(invector, xlength, ylength, zlength, 2.0);
  ;
  pairity = 0;
  bio_3d_premult(invector, xlength, ylength, zlength, X0, pairity);
  boundarymultiply(invector, xlength, ylength, zlength, 0.5);
  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):
<adjbioR3_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  0xe7f(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x4c(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe63(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%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)
movss  0xe19(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x28(%rbp)
jle    1214 <adjbioR3_3d+0xd4>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe01(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x30(%rbp)
jle    123c <adjbioR3_3d+0xfc>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd9(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x1,0x38(%rbp)
jle    1264 <adjbioR3_3d+0x124>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdb1(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
cmpl   $0x0,-0x60(%rbp)
jne    1295 <adjbioR3_3d+0x155>
movss  0xd8a(%rip),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  0xd7d(%rip),%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xd70(%rip),%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x38(%rbp),%ecx
movsd  0xd6e(%rip),%xmm0
mov    $0x1,%al
call   1030 <boundarymultiply@plt>
movl   $0x0,-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   1060 <bio_3d_premult@plt>
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
mov    0x30(%rbp),%edx
mov    0x38(%rbp),%ecx
movsd  0xd22(%rip),%xmm0
mov    $0x1,%al
call   1030 <boundarymultiply@plt>
cmpl   $0x0,0x40(%rbp)
je     1368 <adjbioR3_3d+0x228>
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   1040 <bioD1__3d@plt>
jmp    1393 <adjbioR3_3d+0x253>
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   1050 <bioD1_3dskip@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<adjbioR3_3d>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r9,0x38(%rsp)
mov    %r8,0x30(%rsp)
mov    %rcx,0x28(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,%r13
mov    0xa8(%rsp),%ebx
mov    0xa0(%rsp),%r15d
mov    0x98(%rsp),%r14d
xor    %eax,%eax
cmp    $0x2,%r14d
setge  %al
xor    %ecx,%ecx
cmp    $0x2,%r15d
setge  %cl
add    %eax,%ecx
xor    %eax,%eax
cmp    $0x2,%ebx
setge  %al
neg    %eax
movsd  0xe59(%rip),%xmm2
movsd  0xe59(%rip),%xmm0
movaps %xmm2,%xmm1
cmp    %eax,%ecx
je     11b9 <adjbioR3_3d+0x79>
movaps %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xe49(%rip),%xmm1
je     11cc <adjbioR3_3d+0x8c>
movaps %xmm1,%xmm2
movsd  %xmm2,0x40(%rsp)
mov    0x90(%rsp),%r12
mov    0x88(%rsp),%rbp
mov    0x80(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
mov    $0x1,%al
call   1030 <boundarymultiply@plt>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
movsd  0x40(%rsp),%xmm0
xor    %r8d,%r8d
mov    $0x1,%al
call   1060 <bio_3d_premult@plt>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
movsd  0xde1(%rip),%xmm0
mov    $0x1,%al
call   1030 <boundarymultiply@plt>
cmpl   $0x0,0xb0(%rsp)
je     128c <adjbioR3_3d+0x14c>
movsd  0xdb8(%rip),%xmm1
mov    %r13,%rdi
mov    0x18(%rsp),%rsi
mov    0x20(%rsp),%rdx
mov    0x28(%rsp),%rcx
mov    0x30(%rsp),%r8
mov    0x38(%rsp),%r9
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
push   %rbx
push   %r15
push   %r14
push   %r12
push   %rbp
push   0x38(%rsp)
call   1040 <bioD1__3d@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movsd  0xd6c(%rip),%xmm1
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r14d,%edx
mov    %r15d,%ecx
mov    %ebx,%r8d
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <bioD1_3dskip@plt>

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

LLVM IR (-O2):
define void @adjbioR3_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 = sext i1 %19 to i32
%21 = icmp eq i32 %18, %20
%22 = select i1 %21, double 1.000000e+00, double 2.000000e+00
%23 = select i1 %21, double 1.000000e+00, double 5.000000e-01
%24 = tail call i32 (float*, i32, i32, i32, double, ...) bitcast (i32 (...)* @boundarymultiply to i32 (float*, i32, i32, i32, double, ...)*)(float* %0, i32 %9, i32 %10, i32 %11, double 2.000000e+00)
%25 = 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 %23, i32 0)
%26 = tail call i32 (float*, i32, i32, i32, double, ...) bitcast (i32 (...)* @boundarymultiply to i32 (float*, i32, i32, i32, double, ...)*)(float* %0, i32 %9, i32 %10, i32 %11, double 5.000000e-01)
%27 = icmp eq i32 %12, 0
br i1 %27, label %30, label %28
28: ; preds = %13
%29 = 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 %22, double 1.000000e+00)
br label %32
30: ; preds = %13
%31 = 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 %22, double 1.000000e+00)
br label %32
32: ; preds = %30, %28
ret void
}