// // SetupSongTriggerPopup::onPlayback from 0x658570 to 0x6586ec (380 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupSongTriggerPopup::onPlayback @ 0x6586f4 // // 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:55:31 +0000 // unsigned int __fastcall SetupSongTriggerPopup::onPlayback(SetupSongTriggerPopup *this, SongInfoObject *a2) { FMODAudioEngine *v4; // r0 _BOOL4 isMusicPlaying; // r0 FMODAudioEngine *v6; // r0 char **v7; // r0 int v8; // s17 int v9; // s16 int v10; // r7 float v11; // s15 float v12; // r10 float v13; // r0 FMODAudioEngine *v14; // s18 MusicDownloadManager *v15; // r8 MusicDownloadManager *v16; // r0 FMODAudioEngine *v17; // r0 int v18; // r1 int v19; // r0 FMODAudioEngine *v20; // r0 FMODAudioEngine *v21; // r0 FMODAudioEngine *v22; // r0 FMODAudioEngine *v23; // r0 cocos2d::CCArray **v24; // r0 int v26; // [sp+1Ch] [bp-14h] unsigned __int8 v27[12]; // [sp+20h] [bp-10h] BYREF v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v4, 0); if ( isMusicPlaying ) { v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); v7 = FMODAudioEngine::stopAllMusic(v6, 1); } else { v7 = (char **)GameManager::sharedState(nullptr); if ( v7[102] ) { v26 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 408)); v8 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 410)); v9 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 409)); v10 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 411)); v11 = COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 413)); v12 = COERCE_FLOAT((*(int (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 406)); v13 = (*(float (__fastcall **)(SetupSongTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 404); v14 = (FMODAudioEngine *)(int)v13; v15 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)LODWORD(v13)); v16 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v15); v17 = MusicDownloadManager::pathForSong((MusicDownloadManager *)v27, v16, *((_DWORD *)a2 + 66)); FMODAudioEngine::sharedEngine(v17); v19 = FMODAudioEngine::pitchForIdx(v14, v18); FMODAudioEngine::loadMusic((int)v15, v27, *(float *)&v19, 0, v12, v11 != 0.0, 0, 0, 0); v20 = (FMODAudioEngine *)std::string::~string((int)v27); v21 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v20); v22 = FMODAudioEngine::setMusicTimeMS(v21, v26, 0, 0); v23 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v22); FMODAudioEngine::startMusic(v23, v26, v8, v9, v10, v11 != 0.0, 0, 0, 0); } } v24 = (cocos2d::CCArray **)MusicDownloadManager::sharedState((MusicDownloadManager *)v7); return MusicDownloadManager::songStateChanged(v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source