//
// GJGameLoadingLayer::loadLevel from 0x998c9c to 0x998d14 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x4cc78
// > GJGameLoadingLayer::gameLayerDidUnload @ 0x9ada9c
// > ??> @ 0x15418e8
//
// 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:58:03 +0000
//
__int64 __fastcall GJGameLoadingLayer::loadLevel(LevelEditorLayer **this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x20
AppDelegate *v4; // x0
cocos2d::CCScene *v5; // x1
cocos2d::CCScene *v6; // x1
v2 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 416);
if ( (_DWORD)v2 )
{
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
v4 = LevelEditorLayer::scene(*(this + 51), nullptr);
}
else
{
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
v4 = PlayLayer::scene(*(this + 51), nullptr);
}
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.4, v5);
return cocos2d::CCDirector::replaceScene(v3, v6);
}