{"type": "func", "start": 6849648, "end": 6849900, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x688470 to 0x68856c (252 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onDelete @ 0x6c0acc\n// > EditorUI::onDelete @ 0x6c0d80\n// > EditorUI::onDeleteSelected @ 0x6c0e30\n// > EditorUI::onDeleteSelected @ 0x6c0eac\n// > <???> @ 0xa1700\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  GameManager *v3; // x0\n  int IntGameVariable; // w0\n  bool v5; // w1\n  bool result; // w0\n  GameManager *v7; // x0\n  GameObjectType v8; // w0\n\n  if ( !a2 || a2->m_objectID == 749 )\n    return 0;\n  v3 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v3, \"0005\");\n  v5 = 0;\n  switch ( IntGameVariable )\n  {\n    case 0:\n      return 1;\n    case 1:\n      v5 = a2->getType(a2) == Decoration;\n      goto LABEL_4;\n    case 2:\n      v8 = a2->getType(a2);\n      v5 = 1;\n      if ( v8 )\n        v5 = a2->getType(a2) == Slope;\n      goto LABEL_4;\n    case 3:\n      v7 = GameManager::sharedState();\n      v5 = GameManager::getIntGameVariable(v7, \"0006\") == a2->m_objectID;\n      goto LABEL_4;\n    default:\nLABEL_4:\n      result = v5;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x688470 to 0x68856c (252 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onDelete @ 0x6c0acc\n; > EditorUI::onDelete @ 0x6c0d80\n; > EditorUI::onDeleteSelected @ 0x6c0e30\n; > EditorUI::onDeleteSelected @ 0x6c0eac\n; > <???> @ 0xa1700\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             X29, X30, [SP,#var_20]!                                ; +0x0, 0x688470\nMOV             X29, SP                                                ; +0x4, 0x688474\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x688478\nCBZ             X1, loc_6884D4                                         ; +0xc, 0x68847c\nLDR             W0, [X1,#0x3F4]; this                                  ; +0x10, 0x688480\nCMP             W0, #0x2ED                                             ; +0x14, 0x688484\nB.EQ            loc_6884D4                                             ; +0x18, 0x688488\nMOV             X19, X1                                                ; +0x1c, 0x68848c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x688490\nADRL            X1, a0005; \"0005\"                                      ; +0x24, 0x688494\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x2c, 0x68849c\nCMP             W0, #3; switch 4 cases                                 ; +0x30, 0x6884a0\nMOV             W1, #0                                                 ; +0x34, 0x6884a4\nB.LS            loc_6884BC                                             ; +0x38, 0x6884a8\nMOV             W0, W1; jumptable 00000000006884D0 default case        ; +0x3c, 0x6884ac\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0x6884b0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0x6884b4\nRET                                                                    ; +0x48, 0x6884b8\nADRL            X1, jpt_6884D0                                         ; +0x4c, 0x6884bc\nLDRB            W0, [X1,W0,UXTW]                                       ; +0x54, 0x6884c4\nADR             X1, loc_6884D4                                         ; +0x58, 0x6884c8\nADD             X0, X1, W0,SXTB#2; this                                ; +0x5c, 0x6884cc\nBR              X0; switch jump                                        ; +0x60, 0x6884d0\nMOV             W1, #0                                                 ; +0x64, 0x6884d4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x68, 0x6884d8\nMOV             W0, W1                                                 ; +0x6c, 0x6884dc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x70, 0x6884e0\nRET                                                                    ; +0x74, 0x6884e4\nMOV             W1, #1; jumptable 00000000006884D0 case 0              ; +0x78, 0x6884e8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x7c, 0x6884ec\nMOV             W0, W1                                                 ; +0x80, 0x6884f0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x84, 0x6884f4\nRET                                                                    ; +0x88, 0x6884f8\nBL              _ZN11GameManager11sharedStateEv; jumptable 00000000006884D0 case 3 ; +0x8c, 0x6884fc\nADRL            X1, a0006; \"0006\"                                      ; +0x90, 0x688500\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x98, 0x688508\nLDR             W1, [X19,#0x3F4]                                       ; +0x9c, 0x68850c\nCMP             W0, W1                                                 ; +0xa0, 0x688510\nCSET            W1, EQ                                                 ; +0xa4, 0x688514\nB               def_6884D0; jumptable 00000000006884D0 default case    ; +0xa8, 0x688518\nLDR             X1, [X19]; jumptable 00000000006884D0 case 2           ; +0xac, 0x68851c\nMOV             X0, X19                                                ; +0xb0, 0x688520\nLDR             X1, [X1,#0x6F8]                                        ; +0xb4, 0x688524\nBLR             X1                                                     ; +0xb8, 0x688528\nMOV             W1, #1                                                 ; +0xbc, 0x68852c\nCBZ             W0, def_6884D0; jumptable 00000000006884D0 default case ; +0xc0, 0x688530\nLDR             X1, [X19]                                              ; +0xc4, 0x688534\nMOV             X0, X19                                                ; +0xc8, 0x688538\nLDR             X1, [X1,#0x6F8]                                        ; +0xcc, 0x68853c\nBLR             X1                                                     ; +0xd0, 0x688540\nCMP             W0, #0x19                                              ; +0xd4, 0x688544\nCSET            W1, EQ                                                 ; +0xd8, 0x688548\nB               def_6884D0; jumptable 00000000006884D0 default case    ; +0xdc, 0x68854c\nLDR             X1, [X19]; jumptable 00000000006884D0 case 1           ; +0xe0, 0x688550\nMOV             X0, X19                                                ; +0xe4, 0x688554\nLDR             X1, [X1,#0x6F8]                                        ; +0xe8, 0x688558\nBLR             X1                                                     ; +0xec, 0x68855c\nCMP             W0, #7                                                 ; +0xf0, 0x688560\nCSET            W1, EQ                                                 ; +0xf4, 0x688564\nB               def_6884D0; jumptable 00000000006884D0 default case    ; +0xf8, 0x688568", "xrefs": ["EditorUI::onDelete @ 0x6c0acc", "EditorUI::onDelete @ 0x6c0d80", "EditorUI::onDeleteSelected @ 0x6c0e30", "EditorUI::onDeleteSelected @ 0x6c0eac", "<???> @ 0xa1700"], "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"}