//
// cocos2d::CCParticleSystem::setTexture from 0x100229328 to 0x100229388 (96 bytes)
//
// 3 xrefs:
// > sub_100229388 @ 0x10022938c
// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x1002f0b10
// > ??> @ 0x1008ff010
//
// 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 11:01:12 +0000
//
_DWORD *__fastcall cocos2d::CCParticleSystem::setTexture(_QWORD *a1, __int64 a2)
{
_DWORD *result; // x0
result = (_DWORD *)a1[83];
if ( result != (_DWORD *)a2 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = (_DWORD *)a1[83];
}
if ( result )
cocos2d::CCObject::release(result);
a1[83] = a2;
return (_DWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 1640LL))(a1);
}
return result;
}