//
// UILayer::create from 0x1004c7ac0 to 0x1004c7be4 (292 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::init @ 0x1001105e4
//
// 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 *__fastcall UILayer::create(GJBaseGameLayer *a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x280u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v1);
*(_QWORD *)v1 = off_1009507F8;
*((_QWORD *)v1 + 40) = off_100950D18;
*((_QWORD *)v1 + 41) = &off_100950D88;
*((_QWORD *)v1 + 42) = off_100950DA0;
*((_QWORD *)v1 + 43) = off_100950DC0;
*((_QWORD *)v1 + 44) = off_100950DE0;
*((_QWORD *)v1 + 51) = off_100950E08;
*((_QWORD *)v1 + 54) = off_100950E88;
*((_QWORD *)v1 + 68) = off_100950EA8;
*(_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 + 79) = 0;
*((_QWORD *)v1 + 77) = 0;
*(_DWORD *)(v1 + 623) = 0;
if ( UILayer::init((UILayer *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (UILayer *)v1;
}