//
// sub_1401A1F50 from 0x1401a1f50 to 0x1401a200a (186 bytes)
//
// 3 xrefs:
// > sub_1401A8CBC @ 0x1401a8cc3
// > ??> @ 0x1407504f8
// > ??> @ 0x1409198bc
//
// 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:27:48 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayer *__fastcall sub_1401A1F50(cocos2d::CCLayer *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
*(_QWORD *)Block = &GJTransformControl::`vftable';
*((_QWORD *)Block + 40) = &GJTransformControl::`vftable';
*((_QWORD *)Block + 41) = &GJTransformControl::`vftable';
*((_QWORD *)Block + 42) = &GJTransformControl::`vftable';
*((_QWORD *)Block + 43) = &GJTransformControl::`vftable';
*((_QWORD *)Block + 44) = &GJTransformControl::`vftable';
v4 = *((cocos2d::CCObject **)Block + 64);
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *((cocos2d::CCObject **)Block + 53);
if ( v5 )
cocos2d::CCObject::release(v5);
sub_14003EA90((_QWORD *)Block + 70);
cocos2d::CCLayer::~CCLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}