//
// BoomListView::loadCell from 0x10030ce40 to 0x10030cf20 (224 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x100242620
// > ??> @ 0x10090f120
//
// 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 __fastcall BoomListView::loadCell(BoomListView *a1, TableViewCell *a2, int a3)
{
double v3; // xmm0_8
BoomListType m_type; // r14d
cocos2d::CCString *v5; // rax
const char *CString; // r15
size_t v7; // rax
size_t v8; // r14
char *v9; // r12
size_t v10; // r13
_QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF
void *__p; // [rsp+10h] [rbp-30h]
m_type = a1->m_type;
v5 = (cocos2d::CCString *)sub_1007200C0(a1->m_entries, (unsigned int)a3);
if ( m_type == (List|0x1) )
{
CString = cocos2d::CCString::getCString(v5);
v7 = strlen(CString);
if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v3);
v8 = v7;
if ( v7 >= 0x17 )
{
v10 = 26;
if ( (v7 | 7) != 0x17 )
v10 = (v7 | 7) + 1;
v9 = (char *)operator new(v10);
__p = v9;
__dst[0] = v10 + 1;
__dst[1] = v8;
}
else
{
LOBYTE(__dst[0]) = 2 * v7;
v9 = (char *)__dst + 1;
if ( !v7 )
{
LABEL_10:
v9[v8] = 0;
GameCell::loadFromString(a2, __dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
return;
}
}
memmove(v9, CString, v8);
goto LABEL_10;
}
}