//
// SetupPickupTriggerPopup::onCustomToggleTriggerValue from 0x10001e650 to 0x10001e72c (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ab6370
//
// 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:18:57 +0000
//
__int64 __fastcall SetupPickupTriggerPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)
{
int v2; // r14d
int v3; // r15d
__m128 v4; // xmm0
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = 0;
if ( v2 != (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 88) )
v3 = v2;
SetupTriggerPopup::updateCustomToggleTrigger(a1, 1, v3 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, 2, v3 == 2);
v4 = 0;
SetupTriggerPopup::updateValue(a1, 88, (float)v3);
*(double *)v4.i64 = (*(double (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 88);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(
a1,
1,
_mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(v4, (__m128)0LL)) & 1);
return (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1352LL))(
a1,
2,
_mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v4, (__m128)0LL)) & 1);
}