//
// cocos2d::CCRenderTexture::create_2 from 0x1006c84e0 to 0x1006c8580 (160 bytes)
//
// 6 xrefs:
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x1000a7b32
// > cocos2d::CCTransitionCrossFade::onEnter @ 0x1000a7bfa
// > PlayerObject::playDeathEffect @ 0x1001f6945
// > MapSelectLayer::checkTouchMonster @ 0x100253557
// > cocos2d::CCTransitionProgress::onEnter @ 0x100278b1e
// > sub_1003914D0 @ 0x100391773
//
// 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:35 +0000
//
_QWORD *__fastcall cocos2d::CCRenderTexture::create_2(int a1, int a2)
{
_QWORD *v2; // rbx
v2 = operator new(0x1A8u);
cocos2d::CCNode::CCNode((__int64)v2);
*v2 = off_100B8EFC0;
*((_OWORD *)v2 + 20) = 0;
*((_DWORD *)v2 + 84) = 0;
*(_OWORD *)(v2 + 43) = 0;
*(_OWORD *)(v2 + 45) = 0;
*(_OWORD *)(v2 + 47) = 0;
*(_OWORD *)((char *)v2 + 385) = 0;
*(_OWORD *)((char *)v2 + 404) = 0;
if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(v2, a1, a2, 0, 0) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}