//
// EditButtonBar::init from 0x73b398 to 0x73b448 (176 bytes)
//
// 2 xrefs:
// > EditButtonBar::create @ 0x73b4ec
// > ??> @ 0x37a58
//
// 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
//
bool EditButtonBar::init(EditButtonBar *a1, cocos2d::CCArray *a2, cocos2d::CCPoint a3, int a4, bool a5, int a6, int a7)
{
int v7; // w6
_BOOL4 v9; // w24
char v10; // w23
int v12; // w21
_BOOL8 v13; // x0
bool v14; // w20
cocos2d::CCArray *v15; // x0
cocos2d::CCArray *v16; // x0
cocos2d::CCArray *v17; // x0
float v18; // s0
float v19; // s1
cocos2d::CCArray *m_buttonArray; // x1
v9 = a5;
v10 = a6;
v12 = v7;
v13 = cocos2d::CCNode::init(a1);
v14 = v13;
if ( v13 )
{
v15 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v13);
a1->m_buttonArray = v15;
cocos2d::CCObject::retain(v15);
v16 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(a1->m_buttonArray, a2);
v17 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16);
a1->m_pagesArray = v17;
cocos2d::CCObject::retain(v17);
cocos2d::CCPoint::operator=(&a1->m_position, v18, v19);
a1->m_tabIndex = v9;
m_buttonArray = a1->m_buttonArray;
a1->m_hasCreateItems = v10;
EditButtonBar::loadFromItems(a1, m_buttonArray, a7, v12, 0);
}
return v14;
}