//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x1002a62ec to 0x1002a6378 (140 bytes)
//
// 3 xrefs:
// > PauseLayer::goEdit @ 0x1001c10ac
// > sub_100394CE0 @ 0x100394d3c
// > EditorPauseLayer::playStep3 @ 0x100444b04
//
// 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 11:02:15 +0000
//
__int64 __fastcall GJGameLoadingLayer::transitionToLoadingLayer(__int64 a1, __int64 a2)
{
_DWORD *v4; // x21
__int64 v5; // x19
__int64 v6; // x20
char *v7; // x0
v4 = (_DWORD *)cocos2d::CCScene::create();
*(_QWORD *)(AppDelegate::get(v4) + 24) = v4;
v5 = GJGameLoadingLayer::create(a1, a2);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v5);
v4[7] = 5;
v6 = cocos2d::CCDirector::sharedDirector();
v7 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.1);
cocos2d::CCDirector::replaceScene(v6, v7);
return v5;
}