//
// MoreVideoOptionsLayer::updateFPSButtons from 0x1404d0d80 to 0x1404d0e5a (218 bytes)
//
// 3 xrefs:
// > MoreVideoOptionsLayer::init @ 0x1404cf1f6
// > MoreVideoOptionsLayer::onToggle @ 0x1404d0d51
// > ??> @ 0x140929738
//
// 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:33:00 +0000
//
__int64 __fastcall MoreVideoOptionsLayer::updateFPSButtons(__int64 a1)
{
__int64 v2; // rcx
bool GameVariable; // si
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
void *v7; // [rsp+30h] [rbp+8h]
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
GameVariable = GameManager::getGameVariable(v2, "0116");
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 720)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 720), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *, bool))(*(_QWORD *)v5 + 336LL))(v5, GameVariable);
}
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 712) + 920LL))(
*(_QWORD *)(a1 + 712),
GameVariable);
}