//
// SetupEventLinkPopup::onSelectEvent from 0x1005a4f30 to 0x1005a4fdf (175 bytes)
//
// 1 xrefs:
// > SetupEventLinkPopup::init @ 0x1005a4dd6
//
// 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::onSelectEvent(__int64 a1)
{
__int64 v1; // rdx
__int64 v2; // rax
__int128 *v3; // [rsp+0h] [rbp-20h] BYREF
__int128 v4; // [rsp+8h] [rbp-18h] BYREF
v4 = 0;
v3 = &v4;
v1 = *(_QWORD *)(a1 + 680);
if ( v1 )
{
if ( &v3 == (__int128 **)(v1 + 1840) )
goto LABEL_7;
goto LABEL_6;
}
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) )
{
v1 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), 0);
if ( &v3 != (__int128 **)(v1 + 1840) )
LABEL_6:
sub_1000E0F70(&v3, *(_QWORD **)(v1 + 1840), (_QWORD *)(v1 + 1848));
}
LABEL_7:
v2 = sub_1005A5000(a1, &v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
sub_10001ADF0((__int64)&v3, (_QWORD *)v4);
}