//
// GJLevelList::completedLevels from 0x10058f8b0 to 0x10058f8fb (75 bytes)
//
// 4 xrefs:
// > GameStatsManager::claimListReward @ 0x10003977a
// > LevelListCell::loadFromList @ 0x10022b287
// > LevelListLayer::updateStatsArt @ 0x100349877
// > LevelListLayer::onClaimReward @ 0x10034a646
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:32:26 +0000
//
__int64 __fastcall GJLevelList::completedLevels(__int64 a1)
{
unsigned int *v1; // r14
unsigned int *v2; // r15
unsigned int i; // ebx
__int64 v4; // rax
v1 = *(unsigned int **)(a1 + 320);
v2 = *(unsigned int **)(a1 + 328);
for ( i = 0; v1 != v2; ++v1 )
{
v4 = GameStatsManager::sharedState();
i += GameStatsManager::hasCompletedOnlineLevel(v4, *v1);
}
return i;
}