//
// GJBaseGameLayer::spawnParticle from 0x1002a0f84 to 0x1002a104c (200 bytes)
//
// 3 xrefs:
// > GameObject::spawnDefaultPickupParticle @ 0x1003e7a58
// > GameObject::playDestroyObjectAnim @ 0x1003e7c5c
// > GameObject::playDestroyObjectAnim @ 0x1003e81cc
//
// 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 11:02:12 +0000
//
__int64 __fastcall GJBaseGameLayer::spawnParticle(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v10; // x21
if ( (*(_BYTE *)(GameManager::sharedState(a1) + 925) & 1) != 0 )
return 0;
v10 = cocos2d::CCParticleSystemQuad::create(a2, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 72LL))(v10, a3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1568LL))(v10, a4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 1584LL))(v10, 1);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v10, a3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, a5);
return v10;
}