// // ButtonPage::init from 0x4ddef8 to 0x4de028 (304 bytes) // // 1 xrefs: // > ButtonPage::create @ 0x4de09e // // 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:50:58 +0000 // cocos2d::CCMenu *__fastcall ButtonPage::init(cocos2d::CCLayer *a1, cocos2d::CCArray *a2, float *a3, int a4, float a5) { cocos2d::CCMenu *v9; // r0 cocos2d::CCMenu *v10; // r8 const cocos2d::CCPoint *v11; // r6 float v12; // s16 float v13; // s19 int v14; // r4 float v15; // s16 float v16; // s19 int v17; // s23 float v18; // r0 unsigned int v19; // r1 float v20; // s17 int v21; // r5 void (__fastcall *v23)(int, _BYTE *); // [sp+4h] [bp-20h] char v24[8]; // [sp+Ch] [bp-18h] BYREF _BYTE v25[8]; // [sp+14h] [bp-10h] BYREF v9 = (cocos2d::CCMenu *)cocos2d::CCLayer::init(a1); v10 = v9; if ( v9 ) { v11 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v9); (*(void (__fastcall **)(cocos2d::CCLayer *, const cocos2d::CCPoint *))(*(_DWORD *)a1 + 228))(a1, v11); v12 = *a3; v13 = a3[1]; v14 = 0; v15 = (float)(v12 - (float)((float)((float)a4 * 0.5) * a5)) - (float)((float)((float)(a4 - 1) * 0.5) * 4.0); v16 = v13 - (float)(a5 * 0.5); while ( (unsigned int)v14 < cocos2d::CCArray::count(a2) ) { v17 = v14 % a4; v18 = floorf((float)v14 / (float)a4); v19 = v14++; v20 = v18; v21 = cocos2d::CCArray::objectAtIndex(a2, v19); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v21); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v24, (float)(v15 + (float)(a5 * 0.5)) + (float)((float)v17 * (float)(a5 + 4.0)), v16 - (float)((float)(int)v20 * (float)(a5 + 4.0))); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v21 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v25, v11); v23(v21, v25); } } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source