//
// cocos2d::CCParticleSystem::setTexture from 0xd6e744 to 0xd6e79c (88 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleSystem::setTexture @ 0xd6e7a0
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0xd74048
// > ??> @ 0xe1ef8
// > ??> @ 0x152cb90
//
// 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:07:58 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCParticleSystem::setTexture(__int64 *a1, cocos2d::CCObject *this)
{
cocos2d::CCObject *result; // x0
__int64 v5; // x1
result = (cocos2d::CCObject *)a1[83];
if ( result != this )
{
if ( this )
{
cocos2d::CCObject::retain((__int64)this);
result = (cocos2d::CCObject *)a1[83];
}
if ( result )
cocos2d::CCObject::release(result);
v5 = *a1;
a1[83] = (__int64)this;
return (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64 *))(v5 + 1640))(a1);
}
return result;
}