//
// GJGameLoadingLayer::transitionToLoadingLayer from 0x1001448b0 to 0x1001449b7 (263 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::playStep3 @ 0x10027f3bf
// > PauseLayer::goEdit @ 0x1003c30f3
// > EndLevelLayer::goEdit @ 0x1004bc19b
//
// This function is hookable on this platform (idp: pc, 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:24:57 +0000
//
_QWORD *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(__int64 a1, __int64 a2)
{
_DWORD *v2; // r14
_QWORD *v3; // rbx
__int64 v4; // r15
char *v5; // rax
v2 = (_DWORD *)cocos2d::CCScene::create(a1);
*(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;
v3 = operator new(0x1A8u);
cocos2d::CCLayer::CCLayer(v3);
*v3 = off_100AC5350;
v3[40] = off_100AC57E0;
v3[41] = &off_100AC5850;
v3[42] = off_100AC5868;
v3[43] = off_100AC5888;
v3[44] = off_100AC58B0;
v3[51] = 0;
*((_BYTE *)v3 + 416) = 0;
if ( (unsigned __int8)GJGameLoadingLayer::init(v3, a1, (unsigned __int8)a2) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);
v3 = nullptr;
}
(*(void (__fastcall **)(_DWORD *, _QWORD *))(*(_QWORD *)v2 + 456LL))(v2, v3);
v2[7] = 5;
v4 = cocos2d::CCDirector::sharedDirector(v2, v3);
v5 = cocos2d::CCTransitionFade::create_1((__int64)v2, 0.1);
cocos2d::CCDirector::replaceScene(v4, v5);
return v3;
}