//
// SetupEventLinkPopup::updateEventIDs from 0xa542d4 to 0xa54358 (132 bytes)
//
// 2 xrefs:
// > SelectEventLayer::onClose @ 0xa54380
// > ??> @ 0x87048
//
// 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 SetupEventLinkPopup::updateEventIDs(SetupEventLinkPopup *a1, std::set *a2)
{
EffectGameObject *m_gameObject; // x1
cocos2d::CCArray *m_gameObjects; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x19
cocos2d::CCObject **v7; // x20
int *p_m_uIndexInArray; // x0
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(
(cocos2d::CCArray *)a1->m_gameObject,
m_gameObject);
else
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
data = m_gameObjects->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num - 1];
while ( v7 >= arr )
{
if ( !*arr )
break;
p_m_uIndexInArray = &(*arr++)[32].m_uIndexInArray;
std::_Rb_tree,std::less,std::allocator>::operator=(
p_m_uIndexInArray,
(__int64)a2);
}
}
}
}