//
// GJGameLoadingLayer::loadLevel from 0x58b790 to 0x58b7dc (76 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:02 +0000
//
int __fastcall GJGameLoadingLayer::loadLevel(LevelEditorLayer **this)
{
GJGameLevel *v2; // r5
cocos2d::CCDirector *v3; // r5
bool v4; // r2
AppDelegate *v5; // r0
cocos2d::CCScene *v6; // r2
cocos2d::CCScene *v7; // r1
cocos2d::CCDirector *v8; // r0
cocos2d::CCDirector *v9; // r6
bool v10; // r2
AppDelegate *v11; // r0
cocos2d::CCScene *v12; // r2
v2 = (GJGameLevel *)*((unsigned __int8 *)this + 320);
if ( *((_BYTE *)this + 320) )
{
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v5 = LevelEditorLayer::scene(*(this + 79), nullptr, v4);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3ECCCCCD,
*(float *)&v5,
v6);
v8 = v3;
}
else
{
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v11 = PlayLayer::scene(*(this + 79), v2, v10);
v7 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3ECCCCCD,
*(float *)&v11,
v12);
v8 = v9;
}
return cocos2d::CCDirector::replaceScene(v8, v7);
}