//
// ChallengesPage::challengeStatusFailed from 0xa62204 to 0xa62290 (140 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ChallengesPage::challengeStatusFailed @ 0xa62294
// > ??> @ 0xcbd58
// > ??> @ 0x148f580
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:00:15 +0000
//
__int64 __fastcall ChallengesPage::challengeStatusFailed(ChallengesPage *this)
{
GameStatsManager *v2; // x0
_BOOL8 v3; // x0
__int64 result; // x0
cocos2d::CCSequence *v5; // x20
cocos2d::CCFiniteTimeAction *v6; // x0
cocos2d::CCAction *v7; // x0
v2 = (GameStatsManager *)GameStatsManager::sharedState(this);
v3 = GameStatsManager::areChallengesLoaded(v2);
if ( !v3 )
{
v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)v3, 5.0);
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, ChallengesPage::tryGetChallenges, 0);
v7 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, 0);
cocos2d::CCNode::runAction(this, v7);
}
result = *((_QWORD *)this + 88);
if ( result )
{
if ( *((_BYTE *)this + 712) )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 344LL))(result, 0);
}
return result;
}