{"type": "func", "start": 6443334704, "end": 6443334791, "name": "sub_1800D7C30", "pseudocode": "// \n// sub_1800D7C30 from 0x1800d7c30 to 0x1800d7c87 (87 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCApplication::applySwapInterval @ 0x1800754dd\n// > cocos2d::CCApplication::updateVerticalSync @ 0x1800778d7\n// > <???> @ 0x1801c4974\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 11:22:33 +0000\n// \n\n__int64 __fastcall sub_1800D7C30(unsigned int a1)\n{\n  __int64 v3; // rax\n\n  if ( !*(_DWORD *)&ModuleName )\n    return sub_1800DB260(65537, nullptr);\n  v3 = sub_1800DE110(&unk_1801B520C);\n  if ( v3 )\n    return (*(__int64 (__fastcall **)(_QWORD))(v3 + 600))(a1);\n  else\n    return sub_1800DB260(65538, \"Cannot set swap interval without a current OpenGL or OpenGL ES context\");\n}", "assembly": "; \n; sub_1800D7C30 from 0x1800d7c30 to 0x1800d7c87 (87 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCApplication::applySwapInterval @ 0x1800754dd\n; > cocos2d::CCApplication::updateVerticalSync @ 0x1800778d7\n; > <???> @ 0x1801c4974\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 11:22:33 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800d7c30\nsub     rsp, 20h                                                       ; +0x2, 0x1800d7c32\ncmp     dword ptr cs:ModuleName, 0                                     ; +0x6, 0x1800d7c36\nmov     ebx, ecx                                                       ; +0xd, 0x1800d7c3d\njnz     short loc_1800D7C52                                            ; +0xf, 0x1800d7c3f\nxor     edx, edx                                                       ; +0x11, 0x1800d7c41\nmov     ecx, 10001h                                                    ; +0x13, 0x1800d7c43\nadd     rsp, 20h                                                       ; +0x18, 0x1800d7c48\npop     rbx                                                            ; +0x1c, 0x1800d7c4c\njmp     sub_1800DB260                                                  ; +0x1d, 0x1800d7c4d\nlea     rcx, unk_1801B520C                                             ; +0x22, 0x1800d7c52\ncall    sub_1800DE110                                                  ; +0x29, 0x1800d7c59\ntest    rax, rax                                                       ; +0x2e, 0x1800d7c5e\njnz     short loc_1800D7C79                                            ; +0x31, 0x1800d7c61\nlea     rdx, aCannotSetSwapI; \"Cannot set swap interval without a curr\"... ; +0x33, 0x1800d7c63\nmov     ecx, 10002h                                                    ; +0x3a, 0x1800d7c6a\nadd     rsp, 20h                                                       ; +0x3f, 0x1800d7c6f\npop     rbx                                                            ; +0x43, 0x1800d7c73\njmp     sub_1800DB260                                                  ; +0x44, 0x1800d7c74\nmov     ecx, ebx                                                       ; +0x49, 0x1800d7c79\nadd     rsp, 20h                                                       ; +0x4b, 0x1800d7c7b\npop     rbx                                                            ; +0x4f, 0x1800d7c7f\njmp     qword ptr [rax+258h]                                           ; +0x50, 0x1800d7c80", "xrefs": ["cocos2d::CCApplication::applySwapInterval @ 0x1800754dd", "cocos2d::CCApplication::updateVerticalSync @ 0x1800778d7", "<???> @ 0x1801c4974"], "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"}