//
// sub_69158 from 0x69158 to 0x691ca (114 bytes)
//
// 1 xrefs:
// > sub_69320 @ 0x69322
//
// 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 sub_69158(int a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)
{
float v5; // r6
float v10[7]; // [sp+Ch] [bp-24h] BYREF
if ( a2 != 7 )
return 31;
v10[6] = v5;
v10[0] = 1.0;
sub_609B8(
*(_DWORD *)(a1 + 500),
*(float *)(a1 + 488),
*(float *)(a1 + 504),
*(float *)(a1 + 508),
v10,
*(float *)(*(_DWORD *)(a1 + 128) + 68260));
*(float *)(a1 + 384) = *(float *)(a1 + 536) * v10[0];
*a3 = a1 + 380;
*a4 = 8;
if ( a5 )
*a5 = 0;
return 0;
}