//
// cocos2d::CCEGLView::createWithFullScreen from 0x1800795c0 to 0x1800796fb (315 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bebc0
//
// 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:21:59 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCEGLView *__fastcall cocos2d::CCEGLView::createWithFullScreen(
__int64 a1,
char a2,
char a3,
__int64 a4,
__int64 a5)
{
cocos2d::CCEGLView *v8; // rax
cocos2d::CCEGLView *v9; // rbx
cocos2d::CCEGLView *v11; // [rsp+30h] [rbp-18h] BYREF
v8 = (cocos2d::CCEGLView *)sub_1800E4AC0(0xF0u);
v11 = v8;
if ( v8 )
v9 = cocos2d::CCEGLView::CCEGLView(v8);
else
v9 = nullptr;
if ( !v9 )
return nullptr;
*((_QWORD *)v9 + 26) = a5;
if ( !a5 )
return nullptr;
*((_BYTE *)v9 + 232) = 1;
*((_BYTE *)v9 + 233) = a2;
*((_BYTE *)v9 + 234) = a3;
sub_1800DCA30(135183, *(unsigned int *)(a4 + 20));
sub_1800DCA30(135169, *(unsigned int *)(a4 + 8));
sub_1800DCA30(135171, *(unsigned int *)(a4 + 16));
sub_1800DCA30(135170, *(unsigned int *)(a4 + 12));
if ( *((_BYTE *)v9 + 233) )
{
sub_1800DCA30(131077, 0);
*((_QWORD *)v9 + 26) = 0;
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v11, 0.0, 0.0, (float)*(int *)a4, (float)*(int *)(a4 + 4));
if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v9) )
return nullptr;
cocos2d::CCObject::autorelease((cocos2d::CCEGLView *)((char *)v9 + 120));
return v9;
}