//
// sub_1008857C0 from 0x1008857c0 to 0x100885842 (130 bytes)
//
// 2 xrefs:
// > ParentalOptionsLayer::init @ 0x1008846f9
// > sub_100886250 @ 0x10088626e
//
// 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 12:36:58 +0000
//
__int64 __fastcall sub_1008857C0(_QWORD *a1)
{
__int64 v2; // rax
unsigned __int8 v3; // r15
__int64 v4; // rax
unsigned __int8 v5; // al
__int64 v6; // rdi
unsigned int v7; // r14d
__int64 v8; // rdi
v2 = GameManager::sharedState();
v3 = GameManager::offlineModeEnabled(v2);
v4 = GameManager::sharedState();
v5 = GameManager::safeModeEnabled(v4);
v6 = a1[87];
v7 = v5;
if ( v6 )
CCMenuItemToggler::toggle(v6, v5);
v8 = a1[88];
if ( v8 )
CCMenuItemToggler::toggle(v8, v3);
sub_100886B40(v8, a1[90], v3);
return sub_100886B40(v8, a1[91], v7);
}