//
// cocos2d::CCRenderTexture::create from 0xd6abf4 to 0xd6ac74 (128 bytes)
//
// 7 xrefs:
// > MapSelectLayer::checkTouchMonster @ 0xac29b4
// > PlayerObject::playDeathEffect @ 0xb5490c
// > cocos2d::extension::CCControlSwitchSprite::needsLayout @ 0xd10fe4
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xd61ef4
// > cocos2d::CCTransitionCrossFade::onEnter @ 0xd61fc8
// > cocos2d::CCTransitionProgress::onEnter @ 0xd63378
// > ??> @ 0x893f8
//
// 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(cocos2d::CCRenderTexture *this, int a2)
{
int v2; // w20
cocos2d::CCRenderTexture *v3; // x19
v2 = (int)this;
v3 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);
cocos2d::CCRenderTexture::CCRenderTexture(v3);
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight((__int64)v3, v2, a2, 0, 0) )
{
cocos2d::CCObject::autorelease(v3);
return v3;
}
else
{
(*(void (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
}