//
// BoomListView::init from 0x2e14dc to 0x2e15ce (242 bytes)
//
// 2 xrefs:
// > BoomListView::create @ 0x2e166e
// > CustomListView::create @ 0x33047e
//
// 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
//
bool BoomListView::init(BoomListView *a1, cocos2d::CCArray *a2, BoomListType a3, float a4, float a5)
{
_BOOL4 v9; // r0
bool v10; // r7
TableView *v11; // r0
BoomListView_vtbl *v12; // r3
float v14; // [sp+0h] [bp-2Ch]
cocos2d::CCSize v16; // [sp+Ch] [bp-20h] BYREF
cocos2d::CCRect v17; // [sp+14h] [bp-18h] BYREF
int v18; // [sp+4Ch] [bp+20h]
BoomListType v19; // [sp+50h] [bp+24h]
int v20; // [sp+54h] [bp+28h]
cocos2d::CCSize v21; // 0:^4.8
cocos2d::CCRect v22; // 0:kr00_16.16
v9 = cocos2d::CCLayer::init(a1);
v10 = v9;
if ( v9 )
{
if ( !a2 )
a2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v9);
a1->m_entries = a2;
cocos2d::CCObject::retain(a2);
a1->m_height = a4;
a1->m_width = a5;
a1->m_currentPage = v18;
a1->setTouchEnabled(a1, 1);
cocos2d::CCSize::CCSize(&v16, a1->m_width, a1->m_height);
a1->setContentSize(a1, &v16);
cocos2d::CCRect::CCRect(&v17, 0.0, 0.0, v16.width, v16.height);
LODWORD(v22.origin.x) = &v17;
v22.origin.y = v14;
v22.size = v21;
v11 = TableView::create(&a1->TableViewDelegate, &a1->TableViewDataSource, (TableViewCellDelegate *)a3, v22);
v12 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_tableView = v11;
v12->addChild(a1, v11);
a1->m_type = v19;
((void (__fastcall *)(BoomListView *, int))a1->setupList)(a1, v20);
if ( (float)((float)(unsigned int)cocos2d::CCArray::count(a1->m_entries) * a1->m_itemSeparation) < a1->m_height )
BoomListView::lockList(a1, 1);
}
return v10;
}