{"type": "func", "start": 4081432, "end": 4081538, "name": "AnimatedGameObject::deactivateObject", "pseudocode": "// \n// AnimatedGameObject::deactivateObject from 0x3e4718 to 0x3e4782 (106 bytes)\n// \n// 0 xrefs:\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 AnimatedGameObject::deactivateObject(AnimatedGameObject *a1, bool a2)\n{\n  _BOOL4 m_isActivated; // r5\n  _DWORD v4[2]; // [sp+0h] [bp-8h] BYREF\n\n  v4[0] = a1;\n  v4[1] = a2;\n  m_isActivated = a1->m_isActivated;\n  EnhancedGameObject::deactivateObject(a1, a2);\n  if ( m_isActivated && !a1->m_isActivated )\n  {\n    sub_775C20(v4);\n    sub_774794(&a1->m_currentAnimation, v4);\n    sub_774008(v4);\n    SpriteAnimationManager::stopAnimations(a1->m_animatedSprite->m_animationManager);\n  }\n}", "assembly": "; \n; AnimatedGameObject::deactivateObject from 0x3e4718 to 0x3e4782 (106 bytes)\n; \n; 0 xrefs:\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            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x3e4718\nMOV             R4, R0                                                 ; +0x2, 0x3e471a\nLDR             R6, =(__stack_chk_guard_ptr - 0x3E4726)                ; +0x4, 0x3e471c\nLDRB.W          R5, [R0,#0x291]                                        ; +0x6, 0x3e471e\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3e4722\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xc, 0x3e4724\nLDR             R3, [R6]                                               ; +0xe, 0x3e4726\nSTR             R3, [SP,#8+var_4]                                      ; +0x10, 0x3e4728\nBL              _ZN18EnhancedGameObject16deactivateObjectEb; EnhancedGameObject::deactivateObject(bool) ; +0x12, 0x3e472a\nCBZ             R5, loc_3E4772                                         ; +0x16, 0x3e472e\nLDRB.W          R3, [R4,#0x291]                                        ; +0x18, 0x3e4730\nCBNZ            R3, loc_3E4772                                         ; +0x1c, 0x3e4734\nLDR.W           R3, [R4,#0x4F4]                                        ; +0x1e, 0x3e4736\nMOV             R0, SP                                                 ; +0x22, 0x3e473a\nMOV             R5, SP                                                 ; +0x24, 0x3e473c\nLDR.W           R1, [R3,#0x204]                                        ; +0x26, 0x3e473e\nADD.W           R1, R1, #0x128                                         ; +0x2a, 0x3e4742\nBL              sub_775C20                                             ; +0x2e, 0x3e4746\nADDW            R0, R4, #0x504                                         ; +0x32, 0x3e474a\nMOV             R1, SP                                                 ; +0x36, 0x3e474e\nBL              sub_774794                                             ; +0x38, 0x3e4750\nMOV             R0, SP                                                 ; +0x3c, 0x3e4754\nBL              sub_774008                                             ; +0x3e, 0x3e4756\nLDR.W           R3, [R4,#0x4F4]                                        ; +0x42, 0x3e475a\nLDR.W           R0, [R3,#0x204]; this                                  ; +0x46, 0x3e475e\nBL              _ZN22SpriteAnimationManager14stopAnimationsEv; SpriteAnimationManager::stopAnimations(void) ; +0x4a, 0x3e4762\nB               loc_3E4772                                             ; +0x4e, 0x3e4766\nMOV             R0, R5                                                 ; +0x50, 0x3e4768\nBL              sub_774008                                             ; +0x52, 0x3e476a\nBL              __cxa_end_cleanup                                      ; +0x56, 0x3e476e\nLDR             R2, [SP,#8+var_4]                                      ; +0x5a, 0x3e4772\nLDR             R3, [R6]                                               ; +0x5c, 0x3e4774\nCMP             R2, R3                                                 ; +0x5e, 0x3e4776\nBEQ             loc_3E477E                                             ; +0x60, 0x3e4778\nBLX             __stack_chk_fail                                       ; +0x62, 0x3e477a\nADD             SP, SP, #8                                             ; +0x66, 0x3e477e\nPOP             {R4-R6,PC}                                             ; +0x68, 0x3e4780", "xrefs": [], "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"}