//
// UILayer::create from 0x1004c1e90 to 0x1004c1fb7 (295 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::init @ 0x1000ec814
//
// 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:31:06 +0000
//
char *__fastcall UILayer::create(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x290u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v1);
*(_QWORD *)v1 = off_100B5BA20;
*((_QWORD *)v1 + 40) = off_100B5BF58;
*((_QWORD *)v1 + 41) = &off_100B5BFC8;
*((_QWORD *)v1 + 42) = off_100B5BFE0;
*((_QWORD *)v1 + 43) = off_100B5C000;
*((_QWORD *)v1 + 44) = off_100B5C028;
*((_QWORD *)v1 + 51) = off_100B5C058;
*((_QWORD *)v1 + 54) = off_100B5C0D8;
*((_QWORD *)v1 + 68) = off_100B5C0F8;
*(_OWORD *)(v1 + 552) = 0;
*(_OWORD *)(v1 + 565) = 0;
*((_QWORD *)v1 + 73) = -1;
*((_DWORD *)v1 + 148) = 0;
v1[596] = 0;
*((_QWORD *)v1 + 75) = 0;
v1[608] = 0;
*((_QWORD *)v1 + 77) = 0;
*((_DWORD *)v1 + 156) = 0;
*(_OWORD *)(v1 + 632) = 0;
v1[648] = 0;
if ( (unsigned __int8)UILayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}