//
// TriggerControlGameObject::customObjectSetup from 0x4f617c to 0x4f620a (142 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 TriggerControlGameObject::customObjectSetup(unsigned int a1, int *a2, int a3)
{
int v6; // r1
int v7; // r0
const char *v8; // r0
int v9; // r0
const char *v10; // r0
int v11; // r0
const char *v12; // 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 + 2140);
if ( v9 )
{
if ( (*(_BYTE *)(*a2 + 6420) & 1) != 0 )
v10 = *(const char **)(*a2 + 6428);
else
v10 = (const char *)(*a2 + 6421);
LOBYTE(v9) = atoi(v10) != 0;
}
*(_BYTE *)(a1 + 1496) = v9;
v11 = *(_DWORD *)(*(_DWORD *)a3 + 2320);
if ( v11 )
{
if ( (*(_BYTE *)(*a2 + 6960) & 1) != 0 )
v12 = *(const char **)(*a2 + 6968);
else
v12 = (const char *)(*a2 + 6961);
v11 = atoi(v12);
}
*(_DWORD *)(a1 + 1660) = v11;
return TriggerControlGameObject::updateTriggerControlFrame((TriggerControlGameObject *)a1);
}