#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*/ doubles_rpy_to_mat44(double const *, double *);
void doubles_xyzrpy_to_mat44(const double xyzrpy[6], double M[16]) {
  doubles_rpy_to_mat44(&xyzrpy[3], M);
  M[3] = xyzrpy[0];
  M[7] = xyzrpy[1];
  M[11] = xyzrpy[2];
}


x86 assembly (clang, -O0):
<doubles_xyzrpy_to_mat44>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x18,%rdi
mov    -0x10(%rbp),%rsi
call   1030 <doubles_rpy_to_mat44@plt>
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x58(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doubles_xyzrpy_to_mat44>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0x18,%rdi
call   1030 <doubles_rpy_to_mat44@plt>
movsd  (%rbx),%xmm0
movsd  %xmm0,0x18(%r14)
movsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x38(%r14)
movsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x58(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @doubles_xyzrpy_to_mat44(double* %0, double* %1) {
%3 = getelementptr inbounds double, double* %0, i64 3
%4 = tail call i32 @doubles_rpy_to_mat44(double* %3, double* %1)
%5 = load double, double* %0
%6 = getelementptr inbounds double, double* %1, i64 3
store double %5, double* %6
%7 = getelementptr inbounds double, double* %0, i64 1
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %1, i64 7
store double %8, double* %9
%10 = getelementptr inbounds double, double* %0, i64 2
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %1, i64 11
store double %11, double* %12
ret void
}