// // SetupSongTriggerPopup::onSavePlaybackPos from 0xaea254 to 0xaea3bc (360 bytes) // // 4 xrefs: // > @ 0x6ed70 // > SetupSongTriggerPopup::init @ 0xaeadbc // > SetupSongTriggerPopup::init @ 0xaeae88 // > @ 0x1542c10 // // 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:01:09 +0000 // __int64 __fastcall SetupSongTriggerPopup::onSavePlaybackPos(SetupSongTriggerPopup *this, cocos2d::CCObject *a2) { FMODAudioEngine *v4; // x0 _BOOL8 isMusicPlaying; // x0 FMODAudioEngine *v6; // x0 int MusicTimeMS; // w0 int v8; // w19 GameManager *v10; // x0 __int64 v11; // x23 float (__fastcall *v12)(__int64, _BYTE *, _QWORD, _QWORD, _QWORD, _QWORD); // x24 const cocos2d::CCPoint *v13; // x0 _BYTE v14[8]; // [xsp+40h] [xbp+40h] BYREF v4 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(_stack_chk_guard); isMusicPlaying = FMODAudioEngine::isMusicPlaying(v4, 0); if ( isMusicPlaying ) { v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); MusicTimeMS = FMODAudioEngine::getMusicTimeMS(v6, 0); if ( MusicTimeMS < 0 ) v8 = 0; else v8 = MusicTimeMS; } else { if ( *(_QWORD *)(GameManager::sharedState((GameManager *)isMusicPlaying) + 552) ) { v10 = *((GameManager **)this + 85); if ( v10 ) { v11 = *(_QWORD *)(GameManager::sharedState(v10) + 552); v12 = *(float (__fastcall **)(__int64, _BYTE *, _QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v11 + 1408LL); v13 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 85) + 192LL))(*((_QWORD *)this + 85)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v13); v8 = (int)(float)(v12(v11, v14, 0, 0, 0, 0) * 1000.0); if ( v8 < 0 ) v8 = 0; if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) ) goto LABEL_6; LABEL_14: SetupTriggerPopup::updateValue(this, 408, (float)v8); return _stack_chk_guard; } } v8 = 0; } if ( !(*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) ) goto LABEL_14; LABEL_6: if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == 1 ) SetupTriggerPopup::updateValue(this, 410, (float)v8); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source