//
// SetupGravityTriggerPopup::valueDidChange from 0x1004bf8a0 to 0x1004bf930 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b5b058
//
// 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:31:05 +0000
//
unsigned __int64 __fastcall SetupGravityTriggerPopup::valueDidChange(_QWORD *a1, int a2, float a3)
{
unsigned __int64 result; // rax
unsigned __int64 v4; // rcx
result = (unsigned int)(a2 - 138);
if ( (unsigned int)result <= 0x3F )
{
v4 = 0xC000000000000001LL;
if ( _bittest64((const __int64 *)&v4, result) )
{
if ( a3 != 0.0 )
{
if ( a2 == 138 )
{
SetupTriggerPopup::updateValue(a1, 0xC8u, 0.0);
return SetupTriggerPopup::updateValue(a1, 0xC9u, 0.0);
}
SetupTriggerPopup::updateValue(a1, 0x8Au, 0.0);
if ( a2 == 200 )
return SetupTriggerPopup::updateValue(a1, 0xC9u, 0.0);
result = SetupTriggerPopup::updateValue(a1, 0xC8u, 0.0);
if ( a2 != 201 )
return SetupTriggerPopup::updateValue(a1, 0xC9u, 0.0);
}
}
}
return result;
}