//
// SetupSFXPopup::overridePlaySFX from 0x6af836 to 0x6af860 (42 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'SetupSFXPopup::overridePlaySFX @ 0x6af864
//
// 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:56:38 +0000
//
int __fastcall SetupSFXPopup::overridePlaySFX(SetupSFXPopup *this, SFXInfoObject *a2)
{
int v2; // r4
int v3; // r0
GameManager *v4; // r0
v2 = *((_DWORD *)this + 132);
if ( v2 )
{
if ( *(_BYTE *)(v2 + 1768) )
{
v3 = FMODAudioEngine::sharedEngine(this);
this = (SetupSFXPopup *)FMODAudioEngine::updateReverb(v3, *(_DWORD *)(v2 + 1764), 0);
}
v4 = (GameManager *)GameManager::sharedState(this);
GameManager::playSFXTrigger(v4, (SFXTriggerGameObject *)v2);
}
return 1;
}