//
// ChallengesPage::challengeStatusFinished from 0x4ccfc8 to 0x4cd0a0 (216 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ChallengesPage::challengeStatusFinished @ 0x4cd0ac
//
// 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 ChallengesPage::challengeStatusFinished(ChallengesPage *a1)
{
int v2; // r6
intptr_t v3; // r5
float v4; // s16
cocos2d::CCObject *v5; // r0
GameStatsManager *v6; // r0
LoadingCircle *m_circle; // r0
v2 = 0;
v3 = 1;
ChallengesPage::updateTimers(a1, 0.0);
do
{
v4 = (float)v2 * 0.15;
v5 = cocos2d::CCDictionary::objectForKey(a1->m_challengeNodes, v3);
if ( v5 )
{
if ( LOBYTE(v5[5].m_eObjType) )
{
v6 = GameStatsManager::sharedState();
if ( GameStatsManager::getQueuedChallenge(v6, v3) )
{
ChallengesPage::exitNodeAtSlot(a1, v3, (float)v2 * 0.15);
v4 = v4 + 0.5;
}
}
}
if ( ChallengesPage::createChallengeNode(a1, v3, 0, v4, 0) )
++v2;
++v3;
}
while ( v3 != 4 );
a1->m_countdownLabel->setVisible(a1->m_countdownLabel, 1);
ChallengesPage::updateTimers(a1, 0.0);
cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned int)ChallengesPage::updateTimers);
cocos2d::CCNode::schedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned int)ChallengesPage::updateTimers);
m_circle = a1->m_circle;
if ( m_circle )
m_circle->setVisible(m_circle, 0);
ChallengesPage::updateDots(a1);
}