//
// EditorUI::orderDownCustomItem from 0x10063cad0 to 0x10063cb8c (188 bytes)
//
// 1 xrefs:
// > EditorUI::createCustomItems @ 0x100638721
//
// 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 12:34:41 +0000
//
__int64 __fastcall EditorUI::orderDownCustomItem(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v3; // rax
int v4; // r14d
__int64 v5; // rax
unsigned int IntGameVariable; // r15d
__int64 v7; // rax
unsigned int v8; // r12d
__int64 v9; // r13
__int64 CustomItems; // rax
if ( *(int *)(a1 + 1344) < 0 )
{
v3 = GameManager::sharedState();
result = GameManager::reorderKey(v3, *(_DWORD *)(a1 + 1344), 0);
if ( (_DWORD)result != *(_DWORD *)(a1 + 1344) )
{
v4 = result;
v5 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v5, "0049");
v7 = GameManager::sharedState();
v8 = GameManager::getIntGameVariable(v7, "0050");
v9 = *(_QWORD *)(a1 + 624);
CustomItems = EditorUI::createCustomItems(a1, a2);
EditButtonBar::loadFromItems(v9, CustomItems, IntGameVariable, v8, 1);
*(_DWORD *)(a1 + 1344) = v4;
return EditorUI::updateCreateMenu(a1, 0);
}
}
return result;
}