//
// ButtonPage::create from 0x4de02c to 0x4de0d8 (172 bytes)
//
// 1 xrefs:
// > EditButtonBar::loadFromItems @ 0x4de33c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:58 +0000
//
cocos2d::CCLayer *__fastcall ButtonPage::create(cocos2d::CCArray *a1, const cocos2d::CCPoint *a2, int a3, float a4)
{
cocos2d::CCLayer *v8; // r4
int v9; // r3
cocos2d::CCLayer *v10; // r0
float v12[2]; // [sp+Ch] [bp-Ch] BYREF
v8 = (cocos2d::CCLayer *)operator new(0x13Cu);
cocos2d::CCLayer::CCLayer(v8);
*(_DWORD *)v8 = &off_C9A818;
*((_DWORD *)v8 + 66) = &off_C9AA60;
*((_DWORD *)v8 + 67) = &off_C9AA98;
*((_DWORD *)v8 + 68) = &off_C9AAA4;
*((_DWORD *)v8 + 69) = &off_C9AAB4;
*((_DWORD *)v8 + 70) = &off_C9AAC8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2);
if ( ButtonPage::init(v8, a1, v12, a3, a4) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
v9 = *(_DWORD *)v8;
v10 = v8;
v8 = nullptr;
(*(void (__fastcall **)(cocos2d::CCLayer *))(v9 + 8))(v10);
}
return v8;
}