//
// sub_10011822C from 0x10011822c to 0x100118308 (220 bytes)
//
// 2 xrefs:
// > ParentalOptionsLayer::updateToggleStates @ 0x1001176d0
// > ParentalOptionsLayer::updateToggleStates @ 0x1001176e8
//
// 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 10:59:11 +0000
//
void __fastcall sub_10011822C(__int64 a1, __int64 a2, int a3)
{
__int16 v5; // w8
__int64 v6; // x21
__int64 v7; // x22
__int64 v8; // x23
unsigned int v9; // w0
unsigned int v10; // w8
__int16 v11; // [xsp+Ch] [xbp-34h] BYREF
char v12; // [xsp+Eh] [xbp-32h]
if ( a2 )
{
if ( a3 )
{
v12 = -106;
v5 = -26986;
}
else
{
v5 = -1;
v12 = -1;
}
v11 = v5;
if ( (unsigned int)sub_1002E757C(a2) >= 2 )
{
v6 = 0;
do
{
v7 = sub_1002E75A0(a2, v6);
v8 = sub_1002E75A0(a2, (unsigned int)(v6 + 1));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1056LL))(v7, a3 ^ 1u);
sub_100224488(v7, &v11);
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1072LL))(v8, &v11);
v9 = sub_1002E757C(a2);
v10 = v6 + 3;
v6 = (unsigned int)(v6 + 2);
}
while ( v10 < v9 );
}
}
}