//
// ChallengesPage::updateDots from 0x140085d60 to 0x140085dff (159 bytes)
//
// 3 xrefs:
// > ChallengesPage::challengeStatusFinished @ 0x140085f7d
// > ChallengesPage::claimItem @ 0x140086cdb
// > ??> @ 0x1406c6c0c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void ChallengesPage::updateDots(ChallengesPage *a1)
{
int i; // edi
GameStatsManager *v3; // rcx
bool v4; // bl
struct cocos2d::CCObject *v5; // rax
void *v6; // [rsp+38h] [rbp+10h]
for ( i = 1; i <= 3; ++i )
{
v3 = (GameStatsManager *)qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v6 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0(v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v3 = (GameStatsManager *)qword_1406C2EE8;
}
v4 = GameStatsManager::getQueuedChallenge(v3, i) != nullptr;
v5 = cocos2d::CCArray::objectAtIndex(a1->m_dots, i - 1);
((void (__fastcall *)(struct cocos2d::CCObject *, bool))v5->__vftable[4].update)(v5, v4);
}
}