// // FindBPMLayer::init from 0x6e95fc to 0x6e9750 (340 bytes) // // 2 xrefs: // > FindBPMLayer::create @ 0x6e98b4 // > @ 0x61d08 // // 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 12:51:44 +0000 // __int64 __fastcall FindBPMLayer::init(FindBPMLayer *this, int a2) { cocos2d::CCDirector *v4; // x0 unsigned int v5; // w21 cocos2d::CCDirector *v7; // x0 const char *v8; // x2 __int64 v9; // x0 __int64 v10; // x23 void (__fastcall *v11)(__int64, _BYTE *); // x22 MusicDownloadManager *v12; // x0 MusicDownloadManager *v13; // x0 __int64 SongInfoObject; // x0 const char *v15; // x1 __int64 v16; // x22 void (__fastcall *v17)(__int64, __int64); // x23 cocos2d::CCString *v18; // x0 __int64 CString; // x0 __int64 v20; // [xsp+58h] [xbp+58h] BYREF _BYTE v21[8]; // [xsp+60h] [xbp+60h] BYREF v4 = (cocos2d::CCDirector *)(unsigned __int8)CreateGuidelinesLayer::init((__int64)this, 0, 1); v5 = (unsigned __int8)v4; if ( (_BYTE)v4 ) { *((_DWORD *)this + 190) = a2; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize(&v20, v7); v9 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"BPM", "bigFont.fnt", v8); *((_QWORD *)this + 96) = v9; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v9, 1); v10 = *((_QWORD *)this + 96); v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, *(float *)&v20 * 0.5, *((float *)&v20 + 1) * 0.5); v11(v10, v21); v12 = (MusicDownloadManager *)cocos2d::CCArray::addObject( *((cocos2d::CCArray **)this + 87), *((cocos2d::CCObject **)this + 96)); v13 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v12); SongInfoObject = MusicDownloadManager::getSongInfoObject(v13, *((_DWORD *)this + 190)); if ( SongInfoObject ) { v15 = (const char *)*(unsigned int *)(SongInfoObject + 444); if ( (int)v15 > 0 ) { v16 = *((_QWORD *)this + 88); v17 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 928LL); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"BPM: %i", v15); CString = cocos2d::CCString::getCString(v18); v17(v16, CString); } } CreateGuidelinesLayer::toggleItems((cocos2d::CCArray **)this, 0); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source