//
// CustomListView::loadCell from 0x140145a40 to 0x140146238 (2040 bytes)
//
// 4 xrefs:
// > ??> @ 0x14073e2c0
// > ??> @ 0x14089a22c
// > ??> @ 0x14089a23c
// > ??> @ 0x140917528
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:11 +0000
//
void __fastcall CustomListView::loadCell(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v4; // r14
int v5; // edx
struct cocos2d::CCObject *v8; // rax
void (__fastcall ***v9)(_QWORD, _BYTE *); // rcx
bool v10; // zf
struct cocos2d::CCObject *v11; // rax
void (__fastcall ***v12)(_QWORD, _BYTE *); // rcx
__int64 v13; // rdx
struct cocos2d::CCObject *v14; // rax
struct cocos2d::CCObject *v15; // rax
struct cocos2d::CCObject *v16; // rax
struct cocos2d::CCObject *v17; // rax
struct cocos2d::CCObject *v18; // rax
struct cocos2d::CCObject *v19; // rax
struct cocos2d::CCObject *v20; // rax
struct cocos2d::CCObject *v21; // rax
struct cocos2d::CCObject *v22; // rax
struct cocos2d::CCObject *v23; // rax
struct cocos2d::CCObject *v24; // rax
int v25; // edi
struct cocos2d::CCObject *v26; // rsi
void (__fastcall ***v27)(_QWORD, _BYTE *); // rcx
__int64 v28; // rdx
struct cocos2d::CCObject *v29; // rsi
void (__fastcall ***v30)(_QWORD, _BYTE *); // rcx
__int64 v31; // rdx
struct cocos2d::CCObject *v32; // rax
__int64 v33; // rax
__int64 v34; // rbx
__int64 v35; // rdx
__int64 v36; // rbx
void (__fastcall ***v37)(_QWORD, _BYTE *); // rcx
__int64 v38; // rdx
struct cocos2d::CCObject *v39; // rsi
void (__fastcall ***v40)(_QWORD, _BYTE *); // rcx
__int64 v41; // rdx
struct cocos2d::CCObject *v42; // rsi
void (__fastcall ***v43)(_QWORD, _BYTE *); // rcx
__int64 v44; // rdx
struct cocos2d::CCObject *v45; // rax
struct cocos2d::CCObject *v46; // rax
struct cocos2d::CCObject *v47; // rax
struct cocos2d::CCObject *v48; // rax
unsigned int v49; // r15d
__int64 v50; // rcx
int v51; // eax
struct cocos2d::CCObject *v52; // rax
__int64 v53; // rdx
__int64 v54; // rcx
cocos2d::CCArray *v55; // rcx
cocos2d::CCString *v56; // rax
const char *CString; // rax
size_t v58; // r8
__int128 v59; // [rsp+20h] [rbp-20h] BYREF
__int64 v60; // [rsp+30h] [rbp-10h]
__int64 v61; // [rsp+38h] [rbp-8h]
_BYTE v62[3]; // [rsp+60h] [rbp+20h] BYREF
v4 = 0;
v5 = *(_DWORD *)(a1 + 440);
switch ( v5 )
{
case 2:
v20 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
StatsCell::loadFromObject(a2, v20);
goto LABEL_3;
case 3:
v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
AchievementCell::loadFromDict(a2, v8);
LABEL_3:
v9 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
v10 = (a3 & 1) == 0;
goto LABEL_4;
case 4:
case 5:
case 26:
case 29:
case 37:
v17 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
LevelCell::loadFromLevel(a2, v17);
goto LABEL_15;
case 6:
case 7:
case 8:
case 15:
v24 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
CommentCell::loadFromComment(a2, v24);
v9 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
v25 = a3 & 1;
if ( *(_BYTE *)(a2 + 602) )
{
if ( v25 )
{
*(_WORD *)v62 = 20368;
v62[2] = 39;
}
else
{
*(_WORD *)v62 = 21916;
v62[2] = 42;
}
}
else
{
v10 = v25 == 0;
LABEL_4:
if ( v10 )
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
else
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
}
(**v9)(v9, v62);
return;
case 11:
v21 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
SongCell::loadFromObject(a2, v21);
goto LABEL_15;
case 12:
v26 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
v27 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
(**v27)(v27, v62);
LOBYTE(v28) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a2 + 536) + 408LL) + 40LL))(
*(_QWORD *)(a2 + 536) + 408LL,
v28);
GJScoreCell::loadFromScore(a2, v26);
return;
case 13:
v18 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
MapPackCell::loadFromMapPack(a2, v18);
goto LABEL_15;
case 14:
v11 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
CustomSongCell::loadFromObject(a2, v11);
goto LABEL_9;
case 16:
v42 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
v43 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
(**v43)(v43, v62);
LOBYTE(v44) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a2 + 536) + 408LL) + 40LL))(
*(_QWORD *)(a2 + 536) + 408LL,
v44);
GJRequestCell::loadFromScore(a2, v42);
return;
case 17:
v45 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
GJMessageCell::loadFromMessage(a2, v45);
goto LABEL_15;
case 18:
v29 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
v30 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
(**v30)(v30, v62);
LOBYTE(v31) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a2 + 536) + 408LL) + 40LL))(
*(_QWORD *)(a2 + 536) + 408LL,
v31);
GJLevelScoreCell::loadFromScore(a2, v29);
return;
case 19:
v22 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
ArtistCell::loadFromObject(a2, v22);
goto LABEL_15;
case 20:
v48 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
SmartTemplateCell::loadFromObject(a2, v48);
SmartTemplateCell::updateBGColor(a2, a3);
return;
case 21:
case 22:
v16 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
CustomSFXCell::loadFromObject(a2, v16);
CustomSFXCell::updateBGColor(a2, a3);
return;
case 23:
v14 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
CustomMusicCell::loadFromObject(a2, v14);
LABEL_9:
v12 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
memset(v62, 50, sizeof(v62));
else
memset(v62, 75, sizeof(v62));
goto LABEL_12;
case 24:
v15 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
OptionsCell::loadFromObject(a2, v15);
goto LABEL_15;
case 25:
case 27:
case 28:
case 39:
v19 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
LevelListCell::loadFromList(a2, v19);
goto LABEL_15;
case 31:
v32 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
GJLocalLevelScoreCell::loadFromScore(a2, v32);
v33 = *(_QWORD *)(a2 + 560);
if ( v33 && *(_BYTE *)(v33 + 64) )
{
*(_WORD *)v62 = -26906;
v62[2] = 10;
v34 = a2 + 536;
(**(void (__fastcall ***)(__int64, _BYTE *))(*(_QWORD *)v34 + 408LL))(*(_QWORD *)v34 + 408LL, v62);
LOBYTE(v35) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)v34 + 408LL) + 40LL))(
*(_QWORD *)v34 + 408LL,
v35);
}
else
{
v36 = a2 + 536;
v37 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)v36 + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
(**v37)(v37, v62);
LOBYTE(v38) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)v36 + 408LL) + 40LL))(
*(_QWORD *)v36 + 408LL,
v38);
}
return;
case 32:
v23 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
URLCell::loadFromObject(a2, v23);
goto LABEL_15;
case 33:
v49 = *((_DWORD *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3) + 14);
v50 = *(_QWORD *)(*(_QWORD *)(a1 + 424) + 624LL);
if ( v50 )
LODWORD(v4) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 8LL))(v50);
FontPreviewCell::loadFromIndex(a2, v49, (unsigned int)v4);
v51 = -13870943;
if ( (a3 & 1) != 0 )
v51 = -12684606;
*(_DWORD *)(a2 + 560) = v51;
return;
case 34:
case 35:
v52 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
v53 = *(_QWORD *)(*(_QWORD *)(a1 + 424) + 624LL);
v54 = v53 - 1016;
if ( !v53 )
v54 = 0;
if ( v54 )
v4 = v54 + 1008;
*(_QWORD *)(a2 + 568) = v4;
EditorSoundConfigCell::loadFromConfig(a2, v52);
v12 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) == 0 )
goto LABEL_17;
*(_WORD *)v62 = 26805;
v62[2] = 56;
goto LABEL_12;
case 36:
v46 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
GJThreadCell::loadFromThread(a2, v46);
goto LABEL_15;
case 38:
v39 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
v40 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
(**v40)(v40, v62);
LOBYTE(v41) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a2 + 536) + 408LL) + 40LL))(
*(_QWORD *)(a2 + 536) + 408LL,
v41);
GJCompactUserCell::loadFromScore(a2, v39);
return;
case 40:
v47 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 432), a3);
GJNotificationCell::loadFromNotification(a2, v47);
LABEL_15:
v12 = (void (__fastcall ***)(_QWORD, _BYTE *))(*(_QWORD *)(a2 + 536) + 408LL);
if ( (a3 & 1) != 0 )
{
*(_WORD *)v62 = 29378;
v62[2] = 62;
}
else
{
LABEL_17:
*(_WORD *)v62 = 22689;
v62[2] = 44;
}
LABEL_12:
(**v12)(v12, v62);
LOBYTE(v13) = -1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a2 + 536) + 408LL) + 40LL))(
*(_QWORD *)(a2 + 536) + 408LL,
v13);
break;
default:
v55 = *(cocos2d::CCArray **)(a1 + 432);
if ( v5 == 10 )
{
v56 = cocos2d::CCArray::objectAtIndex(v55, a3);
CString = cocos2d::CCString::getCString(v56);
v60 = 0;
v59 = 0;
v61 = 0;
v58 = -1;
do
++v58;
while ( CString[v58] );
sub_14003D230(&v59, CString, v58);
GameCell::loadFromString(a2, (const void **)&v59);
}
else
{
cocos2d::CCArray::objectAtIndex(v55, a3);
}
break;
}
}