//
// cocos2d::CCParticleBatchNode::setTexture from 0xd723d0 to 0xd72448 (120 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::CCParticleBatchNode::setTexture @ 0xd7244c
// > ??> @ 0xa80d0
// > ??> @ 0x152d018
//
// 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:08:01 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::setTexture(
cocos2d::CCParticleBatchNode *this,
cocos2d::CCTexture2D *a2)
{
__int64 result; // x0
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 41) + 104LL))(*((_QWORD *)this + 41));
if ( a2 )
{
result = (unsigned __int8)cocos2d::CCTexture2D::hasPremultipliedAlpha(a2);
if ( !(_BYTE)result )
{
result = 0x30300000001LL;
if ( *((_QWORD *)this + 42) == 0x30300000001LL )
{
*((_DWORD *)this + 84) = 770;
*((_DWORD *)this + 85) = 771;
return 771;
}
}
}
return result;
}