//
// EditorUI::orderUpCustomItem from 0x1400e4660 to 0x1400e46ec (140 bytes)
//
// 2 xrefs:
// > EditorUI::createCustomItems @ 0x1400e49c8
// > ??> @ 0x1406c8c70
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void EditorUI::orderUpCustomItem(EditorUI *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // rcx
int v4; // edi
void *v5; // [rsp+30h] [rbp+8h]
if ( a1->m_selectedObjectIndex < 0 )
{
v3 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v5 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v3 = (GameManager *)qword_1406C2ED8;
}
v4 = GameManager::reorderKey(v3, a1->m_selectedObjectIndex, 1);
if ( v4 != a1->m_selectedObjectIndex )
{
EditorUI::reloadCustomItems(a1);
a1->m_selectedObjectIndex = v4;
EditorUI::updateCreateMenu(a1, 0);
}
}
}