//
// GJDifficultySprite::updateFeatureStateFromLevel from 0x8da49c to 0x8da500 (100 bytes)
//
// 3 xrefs:
// > LevelCell::loadCustomLevelCell @ 0x61053c
// > LevelInfoLayer::updateLabelValues @ 0x6d9c28
// > ??> @ 0xc4c98
//
// 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 GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2)
{
int m_featured; // w2
int m_isEpic; // w1
GJFeatureState v4; // w1
if ( a2 )
{
m_featured = a2->m_featured;
m_isEpic = a2->m_isEpic;
if ( m_featured <= 0 )
{
if ( m_isEpic > 0 )
{
LABEL_4:
if ( m_isEpic > 2 )
{
v4 = Mythic;
}
else if ( m_isEpic == 2 )
{
v4 = Legendary;
}
else
{
v4 = Epic;
}
goto LABEL_8;
}
v4 = 0;
}
else
{
if ( m_isEpic > 0 )
goto LABEL_4;
v4 = Featured;
}
LABEL_8:
GJDifficultySprite::updateFeatureState(a1, v4);
}
}