#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 */
int /*<<< orphan*/ ORIENT_ASYMMETRIC(double, double, double, double, double,
                                     double, double, double, double);
double sc_Zq(double const, double const, double const, double, double);
double const sc_volume_fraction(double, double);
double sphere_form(double, double, double, double);
double sqrt(double const);
double Iqxy(double qx, double qy, double dnn, double d_factor, double radius,
            double sld, double solvent_sld, double n, double sym, double theta,
            double phi, double psi) {
  double q, zhat, yhat, xhat;
  ORIENT_ASYMMETRIC(qx, qy, theta, phi, psi, q, xhat, yhat, zhat);
  const double qa = q * xhat;
  const double qb = q * yhat;
  const double qc = q * zhat;
  q = sqrt(qa * qa + qb * qb + qc * qc);
  const double Pq = sphere_form(q, radius, sld, solvent_sld);
  const double Zq = sc_Zq(qa, qb, qc, dnn, d_factor);
  return Zq;
  return sc_volume_fraction(radius, dnn) * Pq * Zq;
}


x86 assembly (clang, -O0):
<Iqxy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
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  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0x18(%rbp),%xmm2
movsd  0x20(%rbp),%xmm3
movsd  0x28(%rbp),%xmm4
movsd  -0x48(%rbp),%xmm5
movsd  -0x60(%rbp),%xmm6
movsd  -0x58(%rbp),%xmm7
movsd  -0x50(%rbp),%xmm8
movsd  %xmm8,(%rsp)
call   1060 <ORIENT_ASYMMETRIC@plt>
movsd  -0x48(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm3
call   1040 <sphere_form@plt>
movsd  %xmm0,-0x80(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm4
call   1030 <sc_Zq@plt>
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Iqxy>:
sub    $0x38,%rsp
movsd  %xmm6,0x28(%rsp)
movsd  %xmm5,0x18(%rsp)
movsd  %xmm4,0x10(%rsp)
movsd  %xmm3,0x30(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  0x48(%rsp),%xmm2
movsd  0x50(%rsp),%xmm3
movsd  0x58(%rsp),%xmm4
call   1060 <ORIENT_ASYMMETRIC@plt>
movsd  0xe7f(%rip),%xmm0
call   1050 <sqrt@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
call   1040 <sphere_form@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
add    $0x38,%rsp
jmp    1030 <sc_Zq@plt>

LLVM IR (-O0):
define double @Iqxy(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%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
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
store double %0, double* %13
store double %1, double* %14
store double %2, double* %15
store double %3, double* %16
store double %4, double* %17
store double %5, double* %18
store double %6, double* %19
store double %7, double* %20
store double %8, double* %21
store double %9, double* %22
store double %10, double* %23
store double %11, double* %24
%34 = load double, double* %13
%35 = load double, double* %14
%36 = load double, double* %22
%37 = load double, double* %23
%38 = load double, double* %24
%39 = load double, double* %25
%40 = load double, double* %28
%41 = load double, double* %27
%42 = load double, double* %26
%43 = call i32 @ORIENT_ASYMMETRIC(double %34, double %35, double %36, double %37, double %38, double %39, double %40, double %41, double %42)
%44 = load double, double* %25
%45 = load double, double* %28
%46 = fmul double %44, %45
store double %46, double* %29
%47 = load double, double* %25
%48 = load double, double* %27
%49 = fmul double %47, %48
store double %49, double* %30
%50 = load double, double* %25
%51 = load double, double* %26
%52 = fmul double %50, %51
store double %52, double* %31
%53 = load double, double* %29
%54 = load double, double* %29
%55 = load double, double* %30
%56 = load double, double* %30
%57 = fmul double %55, %56
%58 = call double @llvm.fmuladd.f64(double %53, double %54, double %57)
%59 = load double, double* %31
%60 = load double, double* %31
%61 = call double @llvm.fmuladd.f64(double %59, double %60, double %58)
%62 = call double @sqrt(double %61)
store double %62, double* %25
%63 = load double, double* %25
%64 = load double, double* %17
%65 = load double, double* %18
%66 = load double, double* %19
%67 = call double @sphere_form(double %63, double %64, double %65, double %66)
store double %67, double* %32
%68 = load double, double* %29
%69 = load double, double* %30
%70 = load double, double* %31
%71 = load double, double* %15
%72 = load double, double* %16
%73 = call double @sc_Zq(double %68, double %69, double %70, double %71, double %72)
store double %73, double* %33
%74 = load double, double* %33
ret double %74
}

LLVM IR (-O2):
define double @Iqxy(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11) {
%13 = tail call i32 @ORIENT_ASYMMETRIC(double %0, double %1, double %9, double %10, double %11, double undef, double undef, double undef, double undef)
%14 = tail call double @sqrt(double 0x7FF8000000000000)
%15 = tail call double @sphere_form(double %14, double %4, double %5, double %6)
%16 = tail call double @sc_Zq(double undef, double undef, double undef, double %2, double %3)
ret double %16
}