//
// EditorUI::reloadCustomItems from 0xbdfdf4 to 0xbdfe60 (108 bytes)
//
// 5 xrefs:
// > EditorUI::onDeleteCustomItem @ 0xbdfea0
// > EditorUI::orderUpCustomItem @ 0xbdfeec
// > EditorUI::orderDownCustomItem @ 0xbdff50
// > EditorUI::onNewCustomItem @ 0xbe014c
// > ??> @ 0xad428
//
// 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::reloadCustomItems(EditButtonBar **this)
{
GameManager *v2; // x0
GameManager *IntGameVariable; // x0
GameManager *v4; // x0
int v5; // w0
EditButtonBar *v6; // x20
GameManager *CustomItems; // x0
int v9; // [xsp+20h] [xbp+20h]
int v10; // [xsp+28h] [xbp+28h]
v2 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v2, "0049");
v9 = (int)IntGameVariable;
v4 = (GameManager *)GameManager::sharedState(IntGameVariable);
v5 = GameManager::getIntGameVariable(v4, "0050");
v6 = *(this + 78);
v10 = v5;
CustomItems = EditorUI::createCustomItems(this);
return EditButtonBar::loadFromItems(v6, CustomItems, v9, v10, 1u);
}