// // SelectListIconLayer::init from 0x6d5170 to 0x6d54fc (908 bytes) // // 1 xrefs: // > SelectListIconLayer::create @ 0x6d55b4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:57:06 +0000 // int __fastcall SelectListIconLayer::init(cocos2d::CCArray **this, cocos2d::CCArray *a2) { const char *v3; // r5 int v5; // r9 cocos2d::CCArray *v6; // r3 int v7; // r11 cocos2d::CCDirector *v8; // r0 cocos2d::CCLayer *WinSize; // r0 cocos2d::CCArray *v10; // r0 cocos2d::CCArray *v11; // r3 int v12; // r7 void (__fastcall *v13)(int, _DWORD *); // r8 void (__fastcall *v14)(int, _DWORD *); // r8 const char *v15; // r2 int v16; // r7 void (__fastcall *v17)(int, _DWORD *); // r8 cocos2d::CCArray *v18; // r0 cocos2d::CCObject *v19; // r0 cocos2d::CCArray *v20; // r0 cocos2d::CCMenu *v21; // r10 cocos2d::CCArray *v22; // r0 const cocos2d::CCPoint *v23; // r7 const char *v24; // r1 cocos2d::CCSprite *v25; // r0 cocos2d::CCObject *v26; // r8 cocos2d::CCObject *v27; // r7 void (__fastcall *v28)(cocos2d::CCObject *, _DWORD *); // r11 float v29; // r0 ButtonSprite *v30; // r0 int v31; // r10 const cocos2d::CCPoint *v32; // r11 int v33; // r2 void (__fastcall *v35)(int, _BYTE *); // [sp+14h] [bp-50h] float v36; // [sp+18h] [bp-4Ch] BYREF float v37; // [sp+1Ch] [bp-48h] _BYTE v38[8]; // [sp+20h] [bp-44h] BYREF _BYTE v39[8]; // [sp+28h] [bp-3Ch] BYREF _BYTE v40[8]; // [sp+30h] [bp-34h] BYREF unsigned int (__fastcall *v41)(SelectListIconLayer *, cocos2d::CCObject *, int); // [sp+38h] [bp-2Ch] int v42; // [sp+3Ch] [bp-28h] int v43[3]; // [sp+40h] [bp-24h] BYREF _DWORD v44[4]; // [sp+4Ch] [bp-18h] BYREF v3 = nullptr; v44[0] = -1778384896; v5 = cocos2d::CCLayerColor::initWithColor(this, v44); if ( v5 ) { FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)this); v6 = *this; *(this + 131) = a2; v7 = 0; (*((void (__fastcall **)(cocos2d::CCArray **, int))v6 + 125))(this, 1); v8 = (cocos2d::CCDirector *)(*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 134))(this, 1); cocos2d::CCDirector::sharedDirector(v8); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v36); v10 = (cocos2d::CCArray *)cocos2d::CCLayer::create(WinSize); v11 = *this; *(this + 115) = v10; (*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCArray *))v11 + 57))(this, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v44, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v44); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v44, 360.0, 240.0); v13(v12, v44); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v12, -1); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v36 * 0.5, v37 * 0.5); v14(v12, v44); v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Icon", "bigFont.fnt", v15); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v36 * 0.5, (float)((float)(v37 * 0.5) + 120.0) - 20.0); v17(v16, v44); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v16); v18 = (cocos2d::CCArray *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1061997773); v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(v18); *(this + 130) = v19; v20 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v19); v21 = (cocos2d::CCMenu *)cocos2d::CCArray::create(v20); v22 = (cocos2d::CCArray *)cocos2d::CCMenu::create(v21); *(this + 111) = v22; (*(void (__fastcall **)(_DWORD, cocos2d::CCArray *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v22, 10); v23 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v36 * 0.5, (float)((float)(v37 * 0.5) + 30.0) + 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v38, v23); while ( 1 ) { GJLevelList::frameForListDifficulty(v43, v3, 1); v25 = (v43[0] & 1) != 0 ? (cocos2d::CCSprite *)v43[2] : (cocos2d::CCSprite *)((char *)v43 + 1); v26 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(v25, v24); cocos2d::CCArray::addObject(*(this + 130), v26); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v26 + 80))(v26, 1065353216); v41 = SelectListIconLayer::onSelect; v42 = 0; v27 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v26, 0, (int)this, (int)SelectListIconLayer::onSelect, 0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v26 + 36))(v26, v7); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v27 + 36))(v27, v7); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v27); cocos2d::CCArray::addObject(v21, v27); v28 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v27 + 92); v29 = floorf((float)((int)v3 / 6)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v40, (float)((float)((float)((int)v3 % 6) * 52.0) - 156.0) + 26.0, v29 * -60.0); cocos2d::CCPoint::operator+(v44, v38, v40); v28(v27, v44); ++v3; std::string::~string((int)v43); if ( v3 == &byte_9[3] ) break; if ( v3 == &byte_9[2] ) v7 = -1; else v7 = (int)v3; } *(this + 125) = (cocos2d::CCArray *)-1; cocos2d::CCArray::removeAllObjects(v21); v30 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), COERCE_FLOAT(&_stack_chk_guard)); v44[0] = SelectListIconLayer::onClose; v44[1] = 0; v31 = CCMenuItemSpriteExtra::create((int)v30, 0, (int)this, (int)SelectListIconLayer::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v31); v32 = *(this + 111); v35 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v31 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v39, v36 * 0.5, (float)((float)(v37 * 0.5) - 120.0) + 25.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v40, v32); v35(v31, v40); SelectListIconLayer::onSelect((SelectListIconLayer *)this, nullptr, v33); *((_BYTE *)this + 468) = 1; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source