//
// SetupOptionsTriggerPopup::onCustomToggleTriggerValue from 0x100494c00 to 0x100494cb4 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097b460
//
// 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:05:55 +0000
//
__int64 __fastcall SetupOptionsTriggerPopup::onCustomToggleTriggerValue(_QWORD *a1, __int64 a2)
{
__int64 v2; // x19
int v4; // w0
__int64 v5; // x21
int v6; // w0
int v7; // w22
v2 = a2;
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v4 >= 0 )
v5 = (unsigned int)v4;
else
v5 = (unsigned int)-v4;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 64LL))(v2);
LODWORD(v2) = v6 < 1;
if ( v6 < 1 )
v7 = -1;
else
v7 = 1;
if ( v7 == (int)(*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL))(a1, v5) )
{
v7 = 0;
v2 = 0;
}
else
{
v2 = (unsigned int)v2;
}
sub_1001AFA70(a1, v5, (float)v7);
sub_1001B0178((__int64)a1, v5, v7 == 1);
return sub_1001B0178((__int64)a1, -(int)v5, v2);
}