//
// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x7e6978 to 0x7e69b4 (60 bytes)
//
// 2 xrefs:
// > cocos2d::CCParticleSystemQuad::setTexture @ 0x7e69e6
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x7e6a30
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:54 +0000
//
int __fastcall cocos2d::CCParticleSystemQuad::setTextureWithRect(
cocos2d::CCParticleSystemQuad *this,
cocos2d::CCTexture2D *a2,
const cocos2d::CCRect *a3)
{
int v6; // r7
if ( !*((_DWORD *)this + 146)
|| (v6 = (*(int (__fastcall **)(cocos2d::CCTexture2D *))(*(_DWORD *)a2 + 52))(a2),
v6 != (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 146) + 52))(*((_DWORD *)this + 146))) )
{
cocos2d::CCParticleSystem::setTexture((int)this, a2);
}
return cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);
}