//
// MoreVideoOptionsLayer::updateFPSButtons from 0x100884000 to 0x100884092 (146 bytes)
//
// 1 xrefs:
// > MoreVideoOptionsLayer::onToggle @ 0x100883963
//
// 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 MoreVideoOptionsLayer::updateFPSButtons(__int64 a1)
{
__int64 v1; // rax
unsigned __int8 GameVariable; // r14
unsigned int v3; // r15d
__int64 v4; // rax
v1 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v1, "0116");
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 712)) )
{
v3 = 0;
do
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 712), v3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, GameVariable);
++v3;
}
while ( v3 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 712)) );
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 1000LL))(
*(_QWORD *)(a1 + 704),
GameVariable);
}