{"type": "func", "start": 4298674224, "end": 4298674463, "name": "GameManager::loadVideoSettings", "pseudocode": "// \n// GameManager::loadVideoSettings from 0x100389030 to 0x10038911f (239 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x10065c1a3\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::loadVideoSettings(GameManager *a1)\n{\n  GameManager *v1; // rdi\n  void *v2; // rbx\n  bool GameVariable; // al\n  GameManager *v4; // rdi\n  void *v5; // rbx\n  bool v6; // al\n  GameManager *v7; // rdi\n  void *v8; // rbx\n  bool v9; // al\n\n  v1 = (GameManager *)qword_1009A0E18;\n  if ( !qword_1009A0E18 )\n  {\n    v2 = operator new(0x638u);\n    sub_10038CE40(v2);\n    qword_1009A0E18 = (__int64)v2;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 80LL))(v2);\n    v1 = (GameManager *)qword_1009A0E18;\n  }\n  GameVariable = GameManager::getGameVariable(v1, \"0030\");\n  PlatformToolbox::toggleVerticalSync(GameVariable);\n  v4 = (GameManager *)qword_1009A0E18;\n  if ( !qword_1009A0E18 )\n  {\n    v5 = operator new(0x638u);\n    sub_10038CE40(v5);\n    qword_1009A0E18 = (__int64)v5;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v5 + 80LL))(v5);\n    v4 = (GameManager *)qword_1009A0E18;\n  }\n  v6 = GameManager::getGameVariable(v4, \"0032\");\n  PlatformToolbox::toggleForceTimer(v6);\n  v7 = (GameManager *)qword_1009A0E18;\n  if ( !qword_1009A0E18 )\n  {\n    v8 = operator new(0x638u);\n    sub_10038CE40(v8);\n    qword_1009A0E18 = (__int64)v8;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v8 + 80LL))(v8);\n    v7 = (GameManager *)qword_1009A0E18;\n  }\n  v9 = GameManager::getGameVariable(v7, \"0023\");\n  PlatformToolbox::toggleSmoothFix(v9);\n}", "assembly": "; \n; GameManager::loadVideoSettings from 0x100389030 to 0x10038911f (239 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x10065c1a3\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, 0x100389030\nmov     rbp, rsp                                                       ; +0x1, 0x100389031\npush    r14                                                            ; +0x4, 0x100389034\npush    rbx                                                            ; +0x6, 0x100389036\nmov     rdi, cs:qword_1009A0E18                                        ; +0x7, 0x100389037\ntest    rdi, rdi                                                       ; +0xe, 0x10038903e\njnz     short loc_10038906F                                            ; +0x11, 0x100389041\nmov     edi, 638h; __sz                                                ; +0x13, 0x100389043\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x100389048\nmov     rbx, rax                                                       ; +0x1d, 0x10038904d\nmov     rdi, rax                                                       ; +0x20, 0x100389050\ncall    sub_10038CE40                                                  ; +0x23, 0x100389053\nmov     cs:qword_1009A0E18, rbx                                        ; +0x28, 0x100389058\nmov     rax, [rbx]                                                     ; +0x2f, 0x10038905f\nmov     rdi, rbx                                                       ; +0x32, 0x100389062\ncall    qword ptr [rax+50h]                                            ; +0x35, 0x100389065\nmov     rdi, cs:qword_1009A0E18                                        ; +0x38, 0x100389068\nlea     rsi, a0030; \"0030\"                                             ; +0x3f, 0x10038906f\ncall    GameManager__getGameVariable                                   ; +0x46, 0x100389076\nmovzx   edi, al                                                        ; +0x4b, 0x10038907b\ncall    PlatformToolbox__toggleVerticalSync                            ; +0x4e, 0x10038907e\nmov     rdi, cs:qword_1009A0E18                                        ; +0x53, 0x100389083\ntest    rdi, rdi                                                       ; +0x5a, 0x10038908a\njnz     short loc_1003890BB                                            ; +0x5d, 0x10038908d\nmov     edi, 638h; __sz                                                ; +0x5f, 0x10038908f\ncall    __Znwm; operator new(ulong)                                    ; +0x64, 0x100389094\nmov     rbx, rax                                                       ; +0x69, 0x100389099\nmov     rdi, rax                                                       ; +0x6c, 0x10038909c\ncall    sub_10038CE40                                                  ; +0x6f, 0x10038909f\nmov     cs:qword_1009A0E18, rbx                                        ; +0x74, 0x1003890a4\nmov     rax, [rbx]                                                     ; +0x7b, 0x1003890ab\nmov     rdi, rbx                                                       ; +0x7e, 0x1003890ae\ncall    qword ptr [rax+50h]                                            ; +0x81, 0x1003890b1\nmov     rdi, cs:qword_1009A0E18                                        ; +0x84, 0x1003890b4\nlea     rsi, a0032; \"0032\"                                             ; +0x8b, 0x1003890bb\ncall    GameManager__getGameVariable                                   ; +0x92, 0x1003890c2\nmovzx   edi, al                                                        ; +0x97, 0x1003890c7\ncall    PlatformToolbox__toggleForceTimer                              ; +0x9a, 0x1003890ca\nmov     rdi, cs:qword_1009A0E18                                        ; +0x9f, 0x1003890cf\ntest    rdi, rdi                                                       ; +0xa6, 0x1003890d6\njnz     short loc_100389107                                            ; +0xa9, 0x1003890d9\nmov     edi, 638h; __sz                                                ; +0xab, 0x1003890db\ncall    __Znwm; operator new(ulong)                                    ; +0xb0, 0x1003890e0\nmov     rbx, rax                                                       ; +0xb5, 0x1003890e5\nmov     rdi, rax                                                       ; +0xb8, 0x1003890e8\ncall    sub_10038CE40                                                  ; +0xbb, 0x1003890eb\nmov     cs:qword_1009A0E18, rbx                                        ; +0xc0, 0x1003890f0\nmov     rax, [rbx]                                                     ; +0xc7, 0x1003890f7\nmov     rdi, rbx                                                       ; +0xca, 0x1003890fa\ncall    qword ptr [rax+50h]                                            ; +0xcd, 0x1003890fd\nmov     rdi, cs:qword_1009A0E18                                        ; +0xd0, 0x100389100\nlea     rsi, a0023; \"0023\"                                             ; +0xd7, 0x100389107\ncall    GameManager__getGameVariable                                   ; +0xde, 0x10038910e\nmovzx   edi, al                                                        ; +0xe3, 0x100389113\npop     rbx                                                            ; +0xe6, 0x100389116\npop     r14                                                            ; +0xe7, 0x100389117\npop     rbp                                                            ; +0xe9, 0x100389119\njmp     PlatformToolbox__toggleSmoothFix                               ; +0xea, 0x10038911a", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x10065c1a3"], "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"}