//
// ButtonPage::create from 0x73ad30 to 0x73ae50 (288 bytes)
//
// 2 xrefs:
// > EditButtonBar::loadFromItems @ 0x73b0b8
// > ??> @ 0xc8478
//
// 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 *ButtonPage::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, float a4)
{
const cocos2d::CCPoint *v4; // x23
float x; // s8
ButtonPage *v7; // x19
float v8; // s2
ButtonPage_vtbl *v9; // x1
ButtonPage *v10; // x0
cocos2d::CCPoint v12; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v13; // 0:s0.4,4:s1.4
v4 = *(const cocos2d::CCPoint **)&a3;
x = a2.x;
v7 = (ButtonPage *)operator new(0x198u);
cocos2d::CCLayer::CCLayer(v7);
v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ButtonPage_vtbl *)&off_1160320;
v7->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_11607A0;
v7->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1160868;
v7->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1160810;
v7->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1160828;
v7->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_1160848;
cocos2d::CCPoint::CCPoint(&v12, v4);
v13.x = x;
if ( ButtonPage::init(v7, a1, v13, (int)&v12, v8) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
v9 = v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v10 = v7;
v7 = nullptr;
v9->~ButtonPage_0(v10);
}
return v7;
}