//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x1002091cc to 0x100209258 (140 bytes)
//
// 3 xrefs:
// > PauseLayer::goEdit @ 0x10014368c
// > EndLevelLayer::goEdit @ 0x1002f8418
// > EditorPauseLayer::playStep3 @ 0x10039e7a8
//
// 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
//
GJGameLoadingLayer *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)
{
cocos2d::CCScene *v4; // x21
GJGameLoadingLayer *v5; // x19
cocos2d::CCDirector *v6; // x20
cocos2d::CCTransitionFade *v7; // x0
v4 = cocos2d::CCScene::create();
AppDelegate::get()->m_resourceRootPath.m_data.m_long.longStorage = (char *)v4;
v5 = GJGameLoadingLayer::create(a1, a2);
((void (__fastcall *)(cocos2d::CCScene *, GJGameLoadingLayer *))v4->addChild)(v4, v5);
v4->m_eObjType = PlayLayerObjectType;
v6 = cocos2d::CCDirector::sharedDirector();
v7 = cocos2d::CCTransitionFade::create_1(0.1, v4);
cocos2d::CCDirector::replaceScene(v6, v7);
return v5;
}