//
// MoreVideoOptionsLayer::updateFPSButtons from 0x8efbac to 0x8efc38 (140 bytes)
//
// 2 xrefs:
// > MoreVideoOptionsLayer::onToggle @ 0x8f6388
// > ??> @ 0xa1a10
//
// 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:56:57 +0000
//
__int64 __fastcall MoreVideoOptionsLayer::updateFPSButtons(cocos2d::CCArray **this)
{
GameManager *v2; // x0
unsigned int v3; // w19
unsigned int i; // w21
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
v2 = (GameManager *)GameManager::sharedState((GameManager *)this);
v3 = 0;
for ( i = (unsigned __int8)GameManager::getGameVariable(v2, "0116");
;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, i) )
{
v6 = v3 >= (unsigned int)cocos2d::CCArray::count(*(this + 89));
v7 = v3++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*(this + 89), v7);
}
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 88) + 1000LL))(*(this + 88), i);
}