//
// LoadingLayer::create from 0x5c59a8 to 0x5c5a8c (228 bytes)
//
// 2 xrefs:
// > LoadingLayer::scene @ 0x5c5aa8
// > ??> @ 0x7e2d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
LoadingLayer *LoadingLayer::create(bool a1)
{
__int64 v2; // x19
v2 = operator new(0x1C8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v2);
*(_BYTE *)(v2 + 404) = 0;
*(_QWORD *)v2 = &off_11472F0;
*(_QWORD *)(v2 + 320) = off_1147770;
*(_QWORD *)(v2 + 328) = &off_11477E0;
*(_QWORD *)(v2 + 336) = off_11477F8;
*(_QWORD *)(v2 + 344) = &off_1147818;
*(_QWORD *)(v2 + 352) = off_1147838;
*(_BYTE *)(v2 + 405) = 0;
*(_DWORD *)(v2 + 408) = 0;
*(_QWORD *)(v2 + 416) = 0;
*(_QWORD *)(v2 + 424) = 0;
*(_QWORD *)(v2 + 432) = 0;
*(_BYTE *)(v2 + 448) = 0;
*(_DWORD *)(v2 + 440) = 0;
*(_DWORD *)(v2 + 444) = 0;
if ( LoadingLayer::init((LoadingLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (LoadingLayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}