//
// cocos2d::CCParticleBatchNode::setTexture from 0x1003b2c60 to 0x1003b2caf (79 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b37790
//
// 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 12:29:27 +0000
//
__int64 __fastcall cocos2d::CCParticleBatchNode::setTexture(__int64 a1, __int64 a2)
{
__int64 result; // rax
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 328) + 104LL))(*(_QWORD *)(a1 + 328));
if ( a2 )
{
result = cocos2d::CCTexture2D::hasPremultipliedAlpha(a2);
if ( !(_BYTE)result && *(_DWORD *)(a1 + 336) == 1 && *(_DWORD *)(a1 + 340) == 771 )
*(_DWORD *)(a1 + 336) = 770;
}
return result;
}