{"type": "func", "start": 6443316432, "end": 6443316519, "name": "sub_1800D34D0", "pseudocode": "// \n// sub_1800D34D0 from 0x1800d34d0 to 0x1800d3527 (87 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCApplication::toggleVerticalSync @ 0x180073e72\n// > <???> @ 0x1801ba548\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\n__int64 __fastcall sub_1800D34D0(unsigned int a1)\n{\n  __int64 v3; // rax\n\n  if ( !*(_DWORD *)&ModuleName )\n    return sub_1800D3530(65537, nullptr);\n  v3 = sub_1800D99B0(&unk_1801AB18C);\n  if ( v3 )\n    return (*(__int64 (__fastcall **)(_QWORD))(v3 + 600))(a1);\n  else\n    return sub_1800D3530(65538, \"Cannot set swap interval without a current OpenGL or OpenGL ES context\");\n}", "assembly": "; \n; sub_1800D34D0 from 0x1800d34d0 to 0x1800d3527 (87 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCApplication::toggleVerticalSync @ 0x180073e72\n; > <???> @ 0x1801ba548\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    rbx                                                            ; +0x0, 0x1800d34d0\nsub     rsp, 20h                                                       ; +0x2, 0x1800d34d2\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x6, 0x1800d34d6\nmov     ebx, ecx                                                       ; +0xd, 0x1800d34dd\njnz     short loc_1800D34F2                                            ; +0xf, 0x1800d34df\nxor     edx, edx                                                       ; +0x11, 0x1800d34e1\nmov     ecx, 10001h                                                    ; +0x13, 0x1800d34e3\nadd     rsp, 20h                                                       ; +0x18, 0x1800d34e8\npop     rbx                                                            ; +0x1c, 0x1800d34ec\njmp     sub_1800D3530                                                  ; +0x1d, 0x1800d34ed\nlea     rcx, unk_1801AB18C                                             ; +0x22, 0x1800d34f2\ncall    sub_1800D99B0                                                  ; +0x29, 0x1800d34f9\ntest    rax, rax                                                       ; +0x2e, 0x1800d34fe\njnz     short loc_1800D3519                                            ; +0x31, 0x1800d3501\nlea     rdx, aCannotSetSwapI; \"Cannot set swap interval without a curr\"... ; +0x33, 0x1800d3503\nmov     ecx, 10002h                                                    ; +0x3a, 0x1800d350a\nadd     rsp, 20h                                                       ; +0x3f, 0x1800d350f\npop     rbx                                                            ; +0x43, 0x1800d3513\njmp     sub_1800D3530                                                  ; +0x44, 0x1800d3514\nmov     ecx, ebx                                                       ; +0x49, 0x1800d3519\nadd     rsp, 20h                                                       ; +0x4b, 0x1800d351b\npop     rbx                                                            ; +0x4f, 0x1800d351f\njmp     qword ptr [rax+258h]                                           ; +0x50, 0x1800d3520", "xrefs": ["cocos2d::CCApplication::toggleVerticalSync @ 0x180073e72", "<???> @ 0x1801ba548"], "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"}