//
// sub_140495680 from 0x140495680 to 0x140495719 (153 bytes)
//
// 2 xrefs:
// > ??> @ 0x140616ed0
// > ??> @ 0x1406dc200
//
// 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
_QWORD *__fastcall sub_140495680(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &AnimatedGameObject::`vftable';
Block[40] = &AnimatedGameObject::`vftable';
Block[43] = &AnimatedGameObject::`vftable';
Block[183] = &AnimatedGameObject::`vftable';
Block[184] = &AnimatedGameObject::`vftable';
v4 = (cocos2d::CCObject *)Block[187];
if ( v4 )
cocos2d::CCObject::release(v4);
sub_14003A830((__int64)(Block + 189));
GameObject::dGameObject((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}