//
// UILayer::dUILayer from 0x14066fe70 to 0x14066ff67 (247 bytes)
//
// 3 xrefs:
// > sub_1406748D8 @ 0x1406748df
// > ??> @ 0x140834578
// > ??> @ 0x14093227c
//
// 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 11:35:54 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayerColor *__fastcall UILayer::dUILayer(cocos2d::CCLayerColor *Block, char a2)
{
__int64 v4; // rax
cocos2d::CCObject *v5; // rcx
cocos2d::CCObject *v6; // rcx
cocos2d::CCObject *v7; // rcx
*(_QWORD *)Block = &UILayer::`vftable';
*((_QWORD *)Block + 40) = &UILayer::`vftable';
*((_QWORD *)Block + 41) = &UILayer::`vftable';
*((_QWORD *)Block + 42) = &UILayer::`vftable';
*((_QWORD *)Block + 43) = &UILayer::`vftable';
*((_QWORD *)Block + 44) = &UILayer::`vftable';
*((_QWORD *)Block + 51) = &UILayer::`vftable';
*((_QWORD *)Block + 54) = &UILayer::`vftable';
*((_QWORD *)Block + 68) = &UILayer::`vftable';
v4 = GJKeybindManager::sharedState();
GJKeybindManager::clearMovementOverride(v4);
v5 = *((cocos2d::CCObject **)Block + 77);
if ( v5 )
cocos2d::CCObject::release(v5);
v6 = *((cocos2d::CCObject **)Block + 79);
if ( v6 )
cocos2d::CCObject::release(v6);
v7 = *((cocos2d::CCObject **)Block + 80);
if ( v7 )
cocos2d::CCObject::release(v7);
cocos2d::CCLayerColor::~CCLayerColor(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}