//
// sub_1800D4B60 from 0x1800d4b60 to 0x1800d4b93 (51 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078c72
// > ??> @ 0x1801ba734
//
// 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_1800D4B60(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_DWORD *)&ModuleName )
{
result = *(_QWORD *)(a1 + 768);
*(_QWORD *)(a1 + 768) = a2;
}
else
{
sub_1800D3530(0x10001u, nullptr);
return 0;
}
return result;
}