//
// EditorUI::orderUpCustomItem from 0xbdfea4 to 0xbdff08 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0xbaaa8
// > EditorUI::createCustomItems @ 0xbdfc68
// > ??> @ 0x1545660
//
// This function is hookable on this platform (idp: arm, 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 13:03:45 +0000
//
__int64 __fastcall EditorUI::orderUpCustomItem(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
cocos2d::CCDictionary **v3; // x0
int v4; // w20
if ( (*(_DWORD *)(this + 1344) & 0x80000000) != 0 )
{
v2 = this;
v3 = (cocos2d::CCDictionary **)GameManager::sharedState((GameManager *)this);
v4 = GameManager::reorderKey(v3, *(_DWORD *)(v2 + 1344), 1u);
this = *(unsigned int *)(v2 + 1344);
if ( v4 != (_DWORD)this )
{
EditorUI::reloadCustomItems((EditButtonBar **)v2);
*(_DWORD *)(v2 + 1344) = v4;
return EditorUI::updateCreateMenu((EditorUI *)v2, 0);
}
}
return this;
}