//
// GJLevelList::completedLevels from 0x1000b1a88 to 0x1000b1adc (84 bytes)
//
// 4 xrefs:
// > LevelListCell::loadFromList @ 0x100103a48
// > LevelListLayer::updateStatsArt @ 0x10024535c
// > LevelListLayer::onClaimReward @ 0x1002460c4
// > GameStatsManager::claimListReward @ 0x1003341bc
//
// 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 __fastcall GJLevelList::completedLevels(GJLevelList *a1)
{
std::__vector_base::pointer begin; // x20
std::__vector_base::pointer end; // x21
int v3; // w19
GameStatsManager *v4; // x0
int v5; // t1
begin = a1->m_levels.__begin_;
end = a1->m_levels.__end_;
if ( begin == end )
return 0;
v3 = 0;
do
{
v4 = GameStatsManager::sharedState();
v5 = *begin++;
v3 += GameStatsManager::hasCompletedOnlineLevel(v4, v5);
}
while ( begin != end );
return v3;
}