//
// SetItemIDLayer::onClose from 0x140401b50 to 0x140401be6 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405d7890
// > ??> @ 0x1406d88a0
//
// 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 SetItemIDLayer::onClose(SetItemIDLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int i; // ebx
LabelGameObject *v6; // rax
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )
{
v6 = (LabelGameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, i);
LabelGameObject::updatePreviewLabel(v6);
}
SetupTriggerPopup::onClose(a1, a2);
}