//
// SetupEventLinkPopup::updateEventIDs from 0xb7f408 to 0xb7f4a4 (156 bytes)
//
// 2 xrefs:
// > SelectEventLayer::onClose @ 0xb7f4cc
// > ??> @ 0xa5ee0
//
// 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:02:27 +0000
//
void __fastcall SetupEventLinkPopup::updateEventIDs(__int64 a1, _QWORD **a2)
{
cocos2d::CCObject *v3; // x1
__int64 v4; // x0
unsigned int *v5; // x1
__int64 *v6; // x19
__int64 *v7; // x21
__int64 i; // x0
_QWORD **v9; // x0
v3 = *(cocos2d::CCObject **)(a1 + 680);
if ( v3 )
v4 = cocos2d::CCArray::createWithObject(*(cocos2d::CCArray **)(a1 + 680), v3);
else
v4 = *(_QWORD *)(a1 + 688);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((__int64 **)v5 + 2);
v7 = &v6[*v5 - 1];
if ( v6 <= v7 )
{
for ( i = *v6; *v6; i = *v6 )
{
v9 = (_QWORD **)(i + 1840);
if ( v9 != a2 )
std::__tree::__assign_multi *,long>>(
v9,
*a2,
a2 + 1);
if ( v7 < ++v6 )
break;
}
}
}
}
}