#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*/ mlMatrixMultTo(float const *, float const *, float *);
void mlMatrixTranslateTo(const float *a, const float *b, float *result) {
  const float c[16] = {1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,
                       0.0f, 0.0f, 1.0f, 0.0f, b[0], b[1], b[2], 1.0f};
  mlMatrixMultTo(a, c, result);
}


x86 assembly (clang, -O0):
<mlMatrixTranslateTo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movss  0xed4(%rip),%xmm0
movss  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  0xea7(%rip),%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  0xe7a(%rip),%xmm0
movss  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
movss  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
movss  %xmm0,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  0xe3c(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <mlMatrixMultTo@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mlMatrixTranslateTo>:
sub    $0x48,%rsp
movl   $0x3f800000,(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,0x4(%rsp)
movl   $0x3f800000,0x14(%rsp)
3f
movups %xmm0,0x18(%rsp)
movq   $0x3f800000,0x28(%rsp)
80 3f
movss  (%rsi),%xmm0
movss  %xmm0,0x30(%rsp)
movss  0x4(%rsi),%xmm0
movss  %xmm0,0x34(%rsp)
movss  0x8(%rsi),%xmm0
movss  %xmm0,0x38(%rsp)
movl   $0x3f800000,0x3c(%rsp)
3f
mov    %rsp,%rsi
call   1030 <mlMatrixMultTo@plt>
add    $0x48,%rsp
ret

LLVM IR (-O0):
define void @mlMatrixTranslateTo(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca [16 x float]
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
%8 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 0
store float 1.000000e+00, float* %8
%9 = getelementptr inbounds float, float* %8, i64 1
store float 0.000000e+00, float* %9
%10 = getelementptr inbounds float, float* %9, i64 1
store float 0.000000e+00, float* %10
%11 = getelementptr inbounds float, float* %10, i64 1
store float 0.000000e+00, float* %11
%12 = getelementptr inbounds float, float* %11, i64 1
store float 0.000000e+00, float* %12
%13 = getelementptr inbounds float, float* %12, i64 1
store float 1.000000e+00, float* %13
%14 = getelementptr inbounds float, float* %13, i64 1
store float 0.000000e+00, float* %14
%15 = getelementptr inbounds float, float* %14, i64 1
store float 0.000000e+00, float* %15
%16 = getelementptr inbounds float, float* %15, i64 1
store float 0.000000e+00, float* %16
%17 = getelementptr inbounds float, float* %16, i64 1
store float 0.000000e+00, float* %17
%18 = getelementptr inbounds float, float* %17, i64 1
store float 1.000000e+00, float* %18
%19 = getelementptr inbounds float, float* %18, i64 1
store float 0.000000e+00, float* %19
%20 = getelementptr inbounds float, float* %19, i64 1
%21 = load float*, float** %5
%22 = getelementptr inbounds float, float* %21, i64 0
%23 = load float, float* %22
store float %23, float* %20
%24 = getelementptr inbounds float, float* %20, i64 1
%25 = load float*, float** %5
%26 = getelementptr inbounds float, float* %25, i64 1
%27 = load float, float* %26
store float %27, float* %24
%28 = getelementptr inbounds float, float* %24, i64 1
%29 = load float*, float** %5
%30 = getelementptr inbounds float, float* %29, i64 2
%31 = load float, float* %30
store float %31, float* %28
%32 = getelementptr inbounds float, float* %28, i64 1
store float 1.000000e+00, float* %32
%33 = load float*, float** %4
%34 = getelementptr inbounds [16 x float], [16 x float]* %7, i64 0, i64 0
%35 = load float*, float** %6
%36 = call i32 @mlMatrixMultTo(float* %33, float* %34, float* %35)
ret void
}

LLVM IR (-O2):
define void @mlMatrixTranslateTo(float* %0, float* nocapture %1, float* %2) {
%4 = alloca [16 x float]
%5 = bitcast [16 x float]* %4 to i8*
%6 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 0
store float 1.000000e+00, float* %6
%7 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 1
%8 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 5
%9 = bitcast float* %7 to i8*
store float 1.000000e+00, float* %8
%10 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 6
%11 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 10
%12 = bitcast float* %10 to i8*
store float 1.000000e+00, float* %11
%13 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 11
store float 0.000000e+00, float* %13
%14 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 12
%15 = load float, float* %1
store float %15, float* %14
%16 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 13
%17 = getelementptr inbounds float, float* %1, i64 1
%18 = load float, float* %17
store float %18, float* %16
%19 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 14
%20 = getelementptr inbounds float, float* %1, i64 2
%21 = load float, float* %20
store float %21, float* %19
%22 = getelementptr inbounds [16 x float], [16 x float]* %4, i64 0, i64 15
store float 1.000000e+00, float* %22
%23 = call i32 @mlMatrixMultTo(float* %0, float* %6, float* %2)
ret void
}