void Aab_to_rgb(double *r, double *g, double *b, double A, double aa, double bb,
                double nbb) {
  double x = (A / nbb) + 0.305;
  *r = (0.32787 * x) + (0.32145 * aa) + (0.20527 * bb);
  *g = (0.32787 * x) - (0.63507 * aa) - (0.18603 * bb);
  *b = (0.32787 * x) - (0.15681 * aa) - (4.49038 * bb);
}


x86 assembly (clang, -O0):
<Aab_to_rgb>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
movsd  %xmm2,-0x30(%rbp)
movsd  %xmm3,-0x38(%rbp)
movsd  -0x20(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
movsd  0xf02(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
movsd  0xee4(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  0xeaf(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xeba(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm1
movsd  0xe95(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe59(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xe54(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm1
movsd  0xe2f(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe03(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0xde6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Aab_to_rgb>:
divsd  %xmm3,%xmm0
addsd  0xef4(%rip),%xmm0
movsd  0xef4(%rip),%xmm3
mulsd  0xef4(%rip),%xmm0
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
movsd  0xeec(%rip),%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rdi)
movsd  0xee0(%rip),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm0,%xmm3
movsd  0xed8(%rip),%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rsi)
mulsd  0xecc(%rip),%xmm1
addsd  %xmm0,%xmm1
mulsd  0xec8(%rip),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rdx)
ret

LLVM IR (-O0):
define void @Aab_to_rgb(double* %0, double* %1, double* %2, double %3, double %4, double %5, double %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
store double* %0, double** %8
store double* %1, double** %9
store double* %2, double** %10
store double %3, double* %11
store double %4, double* %12
store double %5, double* %13
store double %6, double* %14
%16 = load double, double* %11
%17 = load double, double* %14
%18 = fdiv double %16, %17
%19 = fadd double %18, 3.050000e-01
store double %19, double* %15
%20 = load double, double* %15
%21 = load double, double* %12
%22 = fmul double 3.214500e-01, %21
%23 = call double @llvm.fmuladd.f64(double 3.278700e-01, double %20, double %22)
%24 = load double, double* %13
%25 = call double @llvm.fmuladd.f64(double 2.052700e-01, double %24, double %23)
%26 = load double*, double** %8
store double %25, double* %26
%27 = load double, double* %15
%28 = load double, double* %12
%29 = fmul double 6.350700e-01, %28
%30 = fneg double %29
%31 = call double @llvm.fmuladd.f64(double 3.278700e-01, double %27, double %30)
%32 = load double, double* %13
%33 = call double @llvm.fmuladd.f64(double -1.860300e-01, double %32, double %31)
%34 = load double*, double** %9
store double %33, double* %34
%35 = load double, double* %15
%36 = load double, double* %12
%37 = fmul double 1.568100e-01, %36
%38 = fneg double %37
%39 = call double @llvm.fmuladd.f64(double 3.278700e-01, double %35, double %38)
%40 = load double, double* %13
%41 = call double @llvm.fmuladd.f64(double -4.490380e+00, double %40, double %39)
%42 = load double*, double** %10
store double %41, double* %42
ret void
}

LLVM IR (-O2):
define void @Aab_to_rgb(double* nocapture writeonly %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double %3, double %4, double %5, double %6) {
%8 = fdiv double %3, %6
%9 = fadd double %8, 3.050000e-01
%10 = fmul double %4, 3.214500e-01
%11 = tail call double @llvm.fmuladd.f64(double %9, double 3.278700e-01, double %10)
%12 = tail call double @llvm.fmuladd.f64(double %5, double 2.052700e-01, double %11)
store double %12, double* %0
%13 = fmul double %4, -6.350700e-01
%14 = tail call double @llvm.fmuladd.f64(double %9, double 3.278700e-01, double %13)
%15 = tail call double @llvm.fmuladd.f64(double %5, double -1.860300e-01, double %14)
store double %15, double* %1
%16 = fmul double %4, -1.568100e-01
%17 = tail call double @llvm.fmuladd.f64(double %9, double 3.278700e-01, double %16)
%18 = tail call double @llvm.fmuladd.f64(double %5, double -4.490380e+00, double %17)
store double %18, double* %2
ret void
}