{"type": "func", "start": 3658028, "end": 3658150, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x37d12c to 0x37d1a6 (122 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDelete @ 0x3a4372\n// > EditorUI::onDelete @ 0x3a43a8\n// > EditorUI::onDeleteSelected @ 0x3a4590\n// > EditorUI::onDeleteSelected @ 0x3a45f8\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 EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2)\n{\n  bool result; // r0\n  GameManager *v4; // r0\n  bool v5; // zf\n  GameManager *v6; // r0\n\n  if ( !a2 )\n    return 0;\n  if ( a2->m_objectID == 749 )\n    return 0;\n  v4 = GameManager::sharedState();\n  switch ( GameManager::getIntGameVariable(v4, \"0005\") )\n  {\n    case 0:\n      goto LABEL_13;\n    case 1:\n      v5 = a2->getType(a2) == Decoration;\n      goto LABEL_9;\n    case 2:\n      if ( a2->getType(a2) )\n      {\n        v5 = a2->getType(a2) == Slope;\nLABEL_9:\n        result = v5;\n      }\n      else\n      {\nLABEL_13:\n        result = 1;\n      }\n      break;\n    case 3:\n      v6 = GameManager::sharedState();\n      v5 = a2->m_objectID == GameManager::getIntGameVariable(v6, \"0006\");\n      goto LABEL_9;\n    default:\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x37d12c to 0x37d1a6 (122 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDelete @ 0x3a4372\n; > EditorUI::onDelete @ 0x3a43a8\n; > EditorUI::onDeleteSelected @ 0x3a4590\n; > EditorUI::onDeleteSelected @ 0x3a45f8\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            {R4,LR}                                                ; +0x0, 0x37d12c\nMOV             R4, R1                                                 ; +0x2, 0x37d12e\nCBZ             R1, loc_37D140                                         ; +0x4, 0x37d130\nLDR.W           R2, [R1,#0x374]                                        ; +0x6, 0x37d132\nMOVW            R3, #0x2ED                                             ; +0xa, 0x37d136\nCMP             R2, R3                                                 ; +0xe, 0x37d13a\nBNE             loc_37D144                                             ; +0x10, 0x37d13c\nB               def_37D154; jumptable 0037D154 default case            ; +0x12, 0x37d13e\nMOV             R0, R1; this                                           ; +0x14, 0x37d140\nPOP             {R4,PC}                                                ; +0x16, 0x37d142\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x37d144\nLDR             R1, =(a0005 - 0x37D14E); \"0005\"                        ; +0x1c, 0x37d148\nADD             R1, PC; \"0005\"                                         ; +0x1e, 0x37d14a\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x20, 0x37d14c\nCMP             R0, #3; switch 4 cases                                 ; +0x24, 0x37d150\nBHI             def_37D154; jumptable 0037D154 default case            ; +0x26, 0x37d152\nTBB.W           [PC,R0]; switch jump                                   ; +0x28, 0x37d154\nDCB 0x23; jump table for switch statement                              ; +0x2c, 0x37d158\nDCB 2                                                                  ; +0x2d, 0x37d159\nDCB 9                                                                  ; +0x2e, 0x37d15a\nDCB 0x19                                                               ; +0x2f, 0x37d15b\nLDR             R3, [R4]; jumptable 0037D154 case 1                    ; +0x30, 0x37d15c\nMOV             R0, R4                                                 ; +0x32, 0x37d15e\nLDR.W           R3, [R3,#0x37C]                                        ; +0x34, 0x37d160\nBLX             R3                                                     ; +0x38, 0x37d164\nCMP             R0, #7                                                 ; +0x3a, 0x37d166\nB               loc_37D182                                             ; +0x3c, 0x37d168\nLDR             R3, [R4]; jumptable 0037D154 case 2                    ; +0x3e, 0x37d16a\nMOV             R0, R4                                                 ; +0x40, 0x37d16c\nLDR.W           R3, [R3,#0x37C]                                        ; +0x42, 0x37d16e\nBLX             R3                                                     ; +0x46, 0x37d172\nCBZ             R0, loc_37D19E; jumptable 0037D154 case 0              ; +0x48, 0x37d174\nLDR             R3, [R4]                                               ; +0x4a, 0x37d176\nMOV             R0, R4                                                 ; +0x4c, 0x37d178\nLDR.W           R3, [R3,#0x37C]                                        ; +0x4e, 0x37d17a\nBLX             R3                                                     ; +0x52, 0x37d17e\nCMP             R0, #0x19                                              ; +0x54, 0x37d180\nITE NE                                                                 ; +0x56, 0x37d182\nMOVNE           R0, #0                                                 ; +0x58, 0x37d184\nMOVEQ           R0, #1                                                 ; +0x5a, 0x37d186\nPOP             {R4,PC}                                                ; +0x5c, 0x37d188\nBL              _ZN11GameManager11sharedStateEv; jumptable 0037D154 case 3 ; +0x5e, 0x37d18a\nLDR             R1, =(a0006 - 0x37D194); \"0006\"                        ; +0x62, 0x37d18e\nADD             R1, PC; \"0006\"                                         ; +0x64, 0x37d190\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x66, 0x37d192\nLDR.W           R3, [R4,#0x374]                                        ; +0x6a, 0x37d196\nCMP             R3, R0                                                 ; +0x6e, 0x37d19a\nB               loc_37D182                                             ; +0x70, 0x37d19c\nMOVS            R0, #1; jumptable 0037D154 case 0                      ; +0x72, 0x37d19e\nPOP             {R4,PC}                                                ; +0x74, 0x37d1a0\nMOVS            R0, #0; jumptable 0037D154 default case                ; +0x76, 0x37d1a2\nPOP             {R4,PC}                                                ; +0x78, 0x37d1a4", "xrefs": ["EditorUI::onDelete @ 0x3a4372", "EditorUI::onDelete @ 0x3a43a8", "EditorUI::onDeleteSelected @ 0x3a4590", "EditorUI::onDeleteSelected @ 0x3a45f8"], "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"}