//
// EditorUI::reloadCustomItems from 0x388270 to 0x3882ae (62 bytes)
//
// 4 xrefs:
// > EditorUI::onDeleteCustomItem @ 0x3882dc
// > EditorUI::orderUpCustomItem @ 0x388308
// > EditorUI::orderDownCustomItem @ 0x388344
// > EditorUI::onNewCustomItem @ 0x3a67da
//
// 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
//
void EditorUI::reloadCustomItems(EditorUI *a1)
{
GameManager *v2; // r0
int IntGameVariable; // r6
GameManager *v4; // r0
int v5; // r0
EditButtonBar *m_customTabBar; // r7
int v7; // r5
cocos2d::CCArray *CustomItems; // r0
v2 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v2, "0049");
v4 = GameManager::sharedState();
v5 = GameManager::getIntGameVariable(v4, "0050");
m_customTabBar = a1->m_customTabBar;
v7 = v5;
CustomItems = EditorUI::createCustomItems(a1);
EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v7, 1);
}