{"type": "func", "start": 5205896, "end": 5206046, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x4f6f88 to 0x4f701e (150 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:17 +0000\n// \n\ncocos2d::CCNode *__fastcall AnimatedGameObject::deactivateObject(AnimatedGameObject *this, _BOOL4 a2, int a3, int a4)\n{\n  int v5; // r5\n  cocos2d::CCNode *result; // r0\n  int v7; // r8\n  AnimatedGameObject *v8; // r0\n  _BOOL4 v9; // r1\n  int v10; // r2\n  AnimatedGameObject *v11; // [sp+0h] [bp-10h] BYREF\n  _BOOL4 v12; // [sp+4h] [bp-Ch]\n  int v13; // [sp+8h] [bp-8h]\n  int v14; // [sp+Ch] [bp-4h]\n\n  v11 = this;\n  v12 = a2;\n  v13 = a3;\n  v14 = a4;\n  v5 = *((unsigned __int8 *)this + 657);\n  result = (cocos2d::CCNode *)EnhancedGameObject::deactivateObject(this, a2);\n  if ( v5 )\n  {\n    v7 = *((unsigned __int8 *)this + 657);\n    if ( !*((_BYTE *)this + 657) )\n    {\n      std::string::basic_string((int *)&v11, *(_DWORD *)(*((_DWORD *)this + 319) + 532) + 304);\n      if ( (*((_BYTE *)this + 1292) & 1) != 0 )\n      {\n        **((_BYTE **)this + 325) = v7;\n        *((_DWORD *)this + 324) = v7;\n      }\n      else\n      {\n        *((_BYTE *)this + 1293) = 0;\n        *((_BYTE *)this + 1292) = 0;\n      }\n      std::string::reserve((int *)this + 323, 0);\n      v8 = v11;\n      v9 = v12;\n      v10 = v13;\n      v11 = nullptr;\n      v12 = 0;\n      v13 = 0;\n      *((_DWORD *)this + 323) = v8;\n      *((_DWORD *)this + 324) = v9;\n      *((_DWORD *)this + 325) = v10;\n      std::string::~string((int)&v11);\n      return SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(*((_DWORD *)this + 319) + 532));\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x4f6f88 to 0x4f701e (150 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:17 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x4f6f88\nMOV             R4, R0                                                 ; +0x4, 0x4f6f8c\nLDR             R7, =(__stack_chk_guard_ptr - 0x4F6F98)                ; +0x6, 0x4f6f8e\nLDRB.W          R5, [R0,#0x291]                                        ; +0x8, 0x4f6f90\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4f6f94\nLDR             R7, [R7]; __stack_chk_guard                            ; +0xe, 0x4f6f96\nLDR             R3, [R7]                                               ; +0x10, 0x4f6f98\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x4f6f9a\nBL              _ZN18EnhancedGameObject16deactivateObjectEb; EnhancedGameObject::deactivateObject(bool) ; +0x14, 0x4f6f9c\nCBZ             R5, loc_4F700C                                         ; +0x18, 0x4f6fa0\nLDRB.W          R8, [R4,#0x291]                                        ; +0x1a, 0x4f6fa2\nCMP.W           R8, #0                                                 ; +0x1e, 0x4f6fa6\nBNE             loc_4F700C                                             ; +0x22, 0x4f6faa\nLDR.W           R3, [R4,#0x4FC]                                        ; +0x24, 0x4f6fac\nMOV             R0, SP                                                 ; +0x28, 0x4f6fb0\nADDW            R6, R4, #0x50C                                         ; +0x2a, 0x4f6fb2\nLDR.W           R1, [R3,#0x214]                                        ; +0x2e, 0x4f6fb6\nADD.W           R1, R1, #0x130                                         ; +0x32, 0x4f6fba\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x36, 0x4f6fbe\nLDRB.W          R3, [R4,#0x50C]                                        ; +0x3a, 0x4f6fc2\nMOV             R0, R6                                                 ; +0x3e, 0x4f6fc6\nMOVS            R1, #0                                                 ; +0x40, 0x4f6fc8\nANDS.W          R3, R3, #1                                             ; +0x42, 0x4f6fca\nITTEE EQ                                                               ; +0x46, 0x4f6fce\nSTRBEQ.W        R3, [R4,#0x50D]                                        ; +0x48, 0x4f6fd0\nSTRBEQ.W        R3, [R4,#0x50C]                                        ; +0x4c, 0x4f6fd4\nLDRNE.W         R3, [R4,#0x514]                                        ; +0x50, 0x4f6fd8\nSTRBNE.W        R8, [R3]                                               ; +0x54, 0x4f6fdc\nIT NE                                                                  ; +0x58, 0x4f6fe0\nSTRNE.W         R8, [R4,#0x510]                                        ; +0x5a, 0x4f6fe2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj; std::string::reserve(uint) ; +0x5e, 0x4f6fe6\nLDMFD.W         SP, {R0-R2}                                            ; +0x62, 0x4f6fea\nMOVS            R3, #0                                                 ; +0x66, 0x4f6fee\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x68, 0x4f6ff0\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x6a, 0x4f6ff2\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x6c, 0x4f6ff4\nSTM.W           R6, {R0-R2}                                            ; +0x6e, 0x4f6ff6\nMOV             R0, SP                                                 ; +0x72, 0x4f6ffa\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x74, 0x4f6ffc\nLDR.W           R3, [R4,#0x4FC]                                        ; +0x78, 0x4f7000\nLDR.W           R0, [R3,#0x214]; this                                  ; +0x7c, 0x4f7004\nBL              _ZN22SpriteAnimationManager14stopAnimationsEv; SpriteAnimationManager::stopAnimations(void) ; +0x80, 0x4f7008\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x84, 0x4f700c\nLDR             R3, [R7]                                               ; +0x86, 0x4f700e\nCMP             R2, R3                                                 ; +0x88, 0x4f7010\nBEQ             loc_4F7018                                             ; +0x8a, 0x4f7012\nBLX             __stack_chk_fail                                       ; +0x8c, 0x4f7014\nADD             SP, SP, #0x10                                          ; +0x90, 0x4f7018\nPOP.W           {R4-R8,PC}                                             ; +0x92, 0x4f701a", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}