//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x59b7c4 to 0x59b80a (70 bytes)
//
// 3 xrefs:
// > PauseLayer::goEdit @ 0x48eb5a
// > EditorPauseLayer::playStep3 @ 0x508e24
// > EndLevelLayer::goEdit @ 0x5340e4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:13 +0000
//
cocos2d::CCLayer *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(
GJGameLoadingLayer *this,
GJGameLevel *a2,
bool a3)
{
AppDelegate *v5; // r4
bool v6; // r2
cocos2d::CCLayer *v7; // r5
cocos2d::CCDirector *v8; // r0
cocos2d::CCDirector *v9; // r6
cocos2d::CCScene *v10; // r2
cocos2d::CCScene *v11; // r0
v5 = (AppDelegate *)cocos2d::CCScene::create(this);
*(_DWORD *)(AppDelegate::get(v5) + 12) = v5;
v7 = GJGameLoadingLayer::create(this, a2, v6);
v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(AppDelegate *, cocos2d::CCLayer *))(*(_DWORD *)v5 + 228))(v5, v7);
*((_DWORD *)v5 + 6) = 5;
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);
v11 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3DCCCCCD,
*(float *)&v5,
v10);
cocos2d::CCDirector::replaceScene(v9, v11);
return v7;
}