{"type": "func", "start": 5373574112, "end": 5373574327, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x1404a3be0 to 0x1404a3cb7 (215 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140617340\n// > <???> @ 0x1406dc800\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid AnimatedGameObject::deactivateObject(AnimatedGameObject *a1, bool a2)\n{\n  bool m_isActivated; // bl\n  SpriteAnimationManager *m_animationManager; // rbx\n  cocos2d::CCNode *m_paSprite; // rcx\n  cocos2d::CCNode *m_fbfSprite; // rcx\n  _BYTE v7[32]; // [rsp+28h] [rbp-30h] BYREF\n\n  m_isActivated = a1->m_isActivated;\n  EnhancedGameObject::deactivateObject(a1, a2);\n  if ( m_isActivated && !a1->m_isActivated )\n  {\n    sub_14003BDB0((__int64)v7, (__int64)&a1->m_animatedSprite->m_animationManager->m_currentAnimation);\n    sub_140051590((__int64)&a1->m_currentAnimation, (__int64)v7);\n    sub_14003A830((__int64)v7);\n    m_animationManager = a1->m_animatedSprite->m_animationManager;\n    SpriteAnimationManager::overridePrio(m_animationManager);\n    m_paSprite = m_animationManager->m_sprite->m_paSprite;\n    if ( m_paSprite )\n      cocos2d::CCNode::stopAllActions(m_paSprite);\n    m_fbfSprite = m_animationManager->m_sprite->m_fbfSprite;\n    if ( m_fbfSprite )\n      cocos2d::CCNode::stopAllActions(m_fbfSprite);\n  }\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x1404a3be0 to 0x1404a3cb7 (215 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140617340\n; > <???> @ 0x1406dc800\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404a3be0\npush    rdi                                                            ; +0x5, 0x1404a3be5\nsub     rsp, 50h                                                       ; +0x6, 0x1404a3be6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1404a3bea\nxor     rax, rsp                                                       ; +0x11, 0x1404a3bf1\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x1404a3bf4\nmovzx   ebx, byte ptr [rcx+305h]                                       ; +0x19, 0x1404a3bf9\nmov     rdi, rcx                                                       ; +0x20, 0x1404a3c00\ncall    EnhancedGameObject__deactivateObject                           ; +0x23, 0x1404a3c03\ntest    bl, bl                                                         ; +0x28, 0x1404a3c08\njz      loc_1404A3C9F                                                  ; +0x2a, 0x1404a3c0a\ncmp     byte ptr [rdi+305h], 0                                         ; +0x30, 0x1404a3c10\njnz     loc_1404A3C9F                                                  ; +0x37, 0x1404a3c17\nmov     rax, [rdi+5C8h]                                                ; +0x3d, 0x1404a3c1d\nlea     rcx, [rsp+58h+var_30]                                          ; +0x44, 0x1404a3c24\nmov     rdx, [rax+298h]                                                ; +0x49, 0x1404a3c29\nadd     rdx, 198h                                                      ; +0x50, 0x1404a3c30\ncall    sub_14003BDB0                                                  ; +0x57, 0x1404a3c37\nlea     rcx, [rdi+5E8h]                                                ; +0x5c, 0x1404a3c3c\nlea     rdx, [rsp+58h+var_30]                                          ; +0x63, 0x1404a3c43\ncall    sub_140051590                                                  ; +0x68, 0x1404a3c48\nlea     rcx, [rsp+58h+var_30]                                          ; +0x6d, 0x1404a3c4d\ncall    sub_14003A830                                                  ; +0x72, 0x1404a3c52\nmov     rax, [rdi+5C8h]                                                ; +0x77, 0x1404a3c57\nmov     rbx, [rax+298h]                                                ; +0x7e, 0x1404a3c5e\nmov     rcx, rbx                                                       ; +0x85, 0x1404a3c65\ncall    SpriteAnimationManager__overridePrio                           ; +0x88, 0x1404a3c68\nmov     rax, [rbx+140h]                                                ; +0x8d, 0x1404a3c6d\nmov     rcx, [rax+2B0h]                                                ; +0x94, 0x1404a3c74\ntest    rcx, rcx                                                       ; +0x9b, 0x1404a3c7b\njz      short loc_1404A3C86                                            ; +0x9e, 0x1404a3c7e\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xa0, 0x1404a3c80\nmov     rax, [rbx+140h]                                                ; +0xa6, 0x1404a3c86\nmov     rcx, [rax+2A8h]                                                ; +0xad, 0x1404a3c8d\ntest    rcx, rcx                                                       ; +0xb4, 0x1404a3c94\njz      short loc_1404A3C9F                                            ; +0xb7, 0x1404a3c97\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xb9, 0x1404a3c99\nmov     rcx, [rsp+58h+var_10]                                          ; +0xbf, 0x1404a3c9f\nxor     rcx, rsp; StackCookie                                          ; +0xc4, 0x1404a3ca4\ncall    __security_check_cookie                                        ; +0xc7, 0x1404a3ca7\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xcc, 0x1404a3cac\nadd     rsp, 50h                                                       ; +0xd1, 0x1404a3cb1\npop     rdi                                                            ; +0xd5, 0x1404a3cb5\nretn                                                                   ; +0xd6, 0x1404a3cb6", "xrefs": ["<???> @ 0x140617340", "<???> @ 0x1406dc800"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}