{"type": "func", "start": 4744380, "end": 4744474, "name": "EditorUI::onDeleteSelectedType", "pseudocode": "// \n// EditorUI::onDeleteSelectedType from 0x4864bc to 0x48651a (94 bytes)\n// \n// 1 xrefs:\n// > EditorUI::handleEditorAction @ 0x6f226e\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:25 +0000\n// \n\nEditorUI *__fastcall EditorUI::onDeleteSelectedType(EditorUI *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray **v2; // r5\n  int v3; // r3\n  int v4; // r8\n  cocos2d::CCArray *v5; // r0\n  int v6; // r4\n\n  v2 = (cocos2d::CCArray **)this;\n  v3 = *((_DWORD *)this + 249);\n  if ( v3 )\n  {\n    v4 = *(_DWORD *)(v3 + 892);\n    EditorUI::deselectAll(this);\n    v5 = v2[236];\n    v6 = *((_DWORD *)v5 + 2967) - *((_DWORD *)v5 + 2968);\n    LevelEditorLayer::removeAllObjectsOfType(v5, v4);\n    *((_DWORD *)v2[236] + 3028) += v6 - (*((_DWORD *)v2[236] + 2967) - *((_DWORD *)v2[236] + 2968));\n    EditorBuildStats::noteAction((cocos2d::CCArray *)((char *)v2[236] + 12104));\n    return (EditorUI *)EditorUI::updateButtons(v2);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::onDeleteSelectedType from 0x4864bc to 0x48651a (94 bytes)\n; \n; 1 xrefs:\n; > EditorUI::handleEditorAction @ 0x6f226e\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:25 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x4864bc\nMOV             R5, R0                                                 ; +0x4, 0x4864c0\nLDR.W           R3, [R0,#0x3E4]                                        ; +0x6, 0x4864c2\nCBZ             R3, locret_486516                                      ; +0xa, 0x4864c6\nLDR.W           R8, [R3,#0x37C]                                        ; +0xc, 0x4864c8\nBL              _ZN8EditorUI11deselectAllEv; EditorUI::deselectAll(void) ; +0x10, 0x4864cc\nLDR.W           R0, [R5,#0x3B0]; this                                  ; +0x14, 0x4864d0\nMOVW            R7, #0x2E5C                                            ; +0x18, 0x4864d4\nMOVW            R6, #0x2E60                                            ; +0x1c, 0x4864d8\nMOV             R1, R8; int                                            ; +0x20, 0x4864dc\nLDR             R3, [R0,R7]                                            ; +0x22, 0x4864de\nLDR             R4, [R0,R6]                                            ; +0x24, 0x4864e0\nSUBS            R4, R3, R4                                             ; +0x26, 0x4864e2\nBL              _ZN16LevelEditorLayer22removeAllObjectsOfTypeEi; LevelEditorLayer::removeAllObjectsOfType(int) ; +0x28, 0x4864e4\nLDR.W           R3, [R5,#0x3B0]                                        ; +0x2c, 0x4864e8\nMOVW            R1, #0x2F50                                            ; +0x30, 0x4864ec\nLDR             R0, [R3,R6]                                            ; +0x34, 0x4864f0\nLDR             R2, [R3,R7]                                            ; +0x36, 0x4864f2\nSUBS            R2, R2, R0                                             ; +0x38, 0x4864f4\nSUBS            R4, R4, R2                                             ; +0x3a, 0x4864f6\nLDR             R2, [R3,R1]                                            ; +0x3c, 0x4864f8\nADD             R4, R2                                                 ; +0x3e, 0x4864fa\nSTR             R4, [R3,R1]                                            ; +0x40, 0x4864fc\nLDR.W           R0, [R5,#0x3B0]                                        ; +0x42, 0x4864fe\nADD.W           R0, R0, #0x2F40                                        ; +0x46, 0x486502\nADDS            R0, #8; this                                           ; +0x4a, 0x486506\nBL              _ZN16EditorBuildStats10noteActionEv; EditorBuildStats::noteAction(void) ; +0x4c, 0x486508\nMOV             R0, R5; this                                           ; +0x50, 0x48650c\nPOP.W           {R4-R8,LR}                                             ; +0x52, 0x48650e\nB.W             _ZN8EditorUI13updateButtonsEv; EditorUI::updateButtons(void) ; +0x56, 0x486512\nPOP.W           {R4-R8,PC}                                             ; +0x5a, 0x486516", "xrefs": ["EditorUI::handleEditorAction @ 0x6f226e"], "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"}