//
// SetupTriggerPopup::toggleDisableButtons from 0x14060e340 to 0x14060e418 (216 bytes)
//
// 8 xrefs:
// > SetupShaderEffectPopup::setupShockWave @ 0x1405e1be1
// > SetupShaderEffectPopup::setupShockLine @ 0x1405e2df9
// > SetupShaderEffectPopup::valueDidChange @ 0x1405e9eab
// > SetupShaderEffectPopup::toggleGroup @ 0x1405ea39e
// > SetupShaderEffectPopup::toggleGroup @ 0x1405ea3ae
// > ??> @ 0x1408e52b0
// > ??> @ 0x1408e52c0
// > ??> @ 0x14092fe94
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:15 +0000
//
void __fastcall SetupTriggerPopup::toggleDisableButtons(__int64 a1, unsigned __int8 a2)
{
__int64 v2; // rdi
__int64 v5; // rdi
__int64 i; // rsi
__int64 v7; // rdi
unsigned __int8 v8; // bl
int v9; // eax
struct cocos2d::CCObject *v10; // rax
v2 = *(_QWORD *)(a1 + 784);
if ( v2 )
{
v5 = *(_QWORD *)(v2 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
v7 = *(_QWORD *)(v5 + 264);
v8 = a2;
if ( a2 )
{
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 56LL))(v7);
v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 760), v9);
if ( v10 )
{
if ( !(*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v10 + 344LL))(v10) )
v8 = 0;
}
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 936LL))(v7, v8);
v5 = i;
if ( !i )
break;
}
}
}
}