//
// sub_1800D7C30 from 0x1800d7c30 to 0x1800d7c87 (87 bytes)
//
// 3 xrefs:
// > cocos2d::CCApplication::applySwapInterval @ 0x1800754dd
// > cocos2d::CCApplication::updateVerticalSync @ 0x1800778d7
// > ??> @ 0x1801c4974
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:33 +0000
//
__int64 __fastcall sub_1800D7C30(unsigned int a1)
{
__int64 v3; // rax
if ( !*(_DWORD *)&ModuleName )
return sub_1800DB260(65537, nullptr);
v3 = sub_1800DE110(&unk_1801B520C);
if ( v3 )
return (*(__int64 (__fastcall **)(_QWORD))(v3 + 600))(a1);
else
return sub_1800DB260(65538, "Cannot set swap interval without a current OpenGL or OpenGL ES context");
}