//
// SetupSequenceTriggerPopup::onSelect from 0x10026b688 to 0x10026b708 (128 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x10026b3d8
//
// This function is hookable on this platform (idp: arm, 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:01:44 +0000
//
void *__fastcall SetupSequenceTriggerPopup::onSelect(__int64 a1, __int64 a2)
{
void *result; // x0
__int64 v5; // x0
__int64 v6; // x8
__int64 v7; // x0
result = *(void **)(a1 + 1016);
if ( result )
{
v5 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)result + 1072LL))(result);
result = ButtonSprite::updateBGImage(v5, (__int64)"GJ_button_04.png");
v6 = *(_QWORD *)(a1 + 1016);
}
else
{
v6 = 0;
}
if ( v6 == a2 )
{
*(_QWORD *)(a1 + 1016) = 0;
}
else
{
*(_QWORD *)(a1 + 1016) = a2;
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);
return ButtonSprite::updateBGImage(v7, (__int64)"GJ_button_03.png");
}
return result;
}