//
// BoomListView::loadCell from 0x56cd44 to 0x56ce7c (312 bytes)
//
// 3 xrefs:
// > CustomListView::loadCell @ 0x6203d8
// > ??> @ 0x5d768
// > ??> @ 0x1134760
//
// 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
//
void BoomListView::loadCell(BoomListView *a1, TableViewCell *a2, int a3)
{
bool v5; // zf
cocos2d::CCArray *m_entries; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCString *v8; // x0
char *CString; // x0
char *v10; // x0
unsigned int *v11; // x2
int v12; // w1
_DWORD *v14; // [xsp+50h] [xbp+50h] BYREF
v5 = a1->m_type == (List|0x1);
m_entries = a1->m_entries;
if ( v5 )
{
v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(m_entries, a3);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_D153B8((int)&v14, CString);
GameCell::loadFromString((__int64)a2, (const void **)&v14);
v10 = (char *)(v14 - 6);
if ( v14 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v11 = v14 - 2;
do
v12 = __ldaxr(v11);
while ( __stlxr(v12 - 1, v11) );
}
else
{
v12 = *(v14 - 2);
*(v14 - 2) = v12 - 1;
}
if ( v12 <= 0 )
operator delete(v10);
}
}
else
{
v7 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(m_entries, a3);
ListCell::loadFromObject((ListCell *)a2, v7, a3 + 1, a1->m_currentPage, a3);
}
}