//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x86c76c to 0x86c7f4 (136 bytes)
//
// 4 xrefs:
// > PauseLayer::goEdit @ 0x6c6b8c
// > EditorPauseLayer::playStep3 @ 0x78ae6c
// > EndLevelLayer::goEdit @ 0x7d31b0
// > ??> @ 0xa5f18
//
// 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 *GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)
{
cocos2d::CCScene *v4; // x19
GJGameLoadingLayer *v5; // x20
cocos2d::CCDirector *v6; // x21
cocos2d::CCTransitionFade *v7; // x0
v4 = cocos2d::CCScene::create();
AppDelegate::get()->cocos2d::CCSceneDelegate::__vftable = (cocos2d::CCSceneDelegate_vtbl *)v4;
v5 = GJGameLoadingLayer::create(a1, a2);
v4->addChild(v4, v5);
v4->m_eObjType = (unsigned int)&byte_5;
v6 = cocos2d::CCDirector::sharedDirector();
v7 = cocos2d::CCTransitionFade::create(0.1, v4);
cocos2d::CCDirector::replaceScene(v6, v7);
return v5;
}