//
// GJDifficultySprite::updateFeatureStateFromLevel from 0x1002e59fc to 0x1002e5a38 (60 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::updateLabelValues @ 0x100029928
// > LevelCell::loadCustomLevelCell @ 0x10010d9bc
//
// 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 __fastcall GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2)
{
int m_isEpic; // w9
int v3; // w11
int v4; // w10
GJFeatureState v5; // w1
if ( a2 )
{
m_isEpic = a2->m_isEpic;
if ( m_isEpic == 1 )
v3 = 2;
else
v3 = 3;
if ( (unsigned int)m_isEpic <= 2 )
v4 = v3;
else
v4 = 4;
if ( m_isEpic >= 1 )
v5 = v4;
else
v5 = a2->m_featured > 0;
GJDifficultySprite::updateFeatureState(a1, v5);
}
}