//
// ChallengesPage::challengeStatusFailed from 0x10039e340 to 0x10039e3c2 (130 bytes)
//
// 2 xrefs:
// > sub_10039E410 @ 0x10039e41c
// > ??> @ 0x100924040
//
// 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; // rax
unsigned int v3; // r14d
unsigned int v4; // eax
int v5; // ecx
int v6; // r8d
int v7; // r9d
cocos2d::CCAction *v8; // rax
LoadingCircle *m_circle; // rdi
v2 = GameStatsManager::sharedState();
if ( !GameStatsManager::areChallengesLoaded(v2) )
{
v3 = (unsigned int)cocos2d::CCDelayTime::create(5.0);
v4 = (unsigned int)cocos2d::CCCallFunc::create(
a1,
(cocos2d::SEL_CallFunc)(unsigned __int64)ChallengesPage::tryGetChallenges);
v8 = (cocos2d::CCAction *)sub_1003B5760(v3, v4, 0, v5, v6, v7);
cocos2d::CCNode::runAction(a1, v8);
}
m_circle = a1->m_circle;
if ( m_circle )
{
if ( a1->m_triedToLoad )
((void (__fastcall *)(LoadingCircle *, _QWORD))m_circle->setVisible)(m_circle, 0);
}
}