//
// GJLevelList::completedLevels from 0x8072c4 to 0x80731c (88 bytes)
//
// 5 xrefs:
// > LevelListCell::loadFromList @ 0x740278
// > GameStatsManager::claimListReward @ 0x8ea944
// > LevelListLayer::updateStatsArt @ 0xbab0e8
// > LevelListLayer::onClaimReward @ 0xbabf64
// > ??> @ 0xbcc08
//
// This function is hookable on this platform (idp: arm, 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:54:46 +0000
//
__int64 __fastcall GJLevelList::completedLevels(unsigned __int64 this)
{
unsigned int v1; // w20
int *v2; // x19
int *v3; // x21
GameStatsManager *v4; // x0
int v5; // t1
v1 = 0;
v2 = *(int **)(this + 320);
v3 = *(int **)(this + 328);
while ( v3 != v2 )
{
v4 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)this);
v5 = *v2++;
this = (unsigned __int8)GameStatsManager::hasCompletedOnlineLevel(v4, v5);
if ( (_BYTE)this )
++v1;
}
return v1;
}