//
// FMOD::DSPI::validate from 0xa8be0 to 0xa8c1a (58 bytes)
//
// 1 xrefs:
// > FMOD::DSPI::validate @ 0xe2f78
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:36 +0000
//
int __fastcall FMOD::DSPI::validate(_DWORD *a1, _DWORD *a2, _DWORD *a3)
{
int v3; // r1
int result; // r0
if ( !a2 )
return 31;
*a2 = a1;
if ( !a1 )
return 30;
if ( (_DWORD)a1 << 30 )
return 30;
v3 = a1[23];
__dmb(0xBu);
if ( (v3 & 0x400) != 0 || a1[21] != -1395763731 )
return 30;
if ( !a3 )
return 0;
result = sub_431D0(a3, a1[32]);
if ( !result )
return 0;
return result;
}