{"type": "func", "start": 4301506928, "end": 4301507073, "name": "EditorUI::onDeleteCustomItem", "pseudocode": "// \n// EditorUI::onDeleteCustomItem from 0x10063c970 to 0x10063ca01 (145 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x1006387c7\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:34:41 +0000\n// \n\nvoid __fastcall EditorUI::onDeleteCustomItem(__int64 a1, double a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  unsigned int IntGameVariable; // r14d\n  __int64 v5; // rax\n  unsigned int v6; // r15d\n  __int64 v7; // r12\n  __int64 CustomItems; // rax\n\n  if ( *(int *)(a1 + 1344) < 0 )\n  {\n    v2 = GameManager::sharedState();\n    GameManager::removeCustomObject(v2);\n    *(_DWORD *)(a1 + 1344) = 0;\n    v3 = GameManager::sharedState();\n    IntGameVariable = GameManager::getIntGameVariable(v3, \"0049\");\n    v5 = GameManager::sharedState();\n    v6 = GameManager::getIntGameVariable(v5, \"0050\");\n    v7 = *(_QWORD *)(a1 + 624);\n    CustomItems = EditorUI::createCustomItems(a1, a2);\n    EditButtonBar::loadFromItems(v7, CustomItems, IntGameVariable, v6, 1);\n  }\n}", "assembly": "; \n; EditorUI::onDeleteCustomItem from 0x10063c970 to 0x10063ca01 (145 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x1006387c7\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:34:41 +0000\n; \ncmp     dword ptr [rdi+540h], 0                                        ; +0x0, 0x10063c970\njs      short loc_10063C97A                                            ; +0x7, 0x10063c977\nretn                                                                   ; +0x9, 0x10063c979\npush    rbp                                                            ; +0xa, 0x10063c97a\nmov     rbp, rsp                                                       ; +0xb, 0x10063c97b\npush    r15                                                            ; +0xe, 0x10063c97e\npush    r14                                                            ; +0x10, 0x10063c980\npush    r12                                                            ; +0x12, 0x10063c982\npush    rbx                                                            ; +0x14, 0x10063c984\nmov     rbx, rdi                                                       ; +0x15, 0x10063c985\ncall    GameManager__sharedState                                       ; +0x18, 0x10063c988\nmov     esi, [rbx+540h]                                                ; +0x1d, 0x10063c98d\nmov     rdi, rax                                                       ; +0x23, 0x10063c993\ncall    GameManager__removeCustomObject                                ; +0x26, 0x10063c996\nmov     dword ptr [rbx+540h], 0                                        ; +0x2b, 0x10063c99b\ncall    GameManager__sharedState                                       ; +0x35, 0x10063c9a5\nlea     rsi, a0049; \"0049\"                                             ; +0x3a, 0x10063c9aa\nmov     rdi, rax                                                       ; +0x41, 0x10063c9b1\ncall    GameManager__getIntGameVariable                                ; +0x44, 0x10063c9b4\nmov     r14d, eax                                                      ; +0x49, 0x10063c9b9\ncall    GameManager__sharedState                                       ; +0x4c, 0x10063c9bc\nlea     rsi, a0050; \"0050\"                                             ; +0x51, 0x10063c9c1\nmov     rdi, rax                                                       ; +0x58, 0x10063c9c8\ncall    GameManager__getIntGameVariable                                ; +0x5b, 0x10063c9cb\nmov     r15d, eax                                                      ; +0x60, 0x10063c9d0\nmov     r12, [rbx+270h]                                                ; +0x63, 0x10063c9d3\nmov     rdi, rbx                                                       ; +0x6a, 0x10063c9da\ncall    EditorUI__createCustomItems                                    ; +0x6d, 0x10063c9dd\nmov     rdi, r12                                                       ; +0x72, 0x10063c9e2\nmov     rsi, rax                                                       ; +0x75, 0x10063c9e5\nmov     edx, r14d                                                      ; +0x78, 0x10063c9e8\nmov     ecx, r15d                                                      ; +0x7b, 0x10063c9eb\nmov     r8d, 1                                                         ; +0x7e, 0x10063c9ee\npop     rbx                                                            ; +0x84, 0x10063c9f4\npop     r12                                                            ; +0x85, 0x10063c9f5\npop     r14                                                            ; +0x87, 0x10063c9f7\npop     r15                                                            ; +0x89, 0x10063c9f9\npop     rbp                                                            ; +0x8b, 0x10063c9fb\njmp     EditButtonBar__loadFromItems                                   ; +0x8c, 0x10063c9fc", "xrefs": ["EditorUI::createCustomItems @ 0x1006387c7"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}