{"type": "func", "start": 5372358480, "end": 5372358679, "name": "MoreVideoOptionsLayer::updateFPSButtons", "pseudocode": "// \n// MoreVideoOptionsLayer::updateFPSButtons from 0x14037af50 to 0x14037b017 (199 bytes)\n// \n// 3 xrefs:\n// > MoreVideoOptionsLayer::init @ 0x1403794d8\n// > MoreVideoOptionsLayer::onToggle @ 0x14037af1f\n// > <???> @ 0x1406d5cb4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid MoreVideoOptionsLayer::updateFPSButtons(MoreVideoOptionsLayer *a1)\n{\n  GameManager *v2; // rcx\n  bool GameVariable; // si\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  GameVariable = GameManager::getGameVariable(v2, \"0116\");\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_fpsNodes); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_fpsNodes, i);\n    ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v5->__vftable[4].update)(v5, GameVariable);\n  }\n  a1->m_fpsInput->setTouchEnabled(a1->m_fpsInput, GameVariable);\n}", "assembly": "; \n; MoreVideoOptionsLayer::updateFPSButtons from 0x14037af50 to 0x14037b017 (199 bytes)\n; \n; 3 xrefs:\n; > MoreVideoOptionsLayer::init @ 0x1403794d8\n; > MoreVideoOptionsLayer::onToggle @ 0x14037af1f\n; > <???> @ 0x1406d5cb4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14037af50\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14037af55\npush    rdi                                                            ; +0xa, 0x14037af5a\nsub     rsp, 20h                                                       ; +0xb, 0x14037af5b\nmov     rdi, rcx                                                       ; +0xf, 0x14037af5f\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x12, 0x14037af62\ntest    rcx, rcx                                                       ; +0x19, 0x14037af69\njnz     short loc_14037AF9D                                            ; +0x1c, 0x14037af6c\nmov     ecx, 668h; Size                                                ; +0x1e, 0x14037af6e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14037af73\nmov     [rsp+28h+arg_0], rax                                           ; +0x28, 0x14037af78\nmov     rcx, rax                                                       ; +0x2d, 0x14037af7d\ncall    sub_14017AB00                                                  ; +0x30, 0x14037af80\nnop                                                                    ; +0x35, 0x14037af85\nmov     cs:qword_1406C2ED8, rax                                        ; +0x36, 0x14037af86\nmov     rdx, [rax]                                                     ; +0x3d, 0x14037af8d\nmov     rcx, rax                                                       ; +0x40, 0x14037af90\ncall    qword ptr [rdx+48h]                                            ; +0x43, 0x14037af93\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x46, 0x14037af96\nlea     rdx, a0116; \"0116\"                                             ; +0x4d, 0x14037af9d\ncall    GameManager__getGameVariable                                   ; +0x54, 0x14037afa4\nmovzx   esi, al                                                        ; +0x59, 0x14037afa9\nxor     ebx, ebx                                                       ; +0x5c, 0x14037afac\nmov     rcx, [rdi+2B8h]                                                ; +0x5e, 0x14037afae\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x65, 0x14037afb5\ntest    eax, eax                                                       ; +0x6b, 0x14037afbb\njz      short loc_14037AFF3                                            ; +0x6d, 0x14037afbd\nnop                                                                    ; +0x6f, 0x14037afbf\nmov     edx, ebx                                                       ; +0x70, 0x14037afc0\nmov     rcx, [rdi+2B8h]                                                ; +0x72, 0x14037afc2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x14037afc9\nmov     r8, [rax]                                                      ; +0x7f, 0x14037afcf\nmovzx   edx, sil                                                       ; +0x82, 0x14037afd2\nmov     rcx, rax                                                       ; +0x86, 0x14037afd6\ncall    qword ptr [r8+140h]                                            ; +0x89, 0x14037afd9\ninc     ebx                                                            ; +0x90, 0x14037afe0\nmov     rcx, [rdi+2B8h]                                                ; +0x92, 0x14037afe2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x99, 0x14037afe9\ncmp     ebx, eax                                                       ; +0x9f, 0x14037afef\njb      short loc_14037AFC0                                            ; +0xa1, 0x14037aff1\nmov     rcx, [rdi+2B0h]                                                ; +0xa3, 0x14037aff3\nmov     rax, [rcx]                                                     ; +0xaa, 0x14037affa\nmovzx   edx, sil                                                       ; +0xad, 0x14037affd\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb1, 0x14037b001\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb6, 0x14037b006\nadd     rsp, 20h                                                       ; +0xbb, 0x14037b00b\npop     rdi                                                            ; +0xbf, 0x14037b00f\njmp     qword ptr [rax+388h]                                           ; +0xc0, 0x14037b010", "xrefs": ["MoreVideoOptionsLayer::init @ 0x1403794d8", "MoreVideoOptionsLayer::onToggle @ 0x14037af1f", "<???> @ 0x1406d5cb4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}