{"type": "func", "start": 9029584, "end": 9029824, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x89c7d0 to 0x89c8c0 (240 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x84fa0\n// > <???> @ 0x1449990\n// \n// This function is hookable on this platform (idp: arm, 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 12:56:12 +0000\n// \n\n__int64 __fastcall AnimatedGameObject::deactivateObject(AnimatedGameObject *this, char a2)\n{\n  int v3; // w21\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 *v6; // x2\n  __int64 v7; // x0\n  __int64 v8; // x1\n  __int64 v9; // x1\n  __int64 v11; // [xsp+30h] [xbp+30h] BYREF\n  __int64 v12; // [xsp+38h] [xbp+38h]\n  __int64 v13; // [xsp+40h] [xbp+40h]\n\n  v3 = *((unsigned __int8 *)this + 773);\n  EnhancedGameObject::deactivateObject(this, a2);\n  if ( v3 && !*((_BYTE *)this + 773) )\n  {\n    v4 = *((_QWORD *)this + 183);\n    v11 = 0;\n    v12 = 0;\n    v5 = *(_QWORD *)(v4 + 648);\n    v13 = 0;\n    v6 = (__int64 *)(v5 + 400);\n    if ( (*(_BYTE *)(v5 + 400) & 1) != 0 )\n    {\n      std::string::__init(&v11, *(void **)(v5 + 416), *(_QWORD *)(v5 + 408));\n    }\n    else\n    {\n      v7 = *v6;\n      v8 = v6[1];\n      v13 = v6[2];\n      v11 = v7;\n      v12 = v8;\n    }\n    if ( (*((_BYTE *)this + 1496) & 1) != 0 )\n    {\n      **((_BYTE **)this + 189) = 0;\n      *((_QWORD *)this + 188) = 0;\n    }\n    else\n    {\n      *((_BYTE *)this + 1497) = 0;\n      *((_BYTE *)this + 1496) = 0;\n    }\n    std::string::reserve((__int64 *)this + 187, 0);\n    *((_QWORD *)this + 189) = v13;\n    v9 = v12;\n    *((_QWORD *)this + 187) = v11;\n    *((_QWORD *)this + 188) = v9;\n    SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(*((_QWORD *)this + 183) + 648LL));\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x89c7d0 to 0x89c8c0 (240 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x84fa0\n; > <???> @ 0x1449990\n; \n; This function is hookable on this platform (idp: arm, 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 12:56:12 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x89c7d0\nMOV             X29, SP                                                ; +0x4, 0x89c7d4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x89c7d8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x89c7dc\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x89c7e0\nMOV             X20, X0                                                ; +0x14, 0x89c7e4\nLDRB            W21, [X0,#0x305]                                       ; +0x18, 0x89c7e8\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x89c7ec\nLDR             X2, [X2]                                               ; +0x20, 0x89c7f0\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x24, 0x89c7f4\nBL              _ZN18EnhancedGameObject16deactivateObjectEb; EnhancedGameObject::deactivateObject(bool) ; +0x28, 0x89c7f8\nCBZ             W21, loc_89C874                                        ; +0x2c, 0x89c7fc\nLDRB            W0, [X20,#0x305]                                       ; +0x30, 0x89c800\nCBNZ            W0, loc_89C874                                         ; +0x34, 0x89c804\nLDR             X0, [X20,#0x5B8]                                       ; +0x38, 0x89c808\nADD             X21, X20, #0x5D8                                       ; +0x3c, 0x89c80c\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x40, 0x89c810\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x44, 0x89c814\nLDR             X0, [X0,#0x288]                                        ; +0x48, 0x89c818\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x4c, 0x89c81c\nADD             X2, X0, #0x190                                         ; +0x50, 0x89c820\nLDRB            W0, [X0,#0x190]                                        ; +0x54, 0x89c824\nTBNZ            W0, #0, loc_89C8A8                                     ; +0x58, 0x89c828\nLDP             X0, X1, [X2]                                           ; +0x5c, 0x89c82c\nLDR             X2, [X2,#0x10]                                         ; +0x60, 0x89c830\nSTR             X2, [X29,#0x50+var_10]                                 ; +0x64, 0x89c834\nSTP             X0, X1, [X29,#0x50+var_20]                             ; +0x68, 0x89c838\nLDRB            W0, [X20,#0x5D8]                                       ; +0x6c, 0x89c83c\nTBNZ            W0, #0, loc_89C898                                     ; +0x70, 0x89c840\nSTRB            WZR, [X20,#0x5D9]                                      ; +0x74, 0x89c844\nSTRB            WZR, [X20,#0x5D8]                                      ; +0x78, 0x89c848\nMOV             X0, X21                                                ; +0x7c, 0x89c84c\nMOV             X1, #0                                                 ; +0x80, 0x89c850\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm; std::string::reserve(ulong) ; +0x84, 0x89c854\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x88, 0x89c858\nSTR             X0, [X21,#0x10]                                        ; +0x8c, 0x89c85c\nLDP             X0, X1, [X29,#0x50+var_20]                             ; +0x90, 0x89c860\nSTP             X0, X1, [X21]                                          ; +0x94, 0x89c864\nLDR             X0, [X20,#0x5B8]                                       ; +0x98, 0x89c868\nLDR             X0, [X0,#0x288]; this                                  ; +0x9c, 0x89c86c\nBL              _ZN22SpriteAnimationManager14stopAnimationsEv; SpriteAnimationManager::stopAnimations(void) ; +0xa0, 0x89c870\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa4, 0x89c874\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xa8, 0x89c878\nLDR             X0, [X19]                                              ; +0xac, 0x89c87c\nCMP             X1, X0                                                 ; +0xb0, 0x89c880\nB.NE            loc_89C8BC                                             ; +0xb4, 0x89c884\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xb8, 0x89c888\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xbc, 0x89c88c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xc0, 0x89c890\nRET                                                                    ; +0xc4, 0x89c894\nLDR             X0, [X21,#0x10]                                        ; +0xc8, 0x89c898\nSTRB            WZR, [X0]                                              ; +0xcc, 0x89c89c\nSTR             XZR, [X21,#8]                                          ; +0xd0, 0x89c8a0\nB               loc_89C84C                                             ; +0xd4, 0x89c8a4\nLDR             X1, [X2,#0x10]                                         ; +0xd8, 0x89c8a8\nADD             X0, X29, #0x50+var_20                                  ; +0xdc, 0x89c8ac\nLDR             X2, [X2,#8]                                            ; +0xe0, 0x89c8b0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xe4, 0x89c8b4\nB               loc_89C83C                                             ; +0xe8, 0x89c8b8\nBL              .__stack_chk_fail                                      ; +0xec, 0x89c8bc", "xrefs": ["<???> @ 0x84fa0", "<???> @ 0x1449990"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}