//
// ButtonPage::create from 0x1006b48e0 to 0x1006b49b7 (215 bytes)
//
// 1 xrefs:
// > EditButtonBar::loadFromItems @ 0x1006b449a
//
// This function is hookable on this platform (idp: pc, 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:35:26 +0000
//
_QWORD *__fastcall ButtonPage::create(__int64 a1, _QWORD *a2, unsigned int a3, float a4)
{
_QWORD *v5; // rbx
__int64 v7; // [rsp+Ch] [rbp-34h] BYREF
float v8; // [rsp+14h] [rbp-2Ch]
v8 = a4;
v5 = operator new(0x198u);
cocos2d::CCLayer::CCLayer((__int64)v5);
*v5 = off_100B893B8;
v5[40] = off_100B89848;
v5[41] = &off_100B898B8;
v5[42] = off_100B898D0;
v5[43] = off_100B898F0;
v5[44] = off_100B89918;
sub_1002782D0(&v7, a2);
if ( (unsigned __int8)ButtonPage::init(v5, a1, &v7, a3, v8) )
{
cocos2d::CCObject::autorelease((__int64)v5);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5);
return nullptr;
}
return v5;
}