//
// SFXBrowser::refreshCustomList from 0x14061bcc0 to 0x14061bd41 (129 bytes)
//
// 3 xrefs:
// > SFXBrowser::onImportFile @ 0x14061e459
// > SFXBrowser::rebuildContent @ 0x14061f6b0
// > ??> @ 0x14093026c
//
// 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 11:35:20 +0000
//
void __fastcall SFXBrowser::refreshCustomList(__int64 a1)
{
__int64 v1; // rdx
int v3; // eax
int v4; // eax
__int64 v5; // rcx
v1 = *(_QWORD *)(a1 + 712);
if ( v1 )
{
if ( *(_DWORD *)(v1 + 148) == 3 )
SFXBrowser::refreshLevelIDList(a1, (_QWORD *)v1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 712) + 72LL))(
*(_QWORD *)(a1 + 712),
*(unsigned int *)(a1 + 1104));
v3 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(*(_QWORD *)(a1 + 712) + 64LL));
if ( v3 <= 0 )
v4 = 0;
else
v4 = (v3 - 1) / *(_DWORD *)(a1 + 1096);
v5 = *(_QWORD *)(a1 + 712);
if ( *(_DWORD *)(v5 + 96) > v4 )
*(_DWORD *)(v5 + 96) = v4;
SFXBrowser::setupList((__int64 *)a1, *(_QWORD *)(a1 + 712));
}
}