//
// ButtonPage::create from 0x8615fc to 0x86171c (288 bytes)
//
// 2 xrefs:
// > EditButtonBar::loadFromItems @ 0x8619e4
// > ??> @ 0x104740
//
// 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
//
cocos2d::CCLayer *__fastcall ButtonPage::create(cocos2d::CCArray *a1, const cocos2d::CCPoint *a2, int a3, float a4)
{
cocos2d::CCLayer *v8; // x19
__int64 v9; // x1
cocos2d::CCLayer *v10; // x0
float v12; // [xsp+50h] [xbp+50h] BYREF
v8 = (cocos2d::CCLayer *)operator new(0x198u);
cocos2d::CCLayer::CCLayer(v8);
*(_QWORD *)v8 = &off_1441890;
*((_QWORD *)v8 + 40) = off_1441D20;
*((_QWORD *)v8 + 44) = off_1441DF0;
*((_QWORD *)v8 + 41) = &off_1441D90;
*((_QWORD *)v8 + 42) = off_1441DA8;
*((_QWORD *)v8 + 43) = off_1441DC8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2);
if ( (unsigned __int8)ButtonPage::init(v8, a1, &v12, a3, a4) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
v9 = *(_QWORD *)v8;
v10 = v8;
v8 = nullptr;
(*(void (__fastcall **)(cocos2d::CCLayer *))(v9 + 16))(v10);
}
return v8;
}