{"type": "func", "start": 4725900, "end": 4726022, "name": "EditorUI::shouldDeleteObject", "pseudocode": "// \n// EditorUI::shouldDeleteObject from 0x481c8c to 0x481d06 (122 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDelete @ 0x48c4fa\n// > EditorUI::onDelete @ 0x48c530\n// > EditorUI::onDeleteSelected @ 0x48c878\n// > EditorUI::onDeleteSelected @ 0x48c8f4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n// \n\nint __fastcall EditorUI::shouldDeleteObject(EditorUI *this, GameObject *a2)\n{\n  int result; // r0\n  GameManager *v4; // r0\n  GameManager *IntGameVariable; // r0\n  bool v6; // zf\n  GameManager *v7; // r0\n\n  if ( !a2 )\n    return 0;\n  if ( *((_DWORD *)a2 + 223) == 749 )\n    return 0;\n  v4 = (GameManager *)GameManager::sharedState(this);\n  IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, \"0005\");\n  switch ( (unsigned int)IntGameVariable )\n  {\n    case 0u:\n      goto LABEL_13;\n    case 1u:\n      v6 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) == 7;\n      goto LABEL_9;\n    case 2u:\n      if ( (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) )\n      {\n        v6 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) == 25;\nLABEL_9:\n        result = v6;\n      }\n      else\n      {\nLABEL_13:\n        result = 1;\n      }\n      break;\n    case 3u:\n      v7 = (GameManager *)GameManager::sharedState(IntGameVariable);\n      v6 = *((_DWORD *)a2 + 223) == GameManager::getIntGameVariable(v7, \"0006\");\n      goto LABEL_9;\n    default:\n      return 0;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::shouldDeleteObject from 0x481c8c to 0x481d06 (122 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDelete @ 0x48c4fa\n; > EditorUI::onDelete @ 0x48c530\n; > EditorUI::onDeleteSelected @ 0x48c878\n; > EditorUI::onDeleteSelected @ 0x48c8f4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:49:23 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x481c8c\nMOV             R4, R1                                                 ; +0x2, 0x481c8e\nCBZ             R1, loc_481CA0                                         ; +0x4, 0x481c90\nLDR.W           R2, [R1,#0x37C]                                        ; +0x6, 0x481c92\nMOVW            R3, #0x2ED                                             ; +0xa, 0x481c96\nCMP             R2, R3                                                 ; +0xe, 0x481c9a\nBNE             loc_481CA4                                             ; +0x10, 0x481c9c\nB               def_481CB4; jumptable 00481CB4 default case            ; +0x12, 0x481c9e\nMOV             R0, R1; this                                           ; +0x14, 0x481ca0\nPOP             {R4,PC}                                                ; +0x16, 0x481ca2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x18, 0x481ca4\nLDR             R1, =(a0005 - 0x481CAE); \"0005\"                        ; +0x1c, 0x481ca8\nADD             R1, PC; \"0005\"                                         ; +0x1e, 0x481caa\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x20, 0x481cac\nCMP             R0, #3; switch 4 cases                                 ; +0x24, 0x481cb0\nBHI             def_481CB4; jumptable 00481CB4 default case            ; +0x26, 0x481cb2\nTBB.W           [PC,R0]; switch jump                                   ; +0x28, 0x481cb4\nDCB 0x23; jump table for switch statement                              ; +0x2c, 0x481cb8\nDCB 2                                                                  ; +0x2d, 0x481cb9\nDCB 9                                                                  ; +0x2e, 0x481cba\nDCB 0x19                                                               ; +0x2f, 0x481cbb\nLDR             R3, [R4]; jumptable 00481CB4 case 1                    ; +0x30, 0x481cbc\nMOV             R0, R4                                                 ; +0x32, 0x481cbe\nLDR.W           R3, [R3,#0x384]                                        ; +0x34, 0x481cc0\nBLX             R3                                                     ; +0x38, 0x481cc4\nCMP             R0, #7                                                 ; +0x3a, 0x481cc6\nB               loc_481CE2                                             ; +0x3c, 0x481cc8\nLDR             R3, [R4]; jumptable 00481CB4 case 2                    ; +0x3e, 0x481cca\nMOV             R0, R4                                                 ; +0x40, 0x481ccc\nLDR.W           R3, [R3,#0x384]                                        ; +0x42, 0x481cce\nBLX             R3                                                     ; +0x46, 0x481cd2\nCBZ             R0, loc_481CFE; jumptable 00481CB4 case 0              ; +0x48, 0x481cd4\nLDR             R3, [R4]                                               ; +0x4a, 0x481cd6\nMOV             R0, R4                                                 ; +0x4c, 0x481cd8\nLDR.W           R3, [R3,#0x384]                                        ; +0x4e, 0x481cda\nBLX             R3                                                     ; +0x52, 0x481cde\nCMP             R0, #0x19                                              ; +0x54, 0x481ce0\nITE NE                                                                 ; +0x56, 0x481ce2\nMOVNE           R0, #0                                                 ; +0x58, 0x481ce4\nMOVEQ           R0, #1                                                 ; +0x5a, 0x481ce6\nPOP             {R4,PC}                                                ; +0x5c, 0x481ce8\nBL              _ZN11GameManager11sharedStateEv; jumptable 00481CB4 case 3 ; +0x5e, 0x481cea\nLDR             R1, =(a0006 - 0x481CF4); \"0006\"                        ; +0x62, 0x481cee\nADD             R1, PC; \"0006\"                                         ; +0x64, 0x481cf0\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x66, 0x481cf2\nLDR.W           R3, [R4,#0x37C]                                        ; +0x6a, 0x481cf6\nCMP             R3, R0                                                 ; +0x6e, 0x481cfa\nB               loc_481CE2                                             ; +0x70, 0x481cfc\nMOVS            R0, #1; jumptable 00481CB4 case 0                      ; +0x72, 0x481cfe\nPOP             {R4,PC}                                                ; +0x74, 0x481d00\nMOVS            R0, #0; jumptable 00481CB4 default case                ; +0x76, 0x481d02\nPOP             {R4,PC}                                                ; +0x78, 0x481d04", "xrefs": ["EditorUI::onDelete @ 0x48c4fa", "EditorUI::onDelete @ 0x48c530", "EditorUI::onDeleteSelected @ 0x48c878", "EditorUI::onDeleteSelected @ 0x48c8f4"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}