//
// sub_100116680 from 0x100116680 to 0x100116708 (136 bytes)
//
// 1 xrefs:
// > MoreVideoOptionsLayer::onToggle @ 0x1001162f8
//
// 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
//
__int64 __fastcall sub_100116680(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x21
__int64 v6; // x0
v2 = GameManager::sharedState(a1);
GameManager::getGameVariable(v2, "0116");
v4 = v3;
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 712)) )
{
v5 = 0;
do
{
v6 = sub_1002E75A0(*(_QWORD *)(a1 + 712), v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, v4);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 712)) );
}
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 704) + 1000LL))(*(_QWORD *)(a1 + 704), v4);
}