{"type": "func", "start": 4295169136, "end": 4295169281, "name": "EditorUI::onDeleteCustomItem", "pseudocode": "// \n// EditorUI::onDeleteCustomItem from 0x100031470 to 0x100031501 (145 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x100031957\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 *v2; // rax\n  GameManager *v3; // rax\n  int IntGameVariable; // r14d\n  GameManager *v5; // rax\n  int v6; // r15d\n  EditButtonBar *m_customTabBar; // r12\n  cocos2d::CCArray *CustomItems; // rax\n\n  if ( a1->m_selectedObjectIndex < 0 )\n  {\n    v2 = GameManager::sharedState();\n    GameManager::removeCustomObject(v2, a1->m_selectedObjectIndex);\n    a1->m_selectedObjectIndex = 0;\n    v3 = GameManager::sharedState();\n    IntGameVariable = GameManager::getIntGameVariable(v3, \"0049\");\n    v5 = GameManager::sharedState();\n    v6 = GameManager::getIntGameVariable(v5, \"0050\");\n    m_customTabBar = a1->m_customTabBar;\n    CustomItems = EditorUI::createCustomItems(a1);\n    EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v6, 1);\n  }\n}", "assembly": "; \n; EditorUI::onDeleteCustomItem from 0x100031470 to 0x100031501 (145 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x100031957\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\ncmp     dword ptr [rdi+4C0h], 0                                        ; +0x0, 0x100031470\njs      short loc_10003147A                                            ; +0x7, 0x100031477\nretn                                                                   ; +0x9, 0x100031479\npush    rbp                                                            ; +0xa, 0x10003147a\nmov     rbp, rsp                                                       ; +0xb, 0x10003147b\npush    r15                                                            ; +0xe, 0x10003147e\npush    r14                                                            ; +0x10, 0x100031480\npush    r12                                                            ; +0x12, 0x100031482\npush    rbx                                                            ; +0x14, 0x100031484\nmov     rbx, rdi                                                       ; +0x15, 0x100031485\ncall    GameManager__sharedState                                       ; +0x18, 0x100031488\nmov     esi, [rbx+4C0h]                                                ; +0x1d, 0x10003148d\nmov     rdi, rax                                                       ; +0x23, 0x100031493\ncall    GameManager__removeCustomObject                                ; +0x26, 0x100031496\nmov     dword ptr [rbx+4C0h], 0                                        ; +0x2b, 0x10003149b\ncall    GameManager__sharedState                                       ; +0x35, 0x1000314a5\nlea     rsi, a0049; \"0049\"                                             ; +0x3a, 0x1000314aa\nmov     rdi, rax                                                       ; +0x41, 0x1000314b1\ncall    GameManager__getIntGameVariable                                ; +0x44, 0x1000314b4\nmov     r14d, eax                                                      ; +0x49, 0x1000314b9\ncall    GameManager__sharedState                                       ; +0x4c, 0x1000314bc\nlea     rsi, a0050; \"0050\"                                             ; +0x51, 0x1000314c1\nmov     rdi, rax                                                       ; +0x58, 0x1000314c8\ncall    GameManager__getIntGameVariable                                ; +0x5b, 0x1000314cb\nmov     r15d, eax                                                      ; +0x60, 0x1000314d0\nmov     r12, [rbx+248h]                                                ; +0x63, 0x1000314d3\nmov     rdi, rbx                                                       ; +0x6a, 0x1000314da\ncall    EditorUI__createCustomItems                                    ; +0x6d, 0x1000314dd\nmov     rdi, r12                                                       ; +0x72, 0x1000314e2\nmov     rsi, rax                                                       ; +0x75, 0x1000314e5\nmov     edx, r14d                                                      ; +0x78, 0x1000314e8\nmov     ecx, r15d                                                      ; +0x7b, 0x1000314eb\nmov     r8d, 1                                                         ; +0x7e, 0x1000314ee\npop     rbx                                                            ; +0x84, 0x1000314f4\npop     r12                                                            ; +0x85, 0x1000314f5\npop     r14                                                            ; +0x87, 0x1000314f7\npop     r15                                                            ; +0x89, 0x1000314f9\npop     rbp                                                            ; +0x8b, 0x1000314fb\njmp     EditButtonBar__loadFromItems                                   ; +0x8c, 0x1000314fc", "xrefs": ["EditorUI::createCustomItems @ 0x100031957"], "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"}