//
// CustomListView::reloadAll from 0x748ca4 to 0x74910c (1128 bytes)
//
// 16 xrefs:
// > LevelBrowserLayer::reloadAllObjects @ 0x7f5e9c
// > LevelBrowserLayer::onEnter @ 0x7fd088
// > InfoLayer::clearBulkSelection @ 0x909898
// > InfoLayer::onCommentCellToggled @ 0x90d940
// > InfoLayer::onBulkSelectAll @ 0x90dae8
// > MessagesProfilePage::onToggleAllObjects @ 0xa49e8c
// > FRequestProfilePage::onToggleAllObjects @ 0xa4c468
// > FRequestProfilePage::onMarkRead @ 0xa4f538
// > OptionsScrollLayer::cellPerformedAction @ 0xb84e60
// > SFXBrowser::onSelectAll @ 0xb97428
// > SFXBrowser::cellPerformedAction @ 0xb98208
// > LevelListLayer::updateEditMode @ 0xba9770
// > NotificationsPage::reloadCells @ 0xc5f9f0
// > MessageThreadsPage::onSelectAll @ 0xc650a4
// > MessageThreadsPage::threadListFinished @ 0xc7c35c
// > ??> @ 0x7d908
//
// 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:50 +0000
//
__int64 __fastcall CustomListView::reloadAll(__int64 this)
{
__int64 v1; // x1
__int64 v2; // x2
__int64 v3; // x19
unsigned int *v4; // x1
__int64 *v5; // x19
__int64 *i2; // x20
unsigned int *v7; // x1
__int64 *v8; // x19
__int64 *i1; // x20
GJMessageThread *v10; // x1
unsigned int *v11; // x1
__int64 *v12; // x20
__int64 *nn; // x21
unsigned int *v14; // x1
OptionsObject ***v15; // x20
char *v16; // x22
OptionsObject **v17; // x19
int mm; // w21
char v19; // w1
unsigned int *v20; // x1
SFXInfoObject ***v21; // x19
SFXInfoObject ***v22; // x22
SFXInfoObject **v23; // x20
unsigned int kk; // w21
unsigned int *v25; // x1
GJSmartTemplate ***v26; // x20
char *v27; // x22
GJSmartTemplate **v28; // x19
int jj; // w21
char v30; // w1
unsigned int *v31; // x1
__int64 *v32; // x19
__int64 *ii; // x20
unsigned int *v34; // x1
__int64 *v35; // x19
__int64 *n; // x20
unsigned int *v37; // x1
SongInfoObject ***v38; // x19
SongInfoObject ***v39; // x22
SongInfoObject **v40; // x20
char m; // w21
unsigned int *v42; // x1
__int64 *v43; // x19
__int64 *k; // x20
unsigned int *v45; // x1
__int64 *v46; // x19
__int64 *j; // x20
unsigned int *v48; // x1
__int64 *v49; // x19
__int64 *i; // x20
v1 = *(_QWORD *)(this + 424);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 592);
if ( v2 )
{
v3 = this;
switch ( *(_DWORD *)(this + 440) )
{
case 4:
case 5:
v48 = *(unsigned int **)(v2 + 56);
this = *v48;
if ( (_DWORD)this )
{
v49 = *((__int64 **)v48 + 2);
for ( i = &v49[(unsigned int)this - 1];
i >= v49;
this = (__int64)LevelCell::updateToggle((CCMenuItemToggler *)this) )
{
this = *v49;
if ( !*v49 )
break;
++v49;
}
}
break;
case 6:
case 7:
case 8:
case 0xF:
v45 = *(unsigned int **)(v2 + 56);
this = *v45;
if ( (_DWORD)this )
{
v46 = *((__int64 **)v45 + 2);
for ( j = &v46[(unsigned int)this - 1]; j >= v46; this = CommentCell::updateBulkToggle(this) )
{
this = *v46;
if ( !*v46 )
break;
++v46;
}
}
break;
case 0xD:
v42 = *(unsigned int **)(v2 + 56);
this = *v42;
if ( (_DWORD)this )
{
v43 = *((__int64 **)v42 + 2);
for ( k = &v43[(unsigned int)this - 1]; k >= v43; this = MapPackCell::reloadCell((GJMapPack **)this) )
{
this = *v43;
if ( !*v43 )
break;
++v43;
}
}
break;
case 0xE:
case 0x17:
v37 = *(unsigned int **)(v2 + 56);
this = *v37;
if ( (_DWORD)this )
{
v38 = *((SongInfoObject ****)v37 + 2);
v39 = &v38[(unsigned int)this - 1];
if ( v38 <= v39 )
{
v40 = *v38;
for ( m = 0; *v38; v40 = *v38 )
{
this = (unsigned __int8)CustomSongCell::shouldReload((CustomSongCell *)v40);
if ( (_BYTE)this )
{
CustomSongCell::loadFromObject((CustomSongCell *)v40, v40[70]);
this = CustomSongCell::updateBGColor((CustomSongCell *)v40, m);
}
++v38;
++m;
if ( v39 < v38 )
break;
}
}
}
break;
case 0x10:
v34 = *(unsigned int **)(v2 + 56);
this = *v34;
if ( (_DWORD)this )
{
v35 = *((__int64 **)v34 + 2);
for ( n = &v35[(unsigned int)this - 1];
n >= v35;
this = (__int64)GJRequestCell::updateToggle((CCMenuItemToggler *)this) )
{
this = *v35;
if ( !*v35 )
break;
++v35;
}
}
break;
case 0x11:
v31 = *(unsigned int **)(v2 + 56);
this = *v31;
if ( (_DWORD)this )
{
v32 = *((__int64 **)v31 + 2);
for ( ii = &v32[(unsigned int)this - 1];
ii >= v32;
this = (__int64)GJMessageCell::updateToggle((CCMenuItemToggler *)this) )
{
this = *v32;
if ( !*v32 )
break;
++v32;
}
}
break;
case 0x14:
v25 = *(unsigned int **)(v2 + 56);
this = *v25;
if ( (_DWORD)this )
{
v26 = *((GJSmartTemplate ****)v25 + 2);
this = 8LL * (unsigned int)this - 8;
v27 = (char *)v26 + this;
if ( v26 <= (GJSmartTemplate ***)((char *)v26 + this) )
{
v28 = *v26;
for ( jj = 0; *v26; v28 = *v26 )
{
++v26;
SmartTemplateCell::loadFromObject((SmartTemplateCell *)v28, v28[69]);
v30 = jj++;
this = SmartTemplateCell::updateBGColor((SmartTemplateCell *)v28, v30);
if ( v27 < (char *)v26 )
break;
}
}
}
break;
case 0x15:
case 0x16:
v20 = *(unsigned int **)(v2 + 56);
this = *v20;
if ( (_DWORD)this )
{
v21 = *((SFXInfoObject ****)v20 + 2);
v22 = &v21[(unsigned int)this - 1];
if ( v21 <= v22 )
{
v23 = *v21;
for ( kk = 0; *v21; v23 = *v21 )
{
this = (unsigned __int8)CustomSFXCell::shouldReload((CustomSFXCell *)v23);
if ( (_BYTE)this )
{
CustomSFXCell::loadFromObject((CustomSFXCell *)v23, v23[70]);
this = CustomSFXCell::updateBGColor((CustomSFXCell *)v23, kk);
}
++v21;
++kk;
if ( v22 < v21 )
break;
}
}
}
break;
case 0x18:
v14 = *(unsigned int **)(v2 + 56);
this = *v14;
if ( (_DWORD)this )
{
v15 = *((OptionsObject ****)v14 + 2);
this = 8LL * (unsigned int)this - 8;
v16 = (char *)v15 + this;
if ( v15 <= (OptionsObject ***)((char *)v15 + this) )
{
v17 = *v15;
for ( mm = 0; *v15; v17 = *v15 )
{
++v15;
OptionsCell::loadFromObject((OptionsCell *)v17, v17[69]);
v19 = mm++;
this = OptionsCell::updateBGColor((OptionsCell *)v17, v19);
if ( v16 < (char *)v15 )
break;
}
}
}
break;
case 0x1A:
case 0x1D:
v11 = *(unsigned int **)(v2 + 56);
this = *v11;
if ( (_DWORD)this )
{
v12 = *((__int64 **)v11 + 2);
for ( nn = &v12[(unsigned int)this - 1];
nn >= v12;
this = LevelCell::updateCellMode((LevelCell *)this, *(_DWORD *)(v3 + 464)) )
{
this = *v12;
if ( !*v12 )
break;
++v12;
}
}
break;
case 0x24:
v7 = *(unsigned int **)(v2 + 56);
this = *v7;
if ( (_DWORD)this )
{
v8 = *((__int64 **)v7 + 2);
for ( i1 = &v8[(unsigned int)this - 1]; i1 >= v8; ++v8 )
{
this = *v8;
if ( !*v8 )
break;
v10 = *(GJMessageThread **)(this + 552);
if ( v10 )
this = GJThreadCell::loadFromThread((GJThreadCell *)this, v10);
}
}
break;
case 0x28:
v4 = *(unsigned int **)(v2 + 56);
this = *v4;
if ( (_DWORD)this )
{
v5 = *((__int64 **)v4 + 2);
for ( i2 = &v5[(unsigned int)this - 1];
i2 >= v5;
this = GJNotificationCell::refreshChest((GJNotificationCell *)this) )
{
this = *v5;
if ( !*v5 )
break;
++v5;
}
}
break;
default:
return this;
}
}
}
return this;
}