//
// GJGameLoadingLayer::loadLevel from 0x100144e30 to 0x100144e8d (93 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1000eb2b4
// > GJGameLoadingLayer::gameLayerDidUnload @ 0x1000ebd0a
//
// 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:24:57 +0000
//
__int64 __fastcall GJGameLoadingLayer::loadLevel(__int64 a1, __int64 a2)
{
char v2; // r15
__int64 v3; // rbx
__int64 v4; // rdi
_DWORD *v5; // rax
char *v6; // rax
v2 = *(_BYTE *)(a1 + 416);
v3 = cocos2d::CCDirector::sharedDirector(a1, a2);
v4 = *(_QWORD *)(a1 + 408);
if ( v2 == 1 )
v5 = LevelEditorLayer::scene(v4, 0);
else
v5 = PlayLayer::scene(v4, 0);
v6 = cocos2d::CCTransitionFade::create_1((__int64)v5, 0.40000001);
return cocos2d::CCDirector::replaceScene(v3, v6);
}