//
// ParticleGameObject::customObjectSetup from 0x89c5d4 to 0x89c7d0 (508 bytes)
//
// 2 xrefs:
// > ??> @ 0x8bdc8
// > ??> @ 0x1447998
//
// 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:56:12 +0000
//
__int64 __fastcall ParticleGameObject::customObjectSetup(unsigned __int8 *a1, __int64 *a2, __int64 a3)
{
unsigned __int8 *v5; // x22
__int64 v7; // x0
__int64 v8; // x2
__int64 v9; // x0
__int64 v10; // x1
__int64 v11; // x1
const char *v12; // x0
const char *v13; // x0
const char *v14; // x0
bool v15; // w1
int v16; // w0
__int64 v18; // [xsp+40h] [xbp+40h] BYREF
__int64 v19; // [xsp+48h] [xbp+48h]
__int64 v20; // [xsp+50h] [xbp+50h]
v5 = a1 + 1448;
EnhancedGameObject::customObjectSetup((__int64)a1, a2, a3);
if ( *(_QWORD *)(*(_QWORD *)a3 + 1160LL) )
{
v7 = *a2;
v18 = 0;
v8 = v7 + 3480;
v19 = 0;
LOBYTE(v7) = *(_BYTE *)(v7 + 3480);
v20 = 0;
if ( (v7 & 1) != 0 )
{
std::string::__init(&v18, *(void **)(v8 + 16), *(_QWORD *)(v8 + 8));
}
else
{
v9 = *(_QWORD *)v8;
v10 = *(_QWORD *)(v8 + 8);
v20 = *(_QWORD *)(v8 + 16);
v18 = v9;
v19 = v10;
}
}
else
{
v18 = 0;
v19 = 0;
v20 = 0;
std::string::__init(&v18, &byte_11B8890, 0);
}
if ( (a1[1448] & 1) != 0 )
{
**((_BYTE **)v5 + 2) = 0;
*((_QWORD *)v5 + 1) = 0;
}
else
{
a1[1449] = 0;
a1[1448] = 0;
}
std::string::reserve((__int64 *)v5, 0);
*((_QWORD *)v5 + 2) = v20;
v11 = v19;
*(_QWORD *)v5 = v18;
*((_QWORD *)v5 + 1) = v11;
if ( *(_QWORD *)(*(_QWORD *)a3 + 1168LL) )
{
v12 = (const char *)(*a2 + 3505);
if ( (*(_BYTE *)(*a2 + 3504) & 1) != 0 )
v12 = *(const char **)(*a2 + 3520);
a1[809] = atoi(v12) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 1176LL) )
{
LABEL_10:
v13 = (const char *)(*a2 + 3529);
if ( (*(_BYTE *)(*a2 + 3528) & 1) != 0 )
v13 = *(const char **)(*a2 + 3544);
a1[1768] = atoi(v13) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 1688LL) )
goto LABEL_13;
LABEL_23:
v15 = 0;
goto LABEL_16;
}
}
else
{
a1[809] = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 1176LL) )
goto LABEL_10;
}
a1[1768] = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 1688LL) )
goto LABEL_23;
LABEL_13:
v14 = (const char *)(*a2 + 5065);
if ( (*(_BYTE *)(*a2 + 5064) & 1) != 0 )
v14 = *(const char **)(*a2 + 5080);
v15 = atoi(v14) != 0;
LABEL_16:
v16 = a1[649];
a1[1776] = v15;
if ( !v16 )
ParticleGameObject::createAndAddCustomParticle((ParticleGameObject *)a1);
return _stack_chk_guard;
}