//
// UISettingsGameObject::customObjectSetup from 0x4f1e52 to 0x4f1f50 (254 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:14 +0000
//
int __fastcall UISettingsGameObject::customObjectSetup(unsigned int a1, int *a2, int a3)
{
int v6; // r1
int v7; // r0
const char *v8; // r0
int v9; // r1
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(a1, a2, a3);
v6 = *(_DWORD *)(*(_DWORD *)a3 + 204);
if ( v6 )
{
v7 = *a2;
if ( (*(_BYTE *)(*a2 + 612) & 1) != 0 )
v8 = *(const char **)(v7 + 620);
else
v8 = (const char *)(v7 + 613);
v6 = atoi(v8);
}
EffectGameObject::setTargetID(a1, v6);
v9 = *(_DWORD *)(*(_DWORD *)a3 + 284);
if ( v9 )
{
v10 = *a2;
if ( (*(_BYTE *)(*a2 + 852) & 1) != 0 )
v11 = *(const char **)(v10 + 860);
else
v11 = (const char *)(v10 + 853);
v9 = atoi(v11);
}
EffectGameObject::setTargetID2(a1, v9);
v12 = *(_DWORD *)(*(_DWORD *)a3 + 1540);
if ( v12 )
{
if ( (*(_BYTE *)(*a2 + 4620) & 1) != 0 )
v13 = *(const char **)(*a2 + 4628);
else
v13 = (const char *)(*a2 + 4621);
v12 = atoi(v13);
}
*(_DWORD *)(a1 + 1648) = v12;
v14 = *(_DWORD *)(*(_DWORD *)a3 + 1544);
if ( v14 )
{
if ( (*(_BYTE *)(*a2 + 4632) & 1) != 0 )
v15 = *(const char **)(*a2 + 4640);
else
v15 = (const char *)(*a2 + 4633);
v14 = atoi(v15);
}
*(_DWORD *)(a1 + 1652) = v14;
v16 = *(_DWORD *)(*(_DWORD *)a3 + 1548);
if ( v16 )
{
if ( (*(_BYTE *)(*a2 + 4644) & 1) != 0 )
v17 = *(const char **)(*a2 + 4652);
else
v17 = (const char *)(*a2 + 4645);
LOBYTE(v16) = atoi(v17) != 0;
}
*(_BYTE *)(a1 + 1656) = v16;
result = *(_DWORD *)(*(_DWORD *)a3 + 1552);
if ( result )
{
if ( (*(_BYTE *)(*a2 + 4656) & 1) != 0 )
v19 = *(const char **)(*a2 + 4664);
else
v19 = (const char *)(*a2 + 4657);
result = atoi(v19) != 0;
}
*(_BYTE *)(a1 + 1657) = result;
return result;
}