//
// CustomListView::loadCell from 0x74d094 to 0x74d5cc (1336 bytes)
//
// 2 xrefs:
// > ??> @ 0x768b8
// > ??> @ 0x142aef0
//
// This function is hookable on this platform (idp: arm, 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 12:52:53 +0000
//
__int64 __fastcall CustomListView::loadCell(cocos2d::CCArray **this, TableViewCell *a2, unsigned int a3)
{
__int64 result; // x0
GJNotification *v7; // x0
GJUserScore *v8; // x21
GJMessageThread *v9; // x0
GJEditorSoundConfig *v10; // x1
__int64 v11; // x0
__int64 v12; // x0
__int64 v13; // x2
int v14; // w1
__int64 v15; // x0
int v16; // w2
GJLocalScore *v17; // x0
CCURLObject *v18; // x0
GJLevelList *v19; // x0
OptionsObject *v20; // x0
SongInfoObject *v21; // x0
SFXInfoObject *v22; // x0
GJSmartTemplate *v23; // x0
SongInfoObject *v24; // x0
GJUserScore *v25; // x21
GJUserMessage *v26; // x0
GJUserScore *v27; // x21
SongInfoObject *v28; // x0
GJMapPack *v29; // x0
GJUserScore *v30; // x21
SongObject *v31; // x0
GJComment *v32; // x0
GJGameLevel *v33; // x0
cocos2d::CCDictionary *v34; // x0
StatsObject *v35; // x0
int v36; // [xsp+38h] [xbp+38h]
switch ( *((_DWORD *)this + 110) )
{
case 2:
v35 = (StatsObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
StatsCell::loadFromObject(a2, v35);
result = StatsCell::updateBGColor(a2, a3);
break;
case 3:
v34 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
AchievementCell::loadFromDict(a2, v34);
result = AchievementCell::updateBGColor(a2, a3);
break;
case 4:
case 5:
case 0x1A:
case 0x1D:
case 0x25:
v33 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
LevelCell::loadFromLevel(a2, v33);
result = LevelCell::updateBGColor(a2, a3);
break;
case 6:
case 7:
case 8:
case 0xF:
v32 = (GJComment *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
CommentCell::loadFromComment(a2, v32);
result = CommentCell::updateBGColor(a2, a3);
break;
case 0xB:
v31 = (SongObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
SongCell::loadFromObject(a2, v31);
result = SongCell::updateBGColor(a2, a3);
break;
case 0xC:
v30 = (GJUserScore *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJScoreCell::updateBGColor(a2, a3);
result = GJScoreCell::loadFromScore(a2, v30);
break;
case 0xD:
v29 = (GJMapPack *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
MapPackCell::loadFromMapPack(a2, v29);
result = MapPackCell::updateBGColor(a2, a3);
break;
case 0xE:
v28 = (SongInfoObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
CustomSongCell::loadFromObject(a2, v28);
result = CustomSongCell::updateBGColor(a2, a3);
break;
case 0x10:
v27 = (GJUserScore *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJRequestCell::updateBGColor(a2, a3);
result = GJRequestCell::loadFromScore(a2, v27);
break;
case 0x11:
v26 = (GJUserMessage *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJMessageCell::loadFromMessage(a2, v26);
result = GJMessageCell::updateBGColor(a2, a3);
break;
case 0x12:
v25 = (GJUserScore *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJLevelScoreCell::updateBGColor(a2, a3);
result = GJLevelScoreCell::loadFromScore(a2, v25);
break;
case 0x13:
v24 = (SongInfoObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
ArtistCell::loadFromObject(a2, v24);
result = ArtistCell::updateBGColor(a2, a3);
break;
case 0x14:
v23 = (GJSmartTemplate *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
SmartTemplateCell::loadFromObject(a2, v23);
result = SmartTemplateCell::updateBGColor(a2, a3);
break;
case 0x15:
case 0x16:
v22 = (SFXInfoObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
CustomSFXCell::loadFromObject(a2, v22);
result = CustomSFXCell::updateBGColor(a2, a3);
break;
case 0x17:
v21 = (SongInfoObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
CustomMusicCell::loadFromObject(a2, v21);
result = CustomMusicCell::updateBGColor(a2, a3);
break;
case 0x18:
v20 = (OptionsObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
OptionsCell::loadFromObject(a2, v20);
result = OptionsCell::updateBGColor(a2, a3);
break;
case 0x19:
case 0x1B:
case 0x1C:
case 0x27:
v19 = (GJLevelList *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
LevelListCell::loadFromList(a2, v19);
result = LevelListCell::updateBGColor(a2, a3);
break;
case 0x1F:
v17 = (GJLocalScore *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJLocalLevelScoreCell::loadFromScore(a2, v17);
result = GJLocalLevelScoreCell::updateBGColor(a2, a3);
break;
case 0x20:
v18 = (CCURLObject *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
URLCell::loadFromObject(a2, v18);
result = URLCell::updateBGColor(a2, a3);
break;
case 0x21:
v14 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*(this + 54), a3) + 56);
v15 = *((_QWORD *)*(this + 53) + 79);
if ( v15 )
{
v36 = v14;
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 8LL))(v15);
v14 = v36;
}
else
{
v16 = 0;
}
FontPreviewCell::loadFromIndex(a2, v14, v16);
result = FontPreviewCell::updateBGColor(a2, a3);
break;
case 0x22:
case 0x23:
v10 = (GJEditorSoundConfig *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
v11 = *((_QWORD *)*(this + 53) + 79);
if ( v11 )
{
v12 = v11 - 1032;
v13 = v12 + 1024;
if ( !v12 )
v13 = 0;
}
else
{
v13 = 0;
}
*((_QWORD *)a2 + 70) = v13;
EditorSoundConfigCell::loadFromConfig(a2, v10);
result = EditorSoundConfigCell::updateBGColor(a2, a3);
break;
case 0x24:
v9 = (GJMessageThread *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJThreadCell::loadFromThread(a2, v9);
result = GJThreadCell::updateBGColor(a2, a3);
break;
case 0x26:
v8 = (GJUserScore *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJCompactUserCell::updateBGColor(a2, a3);
result = GJCompactUserCell::loadFromScore(a2, v8);
break;
case 0x28:
v7 = (GJNotification *)cocos2d::CCArray::objectAtIndex(*(this + 54), a3);
GJNotificationCell::loadFromNotification(a2, v7);
result = GJNotificationCell::updateBGColor(a2, a3);
break;
default:
result = BoomListView::loadCell((BoomListView *)this, a2, a3);
break;
}
return result;
}