//
// ChallengesPage::updateDots from 0x5ff6d8 to 0x5ff70a (50 bytes)
//
// 2 xrefs:
// > ChallengesPage::challengeStatusFinished @ 0x600aaa
// > ChallengesPage::claimItem @ 0x600b96
//
// 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:54:39 +0000
//
GameStatsManager *__fastcall ChallengesPage::updateDots(GameStatsManager *this)
{
GameStatsManager *v1; // r6
const char *v2; // r4
GameStatsManager *v3; // r0
int QueuedChallenge; // r0
unsigned int v5; // r1
int v6; // r5
int v7; // r0
int v8; // r1
v1 = this;
v2 = (_BYTE *)(&dword_0 + 1);
do
{
v3 = (GameStatsManager *)GameStatsManager::sharedState(this);
QueuedChallenge = GameStatsManager::getQueuedChallenge(v3, v2);
v5 = (unsigned int)(v2++ - 1);
v6 = QueuedChallenge;
v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)v1 + 133), v5);
v8 = v6;
if ( v6 )
v8 = 1;
this = (GameStatsManager *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v7 + 172))(v7, v8);
}
while ( v2 != byte_4 );
return this;
}