#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 sqrt(double);
double _orbita_models_pseudo_isothermal_rho(const void *par,
                                            const double *pos) {
  double Vc_sq = *((double *)par), Rc_sq = *((double *)par + 1);
  double R_sq =
             ((pos)[0] * (pos)[0] + (pos)[1] * (pos)[1] + (pos)[2] * (pos)[2]),
         R = sqrt(R_sq);
  return (Vc_sq /
          (4. * (3.14159265358979323846264338327950288419716939937510))) *
         ((3. * Rc_sq + R_sq) / ((Rc_sq + R_sq) * (Rc_sq + R_sq)));
}


x86 assembly (clang, -O0):
<_orbita_models_pseudo_isothermal_rho>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xe68(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  0xe4a(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  -0x20(%rbp),%xmm2
addsd  -0x28(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
addsd  -0x28(%rbp),%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_orbita_models_pseudo_isothermal_rho>:
movsd  0x8(%rdi),%xmm0
movsd  (%rsi),%xmm1
movsd  0x8(%rsi),%xmm2
mulsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0x10(%rsi),%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0xed1(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
addsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm2
movsd  (%rdi),%xmm3
unpcklpd %xmm1,%xmm3
movapd 0xec1(%rip),%xmm0
unpcklpd %xmm2,%xmm0
divpd  %xmm0,%xmm3
movapd %xmm3,%xmm0
unpckhpd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
ret

LLVM IR (-O0):
define double @_orbita_models_pseudo_isothermal_rho(i8* %0, double* %1) {
%3 = alloca i8*
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i8* %0, i8** %3
store double* %1, double** %4
%9 = load i8*, i8** %3
%10 = bitcast i8* %9 to double*
%11 = load double, double* %10
store double %11, double* %5
%12 = load i8*, i8** %3
%13 = bitcast i8* %12 to double*
%14 = getelementptr inbounds double, double* %13, i64 1
%15 = load double, double* %14
store double %15, double* %6
%16 = load double*, double** %4
%17 = getelementptr inbounds double, double* %16, i64 0
%18 = load double, double* %17
%19 = load double*, double** %4
%20 = getelementptr inbounds double, double* %19, i64 0
%21 = load double, double* %20
%22 = load double*, double** %4
%23 = getelementptr inbounds double, double* %22, i64 1
%24 = load double, double* %23
%25 = load double*, double** %4
%26 = getelementptr inbounds double, double* %25, i64 1
%27 = load double, double* %26
%28 = fmul double %24, %27
%29 = call double @llvm.fmuladd.f64(double %18, double %21, double %28)
%30 = load double*, double** %4
%31 = getelementptr inbounds double, double* %30, i64 2
%32 = load double, double* %31
%33 = load double*, double** %4
%34 = getelementptr inbounds double, double* %33, i64 2
%35 = load double, double* %34
%36 = call double @llvm.fmuladd.f64(double %32, double %35, double %29)
store double %36, double* %7
%37 = load double, double* %7
%38 = call double @sqrt(double %37)
store double %38, double* %8
%39 = load double, double* %5
%40 = fdiv double %39, 0x402921FB54442D18
%41 = load double, double* %6
%42 = load double, double* %7
%43 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %41, double %42)
%44 = load double, double* %6
%45 = load double, double* %7
%46 = fadd double %44, %45
%47 = load double, double* %6
%48 = load double, double* %7
%49 = fadd double %47, %48
%50 = fmul double %46, %49
%51 = fdiv double %43, %50
%52 = fmul double %40, %51
ret double %52
}

LLVM IR (-O2):
define double @_orbita_models_pseudo_isothermal_rho(i8* nocapture %0, double* nocapture %1) {
%3 = bitcast i8* %0 to double*
%4 = load double, double* %3
%5 = getelementptr inbounds i8, i8* %0, i64 8
%6 = bitcast i8* %5 to double*
%7 = load double, double* %6
%8 = load double, double* %1
%9 = getelementptr inbounds double, double* %1, i64 1
%10 = load double, double* %9
%11 = fmul double %10, %10
%12 = tail call double @llvm.fmuladd.f64(double %8, double %8, double %11)
%13 = getelementptr inbounds double, double* %1, i64 2
%14 = load double, double* %13
%15 = tail call double @llvm.fmuladd.f64(double %14, double %14, double %12)
%16 = tail call double @llvm.fmuladd.f64(double %7, double 3.000000e+00, double %15)
%17 = fadd double %7, %15
%18 = fmul double %17, %17
%19 = insertelement <2 x double> poison, double %4, i64 0
%20 = insertelement <2 x double> %19, double %16, i64 1
%21 = insertelement <2 x double> <double 0x402921FB54442D18, double poison>, double %18, i64 1
%22 = fdiv <2 x double> %20, %21
%23 = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%24 = fmul <2 x double> %22, %23
%25 = extractelement <2 x double> %24, i64 0
ret double %25
}