//
// SetupOptionsTriggerPopup::onCustomToggleTriggerValue from 0x100413ed4 to 0x100413f88 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008229e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupOptionsTriggerPopup::onCustomToggleTriggerValue(
SetupOptionsTriggerPopup *a1,
cocos2d::CCObject *a2)
{
int v4; // w0
__int64 v5; // x21
int v6; // w0
bool v7; // w19
int v8; // w22
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v4 >= 0 )
v5 = (unsigned int)v4;
else
v5 = (unsigned int)-v4;
v6 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v7 = v6 < 1;
if ( v6 < 1 )
v8 = -1;
else
v8 = 1;
if ( v8 == (int)((float (__fastcall *)(SetupOptionsTriggerPopup *, __int64))a1->getValue)(a1, v5) )
{
v8 = 0;
v7 = 0;
}
SetupTriggerPopup::updateValue(a1, v5, (float)v8);
SetupTriggerPopup::updateCustomToggleTrigger(a1, v5, v8 == 1);
SetupTriggerPopup::updateCustomToggleTrigger(a1, -(int)v5, v7);
}