//
// EndTriggerGameObject::customObjectSetup from 0x4f1d74 to 0x4f1e52 (222 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 EndTriggerGameObject::customObjectSetup(_BYTE *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 result; // r0
const char *v17; // r0
EffectGameObject::customObjectSetup((unsigned int)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((int)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((int)a1, v9);
v12 = *(_DWORD *)(*(_DWORD *)a3 + 1840);
if ( v12 )
{
if ( (*(_BYTE *)(*a2 + 5520) & 1) != 0 )
v13 = *(const char **)(*a2 + 5528);
else
v13 = (const char *)(*a2 + 5521);
LOBYTE(v12) = atoi(v13) != 0;
}
a1[1648] = v12;
v14 = *(_DWORD *)(*(_DWORD *)a3 + 1844);
if ( v14 )
{
if ( (*(_BYTE *)(*a2 + 5532) & 1) != 0 )
v15 = *(const char **)(*a2 + 5540);
else
v15 = (const char *)(*a2 + 5533);
LOBYTE(v14) = atoi(v15) != 0;
}
a1[1649] = v14;
result = *(_DWORD *)(*(_DWORD *)a3 + 1948);
if ( result )
{
if ( (*(_BYTE *)(*a2 + 5844) & 1) != 0 )
v17 = *(const char **)(*a2 + 5852);
else
v17 = (const char *)(*a2 + 5845);
result = atoi(v17) != 0;
}
a1[1650] = result;
return result;
}