#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*/ palRefro(double const, double, double, double, double,
                            double, double, double, double, double *);
void palRefco(double hm, double tdk, double pmb, double rh, double wl,
              double phi, double tlr, double eps, double *refa, double *refb) {
  double r1, r2;
  const double ATN1 = 0.7853981633974483;
  const double ATN4 = 1.325817663668033;
  palRefro(ATN1, hm, tdk, pmb, rh, wl, phi, tlr, eps, &r1);
  palRefro(ATN4, hm, tdk, pmb, rh, wl, phi, tlr, eps, &r2);
  *refa = (64.0 * r1 - r2) / 60.0;
  *refb = (r2 - 4.0 * r1) / 60.0;
}


x86 assembly (clang, -O0):
<palRefco>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%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  %xmm6,-0x38(%rbp)
movsd  %xmm7,-0x40(%rbp)
mov    %rdi,-0x48(%rbp)
mov    %rsi,-0x50(%rbp)
movsd  0xecd(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xeb8(%rip),%xmm0
movsd  %xmm0,-0x70(%rbp)
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),%xmm8
movsd  0xe8a(%rip),%xmm0
lea    -0x58(%rbp),%rdi
movsd  %xmm8,(%rsp)
call   1030 <palRefro@plt>
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),%xmm8
movsd  0xe42(%rip),%xmm0
lea    -0x60(%rbp),%rdi
movsd  %xmm8,(%rsp)
call   1030 <palRefro@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xe02(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xde2(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
movsd  0xdcc(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xdb4(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x50(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palRefco>:
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm7,0x18(%rsp)
movaps %xmm6,%xmm8
movsd  %xmm6,0x40(%rsp)
movaps %xmm5,%xmm6
movsd  %xmm5,0x38(%rsp)
movaps %xmm4,%xmm5
movsd  %xmm4,0x30(%rsp)
movaps %xmm3,%xmm4
movsd  %xmm3,0x28(%rsp)
movaps %xmm2,%xmm3
movsd  %xmm2,0x20(%rsp)
movaps %xmm1,%xmm2
movsd  %xmm1,0x10(%rsp)
movaps %xmm0,%xmm1
movsd  %xmm0,0x8(%rsp)
movsd  %xmm7,(%rsp)
movsd  0xe90(%rip),%xmm0
lea    0x50(%rsp),%rdi
movaps %xmm8,%xmm7
call   1030 <palRefro@plt>
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe77(%rip),%xmm0
lea    0x48(%rsp),%rdi
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x38(%rsp),%xmm6
movsd  0x40(%rsp),%xmm7
call   1030 <palRefro@plt>
movsd  0x50(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
movsd  0xe37(%rip),%xmm2
mulsd  %xmm0,%xmm2
subsd  %xmm1,%xmm2
movsd  0xe2f(%rip),%xmm3
divsd  %xmm3,%xmm2
mulsd  0xe2b(%rip),%xmm0
movsd  %xmm2,(%rbx)
addsd  %xmm1,%xmm0
divsd  %xmm3,%xmm0
movsd  %xmm0,(%r14)
add    $0x58,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @palRefco(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %8, double* %9) {
%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*
%20 = alloca double*
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
store double %0, double* %11
store double %1, double* %12
store double %2, double* %13
store double %3, double* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double %7, double* %18
store double* %8, double** %19
store double* %9, double** %20
store double 0x3FE921FB54442D18, double* %23
store double 0x3FF5368C951E9CFF, double* %24
%25 = load double, double* %11
%26 = load double, double* %12
%27 = load double, double* %13
%28 = load double, double* %14
%29 = load double, double* %15
%30 = load double, double* %16
%31 = load double, double* %17
%32 = load double, double* %18
%33 = call i32 @palRefro(double 0x3FE921FB54442D18, double %25, double %26, double %27, double %28, double %29, double %30, double %31, double %32, double* %21)
%34 = load double, double* %11
%35 = load double, double* %12
%36 = load double, double* %13
%37 = load double, double* %14
%38 = load double, double* %15
%39 = load double, double* %16
%40 = load double, double* %17
%41 = load double, double* %18
%42 = call i32 @palRefro(double 0x3FF5368C951E9CFF, double %34, double %35, double %36, double %37, double %38, double %39, double %40, double %41, double* %22)
%43 = load double, double* %21
%44 = load double, double* %22
%45 = fneg double %44
%46 = call double @llvm.fmuladd.f64(double 6.400000e+01, double %43, double %45)
%47 = fdiv double %46, 6.000000e+01
%48 = load double*, double** %19
store double %47, double* %48
%49 = load double, double* %22
%50 = load double, double* %21
%51 = call double @llvm.fmuladd.f64(double -4.000000e+00, double %50, double %49)
%52 = fdiv double %51, 6.000000e+01
%53 = load double*, double** %20
store double %52, double* %53
ret void
}

LLVM IR (-O2):
define void @palRefco(double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* nocapture writeonly %8, double* nocapture writeonly %9) {
%11 = alloca double
%12 = alloca double
%13 = bitcast double* %11 to i8*
%14 = bitcast double* %12 to i8*
%15 = call i32 @palRefro(double 0x3FE921FB54442D18, double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %11)
%16 = call i32 @palRefro(double 0x3FF5368C951E9CFF, double %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double* %12)
%17 = load double, double* %11
%18 = load double, double* %12
%19 = fneg double %18
%20 = call double @llvm.fmuladd.f64(double %17, double 6.400000e+01, double %19)
%21 = fdiv double %20, 6.000000e+01
store double %21, double* %8
%22 = call double @llvm.fmuladd.f64(double %17, double -4.000000e+00, double %18)
%23 = fdiv double %22, 6.000000e+01
store double %23, double* %9
ret void
}