//
// cocos2d::CCRenderTexture::create_1 from 0x1003c0684 to 0x1003c0734 (176 bytes)
//
// 1 xrefs:
// > PlayerObject::playDeathEffect @ 0x10005c498
//
// 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
//
cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create_1(int a1, int a2)
{
char *v4; // x19
v4 = (char *)operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v4);
*(_QWORD *)v4 = off_100811988;
*((_QWORD *)v4 + 40) = 0;
*((_QWORD *)v4 + 41) = 0;
*((_DWORD *)v4 + 84) = 0;
*(_OWORD *)(v4 + 344) = 0u;
*(_OWORD *)(v4 + 360) = 0u;
*(_OWORD *)(v4 + 376) = 0u;
*(_OWORD *)(v4 + 385) = 0u;
*(_QWORD *)(v4 + 412) = 0;
*(_QWORD *)(v4 + 404) = 0;
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(
(cocos2d::CCRenderTexture *)v4,
a1,
a2,
kCCTexture2DPixelFormat_RGBA8888,
0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (cocos2d::CCRenderTexture *)v4;
}