//
// SetupTriggerPopup::toggleDisableButtons from 0x10023aa70 to 0x10023ab6c (252 bytes)
//
// 4 xrefs:
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c75f0
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c893f
// > SetupShaderEffectPopup::valueDidChange @ 0x1002d068e
// > SetupShaderEffectPopup::toggleGroup @ 0x1002d09b7
//
// 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::toggleDisableButtons(SetupTriggerPopup *a1, bool a2)
{
cocos2d::CCDictionary *m_disableButtons; // rax
cocos2d::CCDictElement *m_pElements; // rax
cocos2d::CCDictElement *next; // r12
cocos2d::CCObject *m_pObject; // r14
cocos2d::CCDictionary *m_inputNodes; // r15
intptr_t v7; // rsi
cocos2d::CCObject *v8; // rax
unsigned __int8 v9; // al
unsigned int v10; // r15d
cocos2d::CCObject *v11; // rbx
m_disableButtons = a1->m_disableButtons;
if ( m_disableButtons )
{
m_pElements = m_disableButtons->m_pElements;
if ( m_pElements )
{
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
if ( a2 )
{
while ( 1 )
{
m_pObject = m_pElements->m_pObject;
m_inputNodes = a1->m_inputNodes;
v7 = ((int (__fastcall *)(cocos2d::CCObject *))m_pObject->getTag)(m_pObject);
v8 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v7);
v9 = v8 ? ((unsigned __int64 (__fastcall *)(cocos2d::CCObject *))v8->__vftable[4].~CCObject_0)(v8) : 1;
v10 = v9;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[4].~CCObject)(m_pObject, v9);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))m_pObject->__vftable[13].copyWithZone)(m_pObject, v10);
if ( !next )
break;
m_pElements = next;
next = (cocos2d::CCDictElement *)next->hh.next;
}
}
else
{
v11 = m_pElements->m_pObject;
while ( 1 )
{
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v11->__vftable[4].~CCObject)(v11, 0);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v11->__vftable[13].copyWithZone)(v11, 0);
if ( !next )
break;
v11 = next->m_pObject;
next = (cocos2d::CCDictElement *)next->hh.next;
}
}
}
}
}