//
// BoomListView::init from 0x10030c740 to 0x10030c8e2 (418 bytes)
//
// 2 xrefs:
// > CustomListView::create @ 0x100240701
// > BoomListView::create @ 0x10030c6f7
//
// 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)
{
cocos2d::CCArray *v11; // r13
bool result; // al
TableView *v13; // rax
_BYTE v14[16]; // [rsp+Ch] [rbp-54h] BYREF
float v15[2]; // [rsp+1Ch] [rbp-44h] BYREF
float v16; // [rsp+24h] [rbp-3Ch]
float v17; // [rsp+28h] [rbp-38h]
float v18; // [rsp+2Ch] [rbp-34h]
BoomListType v19; // [rsp+30h] [rbp-30h]
bool v20; // [rsp+37h] [rbp-29h]
cocos2d::CCRect v21; // 0:xmm0_8.8,8:xmm1_8.8
v16 = a8;
v17 = a5;
v18 = a4;
v11 = a2;
result = cocos2d::CCLayer::init(a1);
if ( result )
{
v19 = a7;
v20 = result;
if ( !a2 )
v11 = (cocos2d::CCArray *)sub_10071F9E0(a1, 0);
a1->m_entries = v11;
cocos2d::CCObject::retain(v11);
a1->m_height = v18;
a1->m_width = v17;
a1->m_currentPage = a6;
((void (__fastcall *)(BoomListView *, __int64))a1->setTouchEnabled)(a1, 1);
sub_10028CBF0(v15, a1->m_width, a1->m_height);
((void (__fastcall *)(BoomListView *, float *))a1->setContentSize)(a1, v15);
v21.origin = 0;
v21.size = 0;
sub_10028CC00((__int64)v14, 0.0, 0.0, (__m128)LODWORD(v15[0]), (__m128)LODWORD(v15[1]));
v13 = TableView::create(&a1->TableViewDelegate, &a1->TableViewDataSource, a3, v21);
a1->m_tableView = v13;
((void (__fastcall *)(BoomListView *, TableView *))a1->addChild)(a1, v13);
a1->m_type = v19;
((void (__fastcall *)(BoomListView *, float))a1->setupList)(a1, v16);
if ( a1->m_height > (float)((float)(int)sub_100720070(a1->m_entries) * a1->m_itemSeparation) )
{
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 v20;
}
return result;
}