//
// cocos2d::CCRenderTexture::create from 0xd6ac7c to 0xd6ad08 (140 bytes)
//
// 2 xrefs:
// > ShaderLayer::setupShader @ 0xb2dd60
// > ??> @ 0xdc8b8
//
// This function is hookable on this platform (idp: arm, 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 13:07:56 +0000
//
cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(int a1, int a2, int a3)
{
cocos2d::CCRenderTexture *v5; // x19
v5 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);
cocos2d::CCRenderTexture::CCRenderTexture(v5);
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight((__int64)v5, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
else
{
(*(void (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v5 + 16LL))(v5);
return nullptr;
}
}