//
// cocos2d::CCParticleSystem::setTexture from 0x7e305e to 0x7e3092 (52 bytes)
//
// 2 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleSystem::setTexture @ 0x7e3096
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x7e69ae
//
// 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:51 +0000
//
int __fastcall cocos2d::CCParticleSystem::setTexture(int result, cocos2d::CCObject *this)
{
int *v2; // r4
_DWORD *v4; // r0
int v5; // r3
v2 = (int *)result;
if ( *(cocos2d::CCObject **)(result + 584) != this )
{
if ( this )
cocos2d::CCObject::retain((int)this);
v4 = (_DWORD *)v2[146];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = *v2;
v2[146] = (int)this;
return (*(int (__fastcall **)(int *))(v5 + 820))(v2);
}
return result;
}