{"type": "func", "start": 4298235264, "end": 4298235396, "name": "GameManager::updateCustomFPS", "pseudocode": "// \n// GameManager::updateCustomFPS from 0x10031dd80 to 0x10031de04 (132 bytes)\n// \n// 2 xrefs:\n// > MoreVideoOptionsLayer::onToggle @ 0x1000f2418\n// > LoadingLayer::loadAssets @ 0x1001d6a88\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  GameManager *v2; // x0\n  float m_customFPSTarget; // s8\n  cocos2d::CCDirector *v4; // x0\n  __n128 v5; // q0\n\n  v2 = GameManager::sharedState();\n  if ( GameManager::getGameVariable(v2, \"0116\") )\n  {\n    m_customFPSTarget = a1->m_customFPSTarget;\n    v4 = cocos2d::CCDirector::sharedDirector();\n    if ( m_customFPSTarget <= 60.0 )\n      v5.n128_u64[0] = 0x3F91111120000000LL;\n    else\n      v5.n128_f64[0] = (float)(1.0 / a1->m_customFPSTarget);\n    ((void (__fastcall *)(cocos2d::CCDirector *, __n128))v4->setAnimationInterval)(v4, v5);\n  }\n}", "assembly": "; \n; GameManager::updateCustomFPS from 0x10031dd80 to 0x10031de04 (132 bytes)\n; \n; 2 xrefs:\n; > MoreVideoOptionsLayer::onToggle @ 0x1000f2418\n; > LoadingLayer::loadAssets @ 0x1001d6a88\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\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x10031dd80\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10031dd84\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10031dd88\nADD             X29, SP, #0x20                                         ; +0xc, 0x10031dd8c\nMOV             X19, X0                                                ; +0x10, 0x10031dd90\nBL              GameManager__sharedState                               ; +0x14, 0x10031dd94\nADRL            X1, a0116; \"0116\"                                      ; +0x18, 0x10031dd98\nBL              GameManager__getGameVariable                           ; +0x20, 0x10031dda0\nCBZ             W0, loc_10031DDD4                                      ; +0x24, 0x10031dda4\nLDR             S8, [X19,#0x410]                                       ; +0x28, 0x10031dda8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x2c, 0x10031ddac\nMOV             W8, #0x42700000                                        ; +0x30, 0x10031ddb0\nFMOV            S0, W8                                                 ; +0x34, 0x10031ddb4\nFCMP            S8, S0                                                 ; +0x38, 0x10031ddb8\nB.LE            loc_10031DDE4                                          ; +0x3c, 0x10031ddbc\nLDR             S0, [X19,#0x410]                                       ; +0x40, 0x10031ddc0\nFMOV            S1, #1.0                                               ; +0x44, 0x10031ddc4\nFDIV            S0, S1, S0                                             ; +0x48, 0x10031ddc8\nFCVT            D0, S0                                                 ; +0x4c, 0x10031ddcc\nB               loc_10031DDEC                                          ; +0x50, 0x10031ddd0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x10031ddd4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x10031ddd8\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x5c, 0x10031dddc\nRET                                                                    ; +0x60, 0x10031dde0\nADRP            X8, #qword_100636A88@PAGE                              ; +0x64, 0x10031dde4\nLDR             D0, [X8,#qword_100636A88@PAGEOFF]                      ; +0x68, 0x10031dde8\nLDR             X8, [X0]                                               ; +0x6c, 0x10031ddec\nLDR             X1, [X8,#0x60]                                         ; +0x70, 0x10031ddf0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x74, 0x10031ddf4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x78, 0x10031ddf8\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x7c, 0x10031ddfc\nBR              X1                                                     ; +0x80, 0x10031de00", "xrefs": ["MoreVideoOptionsLayer::onToggle @ 0x1000f2418", "LoadingLayer::loadAssets @ 0x1001d6a88"], "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"}