//
// SFXBrowser::refreshCustomList from 0xb969f4 to 0xb96a94 (160 bytes)
//
// 3 xrefs:
// > SFXBrowser::onImportFile @ 0xb96ca8
// > SFXBrowser::rebuildContent @ 0xb96dac
// > ??> @ 0xcc4f0
//
// 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 13:02:41 +0000
//
_QWORD *__fastcall SFXBrowser::refreshCustomList(_QWORD *this)
{
_QWORD *v1; // x19
SFXSearchResult *v2; // x1
int v3; // w0
int v4; // w0
__int64 v5; // x1
v1 = this;
v2 = (SFXSearchResult *)*(this + 89);
if ( v2 )
{
if ( *((_DWORD *)v2 + 35) == 3 )
{
SFXBrowser::refreshLevelIDList((SFXBrowser *)this, v2);
v2 = (SFXSearchResult *)v1[89];
}
(*(void (__fastcall **)(SFXSearchResult *, _QWORD))(*(_QWORD *)v2 + 80LL))(v2, *((unsigned int *)v1 + 278));
v3 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1[89] + 64LL));
if ( v3 <= 0 )
v4 = 0;
else
v4 = (v3 - 1) / *((_DWORD *)v1 + 276);
v5 = v1[89];
if ( v4 < *(_DWORD *)(v5 + 96) )
{
*(_DWORD *)(v5 + 96) = v4;
v5 = v1[89];
}
return (_QWORD *)SFXBrowser::setupList((SFXBrowser *)v1, (cocos2d::CCArray **)v5);
}
return this;
}