//
// SetupTriggerPopup::onToggleTriggerValue from 0x100220160 to 0x1002201c7 (103 bytes)
//
// 1 xrefs:
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x10022009e
//
// 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:03 +0000
//
__int64 __fastcall SetupTriggerPopup::onToggleTriggerValue(_BYTE *a1, unsigned __int8 *a2)
{
__int64 v2; // r15
int v3; // ebx
char v4; // r12
__int64 result; // rax
v2 = (*(unsigned int (__fastcall **)(unsigned __int8 *))(*(_QWORD *)a2 + 64LL))(a2);
v3 = a2[392];
v4 = a1[744];
a1[744] = 1;
v3 ^= 1u;
(*(void (__fastcall **)(_BYTE *, __int64, _QWORD))(*(_QWORD *)a1 + 1448LL))(a1, v2, (unsigned int)v3);
result = SetupTriggerPopup::valueChanged(a1, v2, (float)v3);
a1[744] = v4;
return result;
}