// // SelectListIconLayer::init from 0xba99cc to 0xba9ed0 (1284 bytes) // // 2 xrefs: // > SelectListIconLayer::create @ 0xbaa02c // > @ 0x9d4f8 // // 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:02:51 +0000 // __int64 __fastcall SelectListIconLayer::init(cocos2d::CCArray **this, int a2) { int v5; // w19 unsigned int v6; // w25 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCLayer *WinSize; // x0 __int64 v10; // x0 __int64 v11; // x20 void (__fastcall *v12)(__int64, __int64 *); // x21 void (__fastcall *v13)(__int64, __int64 *); // x21 const char *v14; // x2 __int64 v15; // x20 void (__fastcall *v16)(__int64, __int64 *); // x21 cocos2d::CCArray *v17; // x0 cocos2d::CCObject *v18; // x0 cocos2d::CCArray *v19; // x0 cocos2d::CCMenu *v20; // x27 __int64 v21; // x0 cocos2d::CCNode *v22; // x20 cocos2d::CCSprite *v23; // x0 cocos2d::CCObject *v24; // x21 cocos2d::CCObject *v25; // x20 void (__fastcall *v26)(cocos2d::CCObject *, __int64 *); // x21 const char *v27; // x6 __int64 v28; // x0 __int64 v29; // x19 cocos2d::CCNode *v30; // x21 void (__fastcall *v31)(__int64, __int64 *); // x20 unsigned __int8 v32; // [xsp+9Fh] [xbp+9Fh] __int64 v33; // [xsp+A8h] [xbp+A8h] BYREF __int64 v34; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v35[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v36[2]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v37[2]; // [xsp+D0h] [xbp+D0h] BYREF void *v38; // [xsp+E0h] [xbp+E0h] LODWORD(v36[0]) = -1778384896; v32 = cocos2d::CCLayerColor::initWithColor(this, v36); if ( v32 ) { v5 = 0; FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)this); *((_DWORD *)this + 168) = a2; v6 = 0; (*((void (__fastcall **)(cocos2d::CCArray **, __int64))*this + 125))(this, 1); v7 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCArray **, __int64))*this + 134))(this, 1); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v33, v8); v10 = cocos2d::CCLayer::create(WinSize); *(this + 73) = (cocos2d::CCArray *)v10; (*((void (__fastcall **)(cocos2d::CCArray **, __int64))*this + 57))(this, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v36, 0.0, 0.0, 80.0, 80.0); v11 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v36); v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v36, 360.0, 240.0); v12(v11, v36); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v11, 0xFFFFFFFFLL); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, *(float *)&v33 * 0.5, *((float *)&v33 + 1) * 0.5); v13(v11, v36); v15 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Icon", "bigFont.fnt", v14); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v36, *(float *)&v33 * 0.5, (float)((float)(*((float *)&v33 + 1) * 0.5) + 120.0) - 20.0); v16(v15, v36); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v15); v17 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.8); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *(this + 83) = v18; v19 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v18); v20 = (cocos2d::CCMenu *)cocos2d::CCArray::create(v19); v21 = cocos2d::CCMenu::create(v20); *(this + 69) = (cocos2d::CCArray *)v21; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v21, 10); v22 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v36, *(float *)&v33 * 0.5, (float)((float)(*((float *)&v33 + 1) * 0.5) + 30.0) + 5.0); cocos2d::CCNode::convertToNodeSpace(&v34, v22, (const cocos2d::CCPoint *)v36); while ( 1 ) { GJLevelList::frameForListDifficulty(v5, 1, v37); v23 = (cocos2d::CCSprite *)((char *)v37 + 1); if ( (v37[0] & 1) != 0 ) v23 = (cocos2d::CCSprite *)v38; v24 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v23, (const char *)LOBYTE(v37[0])); cocos2d::CCArray::addObject(*(this + 83), v24); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v24 + 160LL))(v24, 1.0); v25 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v24, 0, (__int64)this, (__int64)SelectListIconLayer::onSelect, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v24 + 72LL))(v24, v6); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v25 + 72LL))(v25, v6); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v25); cocos2d::CCArray::addObject(v20, v25); v26 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v25 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, (float)((float)((float)(v5 % 6) * 52.0) + -156.0) + 26.0, floorf((float)(v5 / 6)) * -60.0); cocos2d::CCPoint::operator+(v36, &v34); v26(v25, v36); if ( (v37[0] & 1) != 0 ) { ++v5; operator delete(v38); if ( v5 == 12 ) { LABEL_12: *((_DWORD *)this + 160) = -1; cocos2d::CCArray::removeAllObjects(v20); v28 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v27, 30.0); v29 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, (__int64)SelectListIconLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v29); v30 = *(this + 69); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, *(float *)&v33 * 0.5, (float)((float)(*((float *)&v33 + 1) * 0.5) + -120.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(v36, v30, (const cocos2d::CCPoint *)v35); v31(v29, v36); SelectListIconLayer::onSelect((SelectListIconLayer *)this, nullptr); *((_BYTE *)this + 596) = 1; return v32; } } else if ( ++v5 == 12 ) { goto LABEL_12; } if ( v5 == 11 ) v6 = -1; else v6 = v5; } } return v32; }
GD Web Decomp Icon

GD Web Decomp

Raw Source