// // GJSongBrowser::customSetup from 0x6e6e08 to 0x6e7154 (844 bytes) // // 2 xrefs: // > @ 0xd8bf8 // > @ 0x1425858 // // 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:43 +0000 // __int64 __fastcall GJSongBrowser::customSetup(GJSongBrowser *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCMenu *WinSize; // x0 cocos2d::CCNode *v4; // x21 float v5; // s8 const char *v6; // x1 __int64 v7; // x0 __int64 v8; // x0 cocos2d::CCDirector **v9; // x25 void (__fastcall *v10)(cocos2d::CCDirector **, __int64 *); // x26 cocos2d::CCDirector *v11; // x0 float v12; // s0 const char *v13; // x1 cocos2d::CCSprite *v14; // x24 __int64 v15; // x0 cocos2d::CCDirector **v16; // x24 void (__fastcall *v17)(cocos2d::CCDirector **, __int64 *); // x25 cocos2d::CCDirector *v18; // x0 float v19; // s0 const char *v20; // x1 __int64 v21; // x25 cocos2d::CCDirector **v22; // x24 float v23; // s8 void (__fastcall *v24)(cocos2d::CCDirector **, __int64 *); // x25 cocos2d::CCDirector *v25; // x0 cocos2d::CCDirector *ScreenRight; // x0 float v27; // s0 float v28; // s10 cocos2d::CCDirector *v29; // x0 float v30; // s0 const char *v31; // x2 __int64 v32; // x0 cocos2d::CCDirector **v33; // x21 void (__fastcall *v34)(cocos2d::CCDirector **, __int64 *); // x22 cocos2d::CCDirector *v35; // x0 cocos2d::CCDirector *v36; // x0 float v37; // s0 float v38; // s8 cocos2d::CCDirector *v39; // x0 float v40; // s0 __int64 v41; // x21 void (__fastcall *v42)(__int64, __int64 *); // x22 MusicDownloadManager *v43; // x0 MusicDownloadManager *v44; // x0 cocos2d::CCObject *DownloadedSongs; // x0 __int64 v46; // x0 void (__fastcall *v47)(__int64, __int64 *); // x3 __int64 v49; // [xsp+70h] [xbp+70h] BYREF _BYTE v50[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v51; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v49, v2); v4 = (cocos2d::CCNode *)cocos2d::CCMenu::create(WinSize); v5 = *((float *)&v49 + 1) * 0.5; v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v6); v8 = CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, (__int64)GJSongBrowser::onPrevPage, 0); *((_QWORD *)this + 81) = v8; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v8); v9 = *((cocos2d::CCDirector ***)this + 81); v10 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v9 + 23); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v9); cocos2d::CCDirector::getScreenLeft(v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v12 + 24.0, v5); cocos2d::CCNode::convertToNodeSpace(&v51, v4, (const cocos2d::CCPoint *)v50); v10(v9, &v51); v14 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v13); cocos2d::CCSprite::setFlipX(v14, 1); v15 = CCMenuItemSpriteExtra::create((__int64)v14, 0, (__int64)this, (__int64)GJSongBrowser::onNextPage, 0); *((_QWORD *)this + 80) = v15; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v15); v16 = *((cocos2d::CCDirector ***)this + 80); v17 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v16 + 23); v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v16); cocos2d::CCDirector::getScreenRight(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v19 - 24.0, v5); cocos2d::CCNode::convertToNodeSpace(&v51, v4, (const cocos2d::CCPoint *)v50); v17(v16, &v51); v21 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v20); v22 = (cocos2d::CCDirector **)CCMenuItemSpriteExtra::create( v21, 0, (__int64)this, (__int64)GJSongBrowser::onDeleteAll, 0); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCDirector **))(*(_QWORD *)v4 + 456LL))(v4, v22); v23 = (float)(*(float *)(v21 + 432) * 0.5) + 4.0; v24 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v22 + 23); v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v22); ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v25); v28 = v27 - v23; v29 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight); cocos2d::CCDirector::getScreenBottom(v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v28, v23 + v30); cocos2d::CCNode::convertToNodeSpace(&v51, v4, (const cocos2d::CCPoint *)v50); v24(v22, &v51); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(**((_QWORD **)this + 72) + 464LL))( *((_QWORD *)this + 72), v4, 10); v32 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v31); *((_QWORD *)this + 82) = v32; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 72) + 456LL))(*((_QWORD *)this + 72), v32); v33 = *((cocos2d::CCDirector ***)this + 82); v34 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v33 + 23); v35 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v33); v36 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v35); v38 = v37; v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v36); cocos2d::CCDirector::getScreenTop(v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, v38 - 7.0, v40 - 4.0); v34(v33, &v51); v41 = *((_QWORD *)this + 82); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v51, 1.0, 1.0); v42(v41, &v51); v43 = (MusicDownloadManager *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 82) + 160LL))( *((_QWORD *)this + 82), 0.6); v44 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v43); DownloadedSongs = (cocos2d::CCObject *)MusicDownloadManager::getDownloadedSongs(v44); *((_QWORD *)this + 84) = DownloadedSongs; cocos2d::CCObject::retain(DownloadedSongs); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 71) + 1168LL))(*((_QWORD *)this + 71), 0xFFFFFFFFLL); v46 = *((_QWORD *)this + 71); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 1216LL); memset(&v51, 50, 3); v47(v46, &v51); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source