//
// cocos2d::CCParticleSystemQuad::setTexture from 0x1006da9a0 to 0x1006daa23 (131 bytes)
//
// 12 xrefs:
// > ??> @ 0x100b47bf0
// > ??> @ 0x100b482c0
// > ??> @ 0x100b48990
// > ??> @ 0x100b49060
// > ??> @ 0x100b49730
// > ??> @ 0x100b49e00
// > ??> @ 0x100b4a4d0
// > ??> @ 0x100b4aba0
// > ??> @ 0x100b4b270
// > ??> @ 0x100b4b940
// > ??> @ 0x100b4c010
// > ??> @ 0x100b91f18
//
// 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:35:42 +0000
//
double *__fastcall cocos2d::CCParticleSystemQuad::setTexture(__int64 a1, __int64 a2)
{
int v2; // r15d
_BYTE v4[16]; // [rsp+0h] [rbp-30h] BYREF
_DWORD v5[8]; // [rsp+10h] [rbp-20h] BYREF
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 144LL))(v5);
sub_100278270((__int64)v4, 0.0, 0.0, (__m128)v5[0], (__m128)v5[1]);
if ( !*(_QWORD *)(a1 + 664)
|| (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 104LL))(a2),
v2 != (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 664) + 104LL))(*(_QWORD *)(a1 + 664))) )
{
cocos2d::CCParticleSystem::setTexture(a1);
}
return cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(a1, (__int64)v4);
}