//
// EditButtonBar::init from 0x1005e1d10 to 0x1005e1dbc (172 bytes)
//
// 1 xrefs:
// > EditButtonBar::create @ 0x1005e1cb1
//
// 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)
{
char v7; // r14
_BOOL4 v8; // r12d
double *v9; // r13
bool result; // al
cocos2d::CCArray *v12; // rax
cocos2d::CCArray *m_buttonArray; // rdi
cocos2d::CCArray *v14; // rax
bool v16; // [rsp+7h] [rbp-29h]
int v17; // [rsp+40h] [rbp+10h]
v7 = a6;
v8 = a5;
v9 = *(double **)&a4;
result = cocos2d::CCNode::init(a1);
if ( result )
{
v16 = result;
v12 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2);
a1->m_buttonArray = v12;
cocos2d::CCObject::retain(v12);
m_buttonArray = a1->m_buttonArray;
sub_100720050(m_buttonArray, a2);
v14 = (cocos2d::CCArray *)sub_10071F9E0(m_buttonArray, a2);
a1->m_pagesArray = v14;
cocos2d::CCObject::retain(v14);
sub_10028CC90(&a1->m_position, v9);
a1->m_tabIndex = v8;
a1->m_hasCreateItems = v7;
EditButtonBar::loadFromItems(a1, a1->m_buttonArray, a7, v17, 0);
return v16;
}
return result;
}