//
// LevelListLayer::onRefreshLevelList from 0x6d9a20 to 0x6d9ae4 (196 bytes)
//
// 0 xrefs:
//
// 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:57:09 +0000
//
int __fastcall LevelListLayer::onRefreshLevelList(LevelListLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r6
const char *Key; // r5
size_t v6; // r0
GameLevelManager *v7; // r0
GameLevelManager *v8; // r0
const char *v9; // r1
GameLevelManager *v10; // r0
GameLevelManager *v11; // r0
unsigned __int8 v13[12]; // [sp+0h] [bp-14h] BYREF
*(_DWORD *)(GameLevelManager::sharedState(this) + 820) = (char *)this + 440;
v3 = *((_DWORD *)this + 123);
if ( v3 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v3 + 172))(v3, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 135) + 172))(*((_DWORD *)this + 135), 1);
LevelBrowserLayer::setupLevelBrowser(this, nullptr);
v4 = GJSearchObject::create(0);
GameToolbox::intToString((GameToolbox *)v13, *(_DWORD *)(*((_DWORD *)this + 160) + 276));
std::string::operator=((unsigned __int8 *)(v4 + 268), v13);
std::string::~string((int)v13);
*(_DWORD *)(v4 + 344) = 1;
Key = (const char *)GJSearchObject::getKey((GJSearchObject *)v4);
v6 = strlen(Key);
v7 = (GameLevelManager *)std::string::assign((_DWORD *)this + 161, Key, v6);
v8 = (GameLevelManager *)GameLevelManager::sharedState(v7);
if ( (*((_BYTE *)this + 644) & 1) != 0 )
v9 = *((const char **)this + 163);
else
v9 = (char *)this + 645;
v10 = (GameLevelManager *)GameLevelManager::resetTimerForKey(v8, v9);
v11 = (GameLevelManager *)GameLevelManager::sharedState(v10);
return GameLevelManager::getLevelLists(v11, (const char **)v4);
}