//
// BoomListView::init from 0x1001cfe80 to 0x1001d0008 (392 bytes)
//
// 1 xrefs:
// > CustomListView::create @ 0x1001006e0
//
// 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 __fastcall BoomListView::init(
BoomListView *a1,
cocos2d::CCArray *a2,
TableViewCellDelegate *a3,
float a4,
float a5,
int a6,
BoomListType a7,
float a8)
{
_BOOL8 v16; // x0
bool v17; // w19
TableView *v18; // x0
float v20[4]; // [xsp+8h] [xbp-68h] BYREF
float v21[2]; // [xsp+18h] [xbp-58h] BYREF
cocos2d::CCRect v22; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v16 = cocos2d::CCLayer::init(a1);
v17 = v16;
if ( v16 )
{
if ( !a2 )
a2 = (cocos2d::CCArray *)sub_10024A15C(v16);
a1->m_entries = a2;
cocos2d::CCObject::retain(a2);
a1->m_height = a4;
a1->m_width = a5;
a1->m_currentPage = a6;
((void (__fastcall *)(BoomListView *, __int64))a1->setTouchEnabled)(a1, 1);
sub_100022988(v21, a1->m_width, a1->m_height);
((void (__fastcall *)(BoomListView *, float *))a1->setContentSize)(a1, v21);
sub_100022990(v20, 0.0, 0.0, v21[0], v21[1]);
v18 = TableView::create(&a1->TableViewDelegate, &a1->TableViewDataSource, a3, v22);
a1->m_tableView = v18;
((void (__fastcall *)(BoomListView *, TableView *))a1->addChild)(a1, v18);
a1->m_type = a7;
((void (__fastcall *)(BoomListView *, float))a1->setupList)(a1, a8);
if ( (float)(a1->m_itemSeparation * (float)(unsigned int)sub_10024A36C(a1->m_entries)) < a1->m_height )
{
a1->m_locked = 1;
((void (__fastcall *)(TableView *, _QWORD))a1->m_tableView->setTouchEnabled)(a1->m_tableView, 0);
((void (__fastcall *)(TableView *, _QWORD))a1->m_tableView->setMouseEnabled)(a1->m_tableView, 0);
((void (__fastcall *)(TableView *, _QWORD))a1->m_tableView->setKeyboardEnabled)(a1->m_tableView, 0);
}
}
return v17;
}