//
// sub_1000D6C98 from 0x1000d6c98 to 0x1000d6cec (84 bytes)
//
// 4 xrefs:
// > LevelListCell::loadFromList @ 0x100128c24
// > LevelListLayer::updateStatsArt @ 0x1002e2498
// > LevelListLayer::onClaimReward @ 0x1002e320c
// > sub_1003D2260 @ 0x1003d2284
//
// 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 10:58:56 +0000
//
__int64 __fastcall sub_1000D6C98(__int64 hasCompletedOnlineLevel)
{
unsigned int *v1; // x20
unsigned int *v2; // x21
__int64 v3; // x19
__int64 v4; // x0
unsigned int v5; // t1
v1 = *(unsigned int **)(hasCompletedOnlineLevel + 320);
v2 = *(unsigned int **)(hasCompletedOnlineLevel + 328);
if ( v1 == v2 )
return 0;
LODWORD(v3) = 0;
do
{
v4 = GameStatsManager::sharedState(hasCompletedOnlineLevel);
v5 = *v1++;
hasCompletedOnlineLevel = GameStatsManager::hasCompletedOnlineLevel(v4, v5);
v3 = (unsigned int)(v3 + hasCompletedOnlineLevel);
}
while ( v1 != v2 );
return v3;
}