//
// cocos2d::CCRenderTexture::setSprite from 0xaf9400 to 0xaf9448 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0xae4e0
// > ??> @ 0x1211c98
//
// 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
//
void cocos2d::CCRenderTexture::setSprite(cocos2d::CCRenderTexture *a1, cocos2d::CCSprite *a2)
{
cocos2d::CCSprite *m_pSprite; // x0
cocos2d::CCSprite *v4; // [xsp+28h] [xbp+28h]
m_pSprite = a1->m_pSprite;
if ( m_pSprite )
{
v4 = a2;
cocos2d::CCObject::release(m_pSprite);
a2 = v4;
}
a1->m_pSprite = a2;
if ( a2 )
cocos2d::CCObject::retain(a2);
}