#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double pow(double, int);
double rec_Tmss(double xe, double Tr, double H, double fHe, double nH,
                double energy_rate) {
  double chi_heat;
  if (xe < 1.) {
    chi_heat = 0.996857 * (1. - pow(1. - pow(xe, 0.300134), 1.51035));
    if (chi_heat > 1.)
      chi_heat = 1.;
  } else
    chi_heat = 1.;
  return Tr / (1. + H / 4.91466895548409e-22 / Tr / Tr / Tr / Tr *
                        (1. + xe + fHe) / xe) +
         2. / 3. / 8.617343e-5 * chi_heat / nH * energy_rate /
             (4.91466895548409e-22 * pow(Tr, 4) * xe);
}


x86 assembly (clang, -O0):
<rec_Tmss>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  0xec2(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    11b4 <rec_Tmss+0xa4>
movsd  -0x8(%rbp),%xmm0
xor    %edi,%edi
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xea0(%rip),%xmm0
subsd  %xmm1,%xmm0
mov    $0x1,%edi
call   1030 <pow@plt>
movsd  0xe8a(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  0xe86(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xe68(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11af <rec_Tmss+0x9f>
movsd  0xe56(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11c1 <rec_Tmss+0xb1>
movsd  0xe44(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xe3d(%rip),%xmm1
divsd  %xmm1,%xmm2
divsd  -0x10(%rbp),%xmm2
divsd  -0x10(%rbp),%xmm2
divsd  -0x10(%rbp),%xmm2
divsd  -0x10(%rbp),%xmm2
movsd  0xe0d(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm2
divsd  -0x8(%rbp),%xmm2
movsd  0xdf2(%rip),%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xdf5(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
movsd  -0x48(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x40(%rbp),%xmm0
movsd  0xdb5(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  -0x8(%rbp),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rec_Tmss>:
sub    $0x38,%rsp
movapd %xmm3,%xmm8
movsd  0xedf(%rip),%xmm3
ucomisd %xmm0,%xmm3
movapd %xmm3,%xmm6
movsd  %xmm0,0x18(%rsp)
jbe    11ca <rec_Tmss+0xba>
movsd  0x18(%rsp),%xmm0
xor    %edi,%edi
movsd  %xmm5,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm4,0x30(%rsp)
movsd  %xmm2,0x28(%rsp)
movsd  %xmm8,0x20(%rsp)
call   1030 <pow@plt>
movsd  0xe97(%rip),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mov    $0x1,%edi
call   1030 <pow@plt>
movsd  0xe7d(%rip),%xmm7
movsd  0x20(%rsp),%xmm8
movsd  0x28(%rsp),%xmm2
movsd  0xe68(%rip),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm5
movapd %xmm7,%xmm6
subsd  %xmm0,%xmm6
movsd  0x18(%rsp),%xmm0
mulsd  0xe48(%rip),%xmm6
ucomisd %xmm7,%xmm6
jbe    11ca <rec_Tmss+0xba>
movapd %xmm7,%xmm6
divsd  0xe3e(%rip),%xmm2
divsd  %xmm1,%xmm2
divsd  %xmm1,%xmm2
divsd  %xmm1,%xmm2
divsd  %xmm1,%xmm2
movapd %xmm0,%xmm7
addsd  %xmm3,%xmm0
addsd  %xmm8,%xmm0
mulsd  %xmm2,%xmm0
divsd  %xmm7,%xmm0
addsd  %xmm3,%xmm0
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
mulsd  0xe07(%rip),%xmm6
divsd  %xmm4,%xmm6
mulsd  %xmm5,%xmm6
movsd  %xmm6,0x8(%rsp)
movapd %xmm1,%xmm0
mov    $0x4,%edi
call   1030 <pow@plt>
mulsd  0xddb(%rip),%xmm0
mulsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
addsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @rec_Tmss(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
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
%14 = load double, double* %7
%15 = fcmp olt double %14, 1.000000e+00
br i1 %15, label %16, label %27
16: ; preds = %6
%17 = load double, double* %7
%18 = call double @pow(double %17, i32 0)
%19 = fsub double 1.000000e+00, %18
%20 = call double @pow(double %19, i32 1)
%21 = fsub double 1.000000e+00, %20
%22 = fmul double 0x3FEFE640A6B93CCD, %21
store double %22, double* %13
%23 = load double, double* %13
%24 = fcmp ogt double %23, 1.000000e+00
br i1 %24, label %25, label %26
25: ; preds = %16
store double 1.000000e+00, double* %13
br label %26
26: ; preds = %25, %16
br label %28
27: ; preds = %6
store double 1.000000e+00, double* %13
br label %28
28: ; preds = %27, %26
%29 = load double, double* %8
%30 = load double, double* %9
%31 = fdiv double %30, 0x3B82912D18912EF2
%32 = load double, double* %8
%33 = fdiv double %31, %32
%34 = load double, double* %8
%35 = fdiv double %33, %34
%36 = load double, double* %8
%37 = fdiv double %35, %36
%38 = load double, double* %8
%39 = fdiv double %37, %38
%40 = load double, double* %7
%41 = fadd double 1.000000e+00, %40
%42 = load double, double* %10
%43 = fadd double %41, %42
%44 = fmul double %39, %43
%45 = load double, double* %7
%46 = fdiv double %44, %45
%47 = fadd double 1.000000e+00, %46
%48 = fdiv double %29, %47
%49 = load double, double* %13
%50 = fmul double 0x40BE38563023F6AA, %49
%51 = load double, double* %11
%52 = fdiv double %50, %51
%53 = load double, double* %12
%54 = fmul double %52, %53
%55 = load double, double* %8
%56 = call double @pow(double %55, i32 4)
%57 = fmul double 0x3B82912D18912EF2, %56
%58 = load double, double* %7
%59 = fmul double %57, %58
%60 = fdiv double %54, %59
%61 = fadd double %48, %60
ret double %61
}

LLVM IR (-O2):
define double @rec_Tmss(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fcmp olt double %0, 1.000000e+00
br i1 %7, label %8, label %16
8: ; preds = %6
%9 = tail call double @pow(double %0, i32 0)
%10 = fsub double 1.000000e+00, %9
%11 = tail call double @pow(double %10, i32 1)
%12 = fsub double 1.000000e+00, %11
%13 = fmul double %12, 0x3FEFE640A6B93CCD
%14 = fcmp ogt double %13, 1.000000e+00
br i1 %14, label %15, label %16
15: ; preds = %8
br label %16
16: ; preds = %6, %8, %15
%17 = phi double [ 1.000000e+00, %15 ], [ %13, %8 ], [ 1.000000e+00, %6 ]
%18 = fdiv double %2, 0x3B82912D18912EF2
%19 = fdiv double %18, %1
%20 = fdiv double %19, %1
%21 = fdiv double %20, %1
%22 = fdiv double %21, %1
%23 = fadd double %0, 1.000000e+00
%24 = fadd double %23, %3
%25 = fmul double %24, %22
%26 = fdiv double %25, %0
%27 = fadd double %26, 1.000000e+00
%28 = fdiv double %1, %27
%29 = fmul double %17, 0x40BE38563023F6AA
%30 = fdiv double %29, %4
%31 = fmul double %30, %5
%32 = tail call double @pow(double %1, i32 4)
%33 = fmul double %32, 0x3B82912D18912EF2
%34 = fmul double %33, %0
%35 = fdiv double %31, %34
%36 = fadd double %28, %35
ret double %36
}