//
// cocos2d::CCParticleSystemQuad::setTexture from 0x100602fc0 to 0x100603043 (131 bytes)
//
// 12 xrefs:
// > ??> @ 0x10093d9a8
// > ??> @ 0x10093e068
// > ??> @ 0x10093e728
// > ??> @ 0x10093ede8
// > ??> @ 0x10093f4a8
// > ??> @ 0x10093fb68
// > ??> @ 0x100940228
// > ??> @ 0x1009408e8
// > ??> @ 0x100940fa8
// > ??> @ 0x100941668
// > ??> @ 0x100941d28
// > ??> @ 0x10097e848
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCParticleSystemQuad::setTexture(cocos2d::CCParticleSystemQuad *a1, cocos2d::CCTexture2D *a2)
{
int v2; // r15d
cocos2d::CCRect v3; // [rsp+0h] [rbp-30h] BYREF
_DWORD v4[8]; // [rsp+10h] [rbp-20h] BYREF
((void (__fastcall *)(_DWORD *))a2->getContentSize)(v4);
sub_10028CC00((__int64)&v3, 0.0, 0.0, (__m128)v4[0], (__m128)v4[1]);
if ( !a1->m_pTexture
|| (v2 = ((__int64 (__fastcall *)(cocos2d::CCTexture2D *))a2->getName)(a2),
v2 != ((unsigned int (__fastcall *)(cocos2d::CCTexture2D *))a1->m_pTexture->getName)(a1->m_pTexture)) )
{
cocos2d::CCParticleSystem::setTexture(a1, a2);
}
cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(a1, &v3);
}