//
// BoomListView::init from 0x56c220 to 0x56c3c8 (424 bytes)
//
// 3 xrefs:
// > BoomListView::create @ 0x56c49c
// > CustomListView::create @ 0x60d054
// > ??> @ 0xa2f78
//
// 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!
bool BoomListView::init(BoomListView *a1, cocos2d::CCArray *a2, BoomListType a3, float a4, float a5)
{
int v5; // w3
BoomListType v6; // w4
float v7; // s2
int v8; // w25
float v12; // s8
BoomListType v13; // w24
_BOOL8 v14; // x0
bool v15; // w23
cocos2d::CCArray *v16; // x1
cocos2d::CCObject *v17; // x2
void (__fastcall *setTouchEnabled)(cocos2d::CCLayer *__hidden, bool); // x3
TableView *v19; // x0
cocos2d::CCObject *v22; // [xsp+60h] [xbp+60h]
cocos2d::CCRect *v23; // [xsp+68h] [xbp+68h]
cocos2d::CCSize v24; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCRect v25; // [xsp+78h] [xbp+78h] BYREF
cocos2d::CCRect v26; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v8 = v5;
v23 = *(cocos2d::CCRect **)&a3;
v12 = v7;
v13 = v6;
v14 = cocos2d::CCLayer::init(a1);
v15 = v14;
if ( v14 )
{
v16 = a2;
v17 = (cocos2d::CCObject *)v23;
if ( !a2 )
{
v16 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v14);
v17 = (cocos2d::CCObject *)v23;
}
a1->m_entries = v16;
v22 = v17;
cocos2d::CCObject::retain(v16);
a1->m_currentPage = v8;
setTouchEnabled = a1->setTouchEnabled;
a1->m_height = a4;
a1->m_width = a5;
setTouchEnabled(a1, 1);
cocos2d::CCSize::CCSize(&v24, a1->m_width, a1->m_height);
a1->setContentSize(a1, &v24);
cocos2d::CCRect::CCRect(&v25, 0.0, 0.0, v24.width, v24.height);
v19 = TableView::create(&a1->TableViewDelegate, &a1->TableViewDataSource, (TableViewCellDelegate *)v22, v26);
a1->m_tableView = v19;
a1->addChild(a1, v19);
a1->m_type = v13;
a1->setupList(a1, v12);
if ( (float)((float)(unsigned int)cocos2d::CCArray::count(a1->m_entries) * a1->m_itemSeparation) < a1->m_height )
BoomListView::lockList(a1, 1);
}
return v15;
}