{"type": "func", "start": 5375285520, "end": 5375285735, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x140645910 to 0x1406459e7 (215 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140829350\n// > <???> @ 0x140931394\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:35:36 +0000\n// \n\nvoid __fastcall AnimatedGameObject::deactivateObject(__int64 a1, __int64 a2)\n{\n  char v2; // bl\n  __int64 v4; // rbx\n  cocos2d::CCNode *v5; // rcx\n  cocos2d::CCNode *v6; // rcx\n  _BYTE v7[32]; // [rsp+28h] [rbp-30h] BYREF\n\n  v2 = *(_BYTE *)(a1 + 773);\n  EnhancedGameObject::deactivateObject((__int64 *)a1, a2);\n  if ( v2 && !*(_BYTE *)(a1 + 773) )\n  {\n    sub_14003F4F0((__int64)v7, *(_QWORD *)(*(_QWORD *)(a1 + 1480) + 664LL) + 408LL);\n    sub_140059C40(a1 + 1512, (__int64)v7);\n    sub_14003D310((__int64)v7);\n    v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1480) + 664LL);\n    SpriteAnimationManager::overridePrio(v4);\n    v5 = *(cocos2d::CCNode **)(*(_QWORD *)(v4 + 320) + 688LL);\n    if ( v5 )\n      cocos2d::CCNode::stopAllActions(v5);\n    v6 = *(cocos2d::CCNode **)(*(_QWORD *)(v4 + 320) + 680LL);\n    if ( v6 )\n      cocos2d::CCNode::stopAllActions(v6);\n  }\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x140645910 to 0x1406459e7 (215 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140829350\n; > <???> @ 0x140931394\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:35:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140645910\npush    rdi                                                            ; +0x5, 0x140645915\nsub     rsp, 50h                                                       ; +0x6, 0x140645916\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14064591a\nxor     rax, rsp                                                       ; +0x11, 0x140645921\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x140645924\nmovzx   ebx, byte ptr [rcx+305h]                                       ; +0x19, 0x140645929\nmov     rdi, rcx                                                       ; +0x20, 0x140645930\ncall    EnhancedGameObject__deactivateObject                           ; +0x23, 0x140645933\ntest    bl, bl                                                         ; +0x28, 0x140645938\njz      loc_1406459CF                                                  ; +0x2a, 0x14064593a\ncmp     byte ptr [rdi+305h], 0                                         ; +0x30, 0x140645940\njnz     loc_1406459CF                                                  ; +0x37, 0x140645947\nmov     rax, [rdi+5C8h]                                                ; +0x3d, 0x14064594d\nlea     rcx, [rsp+58h+var_30]                                          ; +0x44, 0x140645954\nmov     rdx, [rax+298h]                                                ; +0x49, 0x140645959\nadd     rdx, 198h                                                      ; +0x50, 0x140645960\ncall    sub_14003F4F0                                                  ; +0x57, 0x140645967\nlea     rcx, [rdi+5E8h]                                                ; +0x5c, 0x14064596c\nlea     rdx, [rsp+58h+var_30]                                          ; +0x63, 0x140645973\ncall    sub_140059C40                                                  ; +0x68, 0x140645978\nlea     rcx, [rsp+58h+var_30]                                          ; +0x6d, 0x14064597d\ncall    sub_14003D310                                                  ; +0x72, 0x140645982\nmov     rax, [rdi+5C8h]                                                ; +0x77, 0x140645987\nmov     rbx, [rax+298h]                                                ; +0x7e, 0x14064598e\nmov     rcx, rbx                                                       ; +0x85, 0x140645995\ncall    SpriteAnimationManager__overridePrio                           ; +0x88, 0x140645998\nmov     rax, [rbx+140h]                                                ; +0x8d, 0x14064599d\nmov     rcx, [rax+2B0h]                                                ; +0x94, 0x1406459a4\ntest    rcx, rcx                                                       ; +0x9b, 0x1406459ab\njz      short loc_1406459B6                                            ; +0x9e, 0x1406459ae\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xa0, 0x1406459b0\nmov     rax, [rbx+140h]                                                ; +0xa6, 0x1406459b6\nmov     rcx, [rax+2A8h]                                                ; +0xad, 0x1406459bd\ntest    rcx, rcx                                                       ; +0xb4, 0x1406459c4\njz      short loc_1406459CF                                            ; +0xb7, 0x1406459c7\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xb9, 0x1406459c9\nmov     rcx, [rsp+58h+var_10]                                          ; +0xbf, 0x1406459cf\nxor     rcx, rsp; StackCookie                                          ; +0xc4, 0x1406459d4\ncall    __security_check_cookie                                        ; +0xc7, 0x1406459d7\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xcc, 0x1406459dc\nadd     rsp, 50h                                                       ; +0xd1, 0x1406459e1\npop     rdi                                                            ; +0xd5, 0x1406459e5\nretn                                                                   ; +0xd6, 0x1406459e6", "xrefs": ["<???> @ 0x140829350", "<???> @ 0x140931394"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}