{"type": "func", "start": 6912336, "end": 6912404, "name": "EditorUI::onDeleteCustomItem", "pseudocode": "// \n// EditorUI::onDeleteCustomItem from 0x697950 to 0x697994 (68 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xae6a8\n// > EditorUI::createCustomItems @ 0x69784c\n// > <???> @ 0x122e070\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 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 0x697950 to 0x697994 (68 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xae6a8\n; > EditorUI::createCustomItems @ 0x69784c\n; > <???> @ 0x122e070\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, 0x697950\nMOV             X29, SP                                                ; +0x4, 0x697954\nLDR             W1, [X0,#0x4D0]                                        ; +0x8, 0x697958\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x69795c\nTBNZ            W1, #0x1F, loc_697970                                  ; +0x10, 0x697960\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x14, 0x697964\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x18, 0x697968\nRET                                                                    ; +0x1c, 0x69796c\nMOV             X19, X0                                                ; +0x20, 0x697970\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x697974\nLDR             W1, [X19,#0x4D0]; int                                  ; +0x28, 0x697978\nBL              _ZN11GameManager18removeCustomObjectEi; GameManager::removeCustomObject(int) ; +0x2c, 0x69797c\nSTR             WZR, [X19,#0x4D0]                                      ; +0x30, 0x697980\nMOV             X0, X19; this                                          ; +0x34, 0x697984\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x697988\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x69798c\nB               _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x40, 0x697990", "xrefs": ["<???> @ 0xae6a8", "EditorUI::createCustomItems @ 0x69784c", "<???> @ 0x122e070"], "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"}