{"type": "func", "start": 4301507088, "end": 4301507279, "name": "EditorUI::orderUpCustomItem", "pseudocode": "// \n// EditorUI::orderUpCustomItem from 0x10063ca10 to 0x10063cacf (191 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x1006386ce\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\n__int64 __fastcall EditorUI::orderUpCustomItem(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rax\n  int v4; // r14d\n  __int64 v5; // rax\n  unsigned int IntGameVariable; // r15d\n  __int64 v7; // rax\n  unsigned int v8; // r12d\n  __int64 v9; // r13\n  __int64 CustomItems; // rax\n\n  if ( *(int *)(a1 + 1344) < 0 )\n  {\n    v3 = GameManager::sharedState();\n    result = GameManager::reorderKey(v3, *(_DWORD *)(a1 + 1344), 1);\n    if ( (_DWORD)result != *(_DWORD *)(a1 + 1344) )\n    {\n      v4 = result;\n      v5 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v5, \"0049\");\n      v7 = GameManager::sharedState();\n      v8 = GameManager::getIntGameVariable(v7, \"0050\");\n      v9 = *(_QWORD *)(a1 + 624);\n      CustomItems = EditorUI::createCustomItems(a1, a2);\n      EditButtonBar::loadFromItems(v9, CustomItems, IntGameVariable, v8, 1);\n      *(_DWORD *)(a1 + 1344) = v4;\n      return EditorUI::updateCreateMenu(a1, 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::orderUpCustomItem from 0x10063ca10 to 0x10063cacf (191 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x1006386ce\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; \npush    rbp                                                            ; +0x0, 0x10063ca10\nmov     rbp, rsp                                                       ; +0x1, 0x10063ca11\npush    r15                                                            ; +0x4, 0x10063ca14\npush    r14                                                            ; +0x6, 0x10063ca16\npush    r13                                                            ; +0x8, 0x10063ca18\npush    r12                                                            ; +0xa, 0x10063ca1a\npush    rbx                                                            ; +0xc, 0x10063ca1c\npush    rax                                                            ; +0xd, 0x10063ca1d\ncmp     dword ptr [rdi+540h], 0                                        ; +0xe, 0x10063ca1e\njns     short loc_10063CA4A                                            ; +0x15, 0x10063ca25\nmov     rbx, rdi                                                       ; +0x17, 0x10063ca27\ncall    GameManager__sharedState                                       ; +0x1a, 0x10063ca2a\nmov     esi, [rbx+540h]                                                ; +0x1f, 0x10063ca2f\nmov     rdi, rax                                                       ; +0x25, 0x10063ca35\nmov     edx, 1                                                         ; +0x28, 0x10063ca38\ncall    GameManager__reorderKey                                        ; +0x2d, 0x10063ca3d\ncmp     eax, [rbx+540h]                                                ; +0x32, 0x10063ca42\njnz     short loc_10063CA59                                            ; +0x38, 0x10063ca48\nadd     rsp, 8                                                         ; +0x3a, 0x10063ca4a\npop     rbx                                                            ; +0x3e, 0x10063ca4e\npop     r12                                                            ; +0x3f, 0x10063ca4f\npop     r13                                                            ; +0x41, 0x10063ca51\npop     r14                                                            ; +0x43, 0x10063ca53\npop     r15                                                            ; +0x45, 0x10063ca55\npop     rbp                                                            ; +0x47, 0x10063ca57\nretn                                                                   ; +0x48, 0x10063ca58\nmov     r14d, eax                                                      ; +0x49, 0x10063ca59\ncall    GameManager__sharedState                                       ; +0x4c, 0x10063ca5c\nlea     rsi, a0049; \"0049\"                                             ; +0x51, 0x10063ca61\nmov     rdi, rax                                                       ; +0x58, 0x10063ca68\ncall    GameManager__getIntGameVariable                                ; +0x5b, 0x10063ca6b\nmov     r15d, eax                                                      ; +0x60, 0x10063ca70\ncall    GameManager__sharedState                                       ; +0x63, 0x10063ca73\nlea     rsi, a0050; \"0050\"                                             ; +0x68, 0x10063ca78\nmov     rdi, rax                                                       ; +0x6f, 0x10063ca7f\ncall    GameManager__getIntGameVariable                                ; +0x72, 0x10063ca82\nmov     r12d, eax                                                      ; +0x77, 0x10063ca87\nmov     r13, [rbx+270h]                                                ; +0x7a, 0x10063ca8a\nmov     rdi, rbx                                                       ; +0x81, 0x10063ca91\ncall    EditorUI__createCustomItems                                    ; +0x84, 0x10063ca94\nmov     rdi, r13                                                       ; +0x89, 0x10063ca99\nmov     rsi, rax                                                       ; +0x8c, 0x10063ca9c\nmov     edx, r15d                                                      ; +0x8f, 0x10063ca9f\nmov     ecx, r12d                                                      ; +0x92, 0x10063caa2\nmov     r8d, 1                                                         ; +0x95, 0x10063caa5\ncall    EditButtonBar__loadFromItems                                   ; +0x9b, 0x10063caab\nmov     [rbx+540h], r14d                                               ; +0xa0, 0x10063cab0\nmov     rdi, rbx                                                       ; +0xa7, 0x10063cab7\nxor     esi, esi                                                       ; +0xaa, 0x10063caba\nadd     rsp, 8                                                         ; +0xac, 0x10063cabc\npop     rbx                                                            ; +0xb0, 0x10063cac0\npop     r12                                                            ; +0xb1, 0x10063cac1\npop     r13                                                            ; +0xb3, 0x10063cac3\npop     r14                                                            ; +0xb5, 0x10063cac5\npop     r15                                                            ; +0xb7, 0x10063cac7\npop     rbp                                                            ; +0xb9, 0x10063cac9\njmp     EditorUI__updateCreateMenu                                     ; +0xba, 0x10063caca", "xrefs": ["EditorUI::createCustomItems @ 0x1006386ce"], "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"}