//
// GJBaseGameLayer::spawnParticle from 0x140349ef0 to 0x140349fcd (221 bytes)
//
// 4 xrefs:
// > GameObject::spawnDefaultPickupParticle @ 0x1402a767c
// > GameObject::playDestroyObjectAnim @ 0x1402a7900
// > GameObject::playDestroyObjectAnim @ 0x1402a8614
// > ??> @ 0x14091ffc4
//
// 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 11:30:44 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCParticleSystemQuad *__fastcall GJBaseGameLayer::spawnParticle(
__int64 a1,
const char *a2,
__int64 a3,
__int64 a4,
__int64 a5)
{
__int64 v7; // rax
struct cocos2d::CCParticleSystemQuad *v9; // rbx
__int64 v10; // rdx
void *v11; // [rsp+20h] [rbp-18h]
v7 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v7 = qword_14090BFD0;
}
if ( *(_BYTE *)(v7 + 957) )
return nullptr;
v9 = cocos2d::CCParticleSystemQuad::create(a2, 0);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v9 + 64LL))(v9, 0);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 1528LL))(v9, 2);
LOBYTE(v10) = 1;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 1544LL))(v9, v10);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCParticleSystemQuad *, _QWORD))(**(_QWORD **)(a1 + 4296) + 456LL))(
*(_QWORD *)(a1 + 4296),
v9,
0);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v9 + 184LL))(v9, a5);
return v9;
}