//
// sub_1800D5B00 from 0x1800d5b00 to 0x1800d5b33 (51 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078b0b
// > ??> @ 0x1801ba878
//
// 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_1800D5B00(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_DWORD *)&ModuleName )
{
result = *(_QWORD *)(a1 + 832);
*(_QWORD *)(a1 + 832) = a2;
}
else
{
sub_1800D3530(0x10001u, nullptr);
return 0;
}
return result;
}