//
// sub_5BC38 from 0x5bc38 to 0x5bcb4 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c7b0
//
// 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
//
__int64 __fastcall sub_5BC38(__int64 a1)
{
__int64 v1; // x30
__int64 v2; // x8
__int64 v3; // x0
__int64 v4; // x1
char v5; // zf
__int64 v6; // x0
float v7; // s0
float v8; // s1
__int64 v9; // x8
v2 = *(_QWORD *)(a1 + 472);
if ( !v2 || !*(_QWORD *)(a1 + 32) )
JUMPOUT(0x5C4EC);
if ( (*(_BYTE *)(v2 + 56) & 0x10) == 0 )
return 40;
v3 = sub_5C748(a1, v1);
if ( v5 )
return 29;
v6 = sub_5C748(v3, v4);
if ( v5 )
return 29;
v9 = *(_QWORD *)v6;
*(float *)(v6 + 208) = fmaxf(fminf(v7, 1.0), 0.0);
*(float *)(v6 + 212) = fmaxf(fminf(v8, 1.0), 0.0);
return (*(__int64 (__fastcall **)(__int64, _QWORD, float, float))(v9 + 408))(
v6,
0,
*(float *)(v6 + 192),
*(float *)(v6 + 196));
}