//
// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006cea0 to 0x18006cf1f (127 bytes)
//
// 7 xrefs:
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ce23
// > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006ce90
// > ??> @ 0x180143480
// > ??> @ 0x180143490
// > ??> @ 0x18014cf68
// > ??> @ 0x1801be098
// > ??> @ 0x1801be0a4
//
// 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 11:21:55 +0000
//
void __fastcall cocos2d::CCParticleSystemQuad::setTextureWithRect(
cocos2d::CCParticleSystemQuad *this,
struct cocos2d::CCTexture2D *a2,
const struct cocos2d::CCRect *a3)
{
__int64 v5; // rcx
unsigned int (__fastcall *v7)(struct cocos2d::CCTexture2D *); // rdi
int v8; // ebx
v5 = *((_QWORD *)this + 84);
if ( !v5
|| (v7 = *(unsigned int (__fastcall **)(struct cocos2d::CCTexture2D *))(*(_QWORD *)a2 + 96LL),
v8 = (*(__int64 (**)(void))(*(_QWORD *)v5 + 96LL))(),
v7(a2) != v8) )
{
cocos2d::CCParticleSystem::setTexture((cocos2d::CCParticleSystemQuad *)((char *)this + 320), a2);
}
cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);
}