//
// CreatorLayer::onMyLevels from 0x100283850 to 0x100283935 (229 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x100282810
//
// This function is hookable on this platform (idp: pc, 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:27:44 +0000
//
__int64 __fastcall CreatorLayer::onMyLevels(__int64 a1, const char *a2, __int64 a3)
{
__int64 v3; // rdx
__int64 v4; // rax
double v5; // xmm0_8
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rdx
__int64 v9; // rax
__int64 v10; // rdi
__int64 v11; // rdx
int v12; // eax
__int64 v13; // rax
int v14; // eax
__int64 v15; // rax
__int64 v16; // rdx
int v17; // eax
int v18; // ecx
int v19; // eax
__int64 v20; // rax
__int64 v21; // r14
__int64 v22; // rax
char *v23; // rax
GameManager::sharedState(a1, a2, a3);
if ( *(_DWORD *)(v4 + 1304) == 102
&& (*(_QWORD *)&v5 = GameManager::sharedState(a1, a2, v3).u64[0],
!(unsigned __int8)GameManager::onlyCuratedLevels(v6, v5)) )
{
v10 = 102;
v7 = GJSearchObject::create_2(102);
}
else
{
v7 = GJSearchObject::create_2(98);
GameManager::sharedState(98, a2, v8);
v10 = v9;
GameManager::getIntGameVariable(v9, "0091");
if ( v12 <= 998
&& (GameManager::sharedState(v10, "0091", v11),
a2 = "0091",
v10 = v13,
GameManager::getIntGameVariable(v13, "0091"),
v14 <= 0) )
{
v19 = 0;
}
else
{
GameManager::sharedState(v10, "0091", v11);
a2 = "0091";
v10 = v15;
GameManager::getIntGameVariable(v15, "0091");
v18 = v17;
v19 = 999;
if ( v18 <= 998 )
{
GameManager::sharedState(v10, "0091", v16);
a2 = "0091";
v10 = v20;
GameManager::getIntGameVariable(v20, "0091");
}
}
*(_DWORD *)(v7 + 420) = v19;
}
v21 = cocos2d::CCDirector::sharedDirector(v10, a2);
v22 = LevelBrowserLayer::scene(v7);
v23 = cocos2d::CCTransitionFade::create_1(v22, 0.5);
return cocos2d::CCDirector::pushScene(v21, v23);
}