//
// sub_1004D4D50 from 0x1004d4d50 to 0x1004d4dbc (108 bytes)
//
// 1 xrefs:
// > FMOD::System::getGeometryOcclusion @ 0x1004cdd98
//
// 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
//
float __fastcall sub_1004D4D50(__int64 a1, __int64 *a2, __int64 *a3, _DWORD *a4, _DWORD *a5)
{
float result; // s0
__int64 v8; // [xsp+8h] [xbp-18h] BYREF
if ( a2 )
{
if ( a3 )
{
v8 = 0;
if ( !(unsigned int)sub_1004AE164((_QWORD *)(a1 + 73144), a2, a3, (float *)&v8 + 1, (float *)&v8) )
{
if ( a4 )
{
result = *((float *)&v8 + 1);
*a4 = HIDWORD(v8);
}
if ( a5 )
{
result = *(float *)&v8;
*a5 = v8;
}
}
}
}
return result;
}