//
// MusicBrowser::refreshLevelIDList from 0xb84288 to 0xb84364 (220 bytes)
//
// 2 xrefs:
// > MusicBrowser::onToggleView @ 0xb85760
// > ??> @ 0x96b80
//
// 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:30 +0000
//
__int64 __fastcall MusicBrowser::refreshLevelIDList(MusicBrowser *this)
{
__int64 v2; // x1
__int64 v3; // x3
__int64 v4; // x2
GameManager *v5; // x0
GameManager *v6; // x0
__int64 v7; // x0
bool v9; // [xsp+3Fh] [xbp+3Fh] BYREF
__int64 v10[3]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((_QWORD *)this + 89);
v3 = *(_QWORD *)(v2 + 144);
v4 = *(_QWORD *)(v2 + 152);
v5 = (GameManager *)_stack_chk_guard;
if ( v3 != v4 )
{
v5 = (GameManager *)(v4 + 4 * ~((unsigned __int64)(v4 - 4 - v3) >> 2));
*(_QWORD *)(v2 + 152) = v5;
}
v6 = *(GameManager **)(GameManager::sharedState(v5) + 552);
if ( v6 )
{
v9 = 0;
v7 = GameManager::sharedState(v6);
LevelEditorLayer::getSongIDs(*(LevelEditorLayer **)(v7 + 552), &v9, v10);
MusicDownloadManager::splitIDString((unsigned __int8 *)v10, *((_QWORD *)this + 89) + 144LL);
if ( (v10[0] & 1) != 0 )
operator delete((void *)v10[2]);
}
return _stack_chk_guard;
}