//
// AnimatedGameObject::deactivateObject from 0x140645910 to 0x1406459e7 (215 bytes)
//
// 2 xrefs:
// > ??> @ 0x140829350
// > ??> @ 0x140931394
//
// 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:35:36 +0000
//
void __fastcall AnimatedGameObject::deactivateObject(__int64 a1, __int64 a2)
{
char v2; // bl
__int64 v4; // rbx
cocos2d::CCNode *v5; // rcx
cocos2d::CCNode *v6; // rcx
_BYTE v7[32]; // [rsp+28h] [rbp-30h] BYREF
v2 = *(_BYTE *)(a1 + 773);
EnhancedGameObject::deactivateObject((__int64 *)a1, a2);
if ( v2 && !*(_BYTE *)(a1 + 773) )
{
sub_14003F4F0((__int64)v7, *(_QWORD *)(*(_QWORD *)(a1 + 1480) + 664LL) + 408LL);
sub_140059C40(a1 + 1512, (__int64)v7);
sub_14003D310((__int64)v7);
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1480) + 664LL);
SpriteAnimationManager::overridePrio(v4);
v5 = *(cocos2d::CCNode **)(*(_QWORD *)(v4 + 320) + 688LL);
if ( v5 )
cocos2d::CCNode::stopAllActions(v5);
v6 = *(cocos2d::CCNode **)(*(_QWORD *)(v4 + 320) + 680LL);
if ( v6 )
cocos2d::CCNode::stopAllActions(v6);
}
}