//
// GJBaseGameLayer::getParticleKey from 0x140349fd0 to 0x14034a14d (381 bytes)
//
// 3 xrefs:
// > GameObject::createAndAddParticle @ 0x140295cc8
// > GJBaseGameLayer::createParticle @ 0x14034a2aa
// > ??> @ 0x14091ffd0
//
// 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 11:30:44 +0000
//
// Hidden C++ exception states: #wind=2
_QWORD *__fastcall GJBaseGameLayer::getParticleKey(
__int64 a1,
_QWORD *a2,
unsigned int a3,
void *a4,
unsigned int a5,
unsigned int a6)
{
_BYTE *v9; // rax
size_t v10; // rbx
size_t v11; // r8
void **v12; // rdx
void *v13; // rcx
void *Block[2]; // [rsp+40h] [rbp-258h] BYREF
__int128 v16; // [rsp+50h] [rbp-248h]
_BYTE v17[528]; // [rsp+60h] [rbp-238h] BYREF
fmt::BasicWriter::BasicWriter(v17);
fmt::BasicWriter::operator<<(v17, a3);
Block[0] = a4;
Block[1] = nullptr;
fmt::BasicWriter::operator<<(v17, Block);
fmt::BasicWriter::operator<<(v17, a5);
fmt::BasicWriter::operator<<(v17, a6);
v9 = (_BYTE *)fmt::BasicWriter::c_str(v17);
*(_OWORD *)Block = 0;
v16 = 0;
v10 = -1;
v11 = -1;
do
++v11;
while ( v9[v11] );
sub_14003D230(Block, v9, v11);
v12 = Block;
if ( *((_QWORD *)&v16 + 1) > 0xFu )
v12 = (void **)Block[0];
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
do
++v10;
while ( *((_BYTE *)v12 + v10) );
sub_14003D230(a2, v12, v10);
if ( *((_QWORD *)&v16 + 1) > 0xFu )
{
v13 = Block[0];
if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )
{
v13 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v13);
}
fmt::BasicWriter::~BasicWriter(v17);
return a2;
}