//
// GJPathSprite::updateState from 0xa6ee74 to 0xa6eefc (136 bytes)
//
// 3 xrefs:
// > GJPathsLayer::init @ 0xa6f31c
// > GJPathPage::init @ 0xa6f994
// > ??> @ 0xb2968
//
// 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 GJPathSprite::updateState(GJPathSprite *a1)
{
GameStatsManager *v2; // x0
GameStatsManager *v3; // x0
int v4; // w1
StatKey v5; // [xsp+28h] [xbp+28h]
v2 = GameStatsManager::sharedState();
if ( GameStatsManager::isItemUnlocked(v2, GJItem, a1->m_pathNumber + 5) )
{
v5 = a1->m_pathNumber + 29;
v3 = GameStatsManager::sharedState();
v4 = vcvtms_s32_f32((float)GameStatsManager::getStatFromKey(v3, v5) / 100.0);
if ( v4 > 9 )
GJPathSprite::addShardSprite(a1);
else
GJPathSprite::addRankLabel(a1, v4);
}
else
{
GJPathSprite::changeToLockedArt(a1);
}
}