//
// EditButtonBar::create from 0x1004a2e0c to 0x1004a2ec0 (180 bytes)
//
// 16 xrefs:
// > EditorUI::setupCreateMenu @ 0x10016e734
// > EditorUI::setupCreateMenu @ 0x10016ede8
// > EditorUI::setupCreateMenu @ 0x10016fe58
// > EditorUI::setupCreateMenu @ 0x1001703f4
// > EditorUI::setupCreateMenu @ 0x1001719c0
// > EditorUI::setupCreateMenu @ 0x100171fe8
// > EditorUI::setupCreateMenu @ 0x100173138
// > EditorUI::setupCreateMenu @ 0x10017dfd0
// > EditorUI::setupCreateMenu @ 0x10017f0e8
// > EditorUI::setupCreateMenu @ 0x1001808c8
// > EditorUI::setupCreateMenu @ 0x1001823d4
// > EditorUI::setupCreateMenu @ 0x100182f3c
// > EditorUI::setupCreateMenu @ 0x100183dd0
// > EditorUI::setupCreateMenu @ 0x100183e8c
// > EditorUI::createMoveMenu @ 0x100186064
// > EditorUI::setupViewMenu @ 0x100188c7c
//
// 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 11:06:03 +0000
//
void *__fastcall EditButtonBar::create(__int64 a1, double *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
void *v12; // x19
double v13; // d0
__int64 v15; // [xsp+8h] [xbp-48h] BYREF
v12 = operator new(0x170u);
EditButtonBar::EditButtonBar();
v13 = sub_1000262F4(&v15, a2);
if ( (unsigned int)EditButtonBar::init(v12, a1, &v15, a3, a4, a5, a6, v13) )
{
cocos2d::CCObject::autorelease((__int64)v12);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v12 + 16LL))(v12);
return nullptr;
}
return v12;
}