//
// GameObject::createAndAddParticle from 0x455384 to 0x455440 (188 bytes)
//
// 41 xrefs:
// > GameObject::commonInteractiveSetup @ 0x45549e
// > GameObject::customSetup @ 0x4572c0
// > GameObject::customSetup @ 0x457314
// > GameObject::customSetup @ 0x4573e2
// > GameObject::customSetup @ 0x457412
// > GameObject::customSetup @ 0x457492
// > GameObject::customSetup @ 0x457514
// > GameObject::customSetup @ 0x45759a
// > GameObject::customSetup @ 0x457646
// > GameObject::customSetup @ 0x457758
// > GameObject::customSetup @ 0x457808
// > GameObject::customSetup @ 0x4578ae
// > GameObject::customSetup @ 0x457952
// > GameObject::customSetup @ 0x4579f4
// > GameObject::customSetup @ 0x457ad8
// > GameObject::customSetup @ 0x457b7e
// > GameObject::customSetup @ 0x457f80
// > GameObject::customSetup @ 0x457fce
// > GameObject::customSetup @ 0x45801c
// > GameObject::customSetup @ 0x458068
// > GameObject::customSetup @ 0x4580bc
// > GameObject::customSetup @ 0x45816a
// > GameObject::customSetup @ 0x4581ee
// > GameObject::customSetup @ 0x4582a4
// > GameObject::customSetup @ 0x45830e
// > GameObject::customSetup @ 0x458378
// > GameObject::customSetup @ 0x45842a
// > GameObject::customSetup @ 0x45851a
// > GameObject::customSetup @ 0x4585e6
// > GameObject::customSetup @ 0x458696
// > GameObject::customSetup @ 0x458768
// > GameObject::customSetup @ 0x45885e
// > GameObject::customSetup @ 0x458910
// > GameObject::customSetup @ 0x4589c2
// > GameObject::customSetup @ 0x458a6c
// > GameObject::customSetup @ 0x458e66
// > EnhancedGameObject::customSetup @ 0x45a198
// > EnhancedGameObject::customSetup @ 0x45a9b6
// > EnhancedGameObject::customSetup @ 0x45aa58
// > EnhancedGameObject::updateUserCoin @ 0x45ab28
// > EndPortalObject::init @ 0x507798
//
// 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:48:39 +0000
//
GameManager *__fastcall GameObject::createAndAddParticle(int a1, int a2, int a3, int a4, int a5)
{
GameManager *result; // r0
int v10; // r4
int v11; // r0
int v12; // r0
int v13; // r0
int v14; // r1
int v15; // r2
GameManager *Particle; // [sp+Ch] [bp-18h]
int v17; // [sp+10h] [bp-14h] BYREF
int v18; // [sp+14h] [bp-10h]
int v19; // [sp+18h] [bp-Ch]
result = *(GameManager **)(GameManager::sharedState((GameManager *)a1) + 404);
if ( result )
{
v10 = *(unsigned __int8 *)(a1 + 909);
if ( *(_BYTE *)(a1 + 909) )
{
return nullptr;
}
else
{
v11 = GameManager::sharedState(result);
Particle = (GameManager *)GJBaseGameLayer::createParticle(*(_DWORD *)(v11 + 404), a2, a3, a4, a5);
v12 = GameManager::sharedState(Particle);
GJBaseGameLayer::getParticleKey(&v17, *(_DWORD *)(v12 + 404), a2, a3, a4, a5);
if ( (*(_BYTE *)(a1 + 664) & 1) != 0 )
{
**(_BYTE **)(a1 + 672) = v10;
*(_DWORD *)(a1 + 668) = v10;
}
else
{
*(_BYTE *)(a1 + 665) = 0;
*(_BYTE *)(a1 + 664) = 0;
}
std::string::reserve((int *)(a1 + 664), 0);
v13 = v17;
v14 = v18;
v15 = v19;
v17 = 0;
v18 = 0;
v19 = 0;
*(_DWORD *)(a1 + 664) = v13;
*(_DWORD *)(a1 + 668) = v14;
*(_DWORD *)(a1 + 672) = v15;
std::string::~string((int)&v17);
*(_BYTE *)(a1 + 676) = 1;
return Particle;
}
}
return result;
}