//
// EditButtonBar::create from 0x861ec4 to 0x861ff4 (304 bytes)
//
// 17 xrefs:
// > EditorUI::createMoveMenu @ 0xbe1940
// > EditorUI::setupCreateMenu @ 0xbe88d8
// > EditorUI::setupCreateMenu @ 0xbe8f98
// > EditorUI::setupCreateMenu @ 0xbea014
// > EditorUI::setupCreateMenu @ 0xbea5bc
// > EditorUI::setupCreateMenu @ 0xbebb94
// > EditorUI::setupCreateMenu @ 0xbec1c8
// > EditorUI::setupCreateMenu @ 0xbed324
// > EditorUI::setupCreateMenu @ 0xbf81c8
// > EditorUI::setupCreateMenu @ 0xbf92e8
// > EditorUI::setupCreateMenu @ 0xbfaad0
// > EditorUI::setupCreateMenu @ 0xbfc5e4
// > EditorUI::setupCreateMenu @ 0xbfd154
// > EditorUI::setupCreateMenu @ 0xbfdff0
// > EditorUI::setupCreateMenu @ 0xbfe0c0
// > EditorUI::setupViewMenu @ 0xbffb50
// > ??> @ 0xc7bb8
//
// 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
//
_QWORD *__fastcall EditButtonBar::create(
cocos2d::CCArray *a1,
const cocos2d::CCPoint *a2,
int a3,
char a4,
int a5,
int a6)
{
_QWORD *v12; // x19
__int64 v13; // x1
_QWORD *v14; // x0
_BYTE v16[8]; // [xsp+60h] [xbp+60h] BYREF
v12 = (_QWORD *)operator new(0x170u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v12);
*v12 = &off_1441E20;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)v12 + 316));
v12[42] = 0;
v12[43] = 0;
v12[44] = 0;
v12[45] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, a2);
if ( (unsigned __int8)EditButtonBar::init((__int64)v12, a1, (__int64)v16, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v12);
}
else
{
v13 = *v12;
v14 = v12;
v12 = nullptr;
(*(void (__fastcall **)(_QWORD *))(v13 + 16))(v14);
}
return v12;
}