//
// SetupTriggerPopup::onToggleTriggerValue from 0x100131ef0 to 0x100131f6c (124 bytes)
//
// 1 xrefs:
// > SetupTriggerPopup::createToggleValueControlAdvanced @ 0x100131e10
//
// 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 SetupTriggerPopup::onToggleTriggerValue(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v2; // x19
__int64 v4; // x0
int v5; // w21
char v6; // w8
bool m_disableTextDelegate; // w22
v2 = a2;
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v5 = v4;
v6 = (char)v2[7].__vftable;
m_disableTextDelegate = a1->m_disableTextDelegate;
a1->m_disableTextDelegate = 1;
LODWORD(v2) = (v6 & 1) == 0;
((void (__fastcall *)(SetupTriggerPopup *, __int64, bool))a1->updateToggleItem)(a1, v4, (v6 & 1) == 0);
SetupTriggerPopup::valueChanged(a1, v5, (float)(unsigned int)v2);
a1->m_disableTextDelegate = m_disableTextDelegate;
}