//
// sub_1800D34D0 from 0x1800d34d0 to 0x1800d3527 (87 bytes)
//
// 2 xrefs:
// > cocos2d::CCApplication::toggleVerticalSync @ 0x180073e72
// > ??> @ 0x1801ba548
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1800D34D0(unsigned int a1)
{
__int64 v3; // rax
if ( !*(_DWORD *)&ModuleName )
return sub_1800D3530(65537, nullptr);
v3 = sub_1800D99B0(&unk_1801AB18C);
if ( v3 )
return (*(__int64 (__fastcall **)(_QWORD))(v3 + 600))(a1);
else
return sub_1800D3530(65538, "Cannot set swap interval without a current OpenGL or OpenGL ES context");
}