{"type": "func", "start": 4300907136, "end": 4300907381, "name": "GameObject::deactivateObject", "pseudocode": "// \n// GameObject::deactivateObject from 0x1005aa280 to 0x1005aa375 (245 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1008c7d80\n// > <???> @ 0x100923848\n// > <???> @ 0x100933c10\n// > <???> @ 0x1009718f8\n// > <???> @ 0x1009728f0\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; // rdi\n  cocos2d::CCSprite *m_colorSprite; // rdi\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 ( a1->m_enterType != -1 || a1->m_exitType != -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 0x1005aa280 to 0x1005aa375 (245 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1008c7d80\n; > <???> @ 0x100923848\n; > <???> @ 0x100933c10\n; > <???> @ 0x1009718f8\n; > <???> @ 0x1009728f0\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, 0x1005aa280\nmov     rbp, rsp                                                       ; +0x1, 0x1005aa281\npush    rbx                                                            ; +0x4, 0x1005aa284\npush    rax                                                            ; +0x5, 0x1005aa285\nmov     rbx, rdi                                                       ; +0x6, 0x1005aa286\ntest    esi, esi                                                       ; +0x9, 0x1005aa289\njz      short loc_1005AA296                                            ; +0xb, 0x1005aa28b\nmov     byte ptr [rbx+3E6h], 1                                         ; +0xd, 0x1005aa28d\njmp     short loc_1005AA2A3                                            ; +0x14, 0x1005aa294\ntest    byte ptr [rbx+3E6h], 1                                         ; +0x16, 0x1005aa296\njz      loc_1005AA367                                                  ; +0x1d, 0x1005aa29d\ncmp     byte ptr [rbx+305h], 1                                         ; +0x23, 0x1005aa2a3\njnz     loc_1005AA36E                                                  ; +0x2a, 0x1005aa2aa\nmov     byte ptr [rbx+305h], 0                                         ; +0x30, 0x1005aa2b0\nmov     rax, [rbx]                                                     ; +0x37, 0x1005aa2b7\nmov     rdi, rbx                                                       ; +0x3a, 0x1005aa2ba\nxor     esi, esi                                                       ; +0x3d, 0x1005aa2bd\ncall    qword ptr [rax+148h]                                           ; +0x3f, 0x1005aa2bf\nmov     rax, [rbx]                                                     ; +0x45, 0x1005aa2c5\nmov     rdi, rbx                                                       ; +0x48, 0x1005aa2c8\nxor     esi, esi                                                       ; +0x4b, 0x1005aa2cb\ncall    qword ptr [rax+200h]                                           ; +0x4d, 0x1005aa2cd\nmov     byte ptr [rbx+458h], 0                                         ; +0x53, 0x1005aa2d3\ncmp     word ptr [rbx+3F0h], 0FFFFh                                    ; +0x5a, 0x1005aa2da\njnz     short loc_1005AA2EE                                            ; +0x62, 0x1005aa2e2\ncmp     word ptr [rbx+3F2h], 0FFFFh                                    ; +0x64, 0x1005aa2e4\njz      short loc_1005AA327                                            ; +0x6c, 0x1005aa2ec\nmov     dword ptr [rbx+3F0h], 0FFFFFFFFh                               ; +0x6e, 0x1005aa2ee\nmov     byte ptr [rbx+3F8h], 1                                         ; +0x78, 0x1005aa2f8\nmov     rax, [rbx]                                                     ; +0x7f, 0x1005aa2ff\nmovss   xmm0, cs:alpha                                                 ; +0x82, 0x1005aa302\nmov     rdi, rbx                                                       ; +0x8a, 0x1005aa30a\ncall    qword ptr [rax+590h]                                           ; +0x8d, 0x1005aa30d\nmov     rax, [rbx]                                                     ; +0x93, 0x1005aa313\nmov     rdi, rbx                                                       ; +0x96, 0x1005aa316\nmovss   xmm0, cs:alpha                                                 ; +0x99, 0x1005aa319\ncall    qword ptr [rax+598h]                                           ; +0xa1, 0x1005aa321\nmov     rdi, [rbx+2F0h]                                                ; +0xa7, 0x1005aa327\ntest    rdi, rdi                                                       ; +0xae, 0x1005aa32e\njz      short loc_1005AA33E                                            ; +0xb1, 0x1005aa331\nmov     rax, [rdi]                                                     ; +0xb3, 0x1005aa333\nxor     esi, esi                                                       ; +0xb6, 0x1005aa336\ncall    qword ptr [rax+200h]                                           ; +0xb8, 0x1005aa338\nmov     rdi, [rbx+378h]                                                ; +0xbe, 0x1005aa33e\ntest    rdi, rdi                                                       ; +0xc5, 0x1005aa345\njz      short loc_1005AA36E                                            ; +0xc8, 0x1005aa348\ncmp     byte ptr [rbx+28Ch], 0                                         ; +0xca, 0x1005aa34a\njnz     short loc_1005AA36E                                            ; +0xd1, 0x1005aa351\nmov     rax, [rdi]                                                     ; +0xd3, 0x1005aa353\nmov     rax, [rax+200h]                                                ; +0xd6, 0x1005aa356\nxor     esi, esi                                                       ; +0xdd, 0x1005aa35d\nadd     rsp, 8                                                         ; +0xdf, 0x1005aa35f\npop     rbx                                                            ; +0xe3, 0x1005aa363\npop     rbp                                                            ; +0xe4, 0x1005aa364\njmp     rax                                                            ; +0xe5, 0x1005aa365\nmov     byte ptr [rbx+3E6h], 1                                         ; +0xe7, 0x1005aa367\nadd     rsp, 8                                                         ; +0xee, 0x1005aa36e\npop     rbx                                                            ; +0xf2, 0x1005aa372\npop     rbp                                                            ; +0xf3, 0x1005aa373\nretn                                                                   ; +0xf4, 0x1005aa374", "xrefs": ["<???> @ 0x1008c7d80", "<???> @ 0x100923848", "<???> @ 0x100933c10", "<???> @ 0x1009718f8", "<???> @ 0x1009728f0"], "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"}