#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 */
struct mat3 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mat3(float *, float, float, float, float, float, float,
                        float, float, float);
__attribute__((always_)) struct mat3 *psmat3(struct mat3 *result, float m11,
                                             float m12, float m13, float m21,
                                             float m22, float m23, float m31,
                                             float m32, float m33) {
  mat3((float *)result, m11, m12, m13, m21, m22, m23, m31, m32, m33);
  return result;
}


x86 assembly (clang, -O0):
<psmat3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  0x10(%rbp),%xmm8
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
movss  %xmm3,-0x18(%rbp)
movss  %xmm4,-0x1c(%rbp)
movss  %xmm5,-0x20(%rbp)
movss  %xmm6,-0x24(%rbp)
movss  %xmm7,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x14(%rbp),%xmm2
movss  -0x18(%rbp),%xmm3
movss  -0x1c(%rbp),%xmm4
movss  -0x20(%rbp),%xmm5
movss  -0x24(%rbp),%xmm6
movss  -0x28(%rbp),%xmm7
movss  0x10(%rbp),%xmm8
movss  %xmm8,(%rsp)
call   1030 <mat3@plt>
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<psmat3>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movss  0x20(%rsp),%xmm8
movss  %xmm8,(%rsp)
call   1030 <mat3@plt>
mov    %rbx,%rax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.mat3 = type { i32 }
define %struct.mat3* @psmat3(%struct.mat3* %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = alloca %struct.mat3*
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca float
store %struct.mat3* %0, %struct.mat3** %11
store float %1, float* %12
store float %2, float* %13
store float %3, float* %14
store float %4, float* %15
store float %5, float* %16
store float %6, float* %17
store float %7, float* %18
store float %8, float* %19
store float %9, float* %20
%21 = load %struct.mat3*, %struct.mat3** %11
%22 = bitcast %struct.mat3* %21 to float*
%23 = load float, float* %12
%24 = load float, float* %13
%25 = load float, float* %14
%26 = load float, float* %15
%27 = load float, float* %16
%28 = load float, float* %17
%29 = load float, float* %18
%30 = load float, float* %19
%31 = load float, float* %20
%32 = call i32 @mat3(float* %22, float %23, float %24, float %25, float %26, float %27, float %28, float %29, float %30, float %31)
%33 = load %struct.mat3*, %struct.mat3** %11
ret %struct.mat3* %33
}

LLVM IR (-O2):
%struct.mat3 = type { i32 }
define %struct.mat3* @psmat3(%struct.mat3* returned %0, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9) {
%11 = bitcast %struct.mat3* %0 to float*
%12 = tail call i32 @mat3(float* %11, float %1, float %2, float %3, float %4, float %5, float %6, float %7, float %8, float %9)
ret %struct.mat3* %0
}