//
// SFXBrowser::refreshCustomList from 0x6c850c to 0x6c8566 (90 bytes)
//
// 2 xrefs:
// > SFXBrowser::onImportFile @ 0x6c868a
// > SFXBrowser::rebuildContent @ 0x6c86f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:56 +0000
//
int *__fastcall SFXBrowser::refreshCustomList(int *this)
{
int *v1; // r4
SFXSearchResult *v2; // r1
int v3; // r0
int v4; // r0
int v5; // r3
v1 = this;
v2 = (SFXSearchResult *)*(this + 136);
if ( v2 )
{
if ( *((_DWORD *)v2 + 26) == 3 )
SFXBrowser::refreshLevelIDList((SFXBrowser *)this, v2);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v1[136] + 40))(v1[136], v1[193]);
v3 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1[136] + 56));
if ( v3 <= 0 )
v4 = 0;
else
v4 = (v3 - 1) / v1[191];
v5 = v1[136];
if ( *(_DWORD *)(v5 + 72) > v4 )
*(_DWORD *)(v5 + 72) = v4;
return SFXBrowser::setupList(v1, (cocos2d::CCArray **)v1[136]);
}
return this;
}