//
// cocos2d::CCParticleBatchNode::setTexture from 0x1800641c0 to 0x180064213 (83 bytes)
//
// 3 xrefs:
// > ??> @ 0x180100940
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bda74
//
// 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 11:21:52 +0000
//
void __fastcall cocos2d::CCParticleBatchNode::setTexture(
cocos2d::CCParticleBatchNode *this,
struct cocos2d::CCTexture2D *a2)
{
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 1) + 96LL))(*((_QWORD *)this + 1));
if ( a2
&& !(unsigned __int8)cocos2d::CCCamera::isDirty(a2)
&& *((_DWORD *)this + 4) == 1
&& *((_DWORD *)this + 5) == 771 )
{
*((_DWORD *)this + 4) = 770;
*((_DWORD *)this + 5) = 771;
}
}