// // TopArtistsLayer::init from 0xaaca78 to 0xaad13c (1732 bytes) // // 3 xrefs: // > TopArtistsLayer::create @ 0xaad2a0 // > @ 0x4fed0 // > @ 0x14a47a0 // // 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:00:54 +0000 // __int64 __fastcall TopArtistsLayer::init(cocos2d::CCObject **this) { cocos2d::CCDirector *v2; // x0 unsigned int v3; // w24 cocos2d::CCDirector *v5; // x0 __int64 v6; // x23 void (__fastcall *v7)(__int64, __int64 *); // x26 __int64 (__fastcall *v8)(__int64, __int64 *); // x26 cocos2d::CCMenu *v9; // x0 __int64 v10; // x0 const char *v11; // x2 __int64 v12; // x23 void (__fastcall *v13)(__int64, __int64 *); // x26 __int64 v14; // x0 __int64 v15; // x23 cocos2d::CCNode *v16; // x27 __int64 (__fastcall *v17)(__int64, __int64 *); // x26 cocos2d::CCMenu *v18; // x0 cocos2d::CCNode *v19; // x23 float v20; // s9 const char *v21; // x1 __int64 v22; // x27 __int64 v23; // x0 __int64 v24; // x27 void (__fastcall *v25)(__int64, __int64 *); // x28 const char *v26; // x1 cocos2d::CCSprite *v27; // x26 __int64 v28; // x0 __int64 v29; // x26 void (__fastcall *v30)(__int64, __int64 *); // x27 LoadingCircle *v31; // x0 __int64 v32; // x0 const char *v33; // x2 __int64 v34; // x0 __int64 v35; // x22 void (__fastcall *v36)(__int64, __int64 *); // x23 __int64 v37; // x22 __int64 (__fastcall *v38)(__int64, __int64 *); // x23 GameLevelManager *v39; // x0 GameLevelManager *v40; // x0 const char *TopArtistsKey; // x0 size_t v42; // x0 GameLevelManager *v43; // x0 GameLevelManager *v44; // x0 const char *v45; // x1 __int64 StoredOnlineLevels; // x20 void (__fastcall *v47)(cocos2d::CCObject **, __int64 *, char *); // x23 GameLevelManager *v48; // x0 const char *v49; // x1 size_t v50; // x0 char *v51; // x2 char *v52; // x2 GameLevelManager *v53; // x0 GameLevelManager *v54; // x0 GameLevelManager *v55; // x0 GameLevelManager *v56; // x0 char *v57; // [xsp+A8h] [xbp+A8h] char *PageInfo; // [xsp+A8h] [xbp+A8h] __int64 v59; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v60[8]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v61[2]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v62[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v63; // [xsp+E8h] [xbp+E8h] __int64 v64[2]; // [xsp+F0h] [xbp+F0h] BYREF void *v65; // [xsp+100h] [xbp+100h] v2 = (cocos2d::CCDirector *)(unsigned __int8)FLAlertLayer::init((FLAlertLayer *)this, 150); v3 = (unsigned __int8)v2; if ( (_BYTE)v2 ) { v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize(&v59, v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v61, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v61); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, 0xFFFFFFFFLL); v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v61, 440.0, 290.0); v7(v6, v61); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v6, 0xFFFFFFFFLL); v8 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, *((float *)&v59 + 1) * 0.5); v9 = (cocos2d::CCMenu *)v8(v6, v61); v10 = cocos2d::CCMenu::create(v9); *(this + 69) = (cocos2d::CCObject *)v10; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v10, 10); v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Featured Artists", "bigFont.fnt", v11); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v12, 20); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, (float)((float)(*((float *)&v59 + 1) * 0.5) + 145.0) - 18.0); v13(v12, v61); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.6); *((_DWORD *)this + 160) = -1; v14 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_closeBtn_001.png", (const char *)0xFFFFFFFFLL); v15 = CCMenuItemSpriteExtra::create(v14, 0, (__int64)this, (__int64)TopArtistsLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15); CCMenuItemSpriteExtra::setSizeMult(v15, 1.6); v16 = *(this + 69); v17 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + -220.0) + 10.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace(v61, v16, (const cocos2d::CCPoint *)v60); v18 = (cocos2d::CCMenu *)v17(v15, v61); v19 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v18); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v19, 10); v20 = *((float *)&v59 + 1) * 0.5; v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v21); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 0.8); v23 = CCMenuItemSpriteExtra::create(v22, 0, (__int64)this, (__int64)TopArtistsLayer::onPrevPage, 0); *(this + 88) = (cocos2d::CCObject *)v23; CCMenuItemSpriteExtra::setSizeMult(v23, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v19 + 456LL))(v19, *(this + 88)); v24 = (__int64)*(this + 88); v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + -220.0) + 22.0, v20); cocos2d::CCNode::convertToNodeSpace(v61, v19, (const cocos2d::CCPoint *)v60); v25(v24, v61); v27 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v26); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.8); cocos2d::CCSprite::setFlipX(v27, 1); v28 = CCMenuItemSpriteExtra::create((__int64)v27, 0, (__int64)this, (__int64)TopArtistsLayer::onNextPage, 0); *(this + 87) = (cocos2d::CCObject *)v28; CCMenuItemSpriteExtra::setSizeMult(v28, 1.2); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v19 + 456LL))(v19, *(this + 87)); v29 = (__int64)*(this + 87); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + 220.0) - 22.0, v20); cocos2d::CCNode::convertToNodeSpace(v61, v19, (const cocos2d::CCPoint *)v60); v30(v29, v61); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 88) + 344LL))(*(this + 88), 0); v31 = (LoadingCircle *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 87) + 344LL))( *(this + 87), 0); v32 = LoadingCircle::create(v31); *(this + 86) = (cocos2d::CCObject *)v32; *(_QWORD *)(v32 + 552) = *(this + 73); *((_BYTE *)*(this + 86) + 560) = 0; cocos2d::CCObject::retain(*(this + 86)); LoadingCircle::show((cocos2d::CCNode **)*(this + 86)); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 86) + 344LL))(*(this + 86), 0); v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v33); *(this + 90) = (cocos2d::CCObject *)v34; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v34); v35 = (__int64)*(this + 90); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, (float)((float)(*(float *)&v59 * 0.5) + 220.0) - 8.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 145.0) - 8.0); v36(v35, v61); v37 = (__int64)*(this + 90); v38 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 1.0, 1.0); v39 = (GameLevelManager *)v38(v37, v61); v40 = (GameLevelManager *)GameLevelManager::sharedState(v39); TopArtistsKey = (const char *)GameLevelManager::getTopArtistsKey(v40, nullptr); v62[0] = 0; v57 = (char *)TopArtistsKey; v62[1] = 0; v63 = nullptr; v42 = strlen(TopArtistsKey); v43 = (GameLevelManager *)std::string::__init(v62, v57, v42); v44 = (GameLevelManager *)GameLevelManager::sharedState(v43); v45 = (char *)v62 + 1; if ( (v62[0] & 1) != 0 ) v45 = (const char *)v63; StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v44, v45); if ( StoredOnlineLevels ) { v47 = *((void (__fastcall **)(cocos2d::CCObject **, __int64 *, char *))*this + 170); v48 = (GameLevelManager *)GameLevelManager::sharedState(*this); v49 = (char *)v62 + 1; if ( (v62[0] & 1) != 0 ) v49 = (const char *)v63; PageInfo = GameLevelManager::getPageInfo(v48, v49); v64[0] = 0; v64[1] = 0; v65 = nullptr; v50 = strlen(PageInfo); std::string::__init(v64, PageInfo, v50); v51 = (char *)v62 + 1; if ( (v62[0] & 1) != 0 ) v51 = (char *)v63; v47(this, v64, v51); if ( (v64[0] & 1) != 0 ) operator delete(v65); v52 = (char *)v62 + 1; if ( (v62[0] & 1) != 0 ) v52 = (char *)v63; (*((void (__fastcall **)(cocos2d::CCObject **, __int64, char *))*this + 168))(this, StoredOnlineLevels, v52); } else { v53 = (GameLevelManager *)GameLevelManager::sharedState(nullptr); GameLevelManager::makeTimeStamp(v53, "upd_artists"); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 86) + 344LL))(*(this + 86), 1); v54 = (GameLevelManager *)TopArtistsLayer::setupLeaderboard((TopArtistsLayer *)this, nullptr); v55 = (GameLevelManager *)GameLevelManager::sharedState(v54); *((_QWORD *)v55 + 182) = this + 83; v56 = (GameLevelManager *)GameLevelManager::sharedState(v55); GameLevelManager::getTopArtists(v56, nullptr, 0); } if ( (v62[0] & 1) != 0 ) operator delete(v63); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source