//
// SetupTriggerPopup::onToggleTriggerValue from 0x140477b80 to 0x140477c04 (132 bytes)
//
// 2 xrefs:
// > SetupTriggerPopup::createToggleValueControl @ 0x140476eef
// > ??> @ 0x1406db78c
//
// 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 SetupTriggerPopup::onToggleTriggerValue(SetupTriggerPopup *a1, cocos2d::CCObject *a2)
{
cocos2d::CCObject *v3; // rbx
unsigned int v4; // eax
bool m_disableTextDelegate; // di
SetupTriggerPopup_vtbl *v6; // r9
int v7; // esi
v3 = a2;
v4 = a2->getTag(a2);
m_disableTextDelegate = a1->m_disableTextDelegate;
v6 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
LOBYTE(v3) = LOBYTE(v3[7].__vftable) == 0;
a1->m_disableTextDelegate = 1;
v7 = v4;
v6->updateToggleItem(a1, v4, (bool)v3);
SetupTriggerPopup::valueChanged(a1, v7, (float)(unsigned __int8)v3);
a1->m_disableTextDelegate = m_disableTextDelegate;
}