//
// GameManager::updateCustomFPS from 0x14018ac40 to 0x14018acf0 (176 bytes)
//
// 4 xrefs:
// > LoadingLayer::loadAssets @ 0x14032f5cc
// > MoreVideoOptionsLayer::onToggle @ 0x14037af16
// > MoreVideoOptionsLayer::onApplyFPS @ 0x14037b28f
// > ??> @ 0x1406cb748
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void GameManager::updateCustomFPS(GameManager *a1)
{
GameManager *v1; // rcx
__int64 v2; // rcx
__int64 v3; // rax
void *v4; // [rsp+38h] [rbp+10h]
v1 = (GameManager *)qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v4 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v1 = (GameManager *)qword_1406C2ED8;
}
if ( GameManager::getGameVariable(v1, "0116") )
{
v3 = cocos2d::CCDirector::sharedDirector(v2);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 80LL))(v3);
}
}