//
// GJGameLoadingLayer::loadLevel from 0x100165780 to 0x1001657df (95 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::dGJBaseGameLayer @ 0x10010f224
// > GJGameLoadingLayer::gameLayerDidUnload @ 0x10010fb0a
//
// 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 GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)
{
bool m_editor; // r15
cocos2d::CCDirector *v2; // rbx
GJGameLevel *m_level; // rdi
cocos2d::CCScene *v4; // rax
cocos2d::CCTransitionFade *v5; // rax
m_editor = a1->m_editor;
v2 = cocos2d::CCDirector::sharedDirector();
m_level = a1->m_level;
if ( m_editor )
v4 = LevelEditorLayer::scene(m_level, 0);
else
v4 = PlayLayer::scene(m_level, 0, 0);
v5 = cocos2d::CCTransitionFade::create_1(0.40000001, v4);
cocos2d::CCDirector::replaceScene(v2, v5);
}