{"type": "func", "start": 4299069988, "end": 4299070204, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x1003e9a24 to 0x1003e9afc (216 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDeleteSelected @ 0x1003c7578\n// > EditorUI::onDeleteSelected @ 0x1003c7628\n// > EditorUI::onDelete @ 0x1003e68e4\n// > EditorUI::onDelete @ 0x1003e6924\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\nbool __fastcall EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)\n{\n  GameManager *v4; // x0\n  int IntGameVariable; // w0\n  GameManager *v7; // x0\n\n  if ( !a2 )\n    return 0;\n  if ( a2->m_objectID == 749 )\n    return 0;\n  v4 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v4, \"0005\");\n  if ( IntGameVariable <= 1 )\n  {\n    if ( IntGameVariable )\n    {\n      if ( IntGameVariable != 1 )\n        return 0;\n      return ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 7;\n    }\n    return 1;\n  }\n  if ( IntGameVariable == 2 )\n  {\n    if ( !((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) )\n      return 1;\n    return ((unsigned int (__fastcall *)(GameObject *))a2->getType)(a2) == 25;\n  }\n  else\n  {\n    if ( IntGameVariable != 3 )\n      return 0;\n    v7 = GameManager::sharedState();\n    return a2->m_objectID == GameManager::getIntGameVariable(v7, \"0006\");\n  }\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x1003e9a24 to 0x1003e9afc (216 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDeleteSelected @ 0x1003c7578\n; > EditorUI::onDeleteSelected @ 0x1003c7628\n; > EditorUI::onDelete @ 0x1003e68e4\n; > EditorUI::onDelete @ 0x1003e6924\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\nCBZ             X1, loc_1003E9A4C                                      ; +0x0, 0x1003e9a24\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x4, 0x1003e9a28\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x8, 0x1003e9a2c\nADD             X29, SP, #0x10                                         ; +0xc, 0x1003e9a30\nMOV             X19, X1                                                ; +0x10, 0x1003e9a34\nLDR             W8, [X1,#0x404]                                        ; +0x14, 0x1003e9a38\nCMP             W8, #0x2ED                                             ; +0x18, 0x1003e9a3c\nB.NE            loc_1003E9A54                                          ; +0x1c, 0x1003e9a40\nMOV             W0, #0                                                 ; +0x20, 0x1003e9a44\nB               loc_1003E9AF0                                          ; +0x24, 0x1003e9a48\nMOV             W0, #0                                                 ; +0x28, 0x1003e9a4c\nRET                                                                    ; +0x2c, 0x1003e9a50\nBL              GameManager__sharedState                               ; +0x30, 0x1003e9a54\nADRL            X1, a0005; \"0005\"                                      ; +0x34, 0x1003e9a58\nBL              GameManager__getIntGameVariable                        ; +0x3c, 0x1003e9a60\nCMP             W0, #1                                                 ; +0x40, 0x1003e9a64\nB.GT            loc_1003E9A90                                          ; +0x44, 0x1003e9a68\nCBZ             W0, loc_1003E9AEC                                      ; +0x48, 0x1003e9a6c\nCMP             W0, #1                                                 ; +0x4c, 0x1003e9a70\nB.NE            loc_1003E9A44                                          ; +0x50, 0x1003e9a74\nLDR             X8, [X19]                                              ; +0x54, 0x1003e9a78\nLDR             X8, [X8,#0x6F8]                                        ; +0x58, 0x1003e9a7c\nMOV             X0, X19                                                ; +0x5c, 0x1003e9a80\nBLR             X8                                                     ; +0x60, 0x1003e9a84\nCMP             W0, #7                                                 ; +0x64, 0x1003e9a88\nB               loc_1003E9AE4                                          ; +0x68, 0x1003e9a8c\nCMP             W0, #2                                                 ; +0x6c, 0x1003e9a90\nB.EQ            loc_1003E9ABC                                          ; +0x70, 0x1003e9a94\nCMP             W0, #3                                                 ; +0x74, 0x1003e9a98\nB.NE            loc_1003E9A44                                          ; +0x78, 0x1003e9a9c\nBL              GameManager__sharedState                               ; +0x7c, 0x1003e9aa0\nADRL            X1, a0006; \"0006\"                                      ; +0x80, 0x1003e9aa4\nBL              GameManager__getIntGameVariable                        ; +0x88, 0x1003e9aac\nLDR             W8, [X19,#0x404]                                       ; +0x8c, 0x1003e9ab0\nCMP             W8, W0                                                 ; +0x90, 0x1003e9ab4\nB               loc_1003E9AE4                                          ; +0x94, 0x1003e9ab8\nLDR             X8, [X19]                                              ; +0x98, 0x1003e9abc\nLDR             X8, [X8,#0x6F8]                                        ; +0x9c, 0x1003e9ac0\nMOV             X0, X19                                                ; +0xa0, 0x1003e9ac4\nBLR             X8                                                     ; +0xa4, 0x1003e9ac8\nCBZ             W0, loc_1003E9AEC                                      ; +0xa8, 0x1003e9acc\nLDR             X8, [X19]                                              ; +0xac, 0x1003e9ad0\nLDR             X8, [X8,#0x6F8]                                        ; +0xb0, 0x1003e9ad4\nMOV             X0, X19                                                ; +0xb4, 0x1003e9ad8\nBLR             X8                                                     ; +0xb8, 0x1003e9adc\nCMP             W0, #0x19                                              ; +0xbc, 0x1003e9ae0\nCSET            W0, EQ                                                 ; +0xc0, 0x1003e9ae4\nB               loc_1003E9AF0                                          ; +0xc4, 0x1003e9ae8\nMOV             W0, #1                                                 ; +0xc8, 0x1003e9aec\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xcc, 0x1003e9af0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xd0, 0x1003e9af4\nRET                                                                    ; +0xd4, 0x1003e9af8", "xrefs": ["EditorUI::onDeleteSelected @ 0x1003c7578", "EditorUI::onDeleteSelected @ 0x1003c7628", "EditorUI::onDelete @ 0x1003e68e4", "EditorUI::onDelete @ 0x1003e6924"], "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"}