//
// SetupGameplayOffsetPopup::onCustomToggleTriggerValue from 0x140442820 to 0x1404428c7 (167 bytes)
//
// 3 xrefs:
// > ??> @ 0x1405ed298
// > ??> @ 0x1405f7ec8
// > ??> @ 0x1406da43c
//
// 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
//
// Merged with: SetupGameplayOffsetPopup::onCustomToggleTriggerValue, SetupStaticCameraPopup::onCustomToggleTriggerValue
void __fastcall SetupGameplayOffsetPopup::onCustomToggleTriggerValue(SetupTriggerPopup *a1, __int64 a2)
{
int v3; // ebx
int v4; // edi
CCMenuItemToggler *v5; // rax
CCMenuItemToggler *v6; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = 0;
if ( (int)a1->getValue(a1, 101) != v3 )
v4 = v3;
v5 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 1);
if ( v5 )
CCMenuItemToggler::toggle(v5, v4 == 1);
v6 = (CCMenuItemToggler *)cocos2d::CCDictionary::objectForKey(a1->m_customValueToggles, 2);
if ( v6 )
CCMenuItemToggler::toggle(v6, v4 == 2);
SetupTriggerPopup::updateValue(a1, 101, (float)v4);
}