//
// sub_1004D4B84 from 0x1004d4b84 to 0x1004d4c38 (180 bytes)
//
// 1 xrefs:
// > FMOD::System::setGeometrySettings @ 0x1004cda5c
//
// 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_1004D4B84(__int64 a1, float a2)
{
__int64 result; // x0
_QWORD *v5; // x20
_QWORD *v6; // x19
if ( (~LODWORD(a2) & 0x7F800000) == 0 )
return 29;
if ( a2 <= 0.0 )
return 31;
result = sub_1004AE720(a1 + 73144, a2);
if ( !(_DWORD)result )
{
v5 = (_QWORD *)(a1 + 73136);
v6 = *(_QWORD **)(a1 + 73136);
if ( v6 )
{
do
{
sub_1004B0E04((__int64)v6);
v6 = (_QWORD *)*v6;
}
while ( v6 != (_QWORD *)*v5 );
do
{
result = sub_1004B0CC8((__int64)v6, a2);
if ( (_DWORD)result )
break;
v6 = (_QWORD *)*v6;
}
while ( v6 != (_QWORD *)*v5 );
}
else
{
return 0;
}
}
return result;
}