//
// sub_1800D4A90 from 0x1800d4a90 to 0x1800d4ac3 (51 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078bf6
// > ??> @ 0x1801ba71c
//
// 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_1800D4A90(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_DWORD *)&ModuleName )
{
result = *(_QWORD *)(a1 + 792);
*(_QWORD *)(a1 + 792) = a2;
}
else
{
sub_1800D3530(0x10001u, nullptr);
return 0;
}
return result;
}