//
// sub_1800DC680 from 0x1800dc680 to 0x1800dc74a (202 bytes)
//
// 3 xrefs:
// > cocos2d::CCEGLView::toggleFullScreen @ 0x18007be56
// > sub_1800DB6E0 @ 0x1800db707
// > ??> @ 0x1801c4db8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:35 +0000
//
void __fastcall sub_1800DC680(__int64 *a1)
{
__int64 *v2; // rcx
__int64 *i; // rdx
if ( *(_DWORD *)&ModuleName )
{
if ( a1 )
{
*((_OWORD *)a1 + 46) = 0;
*((_OWORD *)a1 + 47) = 0;
*((_OWORD *)a1 + 48) = 0;
*((_OWORD *)a1 + 49) = 0;
*((_OWORD *)a1 + 50) = 0;
*((_OWORD *)a1 + 51) = 0;
*((_OWORD *)a1 + 52) = 0;
*((_OWORD *)a1 + 53) = 0;
*((_OWORD *)a1 + 54) = 0;
if ( a1 == (__int64 *)sub_1800DE110(&unk_1801B520C) )
sub_1800D7B50(0);
sub_1800D7FA0((__int64)a1);
v2 = (__int64 *)qword_1801B3FE0;
for ( i = &qword_1801B3FE0; v2 != a1; v2 = (__int64 *)*v2 )
i = v2;
*i = *a1;
free(a1);
}
}
else
{
sub_1800DB260(0x10001u, nullptr);
}
}