// // ButtonPage::init from 0x73ab8c to 0x73ad30 (420 bytes) // // 2 xrefs: // > ButtonPage::create @ 0x73add8 // > @ 0x48558 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! bool ButtonPage::init(ButtonPage *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, int a4, float a5) { int v5; // w3 float x; // s10 float *v9; // x26 int v10; // w20 bool v11; // w25 cocos2d::CCMenu *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, _BYTE *, float, float); // x26 cocos2d::CCPoint v22; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v23[8]; // [xsp+B0h] [xbp+B0h] BYREF cocos2d::CCPoint v24; // 0:kr00_8.8 x = a3.x; v9 = *(float **)&a4; v10 = v5; v11 = cocos2d::CCLayer::init(a1); if ( v11 ) { v13 = cocos2d::CCMenu::create(); v14 = 0; a1->addChild(a1, v13); v15 = v9[1] - (float)(x * 0.5); v16 = (float)(*v9 - (float)(x * (float)((float)v10 * 0.5))) - (float)((float)((float)(v10 - 1) * 0.5) * 4.0); while ( v14 < (unsigned int)cocos2d::CCArray::count(a2) ) { v17 = v14; v18 = (float)v14 / (float)v10; v19 = v14 % v10; ++v14; v20 = cocos2d::CCArray::objectAtIndex(a2, v17); v13->addChild(v13, (cocos2d::CCNode *)v20); cocos2d::CCPoint::CCPoint( &v22, (float)((float)(x * 0.5) + v16) + (float)((float)v19 * (float)(x + 4.0)), v15 - (float)((float)(x + 4.0) * (float)(int)floorf(v18))); v21 = *(void (__fastcall **)(__int64, _BYTE *, float, float))(*(_QWORD *)v20 + 184LL); v24 = cocos2d::CCNode::convertToNodeSpace(v13, &v22); v21(v20, v23, v24.x, v24.y); } } return v11; }