//
// SetupSequenceTriggerPopup::onSelect from 0x1405d9e90 to 0x1405d9f0f (127 bytes)
//
// 2 xrefs:
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x1405d9cf1
// > ??> @ 0x14092eb5c
//
// 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 11:34:58 +0000
//
void __fastcall SetupSequenceTriggerPopup::onSelect(__int64 a1, __int64 a2)
{
__int64 v4; // rcx
__int64 v5; // rax
__int64 v6; // rax
v4 = *(_QWORD *)(a1 + 1000);
if ( v4 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 952LL))(v4);
ButtonSprite::updateBGImage(v5, "GJ_button_04.png");
}
if ( *(_QWORD *)(a1 + 1000) == a2 )
{
*(_QWORD *)(a1 + 1000) = 0;
}
else
{
*(_QWORD *)(a1 + 1000) = a2;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 952LL))(a2);
ButtonSprite::updateBGImage(v6, "GJ_button_03.png");
}
}