//
// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0xd73fec to 0xd74064 (120 bytes)
//
// 3 xrefs:
// > cocos2d::CCParticleSystemQuad::setTexture @ 0xd740cc
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0xd74144
// > ??> @ 0x97a50
//
// This function is hookable on this platform (idp: arm, 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 13:08:01 +0000
//
__int64 __fastcall cocos2d::CCParticleSystemQuad::setTextureWithRect(
cocos2d::CCParticleSystemQuad *this,
cocos2d::CCTexture2D *a2,
const cocos2d::CCRect *a3)
{
int v5; // w21
int v6; // w0
cocos2d::CCObject *v8; // [xsp+38h] [xbp+38h]
if ( !*((_QWORD *)this + 83)
|| (v8 = a2,
v5 = (*(__int64 (__fastcall **)(cocos2d::CCTexture2D *))(*(_QWORD *)a2 + 104LL))(a2),
v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 83) + 104LL))(*((_QWORD *)this + 83)),
a2 = v8,
v5 != v6) )
{
cocos2d::CCParticleSystem::setTexture((__int64 *)this, a2);
}
return cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);
}