//
// GJLevelList::completedLevels from 0x4ac2b8 to 0x4ac2e2 (42 bytes)
//
// 4 xrefs:
// > LevelListCell::loadFromList @ 0x42957a
// > GameStatsManager::claimListReward @ 0x52a828
// > LevelListLayer::updateStatsArt @ 0x6d60f4
// > LevelListLayer::onClaimReward @ 0x6d6b10
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:59 +0000
//
int __fastcall GJLevelList::completedLevels(GJLevelList *this)
{
int v1; // r5
int *v2; // r6
int *i; // r4
GameStatsManager *v4; // r0
int v5; // r1
v1 = 0;
v2 = *((int **)this + 67);
for ( i = *((int **)this + 66); i != v2; ++i )
{
v4 = (GameStatsManager *)GameStatsManager::sharedState(this);
v5 = *i;
this = (GJLevelList *)GameStatsManager::hasCompletedOnlineLevel(v4, v5);
if ( this )
++v1;
}
return v1;
}