//
// sub_5B818 from 0x5b818 to 0x5b84e (54 bytes)
//
// 1 xrefs:
// > FMOD::System::getGeometryOcclusion @ 0xba7b4
//
// 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_5B818(int a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
int result; // r0
_DWORD *v8; // [sp+8h] [bp-10h] BYREF
_DWORD *v9; // [sp+Ch] [bp-Ch] BYREF
v8 = a3;
v9 = a4;
result = 31;
if ( a2 )
{
if ( a3 )
{
v8 = nullptr;
v9 = nullptr;
result = sub_4CE80(a1 + 71272, a2, a3, (float *)&v9, (float *)&v8);
if ( !result )
{
if ( a4 )
*a4 = v9;
if ( a5 )
*a5 = v8;
}
}
}
return result;
}