//
// SetupReverbPopup::onPlay from 0x140446de0 to 0x140446ec8 (232 bytes)
//
// 2 xrefs:
// > SetupReverbPopup::init @ 0x140446d09
// > ??> @ 0x1406da604
//
// 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
//
// Hidden C++ exception states: #wind=3
void SetupReverbPopup::onPlay(SetupReverbPopup *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // rcx
SFXTriggerGameObject *m_gameObject; // rbx
FMODAudioEngine *v5; // rcx
GameManager *v6; // rcx
FMODAudioEngine *v7; // [rsp+30h] [rbp+8h]
FMODAudioEngine *v8; // [rsp+30h] [rbp+8h]
void *v9; // [rsp+30h] [rbp+8h]
v3 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v7 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v3 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::stopAllEffects(v3);
m_gameObject = (SFXTriggerGameObject *)a1->m_gameObject;
if ( m_gameObject )
{
v5 = (FMODAudioEngine *)qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v8 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v5 = (FMODAudioEngine *)qword_1406C2E88;
}
FMODAudioEngine::updateReverb(v5, m_gameObject->m_reverbPreset, 0);
if ( !qword_1406C2ED8 )
{
v9 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
}
GameManager::playSFXTrigger(v6, m_gameObject);
}
}