//
// SetupTriggerPopup::toggleDisableButtons from 0x9e6044 to 0x9e6110 (204 bytes)
//
// 5 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0x9fbaec
// > SetupShaderEffectPopup::valueDidChange @ 0x9fbd0c
// > SetupShaderEffectPopup::setupShockWave @ 0x9fdad0
// > SetupShaderEffectPopup::setupShockLine @ 0x9feffc
// > ??> @ 0x359a0
//
// 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::toggleDisableButtons(SetupTriggerPopup *a1, bool a2)
{
cocos2d::CCDictionary *m_disableButtons; // x2
_BOOL4 v3; // w22
cocos2d::CCDictElement *m_pElements; // x19
_QWORD *next; // x20
cocos2d::CCObject *m_pObject; // x19
_BOOL4 v8; // w21
cocos2d::CCObject_vtbl *v9; // x2
cocos2d::CCObject *v10; // x0
_QWORD *v11; // x19
cocos2d::CCDictionary *m_inputNodes; // x24
int v13; // w0
cocos2d::CCObject *v14; // x0
m_disableButtons = a1->m_disableButtons;
v3 = a2;
if ( m_disableButtons )
{
m_pElements = m_disableButtons->m_pElements;
if ( m_pElements )
{
next = m_pElements->hh.next;
m_pObject = m_pElements->m_pObject;
if ( a2 )
goto LABEL_7;
LABEL_4:
v8 = 0;
while ( 1 )
{
((void (__fastcall *)(cocos2d::CCObject *, _BOOL4))m_pObject->__vftable[4].~CCObject)(m_pObject, v8);
v9 = m_pObject->__vftable;
v10 = m_pObject;
v11 = next;
v9[13].copyWithZone(v10, (cocos2d::CCZone *)v8);
if ( !next )
break;
next = (_QWORD *)next[36];
m_pObject = (cocos2d::CCObject *)v11[33];
if ( !v3 )
goto LABEL_4;
LABEL_7:
m_inputNodes = a1->m_inputNodes;
v8 = v3;
v13 = m_pObject->getTag(m_pObject);
v14 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v13);
if ( v14 && !((unsigned __int8 (__fastcall *)(cocos2d::CCObject *))v14->__vftable[4].~CCObject_0)(v14) )
goto LABEL_4;
}
}
}
}