{"type": "func", "start": 4297418080, "end": 4297418344, "name": "GameObject::deactivateObject", "pseudocode": "// \n// GameObject::deactivateObject from 0x100256560 to 0x100256668 (264 bytes)\n// \n// 6 xrefs:\n// > EnhancedGameObject::deactivateObject @ 0x100264728\n// > <???> @ 0x1007c40c8\n// > <???> @ 0x1007cfd98\n// > <???> @ 0x1007d0d90\n// > <???> @ 0x1007f8e08\n// > <???> @ 0x100816438\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 GameObject::deactivateObject(GameObject *a1, bool a2)\n{\n  cocos2d::CCSprite *m_glowSprite; // x0\n  cocos2d::CCSprite *m_colorSprite; // x0\n\n  if ( a2 )\n  {\n    a1->m_unk3ee = 1;\n  }\n  else if ( !a1->m_unk3ee )\n  {\n    a1->m_unk3ee = 1;\n    return;\n  }\n  if ( a1->m_isActivated )\n  {\n    a1->m_isActivated = 0;\n    ((void (__fastcall *)(GameObject *, _QWORD))a1->setVisible)(a1, 0);\n    ((void (__fastcall *)(GameObject *, _QWORD))a1->removeFromParentAndCleanup)(a1, 0);\n    a1->m_baseOrDetailBlending = 0;\n    if ( __PAIR64__(a1->m_exitType, a1->m_enterType) != -1 )\n    {\n      *(_DWORD *)&a1->m_enterType = -1;\n      a1->m_unk3E8 = 1;\n      ((void (__fastcall *)(GameObject *, float))a1->setRScaleX)(a1, 1.0);\n      ((void (__fastcall *)(GameObject *, float))a1->setRScaleY)(a1, 1.0);\n    }\n    m_glowSprite = a1->m_glowSprite;\n    if ( m_glowSprite )\n      ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))m_glowSprite->removeFromParentAndCleanup)(m_glowSprite, 0);\n    m_colorSprite = a1->m_colorSprite;\n    if ( m_colorSprite )\n    {\n      if ( !a1->m_unk28c )\n        ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))m_colorSprite->removeFromParentAndCleanup)(m_colorSprite, 0);\n    }\n  }\n}", "assembly": "; \n; GameObject::deactivateObject from 0x100256560 to 0x100256668 (264 bytes)\n; \n; 6 xrefs:\n; > EnhancedGameObject::deactivateObject @ 0x100264728\n; > <???> @ 0x1007c40c8\n; > <???> @ 0x1007cfd98\n; > <???> @ 0x1007d0d90\n; > <???> @ 0x1007f8e08\n; > <???> @ 0x100816438\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100256560\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100256564\nADD             X29, SP, #0x10                                         ; +0x8, 0x100256568\nMOV             X19, X0                                                ; +0xc, 0x10025656c\nCBZ             W1, loc_100256580                                      ; +0x10, 0x100256570\nMOV             W8, #1                                                 ; +0x14, 0x100256574\nSTRB            W8, [X19,#0x3E6]                                       ; +0x18, 0x100256578\nB               loc_100256588                                          ; +0x1c, 0x10025657c\nLDRB            W8, [X19,#0x3E6]                                       ; +0x20, 0x100256580\nTBZ             W8, #0, loc_100256654                                  ; +0x24, 0x100256584\nLDRB            W8, [X19,#0x305]                                       ; +0x28, 0x100256588\nCMP             W8, #1                                                 ; +0x2c, 0x10025658c\nB.NE            loc_10025665C                                          ; +0x30, 0x100256590\nSTRB            WZR, [X19,#0x305]                                      ; +0x34, 0x100256594\nLDR             X8, [X19]                                              ; +0x38, 0x100256598\nLDR             X8, [X8,#0x148]                                        ; +0x3c, 0x10025659c\nMOV             X0, X19                                                ; +0x40, 0x1002565a0\nMOV             W1, #0                                                 ; +0x44, 0x1002565a4\nBLR             X8                                                     ; +0x48, 0x1002565a8\nLDR             X8, [X19]                                              ; +0x4c, 0x1002565ac\nLDR             X8, [X8,#0x200]                                        ; +0x50, 0x1002565b0\nMOV             X0, X19                                                ; +0x54, 0x1002565b4\nMOV             W1, #0                                                 ; +0x58, 0x1002565b8\nBLR             X8                                                     ; +0x5c, 0x1002565bc\nSTRB            WZR, [X19,#0x458]                                      ; +0x60, 0x1002565c0\nLDRSH           W8, [X19,#0x3F0]                                       ; +0x64, 0x1002565c4\nCMN             W8, #1                                                 ; +0x68, 0x1002565c8\nB.NE            loc_1002565DC                                          ; +0x6c, 0x1002565cc\nLDRSH           W8, [X19,#0x3F2]                                       ; +0x70, 0x1002565d0\nCMN             W8, #1                                                 ; +0x74, 0x1002565d4\nB.EQ            loc_100256614                                          ; +0x78, 0x1002565d8\nMOV             W8, #0xFFFFFFFF                                        ; +0x7c, 0x1002565dc\nSTR             W8, [X19,#0x3F0]                                       ; +0x80, 0x1002565e0\nMOV             W8, #1                                                 ; +0x84, 0x1002565e4\nSTRB            W8, [X19,#0x3F8]                                       ; +0x88, 0x1002565e8\nLDR             X8, [X19]                                              ; +0x8c, 0x1002565ec\nLDR             X8, [X8,#0x590]                                        ; +0x90, 0x1002565f0\nFMOV            S0, #1.0                                               ; +0x94, 0x1002565f4\nMOV             X0, X19                                                ; +0x98, 0x1002565f8\nBLR             X8                                                     ; +0x9c, 0x1002565fc\nLDR             X8, [X19]                                              ; +0xa0, 0x100256600\nLDR             X8, [X8,#0x598]                                        ; +0xa4, 0x100256604\nFMOV            S0, #1.0                                               ; +0xa8, 0x100256608\nMOV             X0, X19                                                ; +0xac, 0x10025660c\nBLR             X8                                                     ; +0xb0, 0x100256610\nLDR             X0, [X19,#0x2F0]                                       ; +0xb4, 0x100256614\nCBZ             X0, loc_10025662C                                      ; +0xb8, 0x100256618\nLDR             X8, [X0]                                               ; +0xbc, 0x10025661c\nLDR             X8, [X8,#0x200]                                        ; +0xc0, 0x100256620\nMOV             W1, #0                                                 ; +0xc4, 0x100256624\nBLR             X8                                                     ; +0xc8, 0x100256628\nLDR             X0, [X19,#0x378]                                       ; +0xcc, 0x10025662c\nCBZ             X0, loc_10025665C                                      ; +0xd0, 0x100256630\nLDRB            W8, [X19,#0x28C]                                       ; +0xd4, 0x100256634\nTBNZ            W8, #0, loc_10025665C                                  ; +0xd8, 0x100256638\nLDR             X8, [X0]                                               ; +0xdc, 0x10025663c\nLDR             X2, [X8,#0x200]                                        ; +0xe0, 0x100256640\nMOV             W1, #0                                                 ; +0xe4, 0x100256644\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe8, 0x100256648\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xec, 0x10025664c\nBR              X2                                                     ; +0xf0, 0x100256650\nMOV             W8, #1                                                 ; +0xf4, 0x100256654\nSTRB            W8, [X19,#0x3E6]                                       ; +0xf8, 0x100256658\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xfc, 0x10025665c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x100, 0x100256660\nRET                                                                    ; +0x104, 0x100256664", "xrefs": ["EnhancedGameObject::deactivateObject @ 0x100264728", "<???> @ 0x1007c40c8", "<???> @ 0x1007cfd98", "<???> @ 0x1007d0d90", "<???> @ 0x1007f8e08", "<???> @ 0x100816438"], "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"}