//
// EnhancedGameObject::customObjectSetup from 0x6528f8 to 0x652b64 (620 bytes)
//
// 6 xrefs:
// > SpecialAnimGameObject::customObjectSetup @ 0x74a74c
// > EffectGameObject::customObjectSetup @ 0x74b428
// > ParticleGameObject::customObjectSetup @ 0x754acc
// > ??> @ 0xade08
// > ??> @ 0x11541d8
// > ??> @ 0x1168358
//
// 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 EnhancedGameObject::customObjectSetup(
EnhancedGameObject *a1,
std::vector *a2,
std::vector *a3)
{
void **m_start; // x21
bool v7; // zf
void *v8; // x0
bool v9; // w1
bool v10; // w1
_BOOL4 m_hasCustomRotation; // w0
bool v12; // w1
void *v13; // x0
float v14; // s1
float m_rotationAngle; // s0
void **v16; // x21
bool v17; // w1
void *v18; // x0
double v19; // d0
float v20; // s0
void *v21; // x0
std::string *v22; // x23
_BOOL4 m_animationShouldUseSpeed; // w0
bool v24; // w1
void *v25; // x0
bool v26; // w1
void *v27; // x0
int v28; // w0
void *v29; // x1
_BOOL4 v30; // w0
void *v31; // x0
m_start = a3->m_start;
if ( *((_QWORD *)a3->m_start + 99) )
{
v7 = atoi((const char *)a2->m_start[99].m_data.m_data) == 0;
v8 = m_start[444];
v9 = !v7;
a1->m_isMultiActivate = v9;
if ( v8 )
goto LABEL_6;
}
else
{
v31 = m_start[444];
a1->m_isMultiActivate = 0;
if ( v31 )
{
LABEL_6:
v10 = atoi((const char *)a2->m_start[444].m_data.m_data) != 0;
goto LABEL_7;
}
}
v10 = 0;
LABEL_7:
m_hasCustomRotation = a1->m_hasCustomRotation;
a1->m_isNoMultiActivate = v10;
if ( m_hasCustomRotation )
{
if ( m_start[98] )
v12 = atoi((const char *)a2->m_start[98].m_data.m_data) != 0;
else
v12 = 0;
v13 = m_start[97];
a1->m_disableRotation = v12;
if ( v13 )
v14 = atof((const char *)a2->m_start[97].m_data.m_data);
else
v14 = 0.0;
m_rotationAngle = a1->m_rotationAngle;
a1->m_rotationSpeed = v14;
EnhancedGameObject::createRotateAction(a1, m_rotationAngle, 0);
}
if ( a1->m_hasCustomAnimation )
{
v16 = a3->m_start;
if ( *((_QWORD *)a3->m_start + 106) )
v17 = atoi((const char *)a2->m_start[106].m_data.m_data) != 0;
else
v17 = 0;
v18 = v16[107];
a1->m_animationRandomizedStart = v17;
if ( v18 )
{
v19 = atof((const char *)a2->m_start[107].m_data.m_data);
v16 = a3->m_start;
v20 = v19;
}
else
{
v20 = 0.0;
}
v21 = v16[123];
a1->m_animationSpeed = v20;
if ( v21 && (v22 = a2->m_start, atoi((const char *)a2->m_start[123].m_data.m_data)) )
{
m_animationShouldUseSpeed = a1->m_animationShouldUseSpeed;
a1->m_animateOnTrigger = 1;
if ( !m_animationShouldUseSpeed && v16[122] )
a1->m_animationShouldUseSpeed = atoi((const char *)v22[122].m_data.m_data) != 0;
EnhancedGameObject::waitForAnimationTrigger(a1);
v16 = a3->m_start;
}
else
{
v30 = a1->m_animationShouldUseSpeed;
a1->m_animateOnTrigger = 0;
if ( !v30 && v16[122] )
a1->m_animationShouldUseSpeed = atoi((const char *)a2->m_start[122].m_data.m_data) != 0;
}
if ( v16[126] )
v24 = atoi((const char *)a2->m_start[126].m_data.m_data) != 0;
else
v24 = 0;
v25 = v16[214];
a1->m_disableDelayedLoop = v24;
if ( v25 )
v26 = atoi((const char *)a2->m_start[214].m_data.m_data) != 0;
else
v26 = 0;
v27 = v16[462];
a1->m_animateOnlyWhenActive = v26;
if ( v27 )
v28 = atoi((const char *)a2->m_start[462].m_data.m_data);
else
v28 = 0;
v29 = v16[592];
a1->m_singleFrame = v28;
if ( v29 )
a1->m_animationOffset = atoi((const char *)a2->m_start[592].m_data.m_data) != 0;
else
a1->m_animationOffset = 0;
}
}