{"type": "func", "start": 4298653324, "end": 4298653480, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x100383e8c to 0x100383f28 (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007f5600\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 __fastcall AnimatedGameObject::deactivateObject(AnimatedGameObject *a1, bool a2)\n{\n  _BOOL4 m_isActivated; // w20\n  SpriteAnimationManager *m_animationManager; // x8\n  void **p_m_currentAnimation; // x20\n  __int128 v6; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  m_isActivated = a1->m_isActivated;\n  EnhancedGameObject::deactivateObject(a1, a2);\n  if ( m_isActivated && !a1->m_isActivated )\n  {\n    m_animationManager = a1->m_animatedSprite->m_animationManager;\n    if ( m_animationManager->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(\n        &v6,\n        (void *)m_animationManager->m_currentAnimation.m_data.m_long.capacitym1,\n        m_animationManager->m_currentAnimation.m_data.m_long.size);\n    }\n    else\n    {\n      v6 = *(_OWORD *)&m_animationManager->m_currentAnimation.m_data.m_short.sizex2;\n      longStorage = m_animationManager->m_currentAnimation.m_data.m_long.longStorage;\n    }\n    p_m_currentAnimation = (void **)&a1->m_currentAnimation;\n    if ( a1->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete(*p_m_currentAnimation);\n    *(_OWORD *)p_m_currentAnimation = v6;\n    a1->m_currentAnimation.m_data.m_long.longStorage = longStorage;\n    SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager);\n  }\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x100383e8c to 0x100383f28 (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007f5600\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100383e8c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100383e90\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100383e94\nADD             X29, SP, #0x30                                         ; +0xc, 0x100383e98\nMOV             X19, X0                                                ; +0x10, 0x100383e9c\nLDRB            W20, [X0,#0x305]                                       ; +0x14, 0x100383ea0\nBL              EnhancedGameObject__deactivateObject                   ; +0x18, 0x100383ea4\nCMP             W20, #1                                                ; +0x1c, 0x100383ea8\nB.NE            loc_100383F18                                          ; +0x20, 0x100383eac\nLDRB            W8, [X19,#0x305]                                       ; +0x24, 0x100383eb0\nTBNZ            W8, #0, loc_100383F18                                  ; +0x28, 0x100383eb4\nLDR             X8, [X19,#0x5B8]                                       ; +0x2c, 0x100383eb8\nLDR             X8, [X8,#0x288]                                        ; +0x30, 0x100383ebc\nLDRSB           W9, [X8,#0x1A7]                                        ; +0x34, 0x100383ec0\nTBNZ            W9, #0x1F, loc_100383EDC                               ; +0x38, 0x100383ec4\nLDR             Q0, [X8,#0x190]                                        ; +0x3c, 0x100383ec8\nSTR             Q0, [SP,#0x30+var_30]                                  ; +0x40, 0x100383ecc\nLDR             X8, [X8,#0x1A0]                                        ; +0x44, 0x100383ed0\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x48, 0x100383ed4\nB               loc_100383EE8                                          ; +0x4c, 0x100383ed8\nLDP             X1, X2, [X8,#0x190]; __src                             ; +0x50, 0x100383edc\nMOV             X0, SP; __dst                                          ; +0x54, 0x100383ee0\nBL              sub_1000097D0                                          ; +0x58, 0x100383ee4\nADD             X20, X19, #0x5D8                                       ; +0x5c, 0x100383ee8\nLDRSB           W8, [X19,#0x5EF]                                       ; +0x60, 0x100383eec\nTBZ             W8, #0x1F, loc_100383EFC                               ; +0x64, 0x100383ef0\nLDR             X0, [X20]; __p                                         ; +0x68, 0x100383ef4\nBL              __ZdlPv; operator delete(void *)                       ; +0x6c, 0x100383ef8\nLDR             Q0, [SP,#0x30+var_30]                                  ; +0x70, 0x100383efc\nSTR             Q0, [X20]                                              ; +0x74, 0x100383f00\nLDR             X8, [SP,#0x30+var_20]                                  ; +0x78, 0x100383f04\nSTR             X8, [X20,#0x10]                                        ; +0x7c, 0x100383f08\nLDR             X8, [X19,#0x5B8]                                       ; +0x80, 0x100383f0c\nLDR             X0, [X8,#0x288]                                        ; +0x84, 0x100383f10\nBL              SpriteAnimationManager__stopAnimations                 ; +0x88, 0x100383f14\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x100383f18\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x100383f1c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x100383f20\nRET                                                                    ; +0x98, 0x100383f24", "xrefs": ["<???> @ 0x1007f5600"], "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"}