//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x47cce0 to 0x47cd26 (70 bytes)
//
// 3 xrefs:
// > PauseLayer::goEdit @ 0x3a7bd2
// > EditorPauseLayer::playStep3 @ 0x3ff582
// > EndLevelLayer::goEdit @ 0x42796c
//
// 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::CCSceneDelegate_vtbl *v4; // r4
GJGameLoadingLayer *v5; // r5
cocos2d::CCDirector *v6; // r6
cocos2d::CCTransitionFade *v7; // r0
v4 = (cocos2d::CCSceneDelegate_vtbl *)cocos2d::CCScene::create();
AppDelegate::get()->cocos2d::CCSceneDelegate::__vftable = v4;
v5 = GJGameLoadingLayer::create(a1, a2);
(*((void (__fastcall **)(cocos2d::CCSceneDelegate_vtbl *, GJGameLoadingLayer *))v4->willSwitchToScene + 55))(v4, v5);
v4[6].willSwitchToScene = (void (__fastcall *)(cocos2d::CCSceneDelegate *__hidden, cocos2d::CCScene *))&byte_5;
v6 = cocos2d::CCDirector::sharedDirector();
v7 = cocos2d::CCTransitionFade::create(0.1, (cocos2d::CCScene *)v4);
cocos2d::CCDirector::replaceScene(v6, v7);
return v5;
}