//
// SetupEventLinkPopup::updateEventIDs from 0x6baaec to 0x6bab2e (66 bytes)
//
// 1 xrefs:
// > SelectEventLayer::onClose @ 0x6bab44
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:45 +0000
//
int __fastcall SetupEventLinkPopup::updateEventIDs(int a1, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v3; // r0
int result; // r0
_DWORD *v6; // r2
int *v7; // r5
int *v8; // r4
int v9; // t1
v3 = *(cocos2d::CCArray **)(a1 + 528);
if ( v3 )
result = cocos2d::CCArray::createWithObject(v3, a2);
else
result = *(_DWORD *)(a1 + 532);
if ( result )
{
v6 = *(_DWORD **)(result + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v9 = *v7++;
result = v9;
if ( !v9 )
break;
result = std::__tree::operator=(result + 1648, (int)a2);
}
}
}
return result;
}