// // ListButtonBar::init from 0x3e6ce0 to 0x3e6fac (716 bytes) // // 1 xrefs: // > ListButtonBar::create @ 0x3e7032 // // 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:47:05 +0000 // int __fastcall ListButtonBar::init( int a1, cocos2d::CCArray *a2, const cocos2d::CCPoint *a3, int a4, int a5, float a6, float a7, float a8, float a9, char *a10) { unsigned int v13; // r5 unsigned int v14; // r7 cocos2d::CCArray *WinSize; // r0 cocos2d::CCObject *v16; // r0 cocos2d::CCArray *v17; // r0 cocos2d::CCArray *v18; // r6 cocos2d::CCObject *v19; // r0 cocos2d::CCObject *v20; // r10 cocos2d::CCArray *v21; // r11 cocos2d::CCArray *v22; // r0 cocos2d::CCArray *v23; // r0 cocos2d::CCObject *v24; // r1 unsigned int v25; // r7 cocos2d::CCArray *v26; // r0 cocos2d::CCArray *v27; // r9 cocos2d::CCObject *v28; // r0 cocos2d::CCArray *v29; // r5 _BOOL4 v30; // r2 bool v31; // r3 unsigned int v32; // r0 int v33; // r3 cocos2d::CCDirector *v34; // r0 unsigned int v35; // r5 float v36; // s16 cocos2d::CCDirector *v37; // r0 float v38; // r0 cocos2d::CCMenu *v39; // r0 const cocos2d::CCPoint *v40; // r5 cocos2d::CCString *v41; // r0 const char *v42; // r1 int v43; // r7 int v44; // r11 const char *v45; // r1 cocos2d::CCSprite *v46; // r10 int v47; // r4 void (__fastcall *v48)(int, _BYTE *); // r10 cocos2d::CCArray *v50; // r0 cocos2d::CCObject *v51; // r11 _BOOL4 v52; // [sp+10h] [bp-4Ch] void (__fastcall *v53)(int, _DWORD *); // [sp+10h] [bp-4Ch] cocos2d::CCSprite *CString; // [sp+14h] [bp-48h] float v56[2]; // [sp+24h] [bp-38h] BYREF _BYTE v57[8]; // [sp+2Ch] [bp-30h] BYREF _BYTE v58[8]; // [sp+34h] [bp-28h] BYREF _BYTE v59[8]; // [sp+3Ch] [bp-20h] BYREF int (__fastcall ***(__fastcall *v60)(cocos2d::CCArray ***, cocos2d::CCObject *))(_DWORD, cocos2d::CCArray ***, cocos2d::CCArray *); // [sp+44h] [bp-18h] int v61; // [sp+48h] [bp-14h] _DWORD v62[2]; // [sp+4Ch] [bp-10h] BYREF v13 = 0; v14 = 0; cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v56); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *(_DWORD *)(a1 + 268) = v16; v17 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v16); v18 = (cocos2d::CCArray *)cocos2d::CCArray::create(v17); v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(v18); cocos2d::CCArray::addObject(v18, v19); while ( v13 < cocos2d::CCArray::count(a2) ) { v20 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a2, v13); v21 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v18, v14); v52 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v20 + 32))(v20) == -1; v22 = (cocos2d::CCArray *)cocos2d::CCArray::count(v21); if ( (unsigned int)v22 >= a5 * a4 || v52 ) { v50 = (cocos2d::CCArray *)cocos2d::CCArray::create(v22); v51 = v50; if ( !v52 ) cocos2d::CCArray::addObject(v50, v20); ++v14; v23 = v18; v24 = v51; } else { v23 = v21; v24 = v20; } cocos2d::CCArray::addObject(v23, v24); ++v13; } v25 = 0; while ( v25 < cocos2d::CCArray::count(v18) ) { v26 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(v18, v25++); v27 = v26; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, a3); v28 = ListButtonPage::create(v27, (const cocos2d::CCPoint *)v62, a4, a5, a6, a7, a8); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 268), v28); } v29 = *(cocos2d::CCArray **)(a1 + 268); v30 = cocos2d::CCArray::count(v29) > 1u; v32 = BoomScrollLayer::create(v29, nullptr, v30, v31); v33 = *(_DWORD *)a1; *(_DWORD *)(a1 + 264) = v32; v34 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, unsigned int))(v33 + 228))(a1, v32); v35 = *(_DWORD *)(a1 + 264); v36 = v56[0] * 0.5; v37 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v34); v38 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v37)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v36, v38 + 6.0); BoomScrollLayer::setPagesIndicatorPosition(v35, (int)v62); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 264) + 500))(*(_DWORD *)(a1 + 264), 0); v39 = (cocos2d::CCMenu *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 268)); if ( (unsigned int)v39 <= 1 ) { *(_BYTE *)(*(_DWORD *)(a1 + 264) + 441) = 0; } else { v40 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v39); (*(void (__fastcall **)(int, const cocos2d::CCPoint *))(*(_DWORD *)a1 + 228))(a1, v40); v41 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"GJ_arrow_%02d_001.png", a10); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v41); v43 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v42); (*(void (__fastcall **)(int, int))(*(_DWORD *)v43 + 80))(v43, 1061997773); v60 = ListButtonBar::onLeft; v61 = 0; v44 = CCMenuItemSpriteExtra::create(v43, 0, a1, (int)ListButtonBar::onLeft, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v40 + 228))(v40, v44); CCMenuItemSpriteExtra::setSizeMult(v44, 2.2); v53 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v44 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, COERCE_FLOAT(LODWORD(a9) ^ 0x80000000), 0.0); cocos2d::CCPoint::operator+(v59, a3, v58); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v62, v40); v53(v44, v62); v46 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(CString, v45); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v46 + 80))(v46, 1061997773); cocos2d::CCSprite::setFlipX(v46, 1); v62[0] = ListButtonBar::onRight; v62[1] = 0; v47 = CCMenuItemSpriteExtra::create((int)v46, 0, a1, (int)ListButtonBar::onRight, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v40 + 228))(v40, v47); v48 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v47 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, a9, 0.0); cocos2d::CCPoint::operator+(v58, a3, v57); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v59, v40); v48(v47, v59); CCMenuItemSpriteExtra::setSizeMult(v47, 2.2); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source