{"type": "func", "start": 3703480, "end": 3703522, "name": "EditorUI::onDeleteCustomItem", "pseudocode": "// \n// EditorUI::onDeleteCustomItem from 0x3882b8 to 0x3882e2 (42 bytes)\n// \n// 0 xrefs:\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; // r0\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 0x3882b8 to 0x3882e2 (42 bytes)\n; \n; 0 xrefs:\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.W           R3, [R0,#0x32C]                                        ; +0x0, 0x3882b8\nPUSH            {R4,LR}                                                ; +0x4, 0x3882bc\nCMP             R3, #0                                                 ; +0x6, 0x3882be\nMOV             R4, R0                                                 ; +0x8, 0x3882c0\nBGE             locret_3882E0                                          ; +0xa, 0x3882c2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc, 0x3882c4\nLDR.W           R1, [R4,#0x32C]; int                                   ; +0x10, 0x3882c8\nBL              _ZN11GameManager18removeCustomObjectEi; GameManager::removeCustomObject(int) ; +0x14, 0x3882cc\nMOVS            R3, #0                                                 ; +0x18, 0x3882d0\nMOV             R0, R4; this                                           ; +0x1a, 0x3882d2\nSTR.W           R3, [R4,#0x32C]                                        ; +0x1c, 0x3882d4\nPOP.W           {R4,LR}                                                ; +0x20, 0x3882d8\nB.W             _ZN8EditorUI17reloadCustomItemsEv; EditorUI::reloadCustomItems(void) ; +0x24, 0x3882dc\nPOP             {R4,PC}                                                ; +0x28, 0x3882e0", "xrefs": [], "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"}