{"type": "func", "start": 4296766160, "end": 4296766367, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x1001b72d0 to 0x1001b739f (207 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008c4578\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  double v2; // xmm0_8\n  bool m_isActivated; // r14\n  SpriteAnimationManager *m_animationManager; // rax\n  std::string *v5; // rax\n  std::string *p_m_currentAnimation; // r14\n  __int128 v7; // [rsp+0h] [rbp-30h] BYREF\n  char *longStorage; // [rsp+10h] [rbp-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.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(\n        &v7,\n        m_animationManager->m_currentAnimation.m_data.m_long.longStorage,\n        m_animationManager->m_currentAnimation.m_data.m_long.size,\n        v2);\n      p_m_currentAnimation = &a1->m_currentAnimation;\n      if ( (a1->m_currentAnimation.m_data.m_short.sizex2 & 1) == 0 )\n      {\nLABEL_8:\n        p_m_currentAnimation->m_data.m_long.longStorage = longStorage;\n        *(_OWORD *)&p_m_currentAnimation->m_data.m_short.sizex2 = v7;\n        SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager);\n        return;\n      }\n    }\n    else\n    {\n      v5 = &m_animationManager->m_currentAnimation;\n      longStorage = v5->m_data.m_long.longStorage;\n      v7 = *(_OWORD *)&v5->m_data.m_short.sizex2;\n      p_m_currentAnimation = &a1->m_currentAnimation;\n      if ( (a1->m_currentAnimation.m_data.m_short.sizex2 & 1) == 0 )\n        goto LABEL_8;\n    }\n    operator delete(a1->m_currentAnimation.m_data.m_long.longStorage);\n    goto LABEL_8;\n  }\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x1001b72d0 to 0x1001b739f (207 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008c4578\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\npush    rbp                                                            ; +0x0, 0x1001b72d0\nmov     rbp, rsp                                                       ; +0x1, 0x1001b72d1\npush    r14                                                            ; +0x4, 0x1001b72d4\npush    rbx                                                            ; +0x6, 0x1001b72d6\nsub     rsp, 20h                                                       ; +0x7, 0x1001b72d7\nmov     rbx, rdi                                                       ; +0xb, 0x1001b72db\nmovzx   r14d, byte ptr [rdi+305h]                                      ; +0xe, 0x1001b72de\ncall    EnhancedGameObject__deactivateObject                           ; +0x16, 0x1001b72e6\ncmp     r14b, 1                                                        ; +0x1b, 0x1001b72eb\njnz     loc_1001B7396                                                  ; +0x1f, 0x1001b72ef\ncmp     byte ptr [rbx+305h], 0                                         ; +0x25, 0x1001b72f5\njnz     loc_1001B7396                                                  ; +0x2c, 0x1001b72fc\nmov     rax, [rbx+5B8h]                                                ; +0x32, 0x1001b7302\nmov     rax, [rax+288h]                                                ; +0x39, 0x1001b7309\ntest    byte ptr [rax+190h], 1                                         ; +0x40, 0x1001b7310\njnz     short loc_1001B7340                                            ; +0x47, 0x1001b7317\nadd     rax, 190h                                                      ; +0x49, 0x1001b7319\nmov     rcx, [rax+10h]                                                 ; +0x4f, 0x1001b731f\nmov     [rbp+var_20], rcx                                              ; +0x53, 0x1001b7323\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x57, 0x1001b7327\nmovaps  [rbp+var_30], xmm0                                             ; +0x5a, 0x1001b732a\nlea     r14, [rbx+5D8h]                                                ; +0x5e, 0x1001b732e\ntest    byte ptr [rbx+5D8h], 1                                         ; +0x65, 0x1001b7335\njnz     short loc_1001B7367                                            ; +0x6c, 0x1001b733c\njmp     short loc_1001B7373                                            ; +0x6e, 0x1001b733e\nmov     rdx, [rax+198h]                                                ; +0x70, 0x1001b7340\nmov     rsi, [rax+1A0h]                                                ; +0x77, 0x1001b7347\nlea     rdi, [rbp+var_30]                                              ; +0x7e, 0x1001b734e\ncall    sub_100006B70                                                  ; +0x82, 0x1001b7352\nlea     r14, [rbx+5D8h]                                                ; +0x87, 0x1001b7357\ntest    byte ptr [rbx+5D8h], 1                                         ; +0x8e, 0x1001b735e\njz      short loc_1001B7373                                            ; +0x95, 0x1001b7365\nmov     rdi, [rbx+5E8h]; __p                                           ; +0x97, 0x1001b7367\ncall    __ZdlPv; operator delete(void *)                               ; +0x9e, 0x1001b736e\nmov     rax, [rbp+var_20]                                              ; +0xa3, 0x1001b7373\nmov     [r14+10h], rax                                                 ; +0xa7, 0x1001b7377\nmovaps  xmm0, [rbp+var_30]                                             ; +0xab, 0x1001b737b\nmovups  xmmword ptr [r14], xmm0                                        ; +0xaf, 0x1001b737f\nmov     rax, [rbx+5B8h]                                                ; +0xb3, 0x1001b7383\nmov     rdi, [rax+288h]                                                ; +0xba, 0x1001b738a\ncall    SpriteAnimationManager__stopAnimations                         ; +0xc1, 0x1001b7391\nadd     rsp, 20h                                                       ; +0xc6, 0x1001b7396\npop     rbx                                                            ; +0xca, 0x1001b739a\npop     r14                                                            ; +0xcb, 0x1001b739b\npop     rbp                                                            ; +0xcd, 0x1001b739d\nretn                                                                   ; +0xce, 0x1001b739e", "xrefs": ["<???> @ 0x1008c4578"], "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"}