{"type": "func", "start": 4301507280, "end": 4301507468, "name": "EditorUI::orderDownCustomItem", "pseudocode": "// \n// EditorUI::orderDownCustomItem from 0x10063cad0 to 0x10063cb8c (188 bytes)\n// \n// 1 xrefs:\n// > EditorUI::createCustomItems @ 0x100638721\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::orderDownCustomItem(__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), 0);\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::orderDownCustomItem from 0x10063cad0 to 0x10063cb8c (188 bytes)\n; \n; 1 xrefs:\n; > EditorUI::createCustomItems @ 0x100638721\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, 0x10063cad0\nmov     rbp, rsp                                                       ; +0x1, 0x10063cad1\npush    r15                                                            ; +0x4, 0x10063cad4\npush    r14                                                            ; +0x6, 0x10063cad6\npush    r13                                                            ; +0x8, 0x10063cad8\npush    r12                                                            ; +0xa, 0x10063cada\npush    rbx                                                            ; +0xc, 0x10063cadc\npush    rax                                                            ; +0xd, 0x10063cadd\ncmp     dword ptr [rdi+540h], 0                                        ; +0xe, 0x10063cade\njns     short loc_10063CB07                                            ; +0x15, 0x10063cae5\nmov     rbx, rdi                                                       ; +0x17, 0x10063cae7\ncall    GameManager__sharedState                                       ; +0x1a, 0x10063caea\nmov     esi, [rbx+540h]                                                ; +0x1f, 0x10063caef\nmov     rdi, rax                                                       ; +0x25, 0x10063caf5\nxor     edx, edx                                                       ; +0x28, 0x10063caf8\ncall    GameManager__reorderKey                                        ; +0x2a, 0x10063cafa\ncmp     eax, [rbx+540h]                                                ; +0x2f, 0x10063caff\njnz     short loc_10063CB16                                            ; +0x35, 0x10063cb05\nadd     rsp, 8                                                         ; +0x37, 0x10063cb07\npop     rbx                                                            ; +0x3b, 0x10063cb0b\npop     r12                                                            ; +0x3c, 0x10063cb0c\npop     r13                                                            ; +0x3e, 0x10063cb0e\npop     r14                                                            ; +0x40, 0x10063cb10\npop     r15                                                            ; +0x42, 0x10063cb12\npop     rbp                                                            ; +0x44, 0x10063cb14\nretn                                                                   ; +0x45, 0x10063cb15\nmov     r14d, eax                                                      ; +0x46, 0x10063cb16\ncall    GameManager__sharedState                                       ; +0x49, 0x10063cb19\nlea     rsi, a0049; \"0049\"                                             ; +0x4e, 0x10063cb1e\nmov     rdi, rax                                                       ; +0x55, 0x10063cb25\ncall    GameManager__getIntGameVariable                                ; +0x58, 0x10063cb28\nmov     r15d, eax                                                      ; +0x5d, 0x10063cb2d\ncall    GameManager__sharedState                                       ; +0x60, 0x10063cb30\nlea     rsi, a0050; \"0050\"                                             ; +0x65, 0x10063cb35\nmov     rdi, rax                                                       ; +0x6c, 0x10063cb3c\ncall    GameManager__getIntGameVariable                                ; +0x6f, 0x10063cb3f\nmov     r12d, eax                                                      ; +0x74, 0x10063cb44\nmov     r13, [rbx+270h]                                                ; +0x77, 0x10063cb47\nmov     rdi, rbx                                                       ; +0x7e, 0x10063cb4e\ncall    EditorUI__createCustomItems                                    ; +0x81, 0x10063cb51\nmov     rdi, r13                                                       ; +0x86, 0x10063cb56\nmov     rsi, rax                                                       ; +0x89, 0x10063cb59\nmov     edx, r15d                                                      ; +0x8c, 0x10063cb5c\nmov     ecx, r12d                                                      ; +0x8f, 0x10063cb5f\nmov     r8d, 1                                                         ; +0x92, 0x10063cb62\ncall    EditButtonBar__loadFromItems                                   ; +0x98, 0x10063cb68\nmov     [rbx+540h], r14d                                               ; +0x9d, 0x10063cb6d\nmov     rdi, rbx                                                       ; +0xa4, 0x10063cb74\nxor     esi, esi                                                       ; +0xa7, 0x10063cb77\nadd     rsp, 8                                                         ; +0xa9, 0x10063cb79\npop     rbx                                                            ; +0xad, 0x10063cb7d\npop     r12                                                            ; +0xae, 0x10063cb7e\npop     r13                                                            ; +0xb0, 0x10063cb80\npop     r14                                                            ; +0xb2, 0x10063cb82\npop     r15                                                            ; +0xb4, 0x10063cb84\npop     rbp                                                            ; +0xb6, 0x10063cb86\njmp     EditorUI__updateCreateMenu                                     ; +0xb7, 0x10063cb87", "xrefs": ["EditorUI::createCustomItems @ 0x100638721"], "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"}