//
// SetupStopTriggerPopup::onClose from 0x1005b28f0 to 0x1005b2976 (134 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b79b50
//
// 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:39 +0000
//
__int64 __fastcall SetupStopTriggerPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
__int64 v4; // r15
__int64 v5; // rdx
unsigned int v6; // r12d
__int64 v7; // rax
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
v4 = sub_1007FE9A0(v3);
if ( !(unsigned int)sub_1007FEF90(v4) )
return SetupTriggerPopup::onClose(a1, a2, v5);
}
else
{
v4 = *(_QWORD *)(a1 + 688);
if ( !(unsigned int)sub_1007FEF90(v4) )
return SetupTriggerPopup::onClose(a1, a2, v5);
}
v6 = 0;
do
{
v7 = sub_1007FEFE0(v4, v6);
TriggerControlGameObject::updateTriggerControlFrame(v7);
++v6;
}
while ( v6 < (unsigned int)sub_1007FEF90(v4) );
return SetupTriggerPopup::onClose(a1, a2, v5);
}