{"type": "func", "start": 5370765696, "end": 5370765839, "name": "EditorUI::orderDownCustomItem", "pseudocode": "// \n// EditorUI::orderDownCustomItem from 0x1401f6180 to 0x1401f620f (143 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createCustomItems @ 0x1401f6535\n// > <???> @ 0x14091aa98\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 11:28:09 +0000\n// \n\nvoid __fastcall EditorUI::orderDownCustomItem(__int64 a1)\n{\n  __int64 v2; // rcx\n  int v3; // edi\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( *(int *)(a1 + 1392) < 0 )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v4 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager(v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    v3 = GameManager::reorderKey(v2, *(unsigned int *)(a1 + 1392), 0);\n    if ( v3 != *(_DWORD *)(a1 + 1392) )\n    {\n      EditorUI::reloadCustomItems(a1);\n      *(_DWORD *)(a1 + 1392) = v3;\n      EditorUI::updateCreateMenu(a1, 0);\n    }\n  }\n}", "assembly": "; \n; EditorUI::orderDownCustomItem from 0x1401f6180 to 0x1401f620f (143 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createCustomItems @ 0x1401f6535\n; > <???> @ 0x14091aa98\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 11:28:09 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401f6180\npush    rdi                                                            ; +0x5, 0x1401f6185\nsub     rsp, 20h                                                       ; +0x6, 0x1401f6186\nmov     rbx, rcx                                                       ; +0xa, 0x1401f618a\ncmp     dword ptr [rcx+570h], 0                                        ; +0xd, 0x1401f618d\njge     short loc_1401F6204                                            ; +0x14, 0x1401f6194\nmov     rcx, cs:qword_14090BFD0                                        ; +0x16, 0x1401f6196\ntest    rcx, rcx                                                       ; +0x1d, 0x1401f619d\njnz     short loc_1401F61D4                                            ; +0x20, 0x1401f61a0\nmov     ecx, 6E8h; Size                                                ; +0x22, 0x1401f61a2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x1401f61a7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x1401f61ac\nmov     rcx, rax                                                       ; +0x31, 0x1401f61b1\ncall    GameManager__GameManager                                       ; +0x34, 0x1401f61b4\nnop                                                                    ; +0x39, 0x1401f61b9\nmov     cs:qword_14090BFD0, rax                                        ; +0x3a, 0x1401f61ba\nmov     rcx, [rax]                                                     ; +0x41, 0x1401f61c1\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x1401f61c4\nmov     rcx, rax                                                       ; +0x48, 0x1401f61c8\ncall    rdx                                                            ; +0x4b, 0x1401f61cb\nmov     rcx, cs:qword_14090BFD0                                        ; +0x4d, 0x1401f61cd\nxor     r8d, r8d                                                       ; +0x54, 0x1401f61d4\nmov     edx, [rbx+570h]                                                ; +0x57, 0x1401f61d7\ncall    GameManager__reorderKey                                        ; +0x5d, 0x1401f61dd\nmov     edi, eax                                                       ; +0x62, 0x1401f61e2\ncmp     eax, [rbx+570h]                                                ; +0x64, 0x1401f61e4\njz      short loc_1401F6204                                            ; +0x6a, 0x1401f61ea\nmov     rcx, rbx                                                       ; +0x6c, 0x1401f61ec\ncall    EditorUI__reloadCustomItems                                    ; +0x6f, 0x1401f61ef\nmov     [rbx+570h], edi                                                ; +0x74, 0x1401f61f4\nxor     edx, edx                                                       ; +0x7a, 0x1401f61fa\nmov     rcx, rbx                                                       ; +0x7c, 0x1401f61fc\ncall    EditorUI__updateCreateMenu                                     ; +0x7f, 0x1401f61ff\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x84, 0x1401f6204\nadd     rsp, 20h                                                       ; +0x89, 0x1401f6209\npop     rdi                                                            ; +0x8d, 0x1401f620d\nretn                                                                   ; +0x8e, 0x1401f620e", "xrefs": ["EditorUI::createCustomItems @ 0x1401f6535", "<???> @ 0x14091aa98"], "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"}