//
// EditButtonBar::init from 0x861e14 to 0x861ec4 (176 bytes)
//
// 2 xrefs:
// > EditButtonBar::create @ 0x861f6c
// > ??> @ 0x514f0
//
// This function is hookable on this platform (idp: arm, 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:55:37 +0000
//
__int64 __fastcall EditButtonBar::init(__int64 a1, cocos2d::CCArray *a2, __int64 a3, int a4, char a5, int a6, int a7)
{
cocos2d::CCArray *v13; // x0
unsigned int v14; // w20
cocos2d::CCObject *v15; // x0
cocos2d::CCArray *v16; // x0
cocos2d::CCObject *v17; // x0
cocos2d::CCArray *v18; // x1
v13 = (cocos2d::CCArray *)(unsigned __int8)cocos2d::CCNode::init((cocos2d::CCNode *)a1);
v14 = (unsigned __int8)v13;
if ( (_BYTE)v13 )
{
v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13);
*(_QWORD *)(a1 + 336) = v15;
cocos2d::CCObject::retain(v15);
v16 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(*(cocos2d::CCArray **)(a1 + 336), a2);
v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v16);
*(_QWORD *)(a1 + 352) = v17;
cocos2d::CCObject::retain(v17);
cocos2d::CCPoint::operator=(a1 + 316, a3);
*(_DWORD *)(a1 + 324) = a4;
v18 = *(cocos2d::CCArray **)(a1 + 336);
*(_BYTE *)(a1 + 328) = a5;
EditButtonBar::loadFromItems((EditButtonBar *)a1, v18, a6, a7, 0);
}
return v14;
}