//
// cocos2d::CCEGLView::initWithFullScreen from 0x180077060 to 0x180077181 (289 bytes)
//
// 5 xrefs:
// > cocos2d::CCEGLView::createWithFullScreen @ 0x1800768c4
// > ??> @ 0x18013b560
// > ??> @ 0x18013b570
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4920
//
// 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
//
char __fastcall cocos2d::CCEGLView::initWithFullScreen(cocos2d::CCEGLView *this, __int64 a2, char a3, char a4)
{
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rcx
__int64 v10; // rdi
cocos2d::CCRect v12; // [rsp+30h] [rbp-18h] BYREF
v7 = sub_1800D41B0();
*((_QWORD *)this + 26) = v7;
if ( v7 )
{
v8 = sub_1800D41F0(v7);
v9 = *((_QWORD *)this + 26);
v10 = v8;
*((_QWORD *)this + 26) = v9;
if ( v9 )
{
*((_BYTE *)this + 232) = 1;
*((_BYTE *)this + 233) = a3;
*((_BYTE *)this + 234) = a4;
sub_1800D4D00(135183, *(unsigned int *)(v8 + 20));
sub_1800D4D00(135169, *(unsigned int *)(v10 + 8));
sub_1800D4D00(135171, *(unsigned int *)(v10 + 16));
sub_1800D4D00(135170, *(unsigned int *)(v10 + 12));
if ( *((_BYTE *)this + 233) )
{
sub_1800D4D00(131077, 0);
*((_QWORD *)this + 26) = 0;
}
cocos2d::CCRect::CCRect(&v12, 0.0, 0.0, (float)*(int *)v10, (float)*(int *)(v10 + 4));
LOBYTE(v7) = cocos2d::CCEGLView::initWithRect(this);
}
else
{
LOBYTE(v7) = 0;
}
}
return v7;
}