{"type": "func", "start": 5370326080, "end": 5370326256, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x14018ac40 to 0x14018acf0 (176 bytes)\n// \n// 4 xrefs:\n// > LoadingLayer::loadAssets @ 0x14032f5cc\n// > MoreVideoOptionsLayer::onToggle @ 0x14037af16\n// > MoreVideoOptionsLayer::onApplyFPS @ 0x14037b28f\n// > <???> @ 0x1406cb748\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\n// Hidden C++ exception states: #wind=1\nvoid GameManager::updateCustomFPS(GameManager *a1)\n{\n  GameManager *v1; // rcx\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  void *v4; // [rsp+38h] [rbp+10h]\n\n  v1 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v4 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v1 = (GameManager *)qword_1406C2ED8;\n  }\n  if ( GameManager::getGameVariable(v1, \"0116\") )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(v2);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 80LL))(v3);\n  }\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x14018ac40 to 0x14018acf0 (176 bytes)\n; \n; 4 xrefs:\n; > LoadingLayer::loadAssets @ 0x14032f5cc\n; > MoreVideoOptionsLayer::onToggle @ 0x14037af16\n; > MoreVideoOptionsLayer::onApplyFPS @ 0x14037b28f\n; > <???> @ 0x1406cb748\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\npush    rbx                                                            ; +0x0, 0x14018ac40\nsub     rsp, 20h                                                       ; +0x2, 0x14018ac42\nmov     rbx, rcx                                                       ; +0x6, 0x14018ac46\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x14018ac49\ntest    rcx, rcx                                                       ; +0x10, 0x14018ac50\njnz     short loc_14018AC84                                            ; +0x13, 0x14018ac53\nmov     ecx, 668h; Size                                                ; +0x15, 0x14018ac55\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14018ac5a\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14018ac5f\nmov     rcx, rax                                                       ; +0x24, 0x14018ac64\ncall    sub_14017AB00                                                  ; +0x27, 0x14018ac67\nnop                                                                    ; +0x2c, 0x14018ac6c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x14018ac6d\nmov     rdx, [rax]                                                     ; +0x34, 0x14018ac74\nmov     rcx, rax                                                       ; +0x37, 0x14018ac77\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x14018ac7a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x14018ac7d\nlea     rdx, a0116; \"0116\"                                             ; +0x44, 0x14018ac84\ncall    GameManager__getGameVariable                                   ; +0x4b, 0x14018ac8b\ntest    al, al                                                         ; +0x50, 0x14018ac90\njz      short loc_14018ACEA                                            ; +0x52, 0x14018ac92\nmovss   xmm0, dword ptr [rbx+430h]                                     ; +0x54, 0x14018ac94\ncomiss  xmm0, cs:dword_140623210                                       ; +0x5c, 0x14018ac9c\njbe     short loc_14018ACCD                                            ; +0x63, 0x14018aca3\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x14018aca5\nmovss   xmm0, cs:flt_140622C24                                         ; +0x6b, 0x14018acab\ndivss   xmm0, dword ptr [rbx+430h]                                     ; +0x73, 0x14018acb3\ncvtps2pd xmm1, xmm0                                                    ; +0x7b, 0x14018acbb\nmov     rdx, [rax]                                                     ; +0x7e, 0x14018acbe\nmov     rcx, rax                                                       ; +0x81, 0x14018acc1\nadd     rsp, 20h                                                       ; +0x84, 0x14018acc4\npop     rbx                                                            ; +0x88, 0x14018acc8\njmp     qword ptr [rdx+50h]                                            ; +0x89, 0x14018acc9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8d, 0x14018accd\nmovsd   xmm1, cs:qword_140622C60                                       ; +0x93, 0x14018acd3\nmov     rdx, [rax]                                                     ; +0x9b, 0x14018acdb\nmov     rcx, rax                                                       ; +0x9e, 0x14018acde\nadd     rsp, 20h                                                       ; +0xa1, 0x14018ace1\npop     rbx                                                            ; +0xa5, 0x14018ace5\njmp     qword ptr [rdx+50h]                                            ; +0xa6, 0x14018ace6\nadd     rsp, 20h                                                       ; +0xaa, 0x14018acea\npop     rbx                                                            ; +0xae, 0x14018acee\nretn                                                                   ; +0xaf, 0x14018acef", "xrefs": ["LoadingLayer::loadAssets @ 0x14032f5cc", "MoreVideoOptionsLayer::onToggle @ 0x14037af16", "MoreVideoOptionsLayer::onApplyFPS @ 0x14037b28f", "<???> @ 0x1406cb748"], "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"}