//
// ListButtonBar::create from 0x2fd998 to 0x2fda40 (168 bytes)
//
// 4 xrefs:
// > GJGarageLayer::setupSpecialPage @ 0x405e12
// > GJGarageLayer::setupSpecialPage @ 0x405ed6
// > GJGarageLayer::setupPage @ 0x406264
// > GJShopLayer::init @ 0x4e3c7e
//
// 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
//
ListButtonBar *ListButtonBar::create(
cocos2d::CCArray *a1,
cocos2d::CCPoint a2,
int a3,
int a4,
float a5,
float a6,
float a7,
float a8,
int a9)
{
float x; // r9
float y; // r6
ListButtonBar *v13; // r4
cocos2d::CCPoint v14; // r2
ListButtonBar_vtbl *v15; // r3
ListButtonBar *v16; // r0
int v18; // [sp+18h] [bp-10h]
cocos2d::CCPoint v19; // [sp+1Ch] [bp-Ch] BYREF
x = a2.x;
y = a2.y;
v13 = (ListButtonBar *)operator new(0x118u);
cocos2d::CCNode::CCNode(v13);
v13->__vftable = (ListButtonBar_vtbl *)&off_A42F60;
v13->m_scrollLayer = nullptr;
v13->m_pages = nullptr;
v13->m_delegate = nullptr;
v13->m_useMoveAnimation = 0;
cocos2d::CCPoint::CCPoint(&v19, (const cocos2d::CCPoint *)LODWORD(x));
LODWORD(v14.x) = &v19;
v14.y = y;
if ( ListButtonBar::init(v13, a1, v14, a3, a4, a5, a6, a7, a8, v18) )
{
cocos2d::CCObject::autorelease(v13);
}
else
{
v15 = v13->__vftable;
v16 = v13;
v13 = nullptr;
v15->~ListButtonBar_0(v16);
}
return v13;
}