//
// ChallengesPage::challengeStatusFinished from 0x10003274c to 0x100032870 (292 bytes)
//
// 2 xrefs:
// > sub_10003294C @ 0x100032950
// > ??> @ 0x100768578
//
// 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
//
void __fastcall ChallengesPage::challengeStatusFinished(ChallengesPage *a1)
{
float v1; // s0
unsigned int v3; // w21
intptr_t i; // x20
float v5; // s8
cocos2d::CCObject *v6; // x0
GameStatsManager *v7; // x0
float v8; // s0
LoadingCircle *m_circle; // x0
cocos2d::SEL_SCHEDULE v10; // 0:x1.16
cocos2d::SEL_SCHEDULE v11; // 0:x1.16
ChallengesPage::updateTimers(a1, v1);
v3 = 0;
for ( i = 1; i != 4; ++i )
{
v5 = (float)v3 * 0.15;
v6 = cocos2d::CCDictionary::objectForKey(a1->m_challengeNodes, i);
if ( v6 )
{
if ( LOBYTE(v6[6].m_nTag) == 1 )
{
v7 = GameStatsManager::sharedState();
if ( GameStatsManager::getQueuedChallenge(v7, i) )
{
ChallengesPage::exitNodeAtSlot(a1, i, (float)v3 * 0.15);
v5 = v5 + 0.5;
}
}
}
if ( ChallengesPage::createChallengeNode(a1, i, 0, v5, 0) )
++v3;
}
v8 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))a1->m_countdownLabel->setVisible)(
a1->m_countdownLabel,
1);
ChallengesPage::updateTimers(a1, v8);
v10.ptr = (void (__cdecl *)(float))ChallengesPage::updateTimers;
v10.adj = 0;
cocos2d::CCNode::unschedule(a1, v10);
v11.ptr = (void (__cdecl *)(float))ChallengesPage::updateTimers;
v11.adj = 0;
cocos2d::CCNode::schedule(a1, v11, 1.0);
m_circle = a1->m_circle;
if ( m_circle )
((void (__fastcall *)(LoadingCircle *, _QWORD))m_circle->setVisible)(m_circle, 0);
ChallengesPage::updateDots(a1);
}