{"type": "func", "start": 5373758848, "end": 5373759066, "name": "MoreVideoOptionsLayer::updateFPSButtons", "pseudocode": "// \n// MoreVideoOptionsLayer::updateFPSButtons from 0x1404d0d80 to 0x1404d0e5a (218 bytes)\n// \n// 3 xrefs:\n// > MoreVideoOptionsLayer::init @ 0x1404cf1f6\n// > MoreVideoOptionsLayer::onToggle @ 0x1404d0d51\n// > <???> @ 0x140929738\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:33:00 +0000\n// \n\n__int64 __fastcall MoreVideoOptionsLayer::updateFPSButtons(__int64 a1)\n{\n  __int64 v2; // rcx\n  bool GameVariable; // si\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v7 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  GameVariable = GameManager::getGameVariable(v2, \"0116\");\n  for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 720)); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 720), i);\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, bool))(*(_QWORD *)v5 + 336LL))(v5, GameVariable);\n  }\n  return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 712) + 920LL))(\n           *(_QWORD *)(a1 + 712),\n           GameVariable);\n}", "assembly": "; \n; MoreVideoOptionsLayer::updateFPSButtons from 0x1404d0d80 to 0x1404d0e5a (218 bytes)\n; \n; 3 xrefs:\n; > MoreVideoOptionsLayer::init @ 0x1404cf1f6\n; > MoreVideoOptionsLayer::onToggle @ 0x1404d0d51\n; > <???> @ 0x140929738\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:33:00 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404d0d80\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1404d0d85\npush    rdi                                                            ; +0xa, 0x1404d0d8a\nsub     rsp, 20h                                                       ; +0xb, 0x1404d0d8b\nmov     rdi, rcx                                                       ; +0xf, 0x1404d0d8f\nmov     rcx, cs:qword_14090BFD0                                        ; +0x12, 0x1404d0d92\ntest    rcx, rcx                                                       ; +0x19, 0x1404d0d99\njnz     short loc_1404D0DD0                                            ; +0x1c, 0x1404d0d9c\nmov     ecx, 6E8h; Size                                                ; +0x1e, 0x1404d0d9e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x1404d0da3\nmov     [rsp+28h+arg_0], rax                                           ; +0x28, 0x1404d0da8\nmov     rcx, rax                                                       ; +0x2d, 0x1404d0dad\ncall    GameManager__GameManager                                       ; +0x30, 0x1404d0db0\nnop                                                                    ; +0x35, 0x1404d0db5\nmov     cs:qword_14090BFD0, rax                                        ; +0x36, 0x1404d0db6\nmov     rcx, [rax]                                                     ; +0x3d, 0x1404d0dbd\nmov     rdx, [rcx+48h]                                                 ; +0x40, 0x1404d0dc0\nmov     rcx, rax                                                       ; +0x44, 0x1404d0dc4\ncall    rdx                                                            ; +0x47, 0x1404d0dc7\nmov     rcx, cs:qword_14090BFD0                                        ; +0x49, 0x1404d0dc9\nlea     rdx, a0116; \"0116\"                                             ; +0x50, 0x1404d0dd0\ncall    GameManager__getGameVariable                                   ; +0x57, 0x1404d0dd7\nmovzx   esi, al                                                        ; +0x5c, 0x1404d0ddc\nxor     ebx, ebx                                                       ; +0x5f, 0x1404d0ddf\nmov     rcx, [rdi+2D0h]                                                ; +0x61, 0x1404d0de1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x68, 0x1404d0de8\ntest    eax, eax                                                       ; +0x6e, 0x1404d0dee\njz      short loc_1404D0E36                                            ; +0x70, 0x1404d0df0\nnop     dword ptr [rax+00h]                                            ; +0x72, 0x1404d0df2\nnop     word ptr [rax+rax+00000000h]                                   ; +0x76, 0x1404d0df6\nmov     edx, ebx                                                       ; +0x80, 0x1404d0e00\nmov     rcx, [rdi+2D0h]                                                ; +0x82, 0x1404d0e02\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x89, 0x1404d0e09\nmov     rcx, [rax]                                                     ; +0x8f, 0x1404d0e0f\nmov     r8, [rcx+150h]                                                 ; +0x92, 0x1404d0e12\nmovzx   edx, sil                                                       ; +0x99, 0x1404d0e19\nmov     rcx, rax                                                       ; +0x9d, 0x1404d0e1d\ncall    r8                                                             ; +0xa0, 0x1404d0e20\ninc     ebx                                                            ; +0xa3, 0x1404d0e23\nmov     rcx, [rdi+2D0h]                                                ; +0xa5, 0x1404d0e25\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xac, 0x1404d0e2c\ncmp     ebx, eax                                                       ; +0xb2, 0x1404d0e32\njb      short loc_1404D0E00                                            ; +0xb4, 0x1404d0e34\nmov     rcx, [rdi+2C8h]                                                ; +0xb6, 0x1404d0e36\nmov     rax, [rcx]                                                     ; +0xbd, 0x1404d0e3d\nmovzx   edx, sil                                                       ; +0xc0, 0x1404d0e40\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc4, 0x1404d0e44\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc9, 0x1404d0e49\nadd     rsp, 20h                                                       ; +0xce, 0x1404d0e4e\npop     rdi                                                            ; +0xd2, 0x1404d0e52\njmp     qword ptr [rax+398h]                                           ; +0xd3, 0x1404d0e53", "xrefs": ["MoreVideoOptionsLayer::init @ 0x1404cf1f6", "MoreVideoOptionsLayer::onToggle @ 0x1404d0d51", "<???> @ 0x140929738"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}