//
// EndTriggerGameObject::customObjectSetup from 0x75e010 to 0x75e154 (324 bytes)
//
// 2 xrefs:
// > ??> @ 0x4ed08
// > ??> @ 0x1170ba8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EndTriggerGameObject::customObjectSetup(
EndTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int v6; // w0
int v7; // w0
void **m_start; // x21
bool v9; // zf
void *v10; // x0
bool v11; // w1
void *v12; // x0
bool v13; // w1
void *v14; // x0
void *v15; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( *((_QWORD *)a3->m_start + 51) )
{
v6 = atoi((const char *)a2->m_start[51].m_data.m_data);
EffectGameObject::setTargetID(a1, v6);
if ( *((_QWORD *)a3->m_start + 71) )
goto LABEL_3;
}
else
{
EffectGameObject::setTargetID(a1, 0);
if ( *((_QWORD *)a3->m_start + 71) )
{
LABEL_3:
v7 = atoi((const char *)a2->m_start[71].m_data.m_data);
EffectGameObject::setTargetID2(a1, v7);
m_start = a3->m_start;
if ( m_start[460] )
goto LABEL_4;
LABEL_15:
v14 = m_start[461];
a1->m_noEffects = 0;
if ( v14 )
goto LABEL_8;
goto LABEL_16;
}
}
EffectGameObject::setTargetID2(a1, 0);
m_start = a3->m_start;
if ( !m_start[460] )
goto LABEL_15;
LABEL_4:
v9 = atoi((const char *)a2->m_start[460].m_data.m_data) == 0;
v10 = m_start[461];
v11 = !v9;
a1->m_noEffects = v11;
if ( v10 )
{
LABEL_8:
v9 = atoi((const char *)a2->m_start[461].m_data.m_data) == 0;
v12 = m_start[487];
v13 = !v9;
a1->m_noSFX = v13;
if ( v12 )
goto LABEL_12;
goto LABEL_17;
}
LABEL_16:
v15 = m_start[487];
a1->m_noSFX = 0;
if ( v15 )
{
LABEL_12:
a1->m_instant = atoi((const char *)a2->m_start[487].m_data.m_data) != 0;
return;
}
LABEL_17:
a1->m_instant = 0;
}