{"type": "func", "start": 5371363328, "end": 5371363513, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x140288000 to 0x1402880b9 (185 bytes)\n// \n// 4 xrefs:\n// > LoadingLayer::loadAssets @ 0x14046a1d8\n// > MoreVideoOptionsLayer::onToggle @ 0x1404d0d49\n// > MoreVideoOptionsLayer::onApplyFPS @ 0x1404d10c6\n// > <???> @ 0x14091d1b0\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:29:03 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 GameManager::updateCustomFPS()\n{\n  __int64 v0; // rcx\n  __int64 result; // rax\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  void *v4; // [rsp+38h] [rbp+10h]\n\n  v0 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v4 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v0 = qword_14090BFD0;\n  }\n  result = GameManager::getGameVariable(v0, \"0116\");\n  if ( (_BYTE)result )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(v2);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 80LL))(v3);\n  }\n  return result;\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x140288000 to 0x1402880b9 (185 bytes)\n; \n; 4 xrefs:\n; > LoadingLayer::loadAssets @ 0x14046a1d8\n; > MoreVideoOptionsLayer::onToggle @ 0x1404d0d49\n; > MoreVideoOptionsLayer::onApplyFPS @ 0x1404d10c6\n; > <???> @ 0x14091d1b0\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:29:03 +0000\n; \npush    rbx                                                            ; +0x0, 0x140288000\nsub     rsp, 20h                                                       ; +0x2, 0x140288002\nmov     rbx, rcx                                                       ; +0x6, 0x140288006\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9, 0x140288009\ntest    rcx, rcx                                                       ; +0x10, 0x140288010\njnz     short loc_140288047                                            ; +0x13, 0x140288013\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x140288015\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14028801a\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14028801f\nmov     rcx, rax                                                       ; +0x24, 0x140288024\ncall    GameManager__GameManager                                       ; +0x27, 0x140288027\nnop                                                                    ; +0x2c, 0x14028802c\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x14028802d\nmov     rcx, [rax]                                                     ; +0x34, 0x140288034\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140288037\nmov     rcx, rax                                                       ; +0x3b, 0x14028803b\ncall    rdx                                                            ; +0x3e, 0x14028803e\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x140288040\nlea     rdx, a0116; \"0116\"                                             ; +0x47, 0x140288047\ncall    GameManager__getGameVariable                                   ; +0x4e, 0x14028804e\ntest    al, al                                                         ; +0x53, 0x140288053\njz      short loc_1402880B3                                            ; +0x55, 0x140288055\nmovss   xmm0, dword ptr [rbx+470h]                                     ; +0x57, 0x140288057\ncomiss  xmm0, cs:dword_1408356E4                                       ; +0x5f, 0x14028805f\njbe     short loc_140288093                                            ; +0x66, 0x140288066\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x68, 0x140288068\nmovss   xmm0, cs:flt_140835080                                         ; +0x6e, 0x14028806e\ndivss   xmm0, dword ptr [rbx+470h]                                     ; +0x76, 0x140288076\ncvtps2pd xmm1, xmm0                                                    ; +0x7e, 0x14028807e\nmov     rcx, [rax]                                                     ; +0x81, 0x140288081\nmov     rdx, [rcx+50h]                                                 ; +0x84, 0x140288084\nmov     rcx, rax                                                       ; +0x88, 0x140288088\nadd     rsp, 20h                                                       ; +0x8b, 0x14028808b\npop     rbx                                                            ; +0x8f, 0x14028808f\njmp     rdx                                                            ; +0x90, 0x140288090\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x93, 0x140288093\nmovsd   xmm1, cs:qword_1408350B8                                       ; +0x99, 0x140288099\nmov     rcx, [rax]                                                     ; +0xa1, 0x1402880a1\nmov     rdx, [rcx+50h]                                                 ; +0xa4, 0x1402880a4\nmov     rcx, rax                                                       ; +0xa8, 0x1402880a8\nadd     rsp, 20h                                                       ; +0xab, 0x1402880ab\npop     rbx                                                            ; +0xaf, 0x1402880af\njmp     rdx                                                            ; +0xb0, 0x1402880b0\nadd     rsp, 20h                                                       ; +0xb3, 0x1402880b3\npop     rbx                                                            ; +0xb7, 0x1402880b7\nretn                                                                   ; +0xb8, 0x1402880b8", "xrefs": ["LoadingLayer::loadAssets @ 0x14046a1d8", "MoreVideoOptionsLayer::onToggle @ 0x1404d0d49", "MoreVideoOptionsLayer::onApplyFPS @ 0x1404d10c6", "<???> @ 0x14091d1b0"], "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"}