//
// EditorUI::orderUpCustomItem from 0x1401f60f0 to 0x1401f617f (143 bytes)
//
// 2 xrefs:
// > EditorUI::createCustomItems @ 0x1401f6479
// > ??> @ 0x14091aa8c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:09 +0000
//
void __fastcall EditorUI::orderUpCustomItem(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rcx
int v5; // edi
void *v6; // [rsp+30h] [rbp+8h]
if ( *(int *)(a1 + 1392) < 0 )
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
LOBYTE(a3) = 1;
v5 = GameManager::reorderKey(v4, *(unsigned int *)(a1 + 1392), a3);
if ( v5 != *(_DWORD *)(a1 + 1392) )
{
EditorUI::reloadCustomItems(a1);
*(_DWORD *)(a1 + 1392) = v5;
EditorUI::updateCreateMenu(a1, 0);
}
}
}