{"type": "func", "start": 4298061652, "end": 4298061916, "name": "GameObject::deactivateObject", "pseudocode": "// \n// GameObject::deactivateObject from 0x1002f3754 to 0x1002f385c (264 bytes)\n// \n// 6 xrefs:\n// > EnhancedGameObject::deactivateObject @ 0x100301a34\n// > <???> @ 0x10091c5e8\n// > <???> @ 0x100928868\n// > <???> @ 0x100929880\n// > <???> @ 0x1009510b8\n// > <???> @ 0x10096e208\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:57 +0000\n// \n\n_BYTE *__fastcall GameObject::deactivateObject(_BYTE *result, int a2)\n{\n  _BYTE *v2; // x19\n  __int64 v3; // x0\n\n  v2 = result;\n  if ( a2 )\n  {\n    result[998] = 1;\n  }\n  else if ( (result[998] & 1) == 0 )\n  {\n    result[998] = 1;\n    return result;\n  }\n  if ( result[773] == 1 )\n  {\n    result[773] = 0;\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v2 + 528LL))(v2, 0);\n    v2[1112] = 0;\n    if ( *((__int16 *)v2 + 504) != -1 || *((__int16 *)v2 + 505) != -1 )\n    {\n      *((_DWORD *)v2 + 252) = -1;\n      v2[1016] = 1;\n      (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v2 + 1440LL))(v2, 1.0);\n      (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v2 + 1448LL))(v2, 1.0);\n    }\n    v3 = *((_QWORD *)v2 + 94);\n    if ( v3 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 528LL))(v3, 0);\n    result = *((_BYTE **)v2 + 111);\n    if ( result )\n    {\n      if ( (v2[652] & 1) == 0 )\n        return (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 528LL))(result, 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameObject::deactivateObject from 0x1002f3754 to 0x1002f385c (264 bytes)\n; \n; 6 xrefs:\n; > EnhancedGameObject::deactivateObject @ 0x100301a34\n; > <???> @ 0x10091c5e8\n; > <???> @ 0x100928868\n; > <???> @ 0x100929880\n; > <???> @ 0x1009510b8\n; > <???> @ 0x10096e208\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:57 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002f3754\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002f3758\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002f375c\nMOV             X19, X0                                                ; +0xc, 0x1002f3760\nCBZ             W1, loc_1002F3774                                      ; +0x10, 0x1002f3764\nMOV             W8, #1                                                 ; +0x14, 0x1002f3768\nSTRB            W8, [X19,#0x3E6]                                       ; +0x18, 0x1002f376c\nB               loc_1002F377C                                          ; +0x1c, 0x1002f3770\nLDRB            W8, [X19,#0x3E6]                                       ; +0x20, 0x1002f3774\nTBZ             W8, #0, loc_1002F3848                                  ; +0x24, 0x1002f3778\nLDRB            W8, [X19,#0x305]                                       ; +0x28, 0x1002f377c\nCMP             W8, #1                                                 ; +0x2c, 0x1002f3780\nB.NE            loc_1002F3850                                          ; +0x30, 0x1002f3784\nSTRB            WZR, [X19,#0x305]                                      ; +0x34, 0x1002f3788\nLDR             X8, [X19]                                              ; +0x38, 0x1002f378c\nLDR             X8, [X8,#0x158]                                        ; +0x3c, 0x1002f3790\nMOV             X0, X19                                                ; +0x40, 0x1002f3794\nMOV             W1, #0                                                 ; +0x44, 0x1002f3798\nBLR             X8                                                     ; +0x48, 0x1002f379c\nLDR             X8, [X19]                                              ; +0x4c, 0x1002f37a0\nLDR             X8, [X8,#0x210]                                        ; +0x50, 0x1002f37a4\nMOV             X0, X19                                                ; +0x54, 0x1002f37a8\nMOV             W1, #0                                                 ; +0x58, 0x1002f37ac\nBLR             X8                                                     ; +0x5c, 0x1002f37b0\nSTRB            WZR, [X19,#0x458]                                      ; +0x60, 0x1002f37b4\nLDRSH           W8, [X19,#0x3F0]                                       ; +0x64, 0x1002f37b8\nCMN             W8, #1                                                 ; +0x68, 0x1002f37bc\nB.NE            loc_1002F37D0                                          ; +0x6c, 0x1002f37c0\nLDRSH           W8, [X19,#0x3F2]                                       ; +0x70, 0x1002f37c4\nCMN             W8, #1                                                 ; +0x74, 0x1002f37c8\nB.EQ            loc_1002F3808                                          ; +0x78, 0x1002f37cc\nMOV             W8, #0xFFFFFFFF                                        ; +0x7c, 0x1002f37d0\nSTR             W8, [X19,#0x3F0]                                       ; +0x80, 0x1002f37d4\nMOV             W8, #1                                                 ; +0x84, 0x1002f37d8\nSTRB            W8, [X19,#0x3F8]                                       ; +0x88, 0x1002f37dc\nLDR             X8, [X19]                                              ; +0x8c, 0x1002f37e0\nLDR             X8, [X8,#0x5A0]                                        ; +0x90, 0x1002f37e4\nFMOV            S0, #1.0                                               ; +0x94, 0x1002f37e8\nMOV             X0, X19                                                ; +0x98, 0x1002f37ec\nBLR             X8                                                     ; +0x9c, 0x1002f37f0\nLDR             X8, [X19]                                              ; +0xa0, 0x1002f37f4\nLDR             X8, [X8,#0x5A8]                                        ; +0xa4, 0x1002f37f8\nFMOV            S0, #1.0                                               ; +0xa8, 0x1002f37fc\nMOV             X0, X19                                                ; +0xac, 0x1002f3800\nBLR             X8                                                     ; +0xb0, 0x1002f3804\nLDR             X0, [X19,#0x2F0]                                       ; +0xb4, 0x1002f3808\nCBZ             X0, loc_1002F3820                                      ; +0xb8, 0x1002f380c\nLDR             X8, [X0]                                               ; +0xbc, 0x1002f3810\nLDR             X8, [X8,#0x210]                                        ; +0xc0, 0x1002f3814\nMOV             W1, #0                                                 ; +0xc4, 0x1002f3818\nBLR             X8                                                     ; +0xc8, 0x1002f381c\nLDR             X0, [X19,#0x378]                                       ; +0xcc, 0x1002f3820\nCBZ             X0, loc_1002F3850                                      ; +0xd0, 0x1002f3824\nLDRB            W8, [X19,#0x28C]                                       ; +0xd4, 0x1002f3828\nTBNZ            W8, #0, loc_1002F3850                                  ; +0xd8, 0x1002f382c\nLDR             X8, [X0]                                               ; +0xdc, 0x1002f3830\nLDR             X2, [X8,#0x210]                                        ; +0xe0, 0x1002f3834\nMOV             W1, #0                                                 ; +0xe4, 0x1002f3838\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe8, 0x1002f383c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xec, 0x1002f3840\nBR              X2                                                     ; +0xf0, 0x1002f3844\nMOV             W8, #1                                                 ; +0xf4, 0x1002f3848\nSTRB            W8, [X19,#0x3E6]                                       ; +0xf8, 0x1002f384c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xfc, 0x1002f3850\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x100, 0x1002f3854\nRET                                                                    ; +0x104, 0x1002f3858", "xrefs": ["EnhancedGameObject::deactivateObject @ 0x100301a34", "<???> @ 0x10091c5e8", "<???> @ 0x100928868", "<???> @ 0x100929880", "<???> @ 0x1009510b8", "<???> @ 0x10096e208"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}