//
// ChallengesPage::updateDots from 0x14009e400 to 0x14009e4a5 (165 bytes)
//
// 3 xrefs:
// > ChallengesPage::challengeStatusFinished @ 0x14009e630
// > ChallengesPage::claimItem @ 0x14009f3ce
// > ??> @ 0x140912fbc
//
// This function is hookable on this platform (idp: pc, 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 11:26:05 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ChallengesPage::updateDots(__int64 a1)
{
int i; // edi
__int64 v3; // rcx
bool v4; // bl
struct cocos2d::CCObject *v5; // rax
__int64 result; // rax
void *v7; // [rsp+38h] [rbp+10h]
for ( i = 1; i <= 3; ++i )
{
v3 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v7 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v3 = qword_14090BFE0;
}
v4 = GameStatsManager::getQueuedChallenge(v3, (unsigned int)i) != 0;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i - 1);
result = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, bool))(*(_QWORD *)v5 + 336LL))(v5, v4);
}
return result;
}