#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*/ slaStringExport(char *, char *, int);
int /*<<< orphan*/ sla_oap_(char *, double *, double *, double *, double *,
                            double *, double *, double *, double *, double *,
                            double *, double *, double *, double *, double *,
                            double *, double *, int const);
void slaOap(char *type, double ob1, double ob2, double date, double dut,
            double elongm, double phim, double hm, double xp, double yp,
            double tdk, double pmb, double rh, double wl, double tlr,
            double *rap, double *dap) {
  char TYPE[1];
  const int TYPE_length = 1;
  double OB1;
  double OB2;
  double DATE;
  double DUT;
  double ELONGM;
  double PHIM;
  double HM;
  double XP;
  double YP;
  double TDK;
  double PMB;
  double RH;
  double WL;
  double TLR;
  double RAP;
  double DAP;
  OB1 = ob1;
  OB2 = ob2;
  DATE = date;
  DUT = dut;
  ELONGM = elongm;
  PHIM = phim;
  HM = hm;
  XP = xp;
  YP = yp;
  TDK = tdk;
  PMB = pmb;
  RH = rh;
  WL = wl;
  TLR = tlr;
  slaStringExport(type, TYPE, 1);
  sla_oap_(TYPE, &OB1, &OB2, &DATE, &DUT, &ELONGM, &PHIM, &HM, &XP, &YP, &TDK,
           &PMB, &RH, &WL, &TLR, &RAP, &DAP, TYPE_length);
  *rap = RAP;
  *dap = DAP;
}


x86 assembly (clang, -O0):
<slaOap>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x168,%rsp
movsd  0x38(%rbp),%xmm8
movsd  0x30(%rbp),%xmm8
movsd  0x28(%rbp),%xmm8
movsd  0x20(%rbp),%xmm8
movsd  0x18(%rbp),%xmm8
movsd  0x10(%rbp),%xmm8
mov    %rdi,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
movsd  %xmm1,-0x40(%rbp)
movsd  %xmm2,-0x48(%rbp)
movsd  %xmm3,-0x50(%rbp)
movsd  %xmm4,-0x58(%rbp)
movsd  %xmm5,-0x60(%rbp)
movsd  %xmm6,-0x68(%rbp)
movsd  %xmm7,-0x70(%rbp)
mov    %rsi,-0x78(%rbp)
mov    %rdx,-0x80(%rbp)
movl   $0x1,-0x88(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0x10(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0x18(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0x20(%rbp),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  0x28(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0x30(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  0x38(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0x30(%rbp),%rdi
lea    -0x81(%rbp),%rsi
mov    $0x1,%edx
call   1040 <slaStringExport@plt>
lea    -0x81(%rbp),%rdi
lea    -0x90(%rbp),%rsi
lea    -0x98(%rbp),%rdx
lea    -0xa0(%rbp),%rcx
lea    -0xa8(%rbp),%r8
lea    -0xb0(%rbp),%r9
lea    -0xb8(%rbp),%rax
mov    %rax,-0x128(%rbp)
lea    -0xc0(%rbp),%rax
mov    %rax,-0x120(%rbp)
lea    -0xc8(%rbp),%rax
mov    %rax,-0x118(%rbp)
lea    -0xd0(%rbp),%r13
lea    -0xd8(%rbp),%r12
lea    -0xe0(%rbp),%r15
lea    -0xe8(%rbp),%r14
lea    -0xf0(%rbp),%rbx
lea    -0xf8(%rbp),%r11
lea    -0x100(%rbp),%r10
lea    -0x108(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x128(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x120(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x118(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x110(%rbp),%rax
mov    %r13,0x18(%rsp)
mov    %r12,0x20(%rsp)
mov    %r15,0x28(%rsp)
mov    %r14,0x30(%rsp)
mov    %rbx,0x38(%rsp)
mov    %r11,0x40(%rsp)
mov    %r10,0x48(%rsp)
mov    %rax,0x50(%rsp)
movl   $0x1,0x58(%rsp)
call   1030 <sla_oap_@plt>
movsd  -0x100(%rbp),%xmm0
ff
mov    -0x78(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x108(%rbp),%xmm0
ff
mov    -0x80(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0x168,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<slaOap>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdx,0x10(%rsp)
mov    %rsi,%r15
movsd  0xf8(%rsp),%xmm8
movsd  0xf0(%rsp),%xmm9
movsd  0xe8(%rsp),%xmm10
movsd  0xe0(%rsp),%xmm11
movsd  0xd8(%rsp),%xmm12
movsd  0xd0(%rsp),%xmm13
movsd  %xmm0,0x90(%rsp)
movsd  %xmm1,0x88(%rsp)
movsd  %xmm2,0x80(%rsp)
movsd  %xmm3,0x78(%rsp)
movsd  %xmm4,0x70(%rsp)
movsd  %xmm5,0x68(%rsp)
movsd  %xmm6,0x60(%rsp)
movsd  %xmm7,0x58(%rsp)
movsd  %xmm13,0x50(%rsp)
movsd  %xmm12,0x48(%rsp)
movsd  %xmm11,0x40(%rsp)
movsd  %xmm10,0x38(%rsp)
movsd  %xmm9,0x30(%rsp)
movsd  %xmm8,0x28(%rsp)
lea    0xf(%rsp),%rbx
mov    %rbx,%rsi
mov    $0x1,%edx
call   1040 <slaStringExport@plt>
lea    0x18(%rsp),%rax
lea    0x20(%rsp),%rbp
lea    0x28(%rsp),%r10
lea    0x30(%rsp),%r11
lea    0x38(%rsp),%r14
lea    0x40(%rsp),%r12
lea    0x48(%rsp),%r13
lea    0x90(%rsp),%rsi
lea    0x88(%rsp),%rdx
lea    0x80(%rsp),%rcx
lea    0x78(%rsp),%r8
lea    0x70(%rsp),%r9
mov    %rbx,%rdi
push   $0x1
push   %rax
push   %rbp
push   %r10
push   %r11
push   %r14
push   %r12
push   %r13
lea    0x90(%rsp),%rax
push   %rax
lea    0xa0(%rsp),%rax
push   %rax
lea    0xb0(%rsp),%rax
push   %rax
lea    0xc0(%rsp),%rax
push   %rax
call   1030 <sla_oap_@plt>
add    $0x60,%rsp
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,(%r15)
movsd  0x18(%rsp),%xmm0
mov    0x10(%rsp),%rax
movsd  %xmm0,(%rax)
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @slaOap(i8* %0, double %1, double %2, double %3, double %4, double %5, double %6, double %7, double %8, double %9, double %10, double %11, double %12, double %13, double %14, double* nocapture writeonly %15, double* nocapture writeonly %16) {
%18 = alloca [1 x i8]
%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
%34 = alloca double
%35 = getelementptr inbounds [1 x i8], [1 x i8]* %18, i64 0, i64 0
%36 = bitcast double* %19 to i8*
%37 = bitcast double* %20 to i8*
%38 = bitcast double* %21 to i8*
%39 = bitcast double* %22 to i8*
%40 = bitcast double* %23 to i8*
%41 = bitcast double* %24 to i8*
%42 = bitcast double* %25 to i8*
%43 = bitcast double* %26 to i8*
%44 = bitcast double* %27 to i8*
%45 = bitcast double* %28 to i8*
%46 = bitcast double* %29 to i8*
%47 = bitcast double* %30 to i8*
%48 = bitcast double* %31 to i8*
%49 = bitcast double* %32 to i8*
%50 = bitcast double* %33 to i8*
%51 = bitcast double* %34 to i8*
store double %1, double* %19
store double %2, double* %20
store double %3, double* %21
store double %4, double* %22
store double %5, double* %23
store double %6, double* %24
store double %7, double* %25
store double %8, double* %26
store double %9, double* %27
store double %10, double* %28
store double %11, double* %29
store double %12, double* %30
store double %13, double* %31
store double %14, double* %32
%52 = call i32 @slaStringExport(i8* %0, i8* %35, i32 1)
%53 = call i32 @sla_oap_(i8* %35, double* %19, double* %20, double* %21, double* %22, double* %23, double* %24, double* %25, double* %26, double* %27, double* %28, double* %29, double* %30, double* %31, double* %32, double* %33, double* %34, i32 1)
%54 = load double, double* %33
store double %54, double* %15
%55 = load double, double* %34
store double %55, double* %16
ret void
}