{"type": "func", "start": 4298881584, "end": 4298881716, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x1003bba30 to 0x1003bbab4 (132 bytes)\n// \n// 2 xrefs:\n// > MoreVideoOptionsLayer::onToggle @ 0x1001162d4\n// > LoadingLayer::loadAssets @ 0x10026efe0\n// \n// This function is hookable on this platform (idp: arm, 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:03:59 +0000\n// \n\n__int64 __fastcall GameManager::updateCustomFPS(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 result; // x0\n  float v4; // s8\n  __int64 v5; // x0\n  __n128 v6; // q0\n\n  v2 = GameManager::sharedState();\n  result = GameManager::getGameVariable(v2, \"0116\");\n  if ( (_DWORD)result )\n  {\n    v4 = *(float *)(a1 + 1104);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    if ( v4 <= 60.0 )\n      v6.n128_u64[0] = 0x3F91111120000000LL;\n    else\n      v6.n128_f64[0] = (float)(1.0 / *(float *)(a1 + 1104));\n    return (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v5 + 96LL))(v5, v6);\n  }\n  return result;\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x1003bba30 to 0x1003bbab4 (132 bytes)\n; \n; 2 xrefs:\n; > MoreVideoOptionsLayer::onToggle @ 0x1001162d4\n; > LoadingLayer::loadAssets @ 0x10026efe0\n; \n; This function is hookable on this platform (idp: arm, 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:03:59 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1003bba30\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003bba34\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003bba38\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003bba3c\nMOV             X19, X0                                                ; +0x10, 0x1003bba40\nBL              GameManager__sharedState                               ; +0x14, 0x1003bba44\nADRL            X1, a0116; \"0116\"                                      ; +0x18, 0x1003bba48\nBL              GameManager__getGameVariable                           ; +0x20, 0x1003bba50\nCBZ             W0, loc_1003BBA84                                      ; +0x24, 0x1003bba54\nLDR             S8, [X19,#0x450]                                       ; +0x28, 0x1003bba58\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x2c, 0x1003bba5c\nMOV             W8, #0x42700000                                        ; +0x30, 0x1003bba60\nFMOV            S0, W8                                                 ; +0x34, 0x1003bba64\nFCMP            S8, S0                                                 ; +0x38, 0x1003bba68\nB.LE            loc_1003BBA94                                          ; +0x3c, 0x1003bba6c\nLDR             S0, [X19,#0x450]                                       ; +0x40, 0x1003bba70\nFMOV            S1, #1.0                                               ; +0x44, 0x1003bba74\nFDIV            S0, S1, S0                                             ; +0x48, 0x1003bba78\nFCVT            D0, S0                                                 ; +0x4c, 0x1003bba7c\nB               loc_1003BBA9C                                          ; +0x50, 0x1003bba80\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1003bba84\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1003bba88\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x5c, 0x1003bba8c\nRET                                                                    ; +0x60, 0x1003bba90\nADRP            X8, #qword_10075DCA8@PAGE                              ; +0x64, 0x1003bba94\nLDR             D0, [X8,#qword_10075DCA8@PAGEOFF]                      ; +0x68, 0x1003bba98\nLDR             X8, [X0]                                               ; +0x6c, 0x1003bba9c\nLDR             X1, [X8,#0x60]                                         ; +0x70, 0x1003bbaa0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x1003bbaa4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x1003bbaa8\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x7c, 0x1003bbaac\nBR              X1                                                     ; +0x80, 0x1003bbab0", "xrefs": ["MoreVideoOptionsLayer::onToggle @ 0x1001162d4", "LoadingLayer::loadAssets @ 0x10026efe0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}