//
// UIObjectSettingsPopup::onCustomToggleTriggerValue from 0x10048be4c to 0x10048bf20 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x100973038
//
// 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:51 +0000
//
__int64 __fastcall UIObjectSettingsPopup::onCustomToggleTriggerValue(_QWORD *a1, __int64 a2)
{
int v3; // w0
int v4; // w20
int v5; // w21
int v6; // w22
int v7; // w23
int v8; // w1
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = v3;
if ( v3 > 4 )
{
sub_1001AFA70(a1, 386, (float)(unsigned int)v3);
v5 = 8;
v6 = 7;
v7 = 6;
v8 = 5;
}
else
{
sub_1001AFA70(a1, 385, (float)v3);
v5 = 4;
v6 = 3;
v7 = 2;
v8 = 1;
}
sub_1001B0178((__int64)a1, v8, v4 == v8);
sub_1001B0178((__int64)a1, v7, v4 == v7);
sub_1001B0178((__int64)a1, v6, v4 == v6);
return sub_1001B0178((__int64)a1, v5, v4 == v5);
}