//
// MoreVideoOptionsLayer::onApplyFPS from 0x42651c to 0x426628 (268 bytes)
//
// 0 xrefs:
//
// 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
//
void MoreVideoOptionsLayer::onApplyFPS(MoreVideoOptionsLayer *a1, cocos2d::CCObject *a2)
{
double v3; // r0
cocos2d::CCString *v4; // r0
float v5; // s16
const char *v6; // r1
float v7; // r0
cocos2d::CCString *v8; // r0
char *CString; // r0
CCTextInputNode *m_fpsInput; // r7
char *v11; // r2
GameManager *v12; // r0
void *v13; // [sp+4h] [bp-10h] BYREF
char *v14; // [sp+8h] [bp-Ch] BYREF
CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a1->m_fpsInput);
v3 = atof(v14);
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%.03f",
(const char *)HIDWORD(v3),
v3);
v5 = cocos2d::CCString::floatValue(v4);
sub_774008(&v14);
v13 = &unk_ACDDA8;
if ( v5 < 60.0 )
v5 = 60.0;
if ( floorf(v5) == v5 )
{
v7 = floorf(v5);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(int)v7);
}
else
{
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v6, v5);
}
CString = (char *)cocos2d::CCString::getCString(v8);
sub_7753D4((int)&v13, CString);
m_fpsInput = a1->m_fpsInput;
sub_775C20(&v14);
CCTextInputNode::setString((int)m_fpsInput, (char *)&v14, v11);
sub_774008(&v14);
GameManager::sharedState()->m_customFPSTarget = v5;
v12 = GameManager::sharedState();
GameManager::updateCustomFPS(v12);
sub_774008(&v13);
}