//
// SetupSFXPopup::overridePlaySFX from 0x100213e04 to 0x100213e50 (76 bytes)
//
// 2 xrefs:
// > sub_100213E50 @ 0x100213e5c
// > ??> @ 0x1008fa648
//
// 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 11:01:03 +0000
//
__int64 __fastcall SetupSFXPopup::overridePlaySFX(__int64 updated)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x0
v1 = *(_QWORD *)(updated + 680);
if ( v1 )
{
if ( *(_BYTE *)(v1 + 1972) == 1 )
{
v2 = FMODAudioEngine::sharedEngine();
updated = FMODAudioEngine::updateReverb(v2, *(_DWORD *)(v1 + 1968), 0);
}
v3 = GameManager::sharedState(updated);
sub_1003AF1A8(v3, v1);
}
return 1;
}