//
// ChallengesPage::challengeStatusFailed from 0x100032954 to 0x1000329ec (152 bytes)
//
// 2 xrefs:
// > sub_100032A30 @ 0x100032a34
// > ??> @ 0x100768580
//
// 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::challengeStatusFailed(ChallengesPage *a1)
{
GameStatsManager *v2; // x0
cocos2d::CCDelayTime *v3; // x20
cocos2d::CCAction *v4; // x0
LoadingCircle *m_circle; // x0
cocos2d::SEL_CallFunc v6; // 0:x1.16
v2 = GameStatsManager::sharedState();
if ( !GameStatsManager::areChallengesLoaded(v2) )
{
v3 = cocos2d::CCDelayTime::create(5.0);
v6.ptr = (void (*)(void))ChallengesPage::tryGetChallenges;
v6.adj = 0;
cocos2d::CCCallFunc::create(a1, v6);
v4 = (cocos2d::CCAction *)sub_10018A494(v3);
cocos2d::CCNode::runAction(a1, v4);
}
m_circle = a1->m_circle;
if ( m_circle )
{
if ( a1->m_triedToLoad )
((void (__fastcall *)(LoadingCircle *, _QWORD))m_circle->setVisible)(m_circle, 0);
}
}