//
// UILayer::create from 0x5c83e8 to 0x5c8510 (296 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::init @ 0x894098
// > ??> @ 0x3cf60
//
// 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
//
UILayer *UILayer::create(GJBaseGameLayer *a1)
{
__int64 v2; // x19
v2 = operator new(0x280u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*(_QWORD *)(v2 + 552) = 0;
*(_QWORD *)v2 = &off_11478E0;
*(_QWORD *)(v2 + 320) = off_1147E00;
*(_QWORD *)(v2 + 328) = &off_1147E70;
*(_QWORD *)(v2 + 336) = &off_1147E88;
*(_QWORD *)(v2 + 344) = off_1147EA8;
*(_QWORD *)(v2 + 352) = off_1147EC8;
*(_QWORD *)(v2 + 408) = &off_1147EF0;
*(_QWORD *)(v2 + 432) = &off_1147F70;
*(_QWORD *)(v2 + 544) = off_1147F90;
*(_QWORD *)(v2 + 560) = 0;
*(_QWORD *)(v2 + 568) = 0;
*(_BYTE *)(v2 + 576) = 0;
*(_BYTE *)(v2 + 577) = 0;
*(_BYTE *)(v2 + 578) = 0;
*(_BYTE *)(v2 + 579) = 0;
*(_BYTE *)(v2 + 580) = 0;
*(_DWORD *)(v2 + 584) = -1;
*(_DWORD *)(v2 + 588) = -1;
*(_BYTE *)(v2 + 596) = 0;
*(_QWORD *)(v2 + 600) = 0;
*(_BYTE *)(v2 + 608) = 0;
*(_QWORD *)(v2 + 616) = 0;
*(_BYTE *)(v2 + 624) = 0;
*(_BYTE *)(v2 + 625) = 0;
*(_BYTE *)(v2 + 626) = 0;
*(_QWORD *)(v2 + 632) = 0;
*(_DWORD *)(v2 + 592) = 0;
if ( UILayer::init((UILayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (UILayer *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}