//
// SetupTriggerPopup::toggleDisableButtons from 0x67719c to 0x67721c (128 bytes)
//
// 4 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0x687e98
// > SetupShaderEffectPopup::setupShockWave @ 0x688d68
// > SetupShaderEffectPopup::setupShockLine @ 0x6898bc
// > SetupShaderEffectPopup::valueDidChange @ 0x68e204
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:56 +0000
//
int __fastcall SetupTriggerPopup::toggleDisableButtons(int this, int a2)
{
int v2; // r8
int v3; // r3
int v5; // r3
int v6; // r4
int v7; // r5
int v8; // r6
int v9; // r2
cocos2d::CCDictionary *v10; // r6
int v11; // r0
int v12; // r0
v2 = this;
v3 = *(_DWORD *)(this + 588);
if ( v3 )
{
v5 = *(_DWORD *)(v3 + 52);
if ( v5 )
v6 = *(_DWORD *)(v5 + 272);
else
v6 = 0;
while ( v5 )
{
v7 = *(_DWORD *)(v5 + 260);
if ( a2
&& ((v10 = *(cocos2d::CCDictionary **)(v2 + 576),
v11 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)v7 + 32))(*(_DWORD *)(v5 + 260)),
(v12 = cocos2d::CCDictionary::objectForKey(v10, v11)) == 0)
|| (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 176))(v12)) )
{
v8 = a2;
}
else
{
v8 = 0;
}
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 172))(v7, v8);
this = (*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 528))(v7, v8);
if ( v6 )
v9 = *(_DWORD *)(v6 + 272);
else
v9 = 0;
v5 = v6;
v6 = v9;
}
}
return this;
}