//
// SetupTriggerPopup::toggleDisableButtons from 0x140476bc0 to 0x140476c98 (216 bytes)
//
// 8 xrefs:
// > SetupShaderEffectPopup::setupShockWave @ 0x14044c4fe
// > SetupShaderEffectPopup::setupShockLine @ 0x14044d6fc
// > SetupShaderEffectPopup::valueDidChange @ 0x140454619
// > SetupShaderEffectPopup::toggleGroup @ 0x140454afb
// > SetupShaderEffectPopup::toggleGroup @ 0x140454b0b
// > ??> @ 0x1406a5964
// > ??> @ 0x1406a5974
// > ??> @ 0x1406db6cc
//
// 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; // rbx
cocos2d::CCDictElement *m_pElements; // rbx
cocos2d::CCDictElement *i; // rsi
cocos2d::CCObject *m_pObject; // rbx
bool v8; // di
int v9; // eax
struct cocos2d::CCObject *v10; // rax
m_disableButtons = a1->m_disableButtons;
if ( m_disableButtons )
{
m_pElements = m_disableButtons->m_pElements;
if ( m_pElements )
{
for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )
{
m_pObject = m_pElements->m_pObject;
v8 = a2;
if ( a2 )
{
v9 = m_pObject->getTag(m_pObject);
v10 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, v9);
if ( v10 )
{
if ( !((unsigned __int8 (__fastcall *)(struct cocos2d::CCObject *))v10->__vftable[4].encodeWithCoder)(v10) )
v8 = 0;
}
}
((void (__fastcall *)(cocos2d::CCObject *, bool))m_pObject->__vftable[4].update)(m_pObject, v8);
((void (__fastcall *)(cocos2d::CCObject *, bool))m_pObject->__vftable[12].getTag)(m_pObject, v8);
m_pElements = i;
if ( !i )
break;
}
}
}
}