//
// EditorUI::onDeleteCustomItem from 0xbdfe60 to 0xbdfea4 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0xe4490
// > EditorUI::createCustomItems @ 0xbdfd74
// > ??> @ 0x1546dc0
//
// 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
//
GameManager *__fastcall EditorUI::onDeleteCustomItem(GameManager *this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
GameManager *v3; // x0
if ( (*((_DWORD *)this + 336) & 0x80000000) != 0 )
{
v2 = (__int64)this;
v3 = (GameManager *)GameManager::sharedState(this);
GameManager::removeCustomObject(v3, (const char *)*(unsigned int *)(v2 + 1344));
*(_DWORD *)(v2 + 1344) = 0;
return (GameManager *)EditorUI::reloadCustomItems((EditButtonBar **)v2);
}
return this;
}