//
// cocos2d::CCRenderTexture::create_1 from 0x1006c7fa0 to 0x1006c8043 (163 bytes)
//
// 1 xrefs:
// > ShaderLayer::setupShader @ 0x1003b3e69
//
// 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 12:35:34 +0000
//
_OWORD *__fastcall cocos2d::CCRenderTexture::create_1(unsigned int a1, unsigned int a2, unsigned int a3)
{
_OWORD *v4; // rbx
v4 = operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v4);
*(_QWORD *)v4 = off_100B8EFC0;
v4[20] = 0;
*((_DWORD *)v4 + 84) = 0;
*(_OWORD *)((char *)v4 + 344) = 0;
*(_OWORD *)((char *)v4 + 360) = 0;
*(_OWORD *)((char *)v4 + 376) = 0;
*(_OWORD *)((char *)v4 + 385) = 0;
*(_OWORD *)((char *)v4 + 404) = 0;
if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v4, a1, a2, a3, 0) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_OWORD *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}