//
// SetupTriggerPopup::onToggleTriggerValue from 0x1001aff34 to 0x1001affb0 (124 bytes)
//
// 1 xrefs:
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x1001afe54
//
// 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:00:07 +0000
//
__int64 __fastcall SetupTriggerPopup::onToggleTriggerValue(_BYTE *a1, __int64 a2)
{
__int64 v2; // x19
__int64 v4; // x21
char v5; // w8
char v6; // w22
__int64 result; // x0
v2 = a2;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = *(_BYTE *)(v2 + 392);
v6 = a1[744];
a1[744] = 1;
LODWORD(v2) = (v5 & 1) == 0;
(*(void (__fastcall **)(_BYTE *, __int64, bool))(*(_QWORD *)a1 + 1448LL))(a1, v4, (v5 & 1) == 0);
result = SetupTriggerPopup::valueChanged(a1, v4, (float)(unsigned int)v2);
a1[744] = v6;
return result;
}