//
// EditorUI::reloadCustomItems from 0x6f680c to 0x6f684a (62 bytes)
//
// 4 xrefs:
// > EditorUI::onDeleteCustomItem @ 0x6f6878
// > EditorUI::orderUpCustomItem @ 0x6f68a4
// > EditorUI::orderDownCustomItem @ 0x6f68e0
// > EditorUI::onNewCustomItem @ 0x6f6aea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:39 +0000
//
int __fastcall EditorUI::reloadCustomItems(EditButtonBar **this)
{
GameManager *v2; // r0
GameManager *IntGameVariable; // r6
GameManager *v4; // r0
int v5; // r0
EditButtonBar *v6; // r7
int v7; // r5
GameManager *CustomItems; // r0
v2 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v2, "0049");
v4 = (GameManager *)GameManager::sharedState(IntGameVariable);
v5 = GameManager::getIntGameVariable(v4, "0050");
v6 = *(this + 115);
v7 = v5;
CustomItems = EditorUI::createCustomItems(this);
return EditButtonBar::loadFromItems(v6, CustomItems, (int)IntGameVariable, v7, 1);
}