// // ListButtonPage::init from 0x3e6ab8 to 0x3e6c1c (356 bytes) // // 1 xrefs: // > ListButtonPage::create @ 0x3e6c9e // // 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 // cocos2d::CCMenu *__fastcall ListButtonPage::init( cocos2d::CCLayer *a1, cocos2d::CCArray *a2, float *a3, int a4, int a5, float a6, float a7, float a8) { cocos2d::CCMenu *v12; // r0 const cocos2d::CCPoint *v13; // r6 float v14; // s23 float v15; // s18 unsigned int v16; // r5 int v17; // r4 float v18; // s23 float v19; // s18 int v20; // s17 float v21; // s19 int v22; // r8 cocos2d::CCMenu *v24; // [sp+4h] [bp-28h] void (__fastcall *v25)(int, _BYTE *); // [sp+Ch] [bp-20h] char v26[8]; // [sp+14h] [bp-18h] BYREF _BYTE v27[8]; // [sp+1Ch] [bp-10h] BYREF v12 = (cocos2d::CCMenu *)cocos2d::CCLayer::init(a1); v24 = v12; if ( v12 ) { v13 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v12); (*(void (__fastcall **)(cocos2d::CCLayer *, const cocos2d::CCPoint *))(*(_DWORD *)a1 + 228))(a1, v13); v14 = a3[1]; v15 = *a3; v16 = 0; v17 = 0; v18 = v14 + (float)((float)((float)(a5 - 1) * 0.5) * (float)(a8 + a7)); v19 = (float)(v15 - (float)((float)((float)a4 * 0.5) * a8)) - (float)((float)((float)(a4 - 1) * 0.5) * a6); while ( v16 < cocos2d::CCArray::count(a2) ) { v20 = v17 % a4; v21 = floorf((float)v17 / (float)a4); v22 = cocos2d::CCArray::objectAtIndex(a2, v16); if ( (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 32))(v22) == -2 ) { v17 += a4 - v20; } else { ++v17; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v13 + 228))(v13, v22); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v26, (float)(v19 + (float)(a8 * 0.5)) + (float)((float)v20 * (float)(a8 + a6)), v18 - (float)((float)(int)v21 * (float)(a8 + a7))); v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v22 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v13); v25(v22, v27); } ++v16; } } return v24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source