//
// EndTriggerGameObject::customObjectSetup from 0x892c44 to 0x892e08 (452 bytes)
//
// 2 xrefs:
// > ??> @ 0x71c68
// > ??> @ 0x1452338
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:56:08 +0000
//
bool __fastcall EndTriggerGameObject::customObjectSetup(_BYTE *a1, __int64 *a2, __int64 a3)
{
const char *v6; // x0
int v7; // w0
const char *v8; // x0
int v9; // w0
const char *v10; // x0
const char *v11; // x0
const char *v12; // x0
_BOOL8 result; // x0
EffectGameObject::customObjectSetup((__int64)a1, a2, a3);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
EffectGameObject::setTargetID((__int64)a1, 0);
if ( *(_QWORD *)(*(_QWORD *)a3 + 568LL) )
goto LABEL_5;
LABEL_18:
EffectGameObject::setTargetID2((__int64)a1, 0);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3680LL) )
goto LABEL_8;
LABEL_19:
a1[1840] = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3688LL) )
goto LABEL_11;
goto LABEL_20;
}
v6 = (const char *)(*a2 + 1225);
if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 )
v6 = *(const char **)(*a2 + 1240);
v7 = atoi(v6);
EffectGameObject::setTargetID((__int64)a1, v7);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
goto LABEL_18;
LABEL_5:
v8 = (const char *)(*a2 + 1705);
if ( (*(_BYTE *)(*a2 + 1704) & 1) != 0 )
v8 = *(const char **)(*a2 + 1720);
v9 = atoi(v8);
EffectGameObject::setTargetID2((__int64)a1, v9);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3680LL) )
goto LABEL_19;
LABEL_8:
v10 = (const char *)(*a2 + 11041);
if ( (*(_BYTE *)(*a2 + 11040) & 1) != 0 )
v10 = *(const char **)(*a2 + 11056);
a1[1840] = atoi(v10) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3688LL) )
{
LABEL_11:
v11 = (const char *)(*a2 + 11065);
if ( (*(_BYTE *)(*a2 + 11064) & 1) != 0 )
v11 = *(const char **)(*a2 + 11080);
a1[1841] = atoi(v11) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3896LL) )
goto LABEL_14;
LABEL_21:
a1[1842] = 0;
return 0;
}
LABEL_20:
a1[1841] = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3896LL) )
goto LABEL_21;
LABEL_14:
v12 = (const char *)(*a2 + 11689);
if ( (*(_BYTE *)(*a2 + 11688) & 1) != 0 )
v12 = *(const char **)(*a2 + 11704);
result = atoi(v12) != 0;
a1[1842] = result;
return result;
}