//
// sub_1800D4AD0 from 0x1800d4ad0 to 0x1800d4b02 (50 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::initWithRect @ 0x18007743a
// > cocos2d::CCEGLView::updateWindow @ 0x180079228
//
// 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 *__fastcall sub_1800D4AD0(__int64 a1, int a2, int a3))(_QWORD, _QWORD)
{
__int64 (__fastcall *result)(_QWORD, _QWORD); // rax
if ( !*(_DWORD *)&ModuleName )
return sub_1800D3530(0x10001u, nullptr);
if ( !*(_DWORD *)(a1 + 912) )
{
if ( *(_QWORD *)(a1 + 72) )
{
*(_DWORD *)(a1 + 44) = a2;
*(_DWORD *)(a1 + 48) = a3;
}
return (__int64 (__fastcall *)(_QWORD, _QWORD))sub_1800D76D0();
}
return result;
}