//
// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006ace0 to 0x18006ad4d (109 bytes)
//
// 7 xrefs:
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ac63
// > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006acd0
// > ??> @ 0x18013a0d0
// > ??> @ 0x18013a0e0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b3d50
// > ??> @ 0x1801b3d5c
//
// 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 __fastcall cocos2d::CCParticleSystemQuad::setTextureWithRect(
cocos2d::CCParticleSystemQuad *this,
struct cocos2d::CCTexture2D *a2,
const struct cocos2d::CCRect *a3)
{
cocos2d::CCTexture2D *m_pTexture; // rcx
int v7; // ebx
m_pTexture = this->m_pTexture;
if ( !m_pTexture
|| (v7 = ((__int64 (*)(void))m_pTexture->getName)(),
((unsigned int (__fastcall *)(struct cocos2d::CCTexture2D *))a2->getName)(a2) != v7) )
{
cocos2d::CCParticleSystem::setTexture((cocos2d::CCParticleSystem *)&this->cocos2d::CCTextureProtocol, a2);
}
cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);
}