//
// cocos2d::CCEGLView::create from 0x180079490 to 0x180079529 (153 bytes)
//
// 3 xrefs:
// > cocos2d::CCApplication::setupGLView @ 0x18007696a
// > ??> @ 0x18014cf68
// > ??> @ 0x1801beba8
//
// 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 *cocos2d::CCEGLView::create()
{
cocos2d::CCEGLView *v0; // rax
cocos2d::CCEGLView *v1; // rbx
_BYTE v3[24]; // [rsp+30h] [rbp-18h] BYREF
v0 = (cocos2d::CCEGLView *)sub_1800E4AC0(0xF0u);
if ( v0 )
v1 = cocos2d::CCEGLView::CCEGLView(v0);
else
v1 = nullptr;
if ( !v1 )
return nullptr;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v3, 0.0, 0.0, 960.0, 640.0);
if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v1) )
return nullptr;
cocos2d::CCObject::autorelease((cocos2d::CCEGLView *)((char *)v1 + 120));
return v1;
}