//
// SFXBrowser::rebuildContent from 0x1004346e0 to 0x10043476a (138 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b424a0
//
// 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:23 +0000
//
void __fastcall SFXBrowser::rebuildContent(__int64 a1)
{
__int64 v2; // rdi
int v3; // eax
int v4; // eax
__int64 v5; // rsi
v2 = *(_QWORD *)(a1 + 712);
if ( v2 )
{
if ( *(_DWORD *)(v2 + 140) == 3 )
{
SFXBrowser::refreshLevelIDList(v2, (_QWORD *)v2);
v2 = *(_QWORD *)(a1 + 712);
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 80LL))(v2, *(unsigned int *)(a1 + 1112));
v3 = sub_1007FEF90(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 64LL));
if ( v3 <= 0 )
{
v4 = 0;
v5 = *(_QWORD *)(a1 + 712);
if ( *(int *)(v5 + 96) <= 0 )
goto LABEL_7;
}
else
{
v4 = (v3 - 1) / *(_DWORD *)(a1 + 1104);
v5 = *(_QWORD *)(a1 + 712);
if ( *(_DWORD *)(v5 + 96) <= v4 )
{
LABEL_7:
SFXBrowser::setupList((_DWORD *)a1, v5);
return;
}
}
*(_DWORD *)(v5 + 96) = v4;
goto LABEL_7;
}
}