#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 CE_MP_pH(double, double, double, double, double, double, int);
double finddCa(int /*<<< orphan*/, double, double, double, double, double,
               double, double, double, double, double);
double CE_CCCP(double Ca, double M, double P, double K1, double K2, double Kw,
               double Ks, double f0, double IB0) {
  double pH0;
  pH0 = CE_MP_pH(M, P, K1, K2, Kw, f0, 7);
  return finddCa(0, pH0, Ca, M, P, K1, K2, Kw, Ks, f0, IB0);
}


x86 assembly (clang, -O0):
<CE_CCCP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
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  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm3
movsd  -0x30(%rbp),%xmm4
movsd  -0x40(%rbp),%xmm5
mov    $0x7,%edi
call   1040 <CE_MP_pH@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm3
movsd  -0x20(%rbp),%xmm4
movsd  -0x28(%rbp),%xmm5
movsd  -0x30(%rbp),%xmm6
movsd  -0x38(%rbp),%xmm7
movsd  -0x40(%rbp),%xmm9
movsd  0x10(%rbp),%xmm8
xor    %edi,%edi
movsd  %xmm9,(%rsp)
movsd  %xmm8,0x8(%rsp)
call   1030 <finddCa@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CE_CCCP>:
sub    $0x58,%rsp
movsd  %xmm7,0x18(%rsp)
movsd  %xmm6,0x50(%rsp)
movsd  %xmm5,0x40(%rsp)
movsd  %xmm4,0x38(%rsp)
movsd  %xmm3,0x30(%rsp)
movsd  %xmm2,0x28(%rsp)
movsd  %xmm1,0x20(%rsp)
movsd  %xmm0,0x48(%rsp)
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
movaps %xmm3,%xmm2
movaps %xmm4,%xmm3
movaps %xmm5,%xmm4
movaps %xmm7,%xmm5
mov    $0x7,%edi
call   1040 <CE_MP_pH@plt>
movsd  0x60(%rsp),%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0x18(%rsp),%xmm1
movsd  %xmm1,(%rsp)
xor    %edi,%edi
movsd  0x48(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movsd  0x28(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movsd  0x38(%rsp),%xmm5
movsd  0x40(%rsp),%xmm6
movsd  0x50(%rsp),%xmm7
call   1030 <finddCa@plt>
add    $0x58,%rsp
ret

LLVM IR (-O0):
define double @CE_CCCP(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double %4, double* %14
store double %5, double* %15
store double %6, double* %16
store double %7, double* %17
store double %8, double* %18
%20 = load double, double* %11
%21 = load double, double* %12
%22 = load double, double* %13
%23 = load double, double* %14
%24 = load double, double* %15
%25 = load double, double* %17
%26 = call double @CE_MP_pH(double %20, double %21, double %22, double %23, double %24, double %25, i32 7)
store double %26, double* %19
%27 = load double, double* %19
%28 = load double, double* %10
%29 = load double, double* %11
%30 = load double, double* %12
%31 = load double, double* %13
%32 = load double, double* %14
%33 = load double, double* %15
%34 = load double, double* %16
%35 = load double, double* %17
%36 = load double, double* %18
%37 = call double @finddCa(i32 0, double %27, double %28, double %29, double %30, double %31, double %32, double %33, double %34, double %35, double %36)
ret double %37
}

LLVM IR (-O2):
define double @CE_CCCP(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8) {
%10 = tail call double @CE_MP_pH(double %1, double %2, double %3, double %4, double %5, double %7, i32 7)
%11 = tail call double @finddCa(i32 0, double %10, double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8)
ret double %11
}