//
// GameManager::updateCustomFPS from 0x140288000 to 0x1402880b9 (185 bytes)
//
// 4 xrefs:
// > LoadingLayer::loadAssets @ 0x14046a1d8
// > MoreVideoOptionsLayer::onToggle @ 0x1404d0d49
// > MoreVideoOptionsLayer::onApplyFPS @ 0x1404d10c6
// > ??> @ 0x14091d1b0
//
// 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 11:29:03 +0000
//
// Hidden C++ exception states: #wind=1
__int64 GameManager::updateCustomFPS()
{
__int64 v0; // rcx
__int64 result; // rax
__int64 v2; // rcx
__int64 v3; // rax
void *v4; // [rsp+38h] [rbp+10h]
v0 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v4 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v0 = qword_14090BFD0;
}
result = GameManager::getGameVariable(v0, "0116");
if ( (_BYTE)result )
{
v3 = cocos2d::CCDirector::sharedDirector(v2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 80LL))(v3);
}
return result;
}