//
// SetupTriggerPopup::updateMultiTriggerBtn from 0x10021b430 to 0x10021b4ab (123 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::init @ 0x10039525b
// > ColorSelectPopup::init @ 0x100804d1e
//
// 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:27:01 +0000
//
void __fastcall SetupTriggerPopup::updateMultiTriggerBtn(__int64 a1)
{
__int64 v2; // rdi
unsigned int v3; // r14d
__int64 v4; // rax
unsigned __int8 v5; // cl
v2 = *(_QWORD *)(a1 + 720);
if ( v2 && (unsigned int)sub_1007FEF90(v2) )
{
v3 = 0;
do
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 720), v3);
v5 = 1;
if ( !*(_BYTE *)(a1 + 697) )
v5 = *(_BYTE *)(a1 + 696);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, v5);
++v3;
}
while ( v3 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 720)) );
}
}