//
// CustomListView::getListCell from 0x61fbf8 to 0x6200ec (1268 bytes)
//
// 2 xrefs:
// > ??> @ 0x30528
// > ??> @ 0x114b588
//
// 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
//
TableViewCell *CustomListView::getListCell(CustomListView *a1, const char *a2)
{
float CellHeight; // s1
TableViewCell *result; // x0
GJUserCell *v5; // x20
LevelListCell *v6; // x20
LevelCell *v7; // x20
CustomSFXCell *v8; // x20
CommentCell *v9; // x20
char *v10; // [xsp+28h] [xbp+28h]
char *v11; // [xsp+28h] [xbp+28h]
char *v12; // [xsp+28h] [xbp+28h]
char *v13; // [xsp+28h] [xbp+28h]
char *v14; // [xsp+28h] [xbp+28h]
char *v15; // [xsp+28h] [xbp+28h]
char *v16; // [xsp+28h] [xbp+28h]
char *v17; // [xsp+28h] [xbp+28h]
char *v18; // [xsp+28h] [xbp+28h]
char *v19; // [xsp+28h] [xbp+28h]
char *v20; // [xsp+28h] [xbp+28h]
char *v21; // [xsp+28h] [xbp+28h]
char *v22; // [xsp+28h] [xbp+28h]
char *v23; // [xsp+28h] [xbp+28h]
char *v24; // [xsp+28h] [xbp+28h]
char *v25; // [xsp+28h] [xbp+28h]
char *v26; // [xsp+28h] [xbp+28h]
char *v27; // [xsp+28h] [xbp+28h]
char *v28; // [xsp+28h] [xbp+28h]
char *v29; // [xsp+28h] [xbp+28h]
char *v30; // [xsp+28h] [xbp+28h]
char *v31; // [xsp+28h] [xbp+28h]
char *v32; // [xsp+28h] [xbp+28h]
char *v33; // [xsp+28h] [xbp+28h]
float v35; // [xsp+30h] [xbp+30h]
float v36; // [xsp+30h] [xbp+30h]
float v37; // [xsp+30h] [xbp+30h]
float v38; // [xsp+30h] [xbp+30h]
float v39; // [xsp+30h] [xbp+30h]
float v40; // [xsp+30h] [xbp+30h]
float v41; // [xsp+30h] [xbp+30h]
float v42; // [xsp+30h] [xbp+30h]
float v43; // [xsp+30h] [xbp+30h]
float v44; // [xsp+30h] [xbp+30h]
float v45; // [xsp+30h] [xbp+30h]
float v46; // [xsp+30h] [xbp+30h]
float v47; // [xsp+30h] [xbp+30h]
float v48; // [xsp+30h] [xbp+30h]
float v49; // [xsp+30h] [xbp+30h]
float v50; // [xsp+30h] [xbp+30h]
float v51; // [xsp+30h] [xbp+30h]
float v52; // [xsp+30h] [xbp+30h]
float v53; // [xsp+30h] [xbp+30h]
float v54; // [xsp+30h] [xbp+30h]
float v55; // [xsp+30h] [xbp+30h]
float v56; // [xsp+30h] [xbp+30h]
float v57; // [xsp+30h] [xbp+30h]
float v58; // [xsp+30h] [xbp+30h]
CellHeight = CustomListView::getCellHeight(a1->m_type);
switch ( a1->m_type )
{
case User:
case User2:
v33 = (char *)a2;
v58 = CellHeight;
v5 = (GJUserCell *)operator new(0x240u);
GJUserCell::GJUserCell(v5, v33, a1->m_width, v58);
goto LABEL_5;
case Stats:
v26 = (char *)a2;
v51 = CellHeight;
v5 = (GJUserCell *)operator new(0x218u);
StatsCell::StatsCell((StatsCell *)v5, v26, a1->m_width, v51);
goto LABEL_5;
case Achievement:
v30 = (char *)a2;
v55 = CellHeight;
v5 = (GJUserCell *)operator new(0x218u);
AchievementCell::AchievementCell((AchievementCell *)v5, v30, a1->m_width, v55);
goto LABEL_5;
case Level:
case Level2:
v22 = (char *)a2;
v47 = CellHeight;
v5 = (GJUserCell *)operator new(0x250u);
LevelCell::LevelCell((LevelCell *)v5, v22, a1->m_width, v47);
goto LABEL_5;
case Comment:
case Comment4:
v29 = (char *)a2;
v54 = CellHeight;
v5 = (GJUserCell *)operator new(0x248u);
CommentCell::CommentCell((CommentCell *)v5, v29, a1->m_width, v54);
goto LABEL_5;
case Comment2:
case Comment3:
v24 = (char *)a2;
v49 = CellHeight;
v9 = (CommentCell *)operator new(0x248u);
CommentCell::CommentCell(v9, v24, a1->m_width, v49);
result = v9;
v9->m_compactMode = 1;
return result;
case Song:
v28 = (char *)a2;
v53 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
SongCell::SongCell((SongCell *)v5, v28, a1->m_width, v53);
goto LABEL_5;
case Score:
v20 = (char *)a2;
v45 = CellHeight;
v5 = (GJUserCell *)operator new(0x228u);
GJScoreCell::GJScoreCell((GJScoreCell *)v5, v20, a1->m_width, v45);
goto LABEL_5;
case MapPack:
v32 = (char *)a2;
v57 = CellHeight;
v5 = (GJUserCell *)operator new(0x240u);
MapPackCell::MapPackCell((MapPackCell *)v5, v32, a1->m_width, v57);
goto LABEL_5;
case CustomSong:
v25 = (char *)a2;
v50 = CellHeight;
v5 = (GJUserCell *)operator new(0x230u);
CustomSongCell::CustomSongCell((CustomSongCell *)v5, v25, a1->m_width, v50);
goto LABEL_5;
case Request:
v21 = (char *)a2;
v46 = CellHeight;
v5 = (GJUserCell *)operator new(0x248u);
GJRequestCell::GJRequestCell((GJRequestCell *)v5, v21, a1->m_width, v46);
goto LABEL_5;
case Message:
v31 = (char *)a2;
v56 = CellHeight;
v5 = (GJUserCell *)operator new(0x248u);
GJMessageCell::GJMessageCell((GJMessageCell *)v5, v31, a1->m_width, v56);
goto LABEL_5;
case Comment4|Achievement:
v23 = (char *)a2;
v48 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
GJLevelScoreCell::GJLevelScoreCell((GJLevelScoreCell *)v5, v23, a1->m_width, v48);
goto LABEL_5;
case Artist:
v27 = (char *)a2;
v52 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
ArtistCell::ArtistCell((ArtistCell *)v5, v27, a1->m_width, v52);
goto LABEL_5;
case SmartTemplate:
v19 = (char *)a2;
v44 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
SmartTemplateCell::SmartTemplateCell((SmartTemplateCell *)v5, v19, a1->m_width, v44);
goto LABEL_5;
case SFX:
v18 = (char *)a2;
v43 = CellHeight;
v5 = (GJUserCell *)operator new(0x230u);
CustomSFXCell::CustomSFXCell((CustomSFXCell *)v5, v18, a1->m_width, v43);
goto LABEL_5;
case SFX2:
v15 = (char *)a2;
v40 = CellHeight;
v8 = (CustomSFXCell *)operator new(0x230u);
CustomSFXCell::CustomSFXCell(v8, v15, a1->m_width, v40);
result = v8;
v8->m_compactMode = 1;
return result;
case CustomMusic:
v17 = (char *)a2;
v42 = CellHeight;
v5 = (GJUserCell *)operator new(0x230u);
CustomMusicCell::CustomMusicCell((CustomMusicCell *)v5, v17, a1->m_width, v42);
goto LABEL_5;
case Options:
v13 = (char *)a2;
v38 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
OptionsCell::OptionsCell((OptionsCell *)v5, v13, a1->m_width, v38);
goto LABEL_5;
case LevelList:
case LevelList2:
v16 = (char *)a2;
v41 = CellHeight;
v5 = (GJUserCell *)operator new(0x228u);
LevelListCell::LevelListCell((LevelListCell *)v5, v16, a1->m_width, v41);
goto LABEL_5;
case Level3:
case Level4:
v14 = (char *)a2;
v39 = CellHeight;
v7 = (LevelCell *)operator new(0x250u);
LevelCell::LevelCell(v7, v14, a1->m_width, v39);
result = v7;
v7->m_compactView = 1;
return result;
case LevelList3:
v12 = (char *)a2;
v37 = CellHeight;
v6 = (LevelListCell *)operator new(0x228u);
LevelListCell::LevelListCell(v6, v12, a1->m_width, v37);
result = v6;
v6->m_addingLevel = 1;
return result;
case LocalLevelScore:
v11 = (char *)a2;
v36 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
GJLocalLevelScoreCell::GJLocalLevelScoreCell((GJLocalLevelScoreCell *)v5, v11, a1->m_width, v36);
goto LABEL_5;
case URL:
v10 = (char *)a2;
v35 = CellHeight;
v5 = (GJUserCell *)operator new(0x220u);
URLCell::URLCell((URLCell *)v5, v10, a1->m_width, v35);
LABEL_5:
result = v5;
break;
default:
result = BoomListView::getListCell(a1, a2);
break;
}
return result;
}