{"type": "func", "start": 4298688976, "end": 4298689169, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x10038c9d0 to 0x10038ca91 (193 bytes)\n// \n// 3 xrefs:\n// > LoadingLayer::loadAssets @ 0x1003a31dd\n// > MoreVideoOptionsLayer::onToggle @ 0x1007a2833\n// > MoreVideoOptionsLayer::onApplyFPS @ 0x1007a30c2\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 __fastcall GameManager::updateCustomFPS(GameManager *a1)\n{\n  cocos2d::CCDirector *v1; // rax\n  double v2; // xmm0_8\n  void *v3; // r14\n  float m_customFPSTarget; // [rsp+Ch] [rbp-14h]\n\n  if ( qword_1009A0E18 )\n  {\n    if ( !GameManager::getGameVariable((GameManager *)qword_1009A0E18, \"0116\") )\n      return;\n  }\n  else\n  {\n    v3 = operator new(0x638u);\n    sub_10038CE40(v3);\n    qword_1009A0E18 = (__int64)v3;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v3 + 80LL))(v3);\n    if ( !GameManager::getGameVariable((GameManager *)qword_1009A0E18, \"0116\") )\n      return;\n  }\n  m_customFPSTarget = a1->m_customFPSTarget;\n  v1 = cocos2d::CCDirector::sharedDirector();\n  if ( m_customFPSTarget <= 60.0 )\n    v2 = 0.01666666753590107;\n  else\n    v2 = (float)(1.0 / a1->m_customFPSTarget);\n  ((void (__fastcall *)(cocos2d::CCDirector *, double))v1->setAnimationInterval)(v1, v2);\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x10038c9d0 to 0x10038ca91 (193 bytes)\n; \n; 3 xrefs:\n; > LoadingLayer::loadAssets @ 0x1003a31dd\n; > MoreVideoOptionsLayer::onToggle @ 0x1007a2833\n; > MoreVideoOptionsLayer::onApplyFPS @ 0x1007a30c2\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    rbp                                                            ; +0x0, 0x10038c9d0\nmov     rbp, rsp                                                       ; +0x1, 0x10038c9d1\npush    r14                                                            ; +0x4, 0x10038c9d4\npush    rbx                                                            ; +0x6, 0x10038c9d6\nsub     rsp, 10h                                                       ; +0x7, 0x10038c9d7\nmov     rbx, rdi                                                       ; +0xb, 0x10038c9db\nmov     rdi, cs:qword_1009A0E18                                        ; +0xe, 0x10038c9de\ntest    rdi, rdi                                                       ; +0x15, 0x10038c9e5\njz      short loc_10038CA30                                            ; +0x18, 0x10038c9e8\nlea     rsi, a0116; \"0116\"                                             ; +0x1a, 0x10038c9ea\ncall    GameManager__getGameVariable                                   ; +0x21, 0x10038c9f1\ntest    al, al                                                         ; +0x26, 0x10038c9f6\njz      short loc_10038CA6C                                            ; +0x28, 0x10038c9f8\nmovss   xmm0, dword ptr [rbx+410h]                                     ; +0x2a, 0x10038c9fa\nmovss   [rbp+var_14], xmm0                                             ; +0x32, 0x10038ca02\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x37, 0x10038ca07\nmovss   xmm0, [rbp+var_14]                                             ; +0x3c, 0x10038ca0c\nucomiss xmm0, cs:dword_100815028                                       ; +0x41, 0x10038ca11\njbe     short loc_10038CA75                                            ; +0x48, 0x10038ca18\nmovss   xmm0, cs:alpha                                                 ; +0x4a, 0x10038ca1a\ndivss   xmm0, dword ptr [rbx+410h]                                     ; +0x52, 0x10038ca22\ncvtss2sd xmm0, xmm0                                                    ; +0x5a, 0x10038ca2a\njmp     short loc_10038CA7D                                            ; +0x5e, 0x10038ca2e\nmov     edi, 638h; __sz                                                ; +0x60, 0x10038ca30\ncall    __Znwm; operator new(ulong)                                    ; +0x65, 0x10038ca35\nmov     r14, rax                                                       ; +0x6a, 0x10038ca3a\nmov     rdi, rax                                                       ; +0x6d, 0x10038ca3d\ncall    sub_10038CE40                                                  ; +0x70, 0x10038ca40\nmov     cs:qword_1009A0E18, r14                                        ; +0x75, 0x10038ca45\nmov     rax, [r14]                                                     ; +0x7c, 0x10038ca4c\nmov     rdi, r14                                                       ; +0x7f, 0x10038ca4f\ncall    qword ptr [rax+50h]                                            ; +0x82, 0x10038ca52\nmov     rdi, cs:qword_1009A0E18                                        ; +0x85, 0x10038ca55\nlea     rsi, a0116; \"0116\"                                             ; +0x8c, 0x10038ca5c\ncall    GameManager__getGameVariable                                   ; +0x93, 0x10038ca63\ntest    al, al                                                         ; +0x98, 0x10038ca68\njnz     short loc_10038C9FA                                            ; +0x9a, 0x10038ca6a\nadd     rsp, 10h                                                       ; +0x9c, 0x10038ca6c\npop     rbx                                                            ; +0xa0, 0x10038ca70\npop     r14                                                            ; +0xa1, 0x10038ca71\npop     rbp                                                            ; +0xa3, 0x10038ca73\nretn                                                                   ; +0xa4, 0x10038ca74\nmovsd   xmm0, cs:qword_10081A0B0                                       ; +0xa5, 0x10038ca75\nmov     rcx, [rax]                                                     ; +0xad, 0x10038ca7d\nmov     rcx, [rcx+60h]                                                 ; +0xb0, 0x10038ca80\nmov     rdi, rax                                                       ; +0xb4, 0x10038ca84\nadd     rsp, 10h                                                       ; +0xb7, 0x10038ca87\npop     rbx                                                            ; +0xbb, 0x10038ca8b\npop     r14                                                            ; +0xbc, 0x10038ca8c\npop     rbp                                                            ; +0xbe, 0x10038ca8e\njmp     rcx                                                            ; +0xbf, 0x10038ca8f", "xrefs": ["LoadingLayer::loadAssets @ 0x1003a31dd", "MoreVideoOptionsLayer::onToggle @ 0x1007a2833", "MoreVideoOptionsLayer::onApplyFPS @ 0x1007a30c2"], "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"}