//
// cocos2d::CCEGLView::initWithFullscreen from 0x180077190 to 0x18007727a (234 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4944
//
// 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 cocos2d::CCEGLView::initWithFullscreen(
cocos2d::CCEGLView *this,
__int64 a2,
char a3,
char a4,
__int64 a5,
__int64 a6)
{
__int64 result; // rax
cocos2d::CCRect v8; // [rsp+30h] [rbp-18h] BYREF
result = a6;
*((_QWORD *)this + 26) = a6;
if ( a6 )
{
*((_BYTE *)this + 232) = 1;
*((_BYTE *)this + 233) = a3;
*((_BYTE *)this + 234) = a4;
sub_1800D4D00(135183, *(unsigned int *)(a5 + 20));
sub_1800D4D00(135169, *(unsigned int *)(a5 + 8));
sub_1800D4D00(135171, *(unsigned int *)(a5 + 16));
sub_1800D4D00(135170, *(unsigned int *)(a5 + 12));
if ( *((_BYTE *)this + 233) )
{
sub_1800D4D00(131077, 0);
*((_QWORD *)this + 26) = 0;
}
cocos2d::CCRect::CCRect(&v8, 0.0, 0.0, (float)*(int *)a5, (float)*(int *)(a5 + 4));
return cocos2d::CCEGLView::initWithRect(this);
}
return result;
}