//
// UIObjectSettingsPopup::onCustomToggleTriggerValue from 0x1005aa6d0 to 0x1005aa794 (196 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b76230
//
// 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:32:36 +0000
//
__int64 __fastcall UIObjectSettingsPopup::onCustomToggleTriggerValue(_QWORD *a1, __int64 a2)
{
int v2; // r14d
float v3; // xmm0_4
unsigned int v4; // r15d
unsigned int v5; // r12d
unsigned int v6; // r13d
__int64 v7; // rsi
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = (float)v2;
if ( v2 > 4 )
{
SetupTriggerPopup::updateValue(a1, 0x182u, v3);
v4 = 8;
v5 = 7;
v6 = 6;
v7 = 5;
}
else
{
SetupTriggerPopup::updateValue(a1, 0x181u, v3);
v4 = 4;
v5 = 3;
v6 = 2;
v7 = 1;
}
SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, v7, v2 == (_DWORD)v7);
SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, v6, v2 == v6);
SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, v5, v2 == v5);
return SetupTriggerPopup::updateCustomToggleTrigger((__int64)a1, v4, v2 == v4);
}