{"type": "func", "start": 4298582352, "end": 4298582591, "name": "GameManager::loadVideoSettings", "pseudocode": "// \n// GameManager::loadVideoSettings from 0x100372950 to 0x100372a3f (239 bytes)\n// \n// 1 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x10073b850\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:03 +0000\n// \n\n__int64 GameManager::loadVideoSettings()\n{\n  __int64 v0; // rdi\n  void *v1; // rbx\n  unsigned __int8 GameVariable; // al\n  __int64 v3; // rdi\n  void *v4; // rbx\n  unsigned __int8 v5; // al\n  __int64 v6; // rdi\n  void *v7; // rbx\n  unsigned __int8 v8; // al\n\n  v0 = qword_100BE3098;\n  if ( !qword_100BE3098 )\n  {\n    v1 = operator new(0x6B8u);\n    sub_100377960(v1);\n    qword_100BE3098 = (__int64)v1;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v1 + 80LL))(v1);\n    v0 = qword_100BE3098;\n  }\n  GameVariable = GameManager::getGameVariable(v0, \"0030\");\n  PlatformToolbox::toggleVerticalSync(GameVariable);\n  v3 = qword_100BE3098;\n  if ( !qword_100BE3098 )\n  {\n    v4 = operator new(0x6B8u);\n    sub_100377960(v4);\n    qword_100BE3098 = (__int64)v4;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 80LL))(v4);\n    v3 = qword_100BE3098;\n  }\n  v5 = GameManager::getGameVariable(v3, \"0032\");\n  PlatformToolbox::toggleForceTimer(v5);\n  v6 = qword_100BE3098;\n  if ( !qword_100BE3098 )\n  {\n    v7 = operator new(0x6B8u);\n    sub_100377960(v7);\n    qword_100BE3098 = (__int64)v7;\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 80LL))(v7);\n    v6 = qword_100BE3098;\n  }\n  v8 = GameManager::getGameVariable(v6, \"0023\");\n  return PlatformToolbox::toggleSmoothFix(v8);\n}", "assembly": "; \n; GameManager::loadVideoSettings from 0x100372950 to 0x100372a3f (239 bytes)\n; \n; 1 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x10073b850\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:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x100372950\nmov     rbp, rsp                                                       ; +0x1, 0x100372951\npush    r14                                                            ; +0x4, 0x100372954\npush    rbx                                                            ; +0x6, 0x100372956\nmov     rdi, cs:qword_100BE3098                                        ; +0x7, 0x100372957\ntest    rdi, rdi                                                       ; +0xe, 0x10037295e\njnz     short loc_10037298F                                            ; +0x11, 0x100372961\nmov     edi, 6B8h; __sz                                                ; +0x13, 0x100372963\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x100372968\nmov     rbx, rax                                                       ; +0x1d, 0x10037296d\nmov     rdi, rax                                                       ; +0x20, 0x100372970\ncall    sub_100377960                                                  ; +0x23, 0x100372973\nmov     cs:qword_100BE3098, rbx                                        ; +0x28, 0x100372978\nmov     rax, [rbx]                                                     ; +0x2f, 0x10037297f\nmov     rdi, rbx                                                       ; +0x32, 0x100372982\ncall    qword ptr [rax+50h]                                            ; +0x35, 0x100372985\nmov     rdi, cs:qword_100BE3098                                        ; +0x38, 0x100372988\nlea     rsi, a0030; \"0030\"                                             ; +0x3f, 0x10037298f\ncall    GameManager__getGameVariable                                   ; +0x46, 0x100372996\nmovzx   edi, al                                                        ; +0x4b, 0x10037299b\ncall    PlatformToolbox__toggleVerticalSync                            ; +0x4e, 0x10037299e\nmov     rdi, cs:qword_100BE3098                                        ; +0x53, 0x1003729a3\ntest    rdi, rdi                                                       ; +0x5a, 0x1003729aa\njnz     short loc_1003729DB                                            ; +0x5d, 0x1003729ad\nmov     edi, 6B8h; __sz                                                ; +0x5f, 0x1003729af\ncall    __Znwm; operator new(ulong)                                    ; +0x64, 0x1003729b4\nmov     rbx, rax                                                       ; +0x69, 0x1003729b9\nmov     rdi, rax                                                       ; +0x6c, 0x1003729bc\ncall    sub_100377960                                                  ; +0x6f, 0x1003729bf\nmov     cs:qword_100BE3098, rbx                                        ; +0x74, 0x1003729c4\nmov     rax, [rbx]                                                     ; +0x7b, 0x1003729cb\nmov     rdi, rbx                                                       ; +0x7e, 0x1003729ce\ncall    qword ptr [rax+50h]                                            ; +0x81, 0x1003729d1\nmov     rdi, cs:qword_100BE3098                                        ; +0x84, 0x1003729d4\nlea     rsi, a0032; \"0032\"                                             ; +0x8b, 0x1003729db\ncall    GameManager__getGameVariable                                   ; +0x92, 0x1003729e2\nmovzx   edi, al                                                        ; +0x97, 0x1003729e7\ncall    PlatformToolbox__toggleForceTimer                              ; +0x9a, 0x1003729ea\nmov     rdi, cs:qword_100BE3098                                        ; +0x9f, 0x1003729ef\ntest    rdi, rdi                                                       ; +0xa6, 0x1003729f6\njnz     short loc_100372A27                                            ; +0xa9, 0x1003729f9\nmov     edi, 6B8h; __sz                                                ; +0xab, 0x1003729fb\ncall    __Znwm; operator new(ulong)                                    ; +0xb0, 0x100372a00\nmov     rbx, rax                                                       ; +0xb5, 0x100372a05\nmov     rdi, rax                                                       ; +0xb8, 0x100372a08\ncall    sub_100377960                                                  ; +0xbb, 0x100372a0b\nmov     cs:qword_100BE3098, rbx                                        ; +0xc0, 0x100372a10\nmov     rax, [rbx]                                                     ; +0xc7, 0x100372a17\nmov     rdi, rbx                                                       ; +0xca, 0x100372a1a\ncall    qword ptr [rax+50h]                                            ; +0xcd, 0x100372a1d\nmov     rdi, cs:qword_100BE3098                                        ; +0xd0, 0x100372a20\nlea     rsi, a0023; \"0023\"                                             ; +0xd7, 0x100372a27\ncall    GameManager__getGameVariable                                   ; +0xde, 0x100372a2e\nmovzx   edi, al                                                        ; +0xe3, 0x100372a33\npop     rbx                                                            ; +0xe6, 0x100372a36\npop     r14                                                            ; +0xe7, 0x100372a37\npop     rbp                                                            ; +0xe9, 0x100372a39\njmp     PlatformToolbox__toggleSmoothFix                               ; +0xea, 0x100372a3a", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x10073b850"], "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"}