//
// SetItemIDLayer::onCustomToggleTriggerValue from 0x10049c134 to 0x10049c23c (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097c558
//
// 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:59 +0000
//
__int64 __fastcall SetItemIDLayer::onCustomToggleTriggerValue(_QWORD *a1, __int64 a2)
{
int v3; // w20
float (__fastcall *v4)(_QWORD *, __int64); // x8
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1464LL);
if ( (unsigned int)(v3 - 1) > 1 )
{
if ( v3 == (int)v4(a1, 390) )
v3 = 0;
sub_1001AFA70(a1, 390, (float)v3);
sub_1001B0178((__int64)a1, -1, v3 == -1);
sub_1001B0178((__int64)a1, -2, v3 == -2);
sub_1001B0178((__int64)a1, -3, v3 == -3);
return sub_1001AFA70(a1, 80, 0.0);
}
else
{
if ( v3 == (int)v4(a1, 391) )
v3 = 0;
sub_1001AFA70(a1, 391, (float)(unsigned int)v3);
sub_1001B0178((__int64)a1, 1, v3 == 1);
return sub_1001B0178((__int64)a1, 2, v3 == 2);
}
}