//
// cocos2d::CCRenderTexture::create from 0x180061bb0 to 0x180061c3f (143 bytes)
//
// 5 xrefs:
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056980
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056a5f
// > cocos2d::CCTransitionProgress::onEnter @ 0x1800594b8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd6a8
//
// 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:51 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(unsigned int a1, unsigned int a2)
{
cocos2d::CCRenderTexture *v4; // rax
cocos2d::CCObject *v5; // rbx
v4 = (cocos2d::CCRenderTexture *)sub_1800E4AC0(0x1A8u);
if ( v4 )
v5 = cocos2d::CCRenderTexture::CCRenderTexture(v4);
else
v5 = nullptr;
if ( v5 )
{
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v5, a1, a2, 0, 0) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
}
return nullptr;
}