//
// EditButtonBar::create from 0x3d9770 to 0x3d9818 (168 bytes)
//
// 15 xrefs:
// > EditorUI::createMoveMenu @ 0x37f0ae
// > EditorUI::setupCreateMenu @ 0x38c84c
// > EditorUI::setupCreateMenu @ 0x38ccf2
// > EditorUI::setupCreateMenu @ 0x38d8a0
// > EditorUI::setupCreateMenu @ 0x38dc6c
// > EditorUI::setupCreateMenu @ 0x38ebec
// > EditorUI::setupCreateMenu @ 0x38f00e
// > EditorUI::setupCreateMenu @ 0x38fc5c
// > EditorUI::setupCreateMenu @ 0x397900
// > EditorUI::setupCreateMenu @ 0x39851e
// > EditorUI::setupCreateMenu @ 0x39961c
// > EditorUI::setupCreateMenu @ 0x39a8fc
// > EditorUI::setupCreateMenu @ 0x39b0ba
// > EditorUI::setupCreateMenu @ 0x39bae2
// > EditorUI::setupCreateMenu @ 0x39bb4e
//
// 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
//
EditButtonBar *EditButtonBar::create(cocos2d::CCArray *a1, cocos2d::CCPoint a2, int a3, bool a4, int a5, int a6)
{
float x; // r9
float y; // r6
EditButtonBar *v10; // r4
cocos2d::CCPoint v11; // r2
EditButtonBar_vtbl *v12; // r3
EditButtonBar *v13; // r0
int v15; // [sp+Ch] [bp-14h]
cocos2d::CCPoint v16; // [sp+14h] [bp-Ch] BYREF
x = a2.x;
y = a2.y;
v10 = (EditButtonBar *)operator new(0x124u);
cocos2d::CCNode::CCNode(v10);
v10->__vftable = (EditButtonBar_vtbl *)&off_A51630;
cocos2d::CCPoint::CCPoint(&v10->m_position);
v10->m_buttonArray = nullptr;
v10->m_scrollLayer = nullptr;
v10->m_pagesArray = nullptr;
cocos2d::CCPoint::CCPoint(&v16, (const cocos2d::CCPoint *)LODWORD(x));
LODWORD(v11.x) = &v16;
v11.y = y;
if ( EditButtonBar::init(v10, a1, v11, a3, a4, a5, v15) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
v12 = v10->__vftable;
v13 = v10;
v10 = nullptr;
v12->~EditButtonBar_0(v13);
}
return v10;
}