//
// sub_1402C4170 from 0x1402c4170 to 0x1402c421a (170 bytes)
//
// 3 xrefs:
// > sub_1402C87C0 @ 0x1402c87c7
// > ??> @ 0x140583138
// > ??> @ 0x1406d2abc
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayer *__fastcall sub_1402C4170(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
Block->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&LevelAreaLayer::`vftable';
Block->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelAreaLayer::`vftable';
Block->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelAreaLayer::`vftable';
Block->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelAreaLayer::`vftable';
Block->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelAreaLayer::`vftable';
Block->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelAreaLayer::`vftable';
Block[1].cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&LevelAreaLayer::`vftable';
v4 = *(cocos2d::CCObject **)&Block[1].m_nTag;
if ( v4 )
cocos2d::CCObject::release(v4);
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}