//
// sub_1403EFA50 from 0x1403efa50 to 0x1403efb16 (198 bytes)
//
// 3 xrefs:
// > sub_1403F3730 @ 0x1403f3737
// > ??> @ 0x1405d48d8
// > ??> @ 0x1406d812c
//
// 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
//
cocos2d::CCLayer *__fastcall sub_1403EFA50(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
Block->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&SecretLayer4::`vftable';
Block->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SecretLayer4::`vftable';
Block->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SecretLayer4::`vftable';
Block->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SecretLayer4::`vftable';
Block->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SecretLayer4::`vftable';
Block->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SecretLayer4::`vftable';
Block[1].cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&SecretLayer4::`vftable';
*(_QWORD *)&Block[1].m_uID = &SecretLayer4::`vftable';
*(_QWORD *)&Block[1].m_nTag = &SecretLayer4::`vftable';
v4 = *(cocos2d::CCObject **)&Block[1].m_fVertexZ;
if ( v4 )
cocos2d::CCObject::release(v4);
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}