// // CustomSFXWidget::onPlayback from 0x1400c1c00 to 0x1400c1e19 (537 bytes) // // 3 xrefs: // > CustomSFXWidget::downloadSFXFinished @ 0x1400c2670 // > CustomSFXWidget::init @ 0x1400c0ee5 // > @ 0x1406c7f98 // // 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=5 void CustomSFXWidget::onPlayback(CustomSFXWidget *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // rcx CustomSFXDelegate *m_delegate; // rcx SFXInfoObject *m_sfxObject; // rbx MusicDownloadManager *v6; // rax _QWORD *v7; // rax size_t v8; // r8 __int64 v9; // rbx _QWORD *v10; // rax FMODAudioEngine *v11; // [rsp+A0h] [rbp-88h] FMODAudioEngine *v12; // [rsp+A8h] [rbp-80h] __int128 v13; // [rsp+B0h] [rbp-78h] BYREF __int64 v14; // [rsp+C0h] [rbp-68h] __int64 v15; // [rsp+C8h] [rbp-60h] __int128 *v16; // [rsp+D0h] [rbp-58h] _BYTE v17[32]; // [rsp+D8h] [rbp-50h] BYREF _BYTE v18[32]; // [rsp+F8h] [rbp-30h] BYREF if ( a1->m_sfxObject ) { v3 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v11 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = (FMODAudioEngine *)qword_1406C2E88; } FMODAudioEngine::stopAllEffects(v3); m_delegate = a1->m_delegate; if ( !m_delegate || !m_delegate->overridePlaySFX(m_delegate, a1->m_sfxObject) ) { m_sfxObject = a1->m_sfxObject; v6 = MusicDownloadManager::sharedState(); v7 = (_QWORD *)MusicDownloadManager::pathForSFX(v6, v18, (unsigned int)m_sfxObject->m_sfxID); if ( v7[3] > 0xFu ) v7 = (_QWORD *)*v7; v13 = 0; v14 = 0; v15 = 0; v8 = -1; do ++v8; while ( *((_BYTE *)v7 + v8) ); sub_14003A930(&v13, v7, v8); v16 = &v13; v9 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v12 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v9 = qword_1406C2E88; } v10 = (_QWORD *)sub_14003BDB0((__int64)v17, (__int64)&v13); FMODAudioEngine::playEffectAdvanced(v9, v10, 1.0, 0.0, 1.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0.0, 0); sub_14003A830((__int64)&v13); sub_14003A830((__int64)v18); } } }