#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*/ llh2xyz(double *, double *);
void llh2xyz_decimal(const double *llh, double *xyz) {
  double poz[3];
  poz[0] = llh[0] / 57.2957795131;
  poz[1] = llh[1] / 57.2957795131;
  poz[2] = llh[2];
  llh2xyz(poz, xyz);
}


x86 assembly (clang, -O0):
<llh2xyz_decimal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xed0(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  0xeb6(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <llh2xyz@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<llh2xyz_decimal>:
sub    $0x18,%rsp
movupd (%rdi),%xmm0
divpd  0xee0(%rip),%xmm0
movapd %xmm0,(%rsp)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %rsp,%rdi
call   1030 <llh2xyz@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @llh2xyz_decimal(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca [3 x double]
store double* %0, double** %3
store double* %1, double** %4
%6 = load double*, double** %3
%7 = getelementptr inbounds double, double* %6, i64 0
%8 = load double, double* %7
%9 = fdiv double %8, 0x404CA5DC1A63CBB0
%10 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
store double %9, double* %10
%11 = load double*, double** %3
%12 = getelementptr inbounds double, double* %11, i64 1
%13 = load double, double* %12
%14 = fdiv double %13, 0x404CA5DC1A63CBB0
%15 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 1
store double %14, double* %15
%16 = load double*, double** %3
%17 = getelementptr inbounds double, double* %16, i64 2
%18 = load double, double* %17
%19 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 2
store double %18, double* %19
%20 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%21 = load double*, double** %4
%22 = call i32 @llh2xyz(double* %20, double* %21)
ret void
}

LLVM IR (-O2):
define void @llh2xyz_decimal(double* nocapture %0, double* %1) {
%3 = alloca [3 x double]
%4 = bitcast [3 x double]* %3 to i8*
%5 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%6 = bitcast double* %0 to <2 x double>*
%7 = load <2 x double>, <2 x double>* %6
%8 = fdiv <2 x double> %7, <double 0x404CA5DC1A63CBB0, double 0x404CA5DC1A63CBB0>
%9 = bitcast [3 x double]* %3 to <2 x double>*
store <2 x double> %8, <2 x double>* %9
%10 = getelementptr inbounds double, double* %0, i64 2
%11 = load double, double* %10
%12 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 2
store double %11, double* %12
%13 = call i32 @llh2xyz(double* %5, double* %1)
ret void
}