//
// sub_100482A80 from 0x100482a80 to 0x100482bb5 (309 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::init @ 0x100481281
//
// 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 12:30:41 +0000
//
void __fastcall sub_100482A80(_QWORD *a1, unsigned __int64 a2, double a3)
{
__int64 v4; // rdi
__int64 v5; // rdi
int v6; // r14d
unsigned int *v7; // rax
__int64 v8; // rcx
unsigned __int64 v9; // rax
unsigned __int64 v10; // rcx
int v11; // eax
__int64 v12; // rcx
unsigned int *v13; // rcx
__int64 v14; // rdx
bool v15; // al
unsigned __int64 v16; // rdi
__int64 v17; // rdi
unsigned __int64 v18; // rax
unsigned __int64 v19; // rcx
__int64 v20; // rax
__int64 v21; // rdi
v4 = a1[82];
if ( !v4 || !(unsigned int)sub_1007FEF90(v4) )
return;
v5 = a1[82];
v6 = 0;
if ( v5 )
{
v7 = *(unsigned int **)(v5 + 56);
v8 = *v7;
if ( *v7 )
{
v9 = *((_QWORD *)v7 + 2);
v10 = v9 + 8 * v8 - 8;
v6 = 0;
do
{
if ( !*(_QWORD *)v9 )
break;
v6 += *(unsigned __int8 *)(*(_QWORD *)v9 + 771LL);
v9 += 8LL;
}
while ( v9 <= v10 );
}
}
v11 = sub_1007FEF90(v5);
v12 = a1[82];
if ( v12 && (v13 = *(unsigned int **)(v12 + 56), (v14 = *v13) != 0) )
{
v15 = v6 != v11;
a2 = *((_QWORD *)v13 + 2);
v16 = a2 + 8 * v14 - 8;
do
{
if ( !*(_QWORD *)a2 )
break;
*(_BYTE *)(*(_QWORD *)a2 + 771LL) = v15;
a2 += 8LL;
}
while ( a2 <= v16 );
v17 = a1[89];
if ( !v17 )
goto LABEL_21;
v18 = *((_QWORD *)v13 + 2);
v19 = v18 + 8 * v14 - 8;
a2 = 0;
do
{
if ( !*(_QWORD *)v18 )
break;
a2 = *(unsigned __int8 *)(*(_QWORD *)v18 + 771LL) + (unsigned int)a2;
v18 += 8LL;
}
while ( v18 <= v19 );
}
else
{
v17 = a1[89];
if ( !v17 )
goto LABEL_21;
a2 = 0;
}
sub_10029CC00(v17, a2);
LABEL_21:
v20 = a1[76];
if ( v20 )
{
v21 = *(_QWORD *)(v20 + 544);
if ( v21 )
CustomListView::reloadAll(v21, a2, a3);
}
}