// // ButtonPage::create from 0x100421408 to 0x1004214d4 (204 bytes) // // 1 xrefs: // > EditButtonBar::loadFromItems @ 0x100421158 // // 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! ButtonPage *__fastcall ButtonPage::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, float a4) { float x; // s8 __int64 *v5; // x22 ButtonPage *v7; // x19 float v8; // s2 __int64 v10; // [xsp+8h] [xbp-38h] BYREF cocos2d::CCPoint v11; // 0:s0.4,4:s1.4 x = a2.x; v5 = *(__int64 **)&a3; v7 = (ButtonPage *)operator new(0x198u); cocos2d::CCLayer::CCLayer((__int64)v7); v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ButtonPage_vtbl *)&off_1008248B0; v7->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100824D30; v7->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100824DA0; v7->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100824DB8; v7->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_100824DD8; v7->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100824DF8; sub_1000229B8(&v10, v5); v11.x = x; if ( ButtonPage::init(v7, a1, v11, (int)&v10, v8) ) { cocos2d::CCObject::autorelease(v7); } else { ((void (__fastcall *)(ButtonPage *))v7->~ButtonPage_0)(v7); return nullptr; } return v7; }