// // WorldSelectLayer::setupWorlds from 0xaa7a2c to 0xaa7e4c (1056 bytes) // // 2 xrefs: // > WorldSelectLayer::init @ 0xaa8478 // > @ 0x462b8 // // 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:51 +0000 // __int64 __fastcall WorldSelectLayer::setupWorlds(cocos2d::CCArray ***this) { unsigned int v2; // w21 cocos2d::CCDirector *v3; // x0 cocos2d::CCArray *WinSize; // x0 cocos2d::CCArray *v5; // x27 cocos2d::CCLayer *v6; // x0 cocos2d::CCObject *v7; // x22 WorldSelectLayer *v8; // x2 cocos2d::CCNode *v9; // x20 __int64 v10; // x1 void (__fastcall *v11)(cocos2d::CCNode *, __int64 *); // x26 const char *v12; // x2 const cocos2d::CCPoint *v13; // x1 cocos2d::CCEaseInOut *v14; // x0 cocos2d::CCActionInterval *v15; // x1 cocos2d::CCSequence *v16; // x26 const cocos2d::CCPoint *v17; // x1 cocos2d::CCEaseInOut *v18; // x0 cocos2d::CCActionInterval *v19; // x1 cocos2d::CCFiniteTimeAction *v20; // x0 cocos2d::CCRepeatForever *v21; // x0 cocos2d::CCActionInterval *v22; // x1 cocos2d::CCAction *v23; // x26 cocos2d::CCString *v24; // x0 cocos2d::CCSprite *CString; // x0 const char *v26; // x1 __int64 v27; // x26 void (__fastcall *v28)(__int64, __int64 *); // x22 __int64 v29; // x0 cocos2d::CCDirector *v30; // x0 cocos2d::CCArray **v31; // x20 float v32; // s8 cocos2d::CCDirector *v33; // x0 float v34; // s0 __int64 v36; // x26 const char *v37; // x1 __int64 v38; // x0 cocos2d::CCMenu *v39; // x0 cocos2d::CCMenuItem *v40; // x1 __int64 v41; // x26 void (__fastcall *v42)(__int64, __int64 *); // x22 void (__fastcall *v43)(__int64, __int64 *); // [xsp+88h] [xbp+88h] void (__fastcall *v44)(cocos2d::CCNode *, __int64 *); // [xsp+88h] [xbp+88h] __int64 v45; // [xsp+98h] [xbp+98h] BYREF _BYTE v46[8]; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v47[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v48; // [xsp+B0h] [xbp+B0h] BYREF v2 = 1; v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v45, v3); v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(WinSize); v6 = (cocos2d::CCLayer *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v46, *(float *)&v45 * 0.5, (float)((float)((float)(*((float *)&v45 + 1) * 0.5) + -15.0) + 2.0) - 5.0); while ( 1 ) { v7 = (cocos2d::CCObject *)cocos2d::CCLayer::create(v6); cocos2d::CCArray::addObject(v5, v7); v9 = (cocos2d::CCNode *)GJWorldNode::create((GJWorldNode *)v2, (WorldSelectLayer *)this, v8); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCNode *))(*(_QWORD *)v7 + 456LL))(v7, v9); (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v9 + 72LL))(v9, v2); v10 = *(_QWORD *)v9; if ( v2 != 2 ) break; v44 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(v10 + 184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, -10.0); cocos2d::CCPoint::operator+(&v48, v46); v44(v9, &v48); LABEL_4: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, 0.0, -4.0); v14 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v48, 2.0, v13); v16 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v14, v15, 1.8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, 0.0, 4.0); v18 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveBy::create((cocos2d::CCMoveBy *)&v48, 2.0, v17); v20 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v18, v19, 1.8); v21 = (cocos2d::CCRepeatForever *)cocos2d::CCSequence::create(v16, v20, 0); v23 = (cocos2d::CCAction *)cocos2d::CCRepeatForever::create(v21, v22); cocos2d::CCNode::runAction(v9, v23); (*(void (__fastcall **)(cocos2d::CCAction *, float))(*(_QWORD *)v23 + 104LL))(v23, 0.5); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"worldLabel_%02d_001.png", (const char *)v2); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v24); v27 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v26); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v27); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, 142.0); cocos2d::CCPoint::operator+(&v48, v46); v28(v27, &v48); v6 = *((cocos2d::CCLayer **)v9 + 41); if ( v6 ) goto LABEL_5; LABEL_6: if ( ++v2 == 4 ) goto LABEL_7; } v11 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(v10 + 184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, 0.0); cocos2d::CCPoint::operator+(&v48, v46); v11(v9, &v48); if ( v2 != 3 ) goto LABEL_4; v36 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Coming Soon", "bigFont.fnt", v12); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v36); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.8); v43 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v36 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, 142.0); cocos2d::CCPoint::operator+(&v48, v46); v43(v36, &v48); v38 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_freeLevelsBtn_001.png", v37); v39 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create( v38, 0, (__int64)this, (__int64)WorldSelectLayer::onFreeLevels, 0); v41 = cocos2d::CCMenu::createWithItem(v39, v40); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 456LL))(v7, v41); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, *(float *)&v45 * 0.5, (float)(*((float *)&v45 + 1) * 0.5) + -20.0); v42(v41, &v48); v6 = *((cocos2d::CCLayer **)v9 + 41); if ( v6 ) { LABEL_5: *(this + 57) = (cocos2d::CCArray **)v9; goto LABEL_6; } LABEL_7: v29 = BoomScrollLayer::create(v5, 0, 0, nullptr, 0); *(this + 53) = (cocos2d::CCArray **)v29; *(_QWORD *)(*(_QWORD *)(v29 + 504) + 408LL) = this + 51; (*(this + 53))[68] = (cocos2d::CCArray *)(this + 51); v30 = (cocos2d::CCDirector *)((__int64 (__fastcall *)(cocos2d::CCArray ***, _QWORD))(*this)[57])(this, *(this + 53)); v31 = *(this + 53); v32 = *(float *)&v45 * 0.5; v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v30); cocos2d::CCDirector::getScreenBottom(v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, v32, v34 + 15.0); BoomScrollLayer::setPagesIndicatorPosition(v31, (__int64)&v48); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source