//
// GJBaseGameLayer::updateActiveEnterEffect from 0x495768 to 0x495864 (252 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x3ee50a
//
// 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 GJBaseGameLayer::updateActiveEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2)
{
int m_objectID; // r3
int v5; // r4
m_objectID = a2->m_objectID;
if ( m_objectID == 55 )
{
v5 = -11;
goto LABEL_31;
}
if ( m_objectID <= 55 )
{
if ( m_objectID == 25 )
{
v5 = -7;
goto LABEL_31;
}
if ( m_objectID > 25 )
{
if ( m_objectID == 27 )
{
v5 = -3;
goto LABEL_31;
}
if ( m_objectID < 27 )
{
v5 = -8;
goto LABEL_31;
}
if ( m_objectID == 28 )
{
v5 = -4;
goto LABEL_31;
}
}
else
{
if ( m_objectID == 23 )
{
v5 = -6;
goto LABEL_31;
}
if ( m_objectID == 24 )
{
v5 = -5;
goto LABEL_31;
}
}
LABEL_30:
v5 = -2;
goto LABEL_31;
}
if ( m_objectID == 59 )
{
v5 = -13;
goto LABEL_31;
}
if ( m_objectID > 59 )
{
if ( m_objectID == 1915 )
{
v5 = -14;
goto LABEL_31;
}
if ( m_objectID >= 1915 && (unsigned int)(m_objectID - 3017) <= 4 )
{
v5 = -15;
goto LABEL_31;
}
goto LABEL_30;
}
if ( m_objectID == 57 )
{
v5 = -9;
}
else if ( m_objectID <= 57 )
{
v5 = -10;
}
else
{
v5 = -12;
}
LABEL_31:
if ( a2->m_enterType <= 1u )
{
a1->m_gameState.m_enterChannelMap.m_start[a2->m_enterChannel] = v5;
if ( v5 == -15 )
GJBaseGameLayer::addCustomEnterEffect(a1, a2, 1);
else
GJBaseGameLayer::removeCustomEnterEffects(a1, a2->m_enterChannel, 1);
}
if ( (a2->m_enterType & 0xFFFFFFFD) == 0 )
{
a1->m_gameState.m_exitChannelMap.m_start[a2->m_enterChannel] = v5;
if ( v5 == -15 )
GJBaseGameLayer::addCustomEnterEffect(a1, a2, 0);
else
GJBaseGameLayer::removeCustomEnterEffects(a1, a2->m_enterChannel, 0);
}
}