//
// sub_140204430 from 0x140204430 to 0x1402044cc (156 bytes)
//
// 3 xrefs:
// > sub_140255E38 @ 0x140255e3f
// > ??> @ 0x1405667a0
// > ??> @ 0x1406ccbc4
//
// 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_140204430(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
Block->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCLayer_vtbl *)&GJGameLoadingLayer::`vftable';
Block->cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJGameLoadingLayer::`vftable';
Block->cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJGameLoadingLayer::`vftable';
Block->cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJGameLoadingLayer::`vftable';
Block->cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJGameLoadingLayer::`vftable';
Block->cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJGameLoadingLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[1].cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v4 )
cocos2d::CCObject::release(v4);
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}