// // ButtonPage::init from 0x861458 to 0x8615fc (420 bytes) // // 2 xrefs: // > ButtonPage::create @ 0x8616a4 // > @ 0x664f0 // // 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 12:55:36 +0000 // __int64 __fastcall ButtonPage::init(cocos2d::CCLayer *a1, cocos2d::CCArray *a2, float *a3, int a4, float a5) { cocos2d::CCMenu *v10; // x0 unsigned int v11; // w25 cocos2d::CCNode *v13; // x19 int v14; // w27 float v15; // s11 float v16; // s9 unsigned int v17; // w1 float v18; // s8 int v19; // w26 __int64 v20; // x28 void (__fastcall *v21)(__int64, __int64 *); // x26 _BYTE v22[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v23; // [xsp+B0h] [xbp+B0h] BYREF v10 = (cocos2d::CCMenu *)(unsigned __int8)cocos2d::CCLayer::init(a1); v11 = (unsigned __int8)v10; if ( (_BYTE)v10 ) { v13 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v10); v14 = 0; (*(void (__fastcall **)(cocos2d::CCLayer *, cocos2d::CCNode *))(*(_QWORD *)a1 + 456LL))(a1, v13); v15 = a3[1] - (float)(a5 * 0.5); v16 = (float)(*a3 - (float)(a5 * (float)((float)a4 * 0.5))) - (float)((float)((float)(a4 - 1) * 0.5) * 4.0); while ( v14 < (unsigned int)cocos2d::CCArray::count(a2) ) { v17 = v14; v18 = (float)v14 / (float)a4; v19 = v14 % a4; ++v14; v20 = cocos2d::CCArray::objectAtIndex(a2, v17); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v13 + 456LL))(v13, v20); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, (float)((float)(a5 * 0.5) + v16) + (float)((float)v19 * (float)(a5 + 4.0)), v15 - (float)((float)(a5 + 4.0) * (float)(int)floorf(v18))); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v23, v13, (const cocos2d::CCPoint *)v22); v21(v20, &v23); } } return v11; }