//
// SelectEventLayer::onClose from 0x1005a7820 to 0x1005a78e6 (198 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b738f0
//
// 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:35 +0000
//
__int64 __fastcall SelectEventLayer::onClose(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rax
unsigned int *v7; // rax
_QWORD **v8; // r12
_QWORD *v9; // r13
_QWORD *v10; // rbx
_QWORD *v11; // rdi
if ( *(_BYTE *)(a1 + 1024) == 1 )
{
v4 = *(_QWORD *)(a1 + 1016);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 680);
if ( v5 )
{
v6 = sub_1007FE9A0(v5);
if ( !v6 )
return SetupTriggerPopup::onClose(a1, a2, a3);
}
else
{
v6 = *(_QWORD *)(v4 + 688);
if ( !v6 )
return SetupTriggerPopup::onClose(a1, a2, a3);
}
v7 = *(unsigned int **)(v6 + 56);
if ( *v7 )
{
v8 = (_QWORD **)(a1 + 1064);
v9 = *((_QWORD **)v7 + 2);
v10 = &v9[*v7 - 1];
do
{
if ( !*v9 )
break;
v11 = (_QWORD *)(*v9 + 1840LL);
if ( v11 != v8 )
sub_1000E0F70(v11, *v8, (_QWORD *)(a1 + 1072));
++v9;
}
while ( v9 <= v10 );
}
}
}
return SetupTriggerPopup::onClose(a1, a2, a3);
}