//
// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0xb039bc to 0xb03a34 (120 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::setTexture @ 0xb03a9c
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0xb03b14
// > ??> @ 0x709b0
//
// 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::CCParticleSystemQuad::setTextureWithRect(
cocos2d::CCParticleSystemQuad *a1,
cocos2d::CCTexture2D *a2,
const cocos2d::CCRect *a3)
{
GLuint v5; // w21
GLuint v6; // w0
cocos2d::CCTexture2D *v7; // [xsp+38h] [xbp+38h]
if ( !a1->m_pTexture
|| (v7 = a2, v5 = a2->getName(a2), v6 = a1->m_pTexture->getName(a1->m_pTexture), a2 = v7, v5 != v6) )
{
cocos2d::CCParticleSystem::setTexture(a1, a2);
}
cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(a1, a3);
}