{"type": "func", "start": 4299066140, "end": 4299066200, "name": "EditorUI::onDeleteCustomItem", "pseudocode": "// \n// EditorUI::onDeleteCustomItem from 0x1003e8b1c to 0x1003e8b58 (60 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x1003e8e34\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\nvoid __fastcall EditorUI::onDeleteCustomItem(EditorUI *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n\n  if ( a1->m_selectedObjectIndex < 0 )\n  {\n    v3 = GameManager::sharedState();\n    GameManager::removeCustomObject(v3, a1->m_selectedObjectIndex);\n    a1->m_selectedObjectIndex = 0;\n    EditorUI::reloadCustomItems(a1);\n  }\n}", "assembly": "; \n; EditorUI::onDeleteCustomItem from 0x1003e8b1c to 0x1003e8b58 (60 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x1003e8e34\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\nLDR             W8, [X0,#0x4C0]                                        ; +0x0, 0x1003e8b1c\nTBNZ            W8, #0x1F, loc_1003E8B28                               ; +0x4, 0x1003e8b20\nRET                                                                    ; +0x8, 0x1003e8b24\nSTP             X20, X19, [SP,#var_20]!                                ; +0xc, 0x1003e8b28\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x10, 0x1003e8b2c\nADD             X29, SP, #0x20+var_10                                  ; +0x14, 0x1003e8b30\nMOV             X19, X0                                                ; +0x18, 0x1003e8b34\nBL              GameManager__sharedState                               ; +0x1c, 0x1003e8b38\nLDR             W1, [X19,#0x4C0]                                       ; +0x20, 0x1003e8b3c\nBL              GameManager__removeCustomObject                        ; +0x24, 0x1003e8b40\nSTR             WZR, [X19,#0x4C0]                                      ; +0x28, 0x1003e8b44\nMOV             X0, X19                                                ; +0x2c, 0x1003e8b48\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x30, 0x1003e8b4c\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x34, 0x1003e8b50\nB               EditorUI__reloadCustomItems                            ; +0x38, 0x1003e8b54", "xrefs": ["EditorUI::createCustomItems @ 0x1003e8e34"], "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"}