//
// SetupGameplayOffsetPopup::onCustomToggleTriggerValue from 0xb2641c to 0xb264bc (160 bytes)
//
// 2 xrefs:
// > ??> @ 0xb90c8
// > ??> @ 0x14b6100
//
// 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 13:01:38 +0000
//
__int64 __fastcall SetupGameplayOffsetPopup::onCustomToggleTriggerValue(
cocos2d::CCDictionary **this,
cocos2d::CCObject *a2)
{
int v3; // w20
unsigned __int8 v4; // w2
unsigned __int8 v5; // w21
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == (int)(*((float (__fastcall **)(cocos2d::CCDictionary **, __int64))*this + 183))(this, 101) )
{
v5 = 0;
v4 = 0;
v3 = 0;
}
else
{
v4 = v3 == 1;
v5 = v3 == 2;
}
SetupTriggerPopup::updateCustomToggleTrigger(this, 1, v4);
SetupTriggerPopup::updateCustomToggleTrigger(this, 2, v5);
return SetupTriggerPopup::updateValue(this, 0x65u, (float)v3);
}