//
// GameObject::createAndAddParticle from 0x100686c60 to 0x100686d24 (196 bytes)
//
// 36 xrefs:
// > EndPortalObject::init @ 0x100385e11
// > GameObject::customSetup @ 0x10067be86
// > GameObject::customSetup @ 0x10067d5db
// > GameObject::customSetup @ 0x10067d962
// > GameObject::customSetup @ 0x10067da2f
// > GameObject::customSetup @ 0x10067db44
// > GameObject::customSetup @ 0x10067dc36
// > GameObject::customSetup @ 0x10067dd28
// > GameObject::customSetup @ 0x10067ddea
// > GameObject::customSetup @ 0x10067df1b
// > GameObject::customSetup @ 0x10067dfb8
// > GameObject::customSetup @ 0x10067e05c
// > GameObject::customSetup @ 0x10067e103
// > GameObject::customSetup @ 0x10067e19f
// > GameObject::customSetup @ 0x10067e261
// > GameObject::customSetup @ 0x10067e3a2
// > GameObject::customSetup @ 0x10067e5ba
// > GameObject::customSetup @ 0x10067e637
// > GameObject::customSetup @ 0x10067e756
// > GameObject::customSetup @ 0x10067e854
// > GameObject::customSetup @ 0x10067e8f7
// > GameObject::customSetup @ 0x10067e979
// > GameObject::customSetup @ 0x10067ea14
// > GameObject::customSetup @ 0x10067eb5d
// > GameObject::customSetup @ 0x10067ec19
// > GameObject::customSetup @ 0x10067ed5d
// > GameObject::customSetup @ 0x10067ee02
// > GameObject::customSetup @ 0x10067eeba
// > GameObject::customSetup @ 0x10067efac
// > GameObject::customSetup @ 0x10067f08d
// > GameObject::customSetup @ 0x10067f163
// > GameObject::commonInteractiveSetup @ 0x100686c29
// > EnhancedGameObject::updateUserCoin @ 0x100693245
// > EnhancedGameObject::customSetup @ 0x10069ee13
// > EnhancedGameObject::customSetup @ 0x10069f150
// > EnhancedGameObject::customSetup @ 0x10069f2ca
//
// 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:05 +0000
//
__int64 __fastcall GameObject::createAndAddParticle(__int64 a1, unsigned int a2, char *a3, unsigned int a4, int a5)
{
__int64 v9; // rax
__int64 v10; // rax
__int128 v11; // [rsp+8h] [rbp-48h] BYREF
__int64 v12; // [rsp+18h] [rbp-38h]
__int64 Particle; // [rsp+20h] [rbp-30h]
if ( !*(_QWORD *)(GameManager::sharedState() + 544) || *(_BYTE *)(a1 + 1045) )
return 0;
v9 = GameManager::sharedState();
Particle = GJBaseGameLayer::createParticle(*(_QWORD *)(v9 + 544), a2, a3, a4, a5);
v10 = GameManager::sharedState();
GJBaseGameLayer::getParticleKey((size_t *)&v11, *(_QWORD *)(v10 + 544), a2, a3, a4, a5);
if ( (*(_BYTE *)(a1 + 784) & 1) != 0 )
operator delete(*(void **)(a1 + 800));
*(_QWORD *)(a1 + 800) = v12;
*(_OWORD *)(a1 + 784) = v11;
*(_BYTE *)(a1 + 808) = 1;
return Particle;
}