//
// ChallengesPage::updateDots from 0x100387a00 to 0x100387ac2 (194 bytes)
//
// 2 xrefs:
// > ChallengesPage::challengeStatusFinished @ 0x100387cca
// > ChallengesPage::claimItem @ 0x10038834b
//
// 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 12:29:10 +0000
//
__int64 __fastcall ChallengesPage::updateDots(__int64 a1)
{
__int64 v1; // rax
_BOOL4 v2; // r14d
__int64 v3; // rax
__int64 v4; // rax
_BOOL4 v5; // r14d
__int64 v6; // rax
__int64 v7; // rax
_BOOL4 v8; // r14d
__int64 v9; // rax
v1 = GameStatsManager::sharedState();
v2 = GameStatsManager::getQueuedChallenge(v1) != 0;
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), 0);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v3 + 344LL))(v3, v2);
v4 = GameStatsManager::sharedState();
v5 = GameStatsManager::getQueuedChallenge(v4) != 0;
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), 1);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v6 + 344LL))(v6, v5);
v7 = GameStatsManager::sharedState();
v8 = GameStatsManager::getQueuedChallenge(v7) != 0;
v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), 2);
return (*(__int64 (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v9 + 344LL))(v9, v8);
}