// // CustomSFXWidget::onPlayback from 0xb5e1f4 to 0xb5e338 (324 bytes) // // 4 xrefs: // > CustomSFXWidget::downloadSFXFinished @ 0xb5e388 // > @ 0x8edf8 // > CustomSFXWidget::init @ 0xb5f7e4 // > @ 0x1543ca8 // // 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 13:02:10 +0000 // __int64 __fastcall CustomSFXWidget::onPlayback(CustomSFXWidget *this, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // x0 FMOD::ChannelControl **v4; // x0 FMODAudioEngine *v5; // x0 MusicDownloadManager *v7; // x21 MusicDownloadManager *v8; // x0 const char *v9; // x1 size_t v10; // x0 char *v11; // [xsp+38h] [xbp+38h] __int64 v12[2]; // [xsp+48h] [xbp+48h] BYREF void *v13; // [xsp+58h] [xbp+58h] __int64 v14[2]; // [xsp+60h] [xbp+60h] BYREF void *v15; // [xsp+70h] [xbp+70h] v3 = *((FMODAudioEngine **)this + 42); if ( v3 ) { v4 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(v3); FMODAudioEngine::stopAllEffects(v4); v5 = *((FMODAudioEngine **)this + 60); if ( !v5 || (v5 = (FMODAudioEngine *)(*(unsigned __int8 (__fastcall **)(FMODAudioEngine *, _QWORD))(*(_QWORD *)v5 + 24LL))( v5, *((_QWORD *)this + 42)), !(_BYTE)v5) ) { v7 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(v5); v8 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v7); MusicDownloadManager::pathForSFX(v12, v8, *(_DWORD *)(*((_QWORD *)this + 42) + 56LL)); v9 = (char *)v12 + 1; if ( (v12[0] & 1) != 0 ) v9 = (const char *)v13; v11 = (char *)v9; v14[0] = 0; v14[1] = 0; v15 = nullptr; v10 = strlen(v9); std::string::__init(v14, v11, v10); FMODAudioEngine::playEffectAsync((__int64)v7, (char *)v14); if ( (v14[0] & 1) != 0 ) operator delete(v15); if ( (v12[0] & 1) != 0 ) operator delete(v13); } } return _stack_chk_guard; }