//
// UILayer::create from 0x6f0970 to 0x6f0aa4 (308 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::init @ 0x9bd6f4
// > ??> @ 0x583f0
//
// This function is hookable on this platform (idp: arm, 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:51:48 +0000
//
__int64 __fastcall UILayer::create(UILayer *this, GJBaseGameLayer *a2)
{
__int64 v3; // x19
v3 = operator new(0x290u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*(_QWORD *)(v3 + 552) = 0;
*(_QWORD *)v3 = &off_14277F0;
*(_QWORD *)(v3 + 320) = off_1427D28;
*(_QWORD *)(v3 + 328) = &off_1427D98;
*(_QWORD *)(v3 + 336) = off_1427DB0;
*(_QWORD *)(v3 + 344) = off_1427DD0;
*(_QWORD *)(v3 + 352) = off_1427DF8;
*(_QWORD *)(v3 + 408) = &off_1427E28;
*(_QWORD *)(v3 + 432) = &off_1427EA8;
*(_QWORD *)(v3 + 544) = off_1427EC8;
*(_QWORD *)(v3 + 560) = 0;
*(_QWORD *)(v3 + 568) = 0;
*(_BYTE *)(v3 + 576) = 0;
*(_BYTE *)(v3 + 577) = 0;
*(_BYTE *)(v3 + 578) = 0;
*(_BYTE *)(v3 + 579) = 0;
*(_BYTE *)(v3 + 580) = 0;
*(_DWORD *)(v3 + 584) = -1;
*(_DWORD *)(v3 + 588) = -1;
*(_BYTE *)(v3 + 596) = 0;
*(_QWORD *)(v3 + 600) = 0;
*(_BYTE *)(v3 + 608) = 0;
*(_QWORD *)(v3 + 616) = 0;
*(_BYTE *)(v3 + 624) = 0;
*(_BYTE *)(v3 + 625) = 0;
*(_BYTE *)(v3 + 626) = 0;
*(_BYTE *)(v3 + 627) = 0;
*(_QWORD *)(v3 + 632) = 0;
*(_QWORD *)(v3 + 640) = 0;
*(_BYTE *)(v3 + 648) = 0;
*(_DWORD *)(v3 + 592) = 0;
if ( (unsigned __int8)UILayer::init((UILayer *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}