//
// GJBaseGameLayer::getParticleKey from 0x5beb4c to 0x5bec20 (212 bytes)
//
// 2 xrefs:
// > GameObject::createAndAddParticle @ 0x4553f0
// > GJBaseGameLayer::createParticle @ 0x5bec5e
//
// 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:46 +0000
//
int *__fastcall GJBaseGameLayer::getParticleKey(int *a1, int a2, int a3, const char *a4, int a5, int a6)
{
const char *v8; // r6
size_t v9; // r0
bool v10; // nf
size_t v11; // r0
int v13[2]; // [sp+8h] [bp-214h] BYREF
const char *v14; // [sp+10h] [bp-20Ch]
unsigned int v15[3]; // [sp+14h] [bp-208h] BYREF
char v16; // [sp+20h] [bp-1FCh] BYREF
v15[0] = 0;
v15[1] = 500;
v15[2] = (unsigned int)&v16;
fmt::BasicWriter::operator<<(v15, a3);
fmt::BasicWriter::operator<<(v15, a4, 0);
fmt::BasicWriter::operator<<(v15, a5);
fmt::BasicWriter::operator<<(v15, a6);
v8 = (const char *)fmt::BasicWriter::c_str((int *)v15);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
v9 = strlen(v8);
std::string::__init(v13, v8, v9);
v10 = (v13[0] & 1) != 0;
if ( (v13[0] & 1) == 0 )
v8 = (char *)v13 + 1;
*a1 = 0;
if ( v10 )
v8 = v14;
a1[1] = 0;
a1[2] = 0;
v11 = strlen(v8);
std::string::__init(a1, v8, v11);
std::string::~string((int)v13);
fmt::internal::Array::free((int)v15);
return a1;
}