void(libclut_model_cielab_to_ciexyz)(double L, double a, double b, double *X,
                                     double *Y, double *Z) {
  do {
    double L__ = (L), a__ = (a), b__ = (b);
    double *X__ = (X), *Y__ = (Y), *Z__ = (Z);
    *Y__ = (L__ + 16) / 116;
    *X__ = a__ / 500 + *Y__;
    *Z__ = *Y__ - b__ / 200;
    *X__ = (((*X__) * (*X__) * (*X__) > 0.00885642)
                ? ((*X__) * (*X__) * (*X__))
                : (((*X__) - 0.1379310) / (7.78 + 703.0 / 99900))) *
           0.95047;
    *Y__ = (((*Y__) * (*Y__) * (*Y__) > 0.00885642)
                ? ((*Y__) * (*Y__) * (*Y__))
                : (((*Y__) - 0.1379310) / (7.78 + 703.0 / 99900))) *
           1.08883;
    *Z__ = (((*Z__) * (*Z__) * (*Z__) > 0.00885642)
                ? ((*Z__) * (*Z__) * (*Z__))
                : (((*Z__) - 0.1379310) / (7.78 + 703.0 / 99900)));
  } while (0);
}


x86 assembly (clang, -O0):
<libclut_model_cielab_to_ciexyz>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x60(%rbp)
movsd  0xec3(%rip),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  0xeae(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
movsd  0xe8d(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
addsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xe5c(%rip),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    -0x60(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  0xe24(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1208 <libclut_model_cielab_to_ciexyz+0x108>
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x50(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    122d <libclut_model_cielab_to_ciexyz+0x12d>
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xe18(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe04(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xdfe(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x58(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x58(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  0xd9a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1292 <libclut_model_cielab_to_ciexyz+0x192>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x58(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x58(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    12b7 <libclut_model_cielab_to_ciexyz+0x1b7>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xd8e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xd7a(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  0xd7c(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x58(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x60(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x60(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  0xd10(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    131c <libclut_model_cielab_to_ciexyz+0x21c>
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x60(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x60(%rbp),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    1341 <libclut_model_cielab_to_ciexyz+0x241>
mov    -0x60(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xd04(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xcf0(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<libclut_model_cielab_to_ciexyz>:
addsd  0xef8(%rip),%xmm0
divsd  0xef8(%rip),%xmm0
movsd  %xmm0,(%rsi)
divsd  0xef4(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rdi)
divsd  0xeec(%rip),%xmm2
addsd  (%rsi),%xmm2
movsd  %xmm2,(%rdx)
movsd  (%rdi),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
ucomisd 0xed4(%rip),%xmm1
ja     1162 <libclut_model_cielab_to_ciexyz+0x62>
addsd  0xed2(%rip),%xmm0
divsd  0xed2(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xece(%rip),%xmm1
movsd  %xmm1,(%rdi)
movsd  (%rsi),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
ucomisd 0xe9a(%rip),%xmm1
ja     119c <libclut_model_cielab_to_ciexyz+0x9c>
addsd  0xe98(%rip),%xmm0
divsd  0xe98(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  0xe9c(%rip),%xmm1
movsd  %xmm1,(%rsi)
movsd  (%rdx),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
ucomisd 0xe60(%rip),%xmm1
ja     11d6 <libclut_model_cielab_to_ciexyz+0xd6>
addsd  0xe5e(%rip),%xmm0
divsd  0xe5e(%rip),%xmm0
movapd %xmm0,%xmm1
movsd  %xmm1,(%rdx)
ret

LLVM IR (-O0):
define void @libclut_model_cielab_to_ciexyz(double %0, double %1, double %2, double* %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
br label %19
19: ; preds = %6
%20 = load double, double* %7
store double %20, double* %13
%21 = load double, double* %8
store double %21, double* %14
%22 = load double, double* %9
store double %22, double* %15
%23 = load double*, double** %10
store double* %23, double** %16
%24 = load double*, double** %11
store double* %24, double** %17
%25 = load double*, double** %12
store double* %25, double** %18
%26 = load double, double* %13
%27 = fadd double %26, 1.600000e+01
%28 = fdiv double %27, 1.160000e+02
%29 = load double*, double** %17
store double %28, double* %29
%30 = load double, double* %14
%31 = fdiv double %30, 5.000000e+02
%32 = load double*, double** %17
%33 = load double, double* %32
%34 = fadd double %31, %33
%35 = load double*, double** %16
store double %34, double* %35
%36 = load double*, double** %17
%37 = load double, double* %36
%38 = load double, double* %15
%39 = fdiv double %38, 2.000000e+02
%40 = fsub double %37, %39
%41 = load double*, double** %18
store double %40, double* %41
%42 = load double*, double** %16
%43 = load double, double* %42
%44 = load double*, double** %16
%45 = load double, double* %44
%46 = fmul double %43, %45
%47 = load double*, double** %16
%48 = load double, double* %47
%49 = fmul double %46, %48
%50 = fcmp ogt double %49, 8.856420e-03
br i1 %50, label %51, label %60
51: ; preds = %19
%52 = load double*, double** %16
%53 = load double, double* %52
%54 = load double*, double** %16
%55 = load double, double* %54
%56 = fmul double %53, %55
%57 = load double*, double** %16
%58 = load double, double* %57
%59 = fmul double %56, %58
br label %65
60: ; preds = %19
%61 = load double*, double** %16
%62 = load double, double* %61
%63 = fsub double %62, 1.379310e-01
%64 = fdiv double %63, 0x401F25ED097B425F
br label %65
65: ; preds = %60, %51
%66 = phi double [ %59, %51 ], [ %64, %60 ]
%67 = fmul double %66, 9.504700e-01
%68 = load double*, double** %16
store double %67, double* %68
%69 = load double*, double** %17
%70 = load double, double* %69
%71 = load double*, double** %17
%72 = load double, double* %71
%73 = fmul double %70, %72
%74 = load double*, double** %17
%75 = load double, double* %74
%76 = fmul double %73, %75
%77 = fcmp ogt double %76, 8.856420e-03
br i1 %77, label %78, label %87
78: ; preds = %65
%79 = load double*, double** %17
%80 = load double, double* %79
%81 = load double*, double** %17
%82 = load double, double* %81
%83 = fmul double %80, %82
%84 = load double*, double** %17
%85 = load double, double* %84
%86 = fmul double %83, %85
br label %92
87: ; preds = %65
%88 = load double*, double** %17
%89 = load double, double* %88
%90 = fsub double %89, 1.379310e-01
%91 = fdiv double %90, 0x401F25ED097B425F
br label %92
92: ; preds = %87, %78
%93 = phi double [ %86, %78 ], [ %91, %87 ]
%94 = fmul double %93, 1.088830e+00
%95 = load double*, double** %17
store double %94, double* %95
%96 = load double*, double** %18
%97 = load double, double* %96
%98 = load double*, double** %18
%99 = load double, double* %98
%100 = fmul double %97, %99
%101 = load double*, double** %18
%102 = load double, double* %101
%103 = fmul double %100, %102
%104 = fcmp ogt double %103, 8.856420e-03
br i1 %104, label %105, label %114
105: ; preds = %92
%106 = load double*, double** %18
%107 = load double, double* %106
%108 = load double*, double** %18
%109 = load double, double* %108
%110 = fmul double %107, %109
%111 = load double*, double** %18
%112 = load double, double* %111
%113 = fmul double %110, %112
br label %119
114: ; preds = %92
%115 = load double*, double** %18
%116 = load double, double* %115
%117 = fsub double %116, 1.379310e-01
%118 = fdiv double %117, 0x401F25ED097B425F
br label %119
119: ; preds = %114, %105
%120 = phi double [ %113, %105 ], [ %118, %114 ]
%121 = load double*, double** %18
store double %120, double* %121
br label %122
122: ; preds = %119
ret void
}

LLVM IR (-O2):
define void @libclut_model_cielab_to_ciexyz(double %0, double %1, double %2, double* nocapture %3, double* nocapture %4, double* nocapture %5) {
%7 = fadd double %0, 1.600000e+01
%8 = fdiv double %7, 1.160000e+02
store double %8, double* %4
%9 = fdiv double %1, 5.000000e+02
%10 = fadd double %9, %8
store double %10, double* %3
%11 = load double, double* %4
%12 = fdiv double %2, 2.000000e+02
%13 = fsub double %11, %12
store double %13, double* %5
%14 = load double, double* %3
%15 = fmul double %14, %14
%16 = fmul double %14, %15
%17 = fcmp ogt double %16, 8.856420e-03
br i1 %17, label %21, label %18
18: ; preds = %6
%19 = fadd double %14, -1.379310e-01
%20 = fdiv double %19, 0x401F25ED097B425F
br label %21
21: ; preds = %6, %18
%22 = phi double [ %20, %18 ], [ %16, %6 ]
%23 = fmul double %22, 9.504700e-01
store double %23, double* %3
%24 = load double, double* %4
%25 = fmul double %24, %24
%26 = fmul double %24, %25
%27 = fcmp ogt double %26, 8.856420e-03
br i1 %27, label %31, label %28
28: ; preds = %21
%29 = fadd double %24, -1.379310e-01
%30 = fdiv double %29, 0x401F25ED097B425F
br label %31
31: ; preds = %21, %28
%32 = phi double [ %30, %28 ], [ %26, %21 ]
%33 = fmul double %32, 1.088830e+00
store double %33, double* %4
%34 = load double, double* %5
%35 = fmul double %34, %34
%36 = fmul double %34, %35
%37 = fcmp ogt double %36, 8.856420e-03
br i1 %37, label %41, label %38
38: ; preds = %31
%39 = fadd double %34, -1.379310e-01
%40 = fdiv double %39, 0x401F25ED097B425F
br label %41
41: ; preds = %31, %38
%42 = phi double [ %40, %38 ], [ %36, %31 ]
store double %42, double* %5
ret void
}