//
// cocos2d::CCRenderTexture::create from 0xd6ab60 to 0xd6abf4 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0xc5d58
//
// 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, int a4)
{
cocos2d::CCRenderTexture *v7; // x19
v7 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);
cocos2d::CCRenderTexture::CCRenderTexture(v7);
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight((__int64)v7, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
else
{
(*(void (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
}