void(libclut_model_cieluv_to_ciexyz)(double L, double u, double v, double Xn,
                                     double Yn, double Zn, double *X, double *Y,
                                     double *Z) {
  do {
    double x__ = (Xn), y__ = (Yn), l__ = (L), l13__ = l__ * 13;
    double t__ = x__ + 15 * y__ + 3 * (Zn);
    double u__ = 4 * x__ / t__;
    double v__ = 9 * y__ / t__;
    u__ = (u) / l13__ + u__;
    v__ = (v) / l13__ + v__;
    if (l__ <= (double)8) {
      y__ *= l__ * 27 / 24389;
    } else {
      l__ += 16, l__ /= 116;
      y__ *= l__ *= l__ * l__;
    }
    *(Y) = y__;
    *(X) = y__ * 9 * u__ / (4 * v__);
    *(Z) = y__ * (12 - 3 * u__ - 20 * v__) / (4 * v__);
  } while (0);
}


x86 assembly (clang, -O0):
<libclut_model_cieluv_to_ciexyz>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
mov    %rdx,-0x48(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xed4(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
movsd  0xeb0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xe93(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xe76(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xe57(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x10(%rbp),%xmm0
divsd  -0x68(%rbp),%xmm0
addsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x18(%rbp),%xmm0
divsd  -0x68(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xe10(%rip),%xmm0
ucomisd -0x60(%rbp),%xmm0
jb     1223 <libclut_model_cieluv_to_ciexyz+0x123>
movsd  0xe45(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  0xe30(%rip),%xmm1
divsd  %xmm1,%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    1269 <libclut_model_cieluv_to_ciexyz+0x169>
movsd  0xe0d(%rip),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0xdee(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  0xd8a(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  0xd80(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  0xda5(%rip),%xmm1
mulsd  %xmm1,%xmm2
movsd  0xda1(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0x80(%rbp),%xmm1
movsd  0xd80(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd2c(%rip),%xmm1
mulsd  -0x80(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<libclut_model_cieluv_to_ciexyz>:
movsd  0xef8(%rip),%xmm6
mulsd  %xmm0,%xmm6
movsd  0xef4(%rip),%xmm7
mulsd  %xmm4,%xmm7
addsd  %xmm3,%xmm7
mulsd  0xeec(%rip),%xmm5
mulsd  0xeec(%rip),%xmm3
addsd  %xmm7,%xmm5
divsd  %xmm5,%xmm3
movsd  0xee4(%rip),%xmm7
mulsd  %xmm4,%xmm7
divsd  %xmm5,%xmm7
divsd  %xmm6,%xmm1
addsd  %xmm3,%xmm1
divsd  %xmm6,%xmm2
addsd  %xmm7,%xmm2
movsd  0xecc(%rip),%xmm3
ucomisd %xmm0,%xmm3
jae    1180 <libclut_model_cieluv_to_ciexyz+0x80>
addsd  0xed6(%rip),%xmm0
divsd  0xed6(%rip),%xmm0
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm3,%xmm0
jmp    1190 <libclut_model_cieluv_to_ciexyz+0x90>
mulsd  0xea8(%rip),%xmm0
divsd  0xea8(%rip),%xmm0
mulsd  %xmm4,%xmm0
movsd  %xmm0,(%rsi)
movsd  0xe80(%rip),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
movsd  0xe68(%rip),%xmm4
mulsd  %xmm2,%xmm4
divsd  %xmm4,%xmm3
movsd  %xmm3,(%rdi)
mulsd  0xe8c(%rip),%xmm1
addsd  0xe8c(%rip),%xmm1
mulsd  0xe8c(%rip),%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
divsd  %xmm4,%xmm2
movsd  %xmm2,(%rdx)
ret

LLVM IR (-O0):
define void @libclut_model_cieluv_to_ciexyz(double %0, double %1, double %2, double %3, double %4, double %5, double* %6, double* %7, double* %8) {
%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*
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double* %6, double** %16
store double* %7, double** %17
store double* %8, double** %18
br label %26
26: ; preds = %9
%27 = load double, double* %13
store double %27, double* %19
%28 = load double, double* %14
store double %28, double* %20
%29 = load double, double* %10
store double %29, double* %21
%30 = load double, double* %21
%31 = fmul double %30, 1.300000e+01
store double %31, double* %22
%32 = load double, double* %19
%33 = load double, double* %20
%34 = call double @llvm.fmuladd.f64(double 1.500000e+01, double %33, double %32)
%35 = load double, double* %15
%36 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %35, double %34)
store double %36, double* %23
%37 = load double, double* %19
%38 = fmul double 4.000000e+00, %37
%39 = load double, double* %23
%40 = fdiv double %38, %39
store double %40, double* %24
%41 = load double, double* %20
%42 = fmul double 9.000000e+00, %41
%43 = load double, double* %23
%44 = fdiv double %42, %43
store double %44, double* %25
%45 = load double, double* %11
%46 = load double, double* %22
%47 = fdiv double %45, %46
%48 = load double, double* %24
%49 = fadd double %47, %48
store double %49, double* %24
%50 = load double, double* %12
%51 = load double, double* %22
%52 = fdiv double %50, %51
%53 = load double, double* %25
%54 = fadd double %52, %53
store double %54, double* %25
%55 = load double, double* %21
%56 = fcmp ole double %55, 8.000000e+00
br i1 %56, label %57, label %63
57: ; preds = %26
%58 = load double, double* %21
%59 = fmul double %58, 2.700000e+01
%60 = fdiv double %59, 2.438900e+04
%61 = load double, double* %20
%62 = fmul double %61, %60
store double %62, double* %20
br label %75
63: ; preds = %26
%64 = load double, double* %21
%65 = fadd double %64, 1.600000e+01
store double %65, double* %21
%66 = load double, double* %21
%67 = fdiv double %66, 1.160000e+02
store double %67, double* %21
%68 = load double, double* %21
%69 = load double, double* %21
%70 = fmul double %68, %69
%71 = load double, double* %21
%72 = fmul double %71, %70
store double %72, double* %21
%73 = load double, double* %20
%74 = fmul double %73, %72
store double %74, double* %20
br label %75
75: ; preds = %63, %57
%76 = load double, double* %20
%77 = load double*, double** %17
store double %76, double* %77
%78 = load double, double* %20
%79 = fmul double %78, 9.000000e+00
%80 = load double, double* %24
%81 = fmul double %79, %80
%82 = load double, double* %25
%83 = fmul double 4.000000e+00, %82
%84 = fdiv double %81, %83
%85 = load double*, double** %16
store double %84, double* %85
%86 = load double, double* %20
%87 = load double, double* %24
%88 = call double @llvm.fmuladd.f64(double -3.000000e+00, double %87, double 1.200000e+01)
%89 = load double, double* %25
%90 = call double @llvm.fmuladd.f64(double -2.000000e+01, double %89, double %88)
%91 = fmul double %86, %90
%92 = load double, double* %25
%93 = fmul double 4.000000e+00, %92
%94 = fdiv double %91, %93
%95 = load double*, double** %18
store double %94, double* %95
br label %96
96: ; preds = %75
ret void
}

LLVM IR (-O2):
define void @libclut_model_cieluv_to_ciexyz(double %0, double %1, double %2, double %3, double %4, double %5, double* nocapture writeonly %6, double* nocapture writeonly %7, double* nocapture writeonly %8) {
%10 = fmul double %0, 1.300000e+01
%11 = tail call double @llvm.fmuladd.f64(double %4, double 1.500000e+01, double %3)
%12 = tail call double @llvm.fmuladd.f64(double %5, double 3.000000e+00, double %11)
%13 = fmul double %3, 4.000000e+00
%14 = fdiv double %13, %12
%15 = fmul double %4, 9.000000e+00
%16 = fdiv double %15, %12
%17 = fdiv double %1, %10
%18 = fadd double %17, %14
%19 = fdiv double %2, %10
%20 = fadd double %19, %16
%21 = fcmp ugt double %0, 8.000000e+00
br i1 %21, label %25, label %22
22: ; preds = %9
%23 = fmul double %0, 2.700000e+01
%24 = fdiv double %23, 2.438900e+04
br label %30
25: ; preds = %9
%26 = fadd double %0, 1.600000e+01
%27 = fdiv double %26, 1.160000e+02
%28 = fmul double %27, %27
%29 = fmul double %27, %28
br label %30
30: ; preds = %25, %22
%31 = phi double [ %24, %22 ], [ %29, %25 ]
%32 = fmul double %31, %4
store double %32, double* %7
%33 = fmul double %32, 9.000000e+00
%34 = fmul double %18, %33
%35 = fmul double %20, 4.000000e+00
%36 = fdiv double %34, %35
store double %36, double* %6
%37 = tail call double @llvm.fmuladd.f64(double %18, double -3.000000e+00, double 1.200000e+01)
%38 = tail call double @llvm.fmuladd.f64(double %20, double -2.000000e+01, double %37)
%39 = fmul double %38, %32
%40 = fdiv double %39, %35
store double %40, double* %8
ret void
}