//
// sub_1001AFB84 from 0x1001afb84 to 0x1001afc40 (188 bytes)
//
// 4 xrefs:
// > sub_100214FE0 @ 0x100215d20
// > sub_100215F28 @ 0x100216bc4
// > SetupShaderEffectPopup::valueDidChange @ 0x10021cd8c
// > SetupShaderEffectPopup::toggleGroup @ 0x10021d02c
//
// 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 11:00:07 +0000
//
__int64 __fastcall sub_1001AFB84(__int64 result, int a2)
{
__int64 v2; // x8
__int64 v3; // x23
__int64 v5; // x20
__int64 v6; // x21
__int64 v7; // x22
int v8; // w0
__int64 v9; // x0
__int64 v10; // x22
v2 = *(_QWORD *)(result + 784);
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 56);
if ( v3 )
{
v5 = result;
do
{
v6 = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
if ( a2 )
{
v7 = *(_QWORD *)(v5 + 760);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);
v9 = cocos2d::CCDictionary::objectForKey_1(v7, v8);
if ( v9 )
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 352LL))(v9);
else
v10 = 1;
}
else
{
v10 = 0;
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, v10);
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1056LL))(v6, v10);
}
while ( v3 );
}
}
return result;
}