//
// cocos2d::CCEGLView::createWithRect from 0x180076a40 to 0x180076acc (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b48c0
//
// 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
//
// 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
cocos2d::CCRect v6; // [rsp+20h] [rbp-28h] BYREF
v3 = (cocos2d::CCEGLView *)operator new(0xF0u);
if ( v3 )
v4 = cocos2d::CCEGLView::CCEGLView(v3);
else
v4 = nullptr;
if ( !v4 )
return nullptr;
cocos2d::CCRect::CCRect(&v6, a2);
if ( !(unsigned __int8)cocos2d::CCEGLView::initWithRect(v4) )
return nullptr;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)&v4->m_idk1);
return v4;
}