//
// sub_14009BF20 from 0x14009bf20 to 0x14009bfc1 (161 bytes)
//
// 3 xrefs:
// > sub_14009FA1C @ 0x14009fa23
// > ??> @ 0x1405433a8
// > ??> @ 0x1406c7554
//
// 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_14009BF20(cocos2d::CCLayer *Block, char a2)
{
Block->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&CreatorLayer::`vftable';
Block->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CreatorLayer::`vftable';
Block->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CreatorLayer::`vftable';
Block->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CreatorLayer::`vftable';
Block->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CreatorLayer::`vftable';
Block->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CreatorLayer::`vftable';
Block[1].cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&CreatorLayer::`vftable';
*(_QWORD *)&Block[1].m_uID = &CreatorLayer::`vftable';
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}