//
// cocos2d::CCEGLView::createWithRect from 0x180079700 to 0x18007978c (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bebcc
//
// 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::createWithRect(__int64 a1, const struct cocos2d::CCRect *a2)
{
cocos2d::CCEGLView *v3; // rax
cocos2d::CCEGLView *v4; // rbx
_BYTE v6[16]; // [rsp+20h] [rbp-28h] BYREF
v3 = (cocos2d::CCEGLView *)sub_1800E4AC0(0xF0u);
if ( v3 )
v4 = cocos2d::CCEGLView::CCEGLView(v3);
else
v4 = nullptr;
if ( !v4 )
return nullptr;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, a2);
if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v4) )
return nullptr;
cocos2d::CCObject::autorelease((cocos2d::CCEGLView *)((char *)v4 + 120));
return v4;
}