//
// SetupTriggerPopup::toggleDisableButtons from 0xb1bef0 to 0xb1bfbc (204 bytes)
//
// 5 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0xb31ca4
// > SetupShaderEffectPopup::setupShockWave @ 0xb330c0
// > SetupShaderEffectPopup::setupShockLine @ 0xb34040
// > SetupShaderEffectPopup::valueDidChange @ 0xb3b168
// > ??> @ 0x4ea60
//
// This function is hookable on this platform (idp: arm, 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 13:01:34 +0000
//
__int64 __fastcall SetupTriggerPopup::toggleDisableButtons(__int64 this, unsigned __int8 a2)
{
unsigned int v2; // w22
__int64 v3; // x2
__int64 v4; // x19
__int64 v5; // x20
__int64 v6; // x23
__int64 *v7; // x19
unsigned int v8; // w21
__int64 v9; // x2
__int64 *v10; // x0
__int64 v11; // x19
cocos2d::CCDictionary *v12; // x24
int v13; // w0
__int64 v14; // x0
v2 = a2;
v3 = *(_QWORD *)(this + 784);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 288);
v6 = this;
v7 = *(__int64 **)(v4 + 264);
if ( a2 )
goto LABEL_7;
LABEL_4:
v8 = 0;
while ( 1 )
{
(*(void (__fastcall **)(__int64 *, _QWORD))(*v7 + 344))(v7, v8);
v9 = *v7;
v10 = v7;
v11 = v5;
this = (*(__int64 (__fastcall **)(__int64 *, _QWORD))(v9 + 1056))(v10, v8);
if ( !v5 )
break;
v5 = *(_QWORD *)(v5 + 288);
v7 = *(__int64 **)(v11 + 264);
if ( !v2 )
goto LABEL_4;
LABEL_7:
v12 = *(cocos2d::CCDictionary **)(v6 + 760);
v8 = v2;
v13 = (*(__int64 (__fastcall **)(__int64 *))(*v7 + 64))(v7);
v14 = cocos2d::CCDictionary::objectForKey(v12, v13);
if ( v14 && !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v14 + 352LL))(v14) )
goto LABEL_4;
}
}
}
return this;
}