//
// kmMat4RotationY from 0x5c8540 to 0x5c8588 (72 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall kmMat4RotationY(int a1, float x)
{
float v4; // r0
float v5; // r6
float v6; // r0
float v7; // s15
v4 = cosf(x);
*(_DWORD *)(a1 + 4) = 0;
v5 = v4;
*(float *)a1 = v4;
v6 = sinf(x);
*(_DWORD *)(a1 + 12) = 0;
*(_DWORD *)(a1 + 16) = 0;
*(_DWORD *)(a1 + 20) = 1065353216;
*(_DWORD *)(a1 + 24) = 0;
*(_DWORD *)(a1 + 28) = 0;
*(_DWORD *)(a1 + 36) = 0;
*(float *)(a1 + 40) = v5;
*(_DWORD *)(a1 + 44) = 0;
*(_DWORD *)(a1 + 48) = 0;
*(_DWORD *)(a1 + 52) = 0;
*(_DWORD *)(a1 + 56) = 0;
*(_DWORD *)(a1 + 60) = 1065353216;
v7 = v6;
*(float *)(a1 + 32) = v6;
*(float *)(a1 + 8) = -v7;
return a1;
}