//
// EditButtonBar::create from 0x1005e1c20 to 0x1005e1ce1 (193 bytes)
//
// 15 xrefs:
// > EditorUI::setupCreateMenu @ 0x100013d2e
// > EditorUI::setupCreateMenu @ 0x100014425
// > EditorUI::setupCreateMenu @ 0x10001550e
// > EditorUI::setupCreateMenu @ 0x100015abc
// > EditorUI::setupCreateMenu @ 0x10001714b
// > EditorUI::setupCreateMenu @ 0x100017791
// > EditorUI::setupCreateMenu @ 0x100018965
// > EditorUI::setupCreateMenu @ 0x100023e1f
// > EditorUI::setupCreateMenu @ 0x100024fb6
// > EditorUI::setupCreateMenu @ 0x100026856
// > EditorUI::setupCreateMenu @ 0x10002843f
// > EditorUI::setupCreateMenu @ 0x100028ff5
// > EditorUI::setupCreateMenu @ 0x100029ef4
// > EditorUI::setupCreateMenu @ 0x100029f96
// > EditorUI::createMoveMenu @ 0x100047fba
//
// 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!
EditButtonBar *__fastcall EditButtonBar::create(
cocos2d::CCArray *a1,
cocos2d::CCPoint a2,
int a3,
bool a4,
int a5,
int a6)
{
_OWORD *v8; // rbx
cocos2d::CCPoint v9; // xmm0_8
__int64 v11; // [rsp+8h] [rbp-48h] BYREF
cocos2d::CCArray *v12; // [rsp+10h] [rbp-40h]
double *v13; // [rsp+18h] [rbp-38h]
int v14; // [rsp+24h] [rbp-2Ch]
v14 = a5;
v13 = *(double **)&a3;
v12 = a1;
v8 = operator new(0x168u);
cocos2d::CCNode::CCNode((__int64)v8);
*(_QWORD *)v8 = off_1009763D0;
sub_10028CC30((_OWORD *)((char *)v8 + 316));
v8[21] = 0;
*((_QWORD *)v8 + 44) = 0;
*(double *)&v9 = sub_10028CC60(&v11, v13);
if ( EditButtonBar::init((EditButtonBar *)v8, v12, v9, (int)&v11, a4, (unsigned __int8)v14, a6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return (EditButtonBar *)v8;
}