//
// GameObject::createAndAddParticle from 0x778e48 to 0x778f64 (284 bytes)
//
// 42 xrefs:
// > GameObject::commonInteractiveSetup @ 0x778fec
// > GameObject::customSetup @ 0x779ca4
// > GameObject::customSetup @ 0x779f90
// > GameObject::customSetup @ 0x77a0cc
// > GameObject::customSetup @ 0x77a274
// > GameObject::customSetup @ 0x77a624
// > GameObject::customSetup @ 0x77a74c
// > GameObject::customSetup @ 0x77ae00
// > GameObject::customSetup @ 0x77b018
// > GameObject::customSetup @ 0x77b2dc
// > GameObject::customSetup @ 0x77b4e4
// > GameObject::customSetup @ 0x77b66c
// > GameObject::customSetup @ 0x77b7ec
// > GameObject::customSetup @ 0x77b8f8
// > GameObject::customSetup @ 0x77baec
// > GameObject::customSetup @ 0x77bbac
// > GameObject::customSetup @ 0x77bca0
// > GameObject::customSetup @ 0x77bd10
// > GameObject::customSetup @ 0x77bd80
// > GameObject::customSetup @ 0x77bdf0
// > GameObject::customSetup @ 0x77bef0
// > GameObject::customSetup @ 0x77bfcc
// > GameObject::customSetup @ 0x77c02c
// > GameObject::customSetup @ 0x77c11c
// > GameObject::customSetup @ 0x77c230
// > GameObject::customSetup @ 0x77c2c0
// > GameObject::customSetup @ 0x77c614
// > GameObject::customSetup @ 0x77c92c
// > GameObject::customSetup @ 0x77ca24
// > GameObject::customSetup @ 0x77cacc
// > GameObject::customSetup @ 0x77cb64
// > GameObject::customSetup @ 0x77cc18
// > GameObject::customSetup @ 0x77ccbc
// > GameObject::customSetup @ 0x77cd50
// > GameObject::customSetup @ 0x77ce40
// > GameObject::customSetup @ 0x77ced8
// > EnhancedGameObject::customSetup @ 0x77d344
// > EnhancedGameObject::customSetup @ 0x77d964
// > EnhancedGameObject::customSetup @ 0x77e074
// > EnhancedGameObject::updateUserCoin @ 0x77e3bc
// > EndPortalObject::init @ 0x8b4684
// > ??> @ 0x69ec8
//
// 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 12:53:15 +0000
//
GameManager *__fastcall GameObject::createAndAddParticle(
__int64 a1,
unsigned int a2,
__int64 a3,
unsigned int a4,
unsigned int a5)
{
GameManager *result; // x0
__int64 v11; // x0
GameManager *Particle; // x21
__int64 v13; // x0
__int64 v14; // x2
__int64 v15; // x3
_QWORD v16[3]; // [xsp+50h] [xbp+50h] BYREF
if ( !*(_QWORD *)(GameManager::sharedState(_stack_chk_guard) + 544) )
return nullptr;
result = nullptr;
if ( !*(_BYTE *)(a1 + 1045) )
{
v11 = GameManager::sharedState(nullptr);
Particle = (GameManager *)GJBaseGameLayer::createParticle(*(_QWORD *)(v11 + 544), a2, a3, a4, a5);
v13 = GameManager::sharedState(Particle);
GJBaseGameLayer::getParticleKey(v16, *(_QWORD *)(v13 + 544), a2, a3, a4, a5);
if ( (*(_BYTE *)(a1 + 784) & 1) != 0 )
{
**(_BYTE **)(a1 + 800) = 0;
*(_QWORD *)(a1 + 792) = 0;
}
else
{
*(_BYTE *)(a1 + 785) = 0;
*(_BYTE *)(a1 + 784) = 0;
}
std::string::reserve((__int64 *)(a1 + 784), 0);
v14 = v16[0];
v15 = v16[1];
*(_QWORD *)(a1 + 800) = v16[2];
*(_QWORD *)(a1 + 784) = v14;
*(_QWORD *)(a1 + 792) = v15;
*(_BYTE *)(a1 + 808) = 1;
return Particle;
}
return result;
}