//
// PlayerControlGameObject::customObjectSetup from 0x4f2f80 to 0x4f308e (270 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:15 +0000
//
int __fastcall PlayerControlGameObject::customObjectSetup(_BYTE *a1, int *a2, int a3)
{
int v6; // r0
int v7; // r0
const char *v8; // r0
int v9; // r0
int v10; // r0
const char *v11; // r0
int v12; // r0
const char *v13; // r0
int v14; // r0
const char *v15; // r0
int v16; // r0
const char *v17; // r0
int result; // r0
const char *v19; // r0
EffectGameObject::customObjectSetup((unsigned int)a1, a2, a3);
v6 = *(_DWORD *)(*(_DWORD *)a3 + 552);
if ( v6 )
{
v7 = *a2;
if ( (*(_BYTE *)(*a2 + 1656) & 1) != 0 )
v8 = *(const char **)(v7 + 1664);
else
v8 = (const char *)(v7 + 1657);
LOBYTE(v6) = atoi(v8) != 0;
}
a1[1504] = v6;
v9 = *(_DWORD *)(*(_DWORD *)a3 + 800);
if ( v9 )
{
v10 = *a2;
if ( (*(_BYTE *)(*a2 + 2400) & 1) != 0 )
v11 = *(const char **)(v10 + 2408);
else
v11 = (const char *)(v10 + 2401);
LOBYTE(v9) = atoi(v11) != 0;
}
a1[1505] = v9;
v12 = *(_DWORD *)(*(_DWORD *)a3 + 2160);
if ( v12 )
{
if ( (*(_BYTE *)(*a2 + 6480) & 1) != 0 )
v13 = *(const char **)(*a2 + 6488);
else
v13 = (const char *)(*a2 + 6481);
LOBYTE(v12) = atoi(v13) != 0;
}
a1[1648] = v12;
v14 = *(_DWORD *)(*(_DWORD *)a3 + 2164);
if ( v14 )
{
if ( (*(_BYTE *)(*a2 + 6492) & 1) != 0 )
v15 = *(const char **)(*a2 + 6500);
else
v15 = (const char *)(*a2 + 6493);
LOBYTE(v14) = atoi(v15) != 0;
}
a1[1649] = v14;
v16 = *(_DWORD *)(*(_DWORD *)a3 + 2168);
if ( v16 )
{
if ( (*(_BYTE *)(*a2 + 6504) & 1) != 0 )
v17 = *(const char **)(*a2 + 6512);
else
v17 = (const char *)(*a2 + 6505);
LOBYTE(v16) = atoi(v17) != 0;
}
a1[1650] = v16;
result = *(_DWORD *)(*(_DWORD *)a3 + 2172);
if ( result )
{
if ( (*(_BYTE *)(*a2 + 6516) & 1) != 0 )
v19 = *(const char **)(*a2 + 6524);
else
v19 = (const char *)(*a2 + 6517);
result = atoi(v19) != 0;
}
a1[1651] = result;
return result;
}