//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x9ad9e8 to 0x9ada70 (136 bytes)
//
// 4 xrefs:
// > PauseLayer::goEdit @ 0x7d538c
// > EditorPauseLayer::playStep3 @ 0x8b65d8
// > EndLevelLayer::goEdit @ 0x8f994c
// > ??> @ 0xd9f00
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:13 +0000
//
__int64 __fastcall GJGameLoadingLayer::transitionToLoadingLayer(GJGameLoadingLayer *this, GJGameLevel *a2)
{
unsigned int v3; // w21
AppDelegate *v4; // x19
__int64 v5; // x20
cocos2d::CCDirector *v6; // x21
cocos2d::CCScene *v7; // x1
cocos2d::CCScene *v8; // x0
v3 = (unsigned __int8)a2;
v4 = (AppDelegate *)cocos2d::CCScene::create(this);
*(_QWORD *)(AppDelegate::get(v4) + 24) = v4;
v5 = GJGameLoadingLayer::create(this, (GJGameLevel *)v3);
(*(void (__fastcall **)(AppDelegate *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v5);
*((_DWORD *)v4 + 7) = (unsigned int)&byte_5;
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)&byte_5);
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.1, v7);
cocos2d::CCDirector::replaceScene(v6, v8);
return v5;
}