//
// CreatorLayer::onMyLevels from 0x100298b70 to 0x100298c44 (212 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x100297c7b
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall CreatorLayer::onMyLevels(CreatorLayer *a1, cocos2d::CCObject *a2)
{
SearchType m_localSearchType; // r14d
GJSearchObject *v3; // rbx
GameManager *v4; // rax
GameManager *v5; // rax
GameManager *v6; // rax
int IntGameVariable; // ecx
int v8; // eax
GameManager *v9; // rax
cocos2d::CCDirector *v10; // r14
cocos2d::CCScene *v11; // rax
cocos2d::CCTransitionFade *v12; // rax
m_localSearchType = GameManager::sharedState()->m_localSearchType;
v3 = GJSearchObject::create_2((SearchType)(4 * (m_localSearchType == MyLists) + 98));
if ( m_localSearchType != MyLists )
{
v4 = GameManager::sharedState();
if ( GameManager::getIntGameVariable(v4, "0091") <= 998
&& (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, "0091") <= 0) )
{
v8 = 0;
}
else
{
v6 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v6, "0091");
v8 = 999;
if ( IntGameVariable <= 998 )
{
v9 = GameManager::sharedState();
v8 = GameManager::getIntGameVariable(v9, "0091");
}
}
v3->m_folder = v8;
}
v10 = cocos2d::CCDirector::sharedDirector();
v11 = LevelBrowserLayer::scene(v3);
v12 = cocos2d::CCTransitionFade::create_1(0.5, v11);
cocos2d::CCDirector::pushScene(v10, v12);
}