//
// EditorUI::reloadCustomItems from 0x100187f38 to 0x100187fa4 (108 bytes)
//
// 4 xrefs:
// > EditorUI::onNewCustomItem @ 0x100187ecc
// > sub_100187FA4 @ 0x100187fdc
// > sub_100187FE0 @ 0x100188028
// > sub_100188044 @ 0x10018808c
//
// 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 10:59:51 +0000
//
__int64 __fastcall EditorUI::reloadCustomItems(__int64 a1)
{
__int64 v2; // x0
__int64 IntGameVariable; // x20
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x22
__int64 CustomItems; // x1
v2 = GameManager::sharedState(a1);
IntGameVariable = GameManager::getIntGameVariable(v2, "0049");
v4 = GameManager::sharedState(IntGameVariable);
v5 = GameManager::getIntGameVariable(v4, "0050");
v6 = *(_QWORD *)(a1 + 624);
CustomItems = EditorUI::createCustomItems(a1);
return EditButtonBar::loadFromItems(v6, CustomItems, IntGameVariable, v5, 1);
}