//
// GJBaseGameLayer::spawnParticle from 0x596ec0 to 0x596f1e (94 bytes)
//
// 3 xrefs:
// > GameObject::spawnDefaultPickupParticle @ 0x65e646
// > GameObject::playDestroyObjectAnim @ 0x65ebb4
// > GameObject::playDestroyObjectAnim @ 0x65ef70
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:09 +0000
//
int __fastcall GJBaseGameLayer::spawnParticle(
GameManager *a1,
cocos2d::CCParticleSystemQuad *a2,
int a3,
int a4,
int a5)
{
int v9; // r0
bool v10; // r2
int v11; // r4
v9 = GameManager::sharedState(a1);
if ( *(_BYTE *)(v9 + 725) )
return 0;
v11 = cocos2d::CCParticleSystemQuad::create(a2, (const char *)*(unsigned __int8 *)(v9 + 725), v10);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 36))(v11, a3);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 784))(v11, a4);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 792))(v11, 1);
(*(void (__fastcall **)(_DWORD *, int, int))(**((_DWORD **)a1 + 609) + 232))(*((_DWORD **)a1 + 609), v11, a3);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v11 + 92))(v11, a5);
return v11;
}