//
// SetupEventLinkPopup::updateEventIDs from 0x1005a5160 to 0x1005a51f3 (147 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:32:34 +0000
//
void __fastcall SetupEventLinkPopup::updateEventIDs(__int64 a1, _QWORD *a2)
{
__int64 v3; // rdi
__int64 v4; // rax
unsigned int *v5; // rax
_QWORD *v6; // r15
unsigned __int64 v7; // r12
_QWORD *v8; // rdi
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
v4 = sub_1007FE9A0(v3);
if ( !v4 )
return;
}
else
{
v4 = *(_QWORD *)(a1 + 688);
if ( !v4 )
return;
}
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((_QWORD **)v5 + 2);
v7 = (unsigned __int64)&v6[*v5 - 1];
do
{
if ( !*v6 )
break;
v8 = (_QWORD *)(*v6 + 1840LL);
if ( v8 != a2 )
sub_1000E0F70(v8, (_QWORD *)*a2, a2 + 1);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}