//
// EditButtonBar::init from 0x3d9708 to 0x3d976e (102 bytes)
//
// 1 xrefs:
// > EditButtonBar::create @ 0x3d97d6
//
// 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)
{
float x; // r7
int y_low; // r6
_BOOL4 v11; // r0
bool v12; // r5
cocos2d::CCArray *v13; // r0
cocos2d::CCArray *v14; // r0
cocos2d::CCArray *v15; // r0
int v16; // r2
bool v17; // r3
x = a3.x;
y_low = LODWORD(a3.y);
v11 = cocos2d::CCNode::init(a1);
v12 = v11;
if ( v11 )
{
v13 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v11);
a1->m_buttonArray = v13;
cocos2d::CCObject::retain(v13);
v14 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(a1->m_buttonArray, a2);
v15 = (cocos2d::CCArray *)cocos2d::CCArray::create(v14);
a1->m_pagesArray = v15;
cocos2d::CCObject::retain(v15);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_position, x, v16, v17);
a1->m_tabIndex = y_low;
a1->m_hasCreateItems = a4;
EditButtonBar::loadFromItems(a1, a1->m_buttonArray, a5, a6, 0);
}
return v12;
}