//
// CreatorLayer::onMyLevels from 0x7db568 to 0x7db64c (228 bytes)
//
// 3 xrefs:
// > ??> @ 0xb3db8
// > CreatorLayer::init @ 0x7dcd6c
// > ??> @ 0x1545250
//
// 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::onMyLevels(CreatorLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
GameManager *v3; // x20
GameManager *v4; // x0
GameManager *IntGameVariable; // x0
GameManager *v6; // x0
bool v7; // cc
cocos2d::CCDirector *v8; // x0
cocos2d::CCDirector *v9; // x19
GJSearchObject *v10; // x1
cocos2d::CCTransitionFade *v11; // x0
cocos2d::CCScene *v12; // x1
cocos2d::CCScene *v13; // x0
GameManager *v15; // x0
GameManager *v16; // x0
GameManager *v17; // x0
v2 = (GameManager *)GameManager::sharedState(this);
if ( *((_DWORD *)v2 + 326) != 102
|| (v16 = (GameManager *)GameManager::sharedState(v2), (unsigned __int8)GameManager::onlyCuratedLevels(v16)) )
{
v3 = (GameManager *)GJSearchObject::create(98);
v4 = (GameManager *)GameManager::sharedState(v3);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0091");
if ( (int)IntGameVariable > 998
|| (v15 = (GameManager *)GameManager::sharedState(IntGameVariable),
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v15, "0091"),
(int)IntGameVariable > 0) )
{
v6 = (GameManager *)GameManager::sharedState(IntGameVariable);
v7 = (int)GameManager::getIntGameVariable(v6, "0091") <= 998;
v8 = (cocos2d::CCDirector *)((char *)&elf_hash_bucket[123] + 3);
if ( v7 )
{
v17 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&elf_hash_bucket[123] + 3));
v8 = (cocos2d::CCDirector *)GameManager::getIntGameVariable(v17, "0091");
}
}
else
{
v8 = nullptr;
}
*((_DWORD *)v3 + 105) = (_DWORD)v8;
}
else
{
v8 = (cocos2d::CCDirector *)GJSearchObject::create(102);
v3 = v8;
}
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
v11 = (cocos2d::CCTransitionFade *)LevelBrowserLayer::scene(v3, v10);
v13 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v11, 0.5, v12);
return cocos2d::CCDirector::pushScene(v9, v13);
}