#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 fabs(double);
double Psi_reg_prime(double x, double c) {
  if (fabs(x) > c)
    return (0.0);
  else
    return ((1.0 - (x / c) * (x / c)) * (1.0 - 5.0 * x * x / c / c) / c);
}


x86 assembly (clang, -O0):
<Psi_reg_prime>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xee6(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1136 <Psi_reg_prime+0x36>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11a7 <Psi_reg_prime+0xa7>
movsd  -0x10(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
divsd  -0x18(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xea3(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xe9f(%rip),%xmm2
mulsd  -0x10(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
divsd  -0x18(%rbp),%xmm2
divsd  -0x18(%rbp),%xmm2
movsd  0xe7b(%rip),%xmm1
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Psi_reg_prime>:
movapd %xmm0,%xmm2
movapd 0xef4(%rip),%xmm3
andpd  %xmm0,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm1,%xmm3
ja     1156 <Psi_reg_prime+0x56>
movapd %xmm2,%xmm3
divsd  %xmm1,%xmm3
mulsd  %xmm3,%xmm3
movsd  0xee2(%rip),%xmm0
movsd  0xee2(%rip),%xmm4
mulsd  %xmm2,%xmm4
mulsd  %xmm2,%xmm4
divsd  %xmm1,%xmm4
divsd  %xmm1,%xmm4
addsd  %xmm0,%xmm4
subsd  %xmm3,%xmm0
mulsd  %xmm4,%xmm0
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @Psi_reg_prime(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %4
store double %1, double* %5
%6 = load double, double* %4
%7 = call double @llvm.fabs.f64(double %6)
%8 = load double, double* %5
%9 = fcmp ogt double %7, %8
br i1 %9, label %10, label %11
10: ; preds = %2
store double 0.000000e+00, double* %3
br label %32
11: ; preds = %2
%12 = load double, double* %4
%13 = load double, double* %5
%14 = fdiv double %12, %13
%15 = load double, double* %4
%16 = load double, double* %5
%17 = fdiv double %15, %16
%18 = fneg double %14
%19 = call double @llvm.fmuladd.f64(double %18, double %17, double 1.000000e+00)
%20 = load double, double* %4
%21 = fmul double 5.000000e+00, %20
%22 = load double, double* %4
%23 = fmul double %21, %22
%24 = load double, double* %5
%25 = fdiv double %23, %24
%26 = load double, double* %5
%27 = fdiv double %25, %26
%28 = fsub double 1.000000e+00, %27
%29 = fmul double %19, %28
%30 = load double, double* %5
%31 = fdiv double %29, %30
store double %31, double* %3
br label %32
32: ; preds = %11, %10
%33 = load double, double* %3
ret double %33
}

LLVM IR (-O2):
define double @Psi_reg_prime(double %0, double %1) {
%3 = tail call double @llvm.fabs.f64(double %0)
%4 = fcmp ogt double %3, %1
br i1 %4, label %16, label %5
5: ; preds = %2
%6 = fdiv double %0, %1
%7 = fneg double %6
%8 = tail call double @llvm.fmuladd.f64(double %7, double %6, double 1.000000e+00)
%9 = fmul double %0, 5.000000e+00
%10 = fmul double %9, %0
%11 = fdiv double %10, %1
%12 = fdiv double %11, %1
%13 = fsub double 1.000000e+00, %12
%14 = fmul double %8, %13
%15 = fdiv double %14, %1
br label %16
16: ; preds = %2, %5
%17 = phi double [ %15, %5 ], [ 0.000000e+00, %2 ]
ret double %17
}