//
// GameManager::reorderKey from 0x1003194ec to 0x100319538 (76 bytes)
//
// 2 xrefs:
// > EditorUI::orderUpCustomItem @ 0x1003e8b7c
// > EditorUI::orderDownCustomItem @ 0x1003e8be0
//
// 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
//
int __fastcall GameManager::reorderKey(GameManager *a1, int a2, bool a3)
{
int v3; // w19
int NextUsedKey; // w0
int v6; // w21
v3 = a2;
NextUsedKey = GameManager::getNextUsedKey(a1, a2, a3);
if ( NextUsedKey )
{
v6 = NextUsedKey;
GameManager::switchCustomObjects(a1, v3, NextUsedKey);
return v6;
}
return v3;
}