//
// cocos2d::CCParticleBatchNode::setTexture from 0x7e585e to 0x7e5896 (56 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleBatchNode::setTexture @ 0x7e589a
//
// 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:53 +0000
//
int __fastcall cocos2d::CCParticleBatchNode::setTexture(cocos2d::CCParticleBatchNode *this, cocos2d::CCTexture2D *a2)
{
int result; // r0
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 67) + 52))(*((_DWORD *)this + 67));
if ( a2 )
{
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(a2);
if ( !result && *((_DWORD *)this + 68) == 1 && *((_DWORD *)this + 69) == 771 )
*((_DWORD *)this + 68) = 770;
}
return result;
}