//
// GJLevelList::completedLevels from 0x719434 to 0x71948c (88 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x61e5d0
// > GameStatsManager::claimListReward @ 0x7bb648
// > LevelListLayer::onClaimReward @ 0xa73804
// > LevelListLayer::updateStatsArt @ 0xa748f8
// > ??> @ 0x8e9c8
//
// 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
//
int GJLevelList::completedLevels(GJLevelList *a1)
{
int v1; // w20
int *m_start; // x19
int *m_finish; // x21
GameStatsManager *v4; // x0
int v5; // t1
v1 = 0;
m_start = a1->m_levels.m_start;
m_finish = a1->m_levels.m_finish;
while ( m_finish != m_start )
{
v4 = GameStatsManager::sharedState();
v5 = *m_start++;
if ( GameStatsManager::hasCompletedOnlineLevel(v4, v5) )
++v1;
}
return v1;
}