//
// ChallengesPage::challengeStatusFinished from 0x6009e8 to 0x600ac0 (216 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ChallengesPage::challengeStatusFinished @ 0x600acc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:40 +0000
//
GameStatsManager *__fastcall ChallengesPage::challengeStatusFinished(cocos2d::CCDictionary **this)
{
int v2; // r6
const char *v3; // r5
float v4; // s16
GameStatsManager *v5; // r0
GameStatsManager *v6; // r0
int v7; // r3
int v8; // r0
v2 = 0;
v3 = (_BYTE *)(&dword_0 + 1);
ChallengesPage::updateTimers((ChallengesPage *)this, 0.0);
do
{
v4 = (float)v2 * 0.15;
v5 = (GameStatsManager *)cocos2d::CCDictionary::objectForKey(*(this + 138), (int)v3);
if ( v5 )
{
if ( *((_BYTE *)v5 + 284) )
{
v6 = (GameStatsManager *)GameStatsManager::sharedState(v5);
if ( GameStatsManager::getQueuedChallenge(v6, v3) )
{
ChallengesPage::exitNodeAtSlot(this, (int)v3, COERCE_COCOS2D_CCDELAYTIME_((float)v2 * 0.15), v7);
v4 = v4 + 0.5;
}
}
}
if ( ChallengesPage::createChallengeNode(this, v3, 0, (cocos2d::CCDelayTime *)LODWORD(v4), 0) )
++v2;
++v3;
}
while ( v3 != byte_4 );
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 134) + 172))(*(this + 134), 1);
ChallengesPage::updateTimers((ChallengesPage *)this, 0.0);
cocos2d::CCNode::unschedule(this, ChallengesPage::updateTimers, 0);
cocos2d::CCNode::schedule(this, ChallengesPage::updateTimers, 0, 1065353216);
v8 = (int)*(this + 135);
if ( v8 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 172))(v8, 0);
return ChallengesPage::updateDots((GameStatsManager *)this);
}