//
// FMOD::SystemI::validate from 0x69ed8 to 0x69f44 (108 bytes)
//
// 4 xrefs:
// > FMOD::SystemI::validate @ 0x109adc
// > ??> @ 0x1a08
// > FMOD::SystemI::validate @ 0x109ad4
// > ??> @ 0x111630
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:13:56 +0000
//
__int64 __fastcall FMOD::SystemI::validate(__int64 a1, __int64 *a2, _QWORD *a3)
{
__int64 v3; // x9
__int64 v4; // x11
__int64 result; // x0
*a2 = 0;
v3 = 0;
do
{
if ( v3 == 64 )
return 30;
v4 = *(_QWORD *)((char *)off_114000 + v3 + 368);
v3 += 8;
}
while ( v4 != a1 );
*a2 = a1;
if ( !a1 )
return 30;
if ( !a3 )
return 0;
result = sub_50238(a3, a1);
if ( !(_DWORD)result )
return 0;
return result;
}