//
// SetupPickupTriggerPopup::onCustomToggleTriggerValue from 0x1000477a4 to 0x100047874 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008bb830
//
// 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 10:57:39 +0000
//
__int64 __fastcall SetupPickupTriggerPopup::onCustomToggleTriggerValue(__int64 a1, __int64 a2)
{
int v3; // w20
float v4; // s0
_BOOL8 v5; // x20
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 88) )
v3 = 0;
sub_1001B0178(a1, 1, v3 == 1);
sub_1001B0178(a1, 2, v3 == 2);
sub_1001AFA70(a1, 88, (float)v3);
v4 = (*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 88);
v5 = v4 != 0.0;
(*(void (__fastcall **)(__int64, __int64, bool))(*(_QWORD *)a1 + 1352LL))(a1, 1, v4 == 0.0);
return (*(__int64 (__fastcall **)(__int64, __int64, _BOOL8))(*(_QWORD *)a1 + 1352LL))(a1, 2, v5);
}