//
// CreatorLayer::onTopLists from 0x7dba9c to 0x7dbb08 (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x8b4b0
// > CreatorLayer::init @ 0x7dd3bc
// > ??> @ 0x1543ab8
//
// 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 12:54:23 +0000
//
__int64 __fastcall CreatorLayer::onTopLists(CreatorLayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
LevelBrowserLayer *v3; // x0
LevelBrowserLayer *v4; // x20
cocos2d::CCDirector *v5; // x21
GJSearchObject *v6; // x1
cocos2d::CCTransitionFade *v7; // x0
cocos2d::CCScene *v8; // x1
cocos2d::CCScene *v9; // x0
GameManager *v10; // x0
result = (unsigned __int8)CreatorLayer::canPlayOnlineLevels(this);
if ( (_BYTE)result )
{
v3 = (LevelBrowserLayer *)GJSearchObject::create(6);
*((_DWORD *)v3 + 108) = 1;
v4 = v3;
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);
v7 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(v4, v6);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v7, 0.5, v8);
v10 = (GameManager *)cocos2d::CCDirector::pushScene(v5, v9);
result = GameManager::sharedState(v10);
*(_DWORD *)(result + 708) = 1;
}
return result;
}