//
// sub_1800D4B10 from 0x1800d4b10 to 0x1800d4b43 (51 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078c1c
// > ??> @ 0x1801ba728
//
// 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_1800D4B10(__int64 a1, __int64 a2)
{
__int64 result; // rax
if ( *(_DWORD *)&ModuleName )
{
result = *(_QWORD *)(a1 + 752);
*(_QWORD *)(a1 + 752) = a2;
}
else
{
sub_1800D3530(0x10001u, nullptr);
return 0;
}
return result;
}