{"type": "func", "start": 4298601536, "end": 4298601729, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x100377440 to 0x100377501 (193 bytes)\n// \n// 3 xrefs:\n// > LoadingLayer::loadAssets @ 0x10038c7ed\n// > MoreVideoOptionsLayer::onToggle @ 0x100883943\n// > MoreVideoOptionsLayer::onApplyFPS @ 0x1008841d2\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 12:29:04 +0000\n// \n\n__int64 __fastcall GameManager::updateCustomFPS(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 result; // rax\n  __int64 v4; // rax\n  double v5; // xmm0_8\n  void *v6; // r14\n  float v7; // [rsp+Ch] [rbp-14h]\n\n  v2 = qword_100BE3098;\n  if ( qword_100BE3098 )\n  {\n    result = GameManager::getGameVariable(qword_100BE3098, \"0116\");\n    if ( !(_BYTE)result )\n      return result;\n  }\n  else\n  {\n    v6 = operator new(0x6B8u);\n    sub_100377960(v6);\n    qword_100BE3098 = (__int64)v6;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v6 + 80LL))(v6);\n    v2 = qword_100BE3098;\n    result = GameManager::getGameVariable(qword_100BE3098, \"0116\");\n    if ( !(_BYTE)result )\n      return result;\n  }\n  v7 = *(float *)(a1 + 1104);\n  v4 = cocos2d::CCDirector::sharedDirector(v2, \"0116\");\n  if ( v7 <= 60.0 )\n    v5 = 0.01666666753590107;\n  else\n    v5 = (float)(1.0 / *(float *)(a1 + 1104));\n  return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 96LL))(v4, v5);\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x100377440 to 0x100377501 (193 bytes)\n; \n; 3 xrefs:\n; > LoadingLayer::loadAssets @ 0x10038c7ed\n; > MoreVideoOptionsLayer::onToggle @ 0x100883943\n; > MoreVideoOptionsLayer::onApplyFPS @ 0x1008841d2\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 12:29:04 +0000\n; \npush    rbp                                                            ; +0x0, 0x100377440\nmov     rbp, rsp                                                       ; +0x1, 0x100377441\npush    r14                                                            ; +0x4, 0x100377444\npush    rbx                                                            ; +0x6, 0x100377446\nsub     rsp, 10h                                                       ; +0x7, 0x100377447\nmov     rbx, rdi                                                       ; +0xb, 0x10037744b\nmov     rdi, cs:qword_100BE3098                                        ; +0xe, 0x10037744e\ntest    rdi, rdi                                                       ; +0x15, 0x100377455\njz      short loc_1003774A0                                            ; +0x18, 0x100377458\nlea     rsi, a0116; \"0116\"                                             ; +0x1a, 0x10037745a\ncall    GameManager__getGameVariable                                   ; +0x21, 0x100377461\ntest    al, al                                                         ; +0x26, 0x100377466\njz      short loc_1003774DC                                            ; +0x28, 0x100377468\nmovss   xmm0, dword ptr [rbx+450h]                                     ; +0x2a, 0x10037746a\nmovss   [rbp+var_14], xmm0                                             ; +0x32, 0x100377472\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x37, 0x100377477\nmovss   xmm0, [rbp+var_14]                                             ; +0x3c, 0x10037747c\nucomiss xmm0, cs:dword_100A03818                                       ; +0x41, 0x100377481\njbe     short loc_1003774E5                                            ; +0x48, 0x100377488\nmovss   xmm0, cs:alpha                                                 ; +0x4a, 0x10037748a\ndivss   xmm0, dword ptr [rbx+450h]                                     ; +0x52, 0x100377492\ncvtss2sd xmm0, xmm0                                                    ; +0x5a, 0x10037749a\njmp     short loc_1003774ED                                            ; +0x5e, 0x10037749e\nmov     edi, 6B8h; __sz                                                ; +0x60, 0x1003774a0\ncall    __Znwm; operator new(ulong)                                    ; +0x65, 0x1003774a5\nmov     r14, rax                                                       ; +0x6a, 0x1003774aa\nmov     rdi, rax                                                       ; +0x6d, 0x1003774ad\ncall    sub_100377960                                                  ; +0x70, 0x1003774b0\nmov     cs:qword_100BE3098, r14                                        ; +0x75, 0x1003774b5\nmov     rax, [r14]                                                     ; +0x7c, 0x1003774bc\nmov     rdi, r14                                                       ; +0x7f, 0x1003774bf\ncall    qword ptr [rax+50h]                                            ; +0x82, 0x1003774c2\nmov     rdi, cs:qword_100BE3098                                        ; +0x85, 0x1003774c5\nlea     rsi, a0116; \"0116\"                                             ; +0x8c, 0x1003774cc\ncall    GameManager__getGameVariable                                   ; +0x93, 0x1003774d3\ntest    al, al                                                         ; +0x98, 0x1003774d8\njnz     short loc_10037746A                                            ; +0x9a, 0x1003774da\nadd     rsp, 10h                                                       ; +0x9c, 0x1003774dc\npop     rbx                                                            ; +0xa0, 0x1003774e0\npop     r14                                                            ; +0xa1, 0x1003774e1\npop     rbp                                                            ; +0xa3, 0x1003774e3\nretn                                                                   ; +0xa4, 0x1003774e4\nmovsd   xmm0, cs:qword_100A085F0                                       ; +0xa5, 0x1003774e5\nmov     rcx, [rax]                                                     ; +0xad, 0x1003774ed\nmov     rcx, [rcx+60h]                                                 ; +0xb0, 0x1003774f0\nmov     rdi, rax                                                       ; +0xb4, 0x1003774f4\nadd     rsp, 10h                                                       ; +0xb7, 0x1003774f7\npop     rbx                                                            ; +0xbb, 0x1003774fb\npop     r14                                                            ; +0xbc, 0x1003774fc\npop     rbp                                                            ; +0xbe, 0x1003774fe\njmp     rcx                                                            ; +0xbf, 0x1003774ff", "xrefs": ["LoadingLayer::loadAssets @ 0x10038c7ed", "MoreVideoOptionsLayer::onToggle @ 0x100883943", "MoreVideoOptionsLayer::onApplyFPS @ 0x1008841d2"], "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"}