//
// LevelBrowserLayer::onMyOnlineLevels from 0x4a8424 to 0x4a854e (298 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:49:56 +0000
//
int __fastcall LevelBrowserLayer::onMyOnlineLevels(LevelBrowserLayer *this, cocos2d::CCObject *a2)
{
char *v2; // r7
GJAccountManager *v4; // r0
int v5; // r0
size_t v6; // r0
LevelBrowserLayer *v7; // r7
cocos2d::CCDirector *v8; // r0
int v9; // r0
size_t v10; // r0
cocos2d::CCDirector *v11; // r4
GJSearchObject *v12; // r1
AppDelegate *v13; // r0
cocos2d::CCScene *v14; // r2
cocos2d::CCScene *v15; // r0
char v17; // [sp+4h] [bp-20h] BYREF
_BYTE v18[7]; // [sp+5h] [bp-1Fh] BYREF
char *v19; // [sp+Ch] [bp-18h]
int v20; // [sp+10h] [bp-14h] BYREF
int v21; // [sp+14h] [bp-10h]
int v22; // [sp+18h] [bp-Ch]
(*(void (__fastcall **)(LevelBrowserLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v4 = (GJAccountManager *)(*(int (__fastcall **)(LevelBrowserLayer *, _DWORD))(*(_DWORD *)this + 544))(this, 0);
if ( *(_DWORD *)(*((_DWORD *)this + 125) + 264) == 102 )
{
v5 = GJAccountManager::sharedState(v4);
GameToolbox::intToString((GameToolbox *)&v17, *(_DWORD *)(v5 + 280) - *(_DWORD *)(v5 + 284));
if ( (v17 & 1) == 0 )
v2 = v18;
v20 = 0;
if ( (v17 & 1) != 0 )
v2 = v19;
v21 = 0;
v22 = 0;
v6 = strlen(v2);
std::string::__init(&v20, v2, v6);
v7 = (LevelBrowserLayer *)GJSearchObject::create(5, &v20);
std::string::~string((int)&v20);
v8 = (cocos2d::CCDirector *)std::string::~string((int)&v17);
*((_DWORD *)v7 + 86) = 1;
}
else
{
v9 = GameManager::sharedState(v4);
GameToolbox::intToString((GameToolbox *)&v17, *(_DWORD *)(v9 + 464) - *(_DWORD *)(v9 + 468));
if ( (v17 & 1) == 0 )
v2 = v18;
v20 = 0;
if ( (v17 & 1) != 0 )
v2 = v19;
v21 = 0;
v22 = 0;
v10 = strlen(v2);
std::string::__init(&v20, v2, v10);
v7 = (LevelBrowserLayer *)GJSearchObject::create(5, &v20);
std::string::~string((int)&v20);
v8 = (cocos2d::CCDirector *)std::string::~string((int)&v17);
}
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
v13 = LevelBrowserLayer::scene(v7, v12);
v15 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v13,
v14);
return cocos2d::CCDirector::replaceScene(v11, v15);
}