//
// LoadingLayer::scene from 0x10038bac0 to 0x10038bbad (237 bytes)
//
// 2 xrefs:
// > GameManager::reloadAllStep5 @ 0x100377152
// > AppDelegate::applicationDidFinishLaunching @ 0x10073b894
//
// 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:29:12 +0000
//
_BYTE *__fastcall LoadingLayer::scene(unsigned __int8 a1)
{
_BYTE *v1; // rbx
_QWORD *v2; // r14
v1 = cocos2d::CCScene::create();
v2 = operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v2);
*v2 = off_100B2EB88;
v2[40] = off_100B2F018;
v2[41] = &off_100B2F088;
v2[42] = off_100B2F0A0;
v2[43] = off_100B2F0C0;
v2[44] = off_100B2F0E8;
*((_WORD *)v2 + 202) = 0;
*((_DWORD *)v2 + 102) = 0;
*((_OWORD *)v2 + 26) = 0;
*((_OWORD *)v2 + 27) = 0;
*((_BYTE *)v2 + 448) = 0;
if ( (unsigned __int8)LoadingLayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
v2 = nullptr;
}
(*(void (__fastcall **)(_BYTE *, _QWORD *))(*(_QWORD *)v1 + 456LL))(v1, v2);
return v1;
}