//
// sub_431D0 from 0x431d0 to 0x431f0 (32 bytes)
//
// 11 xrefs:
// > FMOD_Memory_GetStats @ 0x43166
// > sub_48F28 @ 0x48f46
// > FMOD::ChannelI::validate @ 0x4a2b4
// > sub_4D760 @ 0x4d848
// > sub_549DC @ 0x549ee
// > FMOD::SystemI::validate @ 0x56ba6
// > sub_57338 @ 0x57354
// > sub_8D300 @ 0x8d310
// > FMOD::DSPI::validate @ 0xa8c08
// > FMOD::Sound::release @ 0xb4948
// > FMOD::Sound::setSoundGroup @ 0xb5a16
//
// 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_431D0(_DWORD *a1, int a2)
{
int result; // r0
result = 28;
if ( a2 && !*a1 )
{
result = sub_64FD4(a2);
if ( !result )
{
*a1 = a2;
return 0;
}
}
return result;
}