//
// GameManager::updateCustomFPS from 0x71e6c0 to 0x71e744 (132 bytes)
//
// 4 xrefs:
// > LoadingLayer::loadAssets @ 0x6ede84
// > MoreVideoOptionsLayer::onToggle @ 0x8f63e0
// > MoreVideoOptionsLayer::onApplyFPS @ 0x8f8ea0
// > ??> @ 0x9eea8
//
// 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 12:52:22 +0000
//
__int64 __fastcall GameManager::updateCustomFPS(GameManager *this)
{
GameManager *v2; // x0
__int64 result; // x0
__int64 v4; // x0
__int64 v5; // x0
v2 = (GameManager *)GameManager::sharedState(this);
result = (unsigned __int8)GameManager::getGameVariable(v2, "0116");
if ( (_BYTE)result )
{
if ( *((float *)this + 276) > 60.0 )
{
v5 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 96LL))(
v5,
(float)(1.0 / *((float *)this + 276)));
}
else
{
v4 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)result);
return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 96LL))(v4, 0.0166666675);
}
}
return result;
}