//
// ParticleGameObject::customObjectSetup from 0x4f6e64 to 0x4f6f7e (282 bytes)
//
// 0 xrefs:
//
// 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:51:17 +0000
//
int __fastcall ParticleGameObject::customObjectSetup(unsigned int a1, int *a2, int a3)
{
int *v6; // r9
int v7; // r0
int v8; // r1
int v9; // r2
int v10; // r0
int v11; // r0
const char *v12; // r0
int v13; // r0
int v14; // r0
const char *v15; // r0
int result; // r0
int v17; // r0
const char *v18; // r0
int v19; // r3
int v20; // [sp+0h] [bp-14h] BYREF
int v21; // [sp+4h] [bp-10h]
int v22; // [sp+8h] [bp-Ch]
v6 = (int *)(a1 + 1268);
EnhancedGameObject::customObjectSetup(a1, a2, a3);
if ( *(_DWORD *)(*(_DWORD *)a3 + 580) )
{
std::string::basic_string(&v20, *a2 + 1740);
}
else
{
v20 = 0;
v21 = 0;
v22 = 0;
std::string::__init(&v20, &unk_B6B226, 0);
}
if ( (*(_BYTE *)(a1 + 1268) & 1) != 0 )
{
**(_BYTE **)(a1 + 1276) = 0;
*(_DWORD *)(a1 + 1272) = 0;
}
else
{
*(_BYTE *)(a1 + 1269) = 0;
*(_BYTE *)(a1 + 1268) = 0;
}
std::string::reserve(v6, 0);
v7 = v20;
v8 = v21;
v9 = v22;
v20 = 0;
v21 = 0;
v22 = 0;
*v6 = v7;
v6[1] = v8;
v6[2] = v9;
std::string::~string((int)&v20);
v10 = *(_DWORD *)(*(_DWORD *)a3 + 584);
if ( v10 )
{
v11 = *a2;
if ( (*(_BYTE *)(*a2 + 1752) & 1) != 0 )
v12 = *(const char **)(v11 + 1760);
else
v12 = (const char *)(v11 + 1753);
LOBYTE(v10) = atoi(v12) != 0;
}
*(_BYTE *)(a1 + 677) = v10;
v13 = *(_DWORD *)(*(_DWORD *)a3 + 588);
if ( v13 )
{
v14 = *a2;
if ( (*(_BYTE *)(*a2 + 1764) & 1) != 0 )
v15 = *(const char **)(v14 + 1772);
else
v15 = (const char *)(v14 + 1765);
LOBYTE(v13) = atoi(v15) != 0;
}
*(_BYTE *)(a1 + 1560) = v13;
result = *(_DWORD *)(*(_DWORD *)a3 + 844);
if ( result )
{
v17 = *a2;
if ( (*(_BYTE *)(*a2 + 2532) & 1) != 0 )
v18 = *(const char **)(v17 + 2540);
else
v18 = (const char *)(v17 + 2533);
result = atoi(v18) != 0;
}
v19 = *(unsigned __int8 *)(a1 + 549);
*(_BYTE *)(a1 + 1568) = result;
if ( !v19 )
return ParticleGameObject::createAndAddCustomParticle((ParticleGameObject *)a1);
return result;
}