//
// EditButtonBar::init from 0x100420e10 to 0x100420ebc (172 bytes)
//
// 1 xrefs:
// > EditButtonBar::create @ 0x100420db4
//
// 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!
bool __fastcall EditButtonBar::init(
EditButtonBar *a1,
cocos2d::CCArray *a2,
cocos2d::CCPoint a3,
int a4,
bool a5,
int a6,
int a7)
{
int v7; // w6
int v8; // w19
char v10; // w23
_BOOL4 v11; // w24
double *v12; // x25
_BOOL4 v15; // w21
cocos2d::CCArray *v16; // x0
cocos2d::CCArray *v17; // x0
v8 = v7;
v10 = a6;
v11 = a5;
v12 = *(double **)&a4;
v15 = cocos2d::CCNode::init(a1);
if ( v15 )
{
v16 = (cocos2d::CCArray *)sub_10024A15C();
a1->m_buttonArray = v16;
cocos2d::CCObject::retain(v16);
sub_10024A360((__int64)a1->m_buttonArray, (__int64)a2);
v17 = (cocos2d::CCArray *)sub_10024A15C();
a1->m_pagesArray = v17;
cocos2d::CCObject::retain(v17);
sub_1000229D0(&a1->m_position, v12);
a1->m_tabIndex = v11;
a1->m_hasCreateItems = v10;
EditButtonBar::loadFromItems(a1, a1->m_buttonArray, a7, v8, 0);
}
return v15;
}