//
// cocos2d::CCParticleSystem::setTexture from 0x1008b2630 to 0x1008b2683 (83 bytes)
//
// 5 xrefs:
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x1006da982
// > cocos2d::CCParticleSystemQuad::setTexture @ 0x1006daa07
// > sub_1006DAA30 @ 0x1006daaa0
// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x1006dab2a
// > ??> @ 0x100bacc38
//
// 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 12:37:21 +0000
//
__int64 __fastcall cocos2d::CCParticleSystem::setTexture(_QWORD *a1, __int64 a2)
{
_DWORD *v3; // rdi
__int64 result; // rax
v3 = (_DWORD *)a1[83];
if ( v3 != (_DWORD *)a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v3 = (_DWORD *)a1[83];
}
if ( v3 )
cocos2d::CCObject::release(v3);
a1[83] = a2;
return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 1640LL))(a1);
}
return result;
}