//
// ChallengesPage::challengeStatusFailed from 0x5ff2fc to 0x5ff35c (96 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ChallengesPage::challengeStatusFailed @ 0x5ff368
//
// 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:39 +0000
//
int __fastcall ChallengesPage::challengeStatusFailed(ChallengesPage *this)
{
GameStatsManager *v2; // r0
float v3; // r1
cocos2d::CCSequence *v4; // r6
cocos2d::CCFiniteTimeAction *v5; // r0
int v6; // r3
cocos2d::CCAction *v7; // r0
int result; // r0
v2 = (GameStatsManager *)GameStatsManager::sharedState(this);
if ( !GameStatsManager::areChallengesLoaded(v2) )
{
v4 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x40A00000, v3);
v5 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, ChallengesPage::tryGetChallenges, 0);
v7 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v5, 0, v6, ChallengesPage::tryGetChallenges, 0);
cocos2d::CCNode::runAction(this, v7);
}
result = *((_DWORD *)this + 135);
if ( result )
{
if ( *((_BYTE *)this + 544) )
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)result + 172))(result, 0);
}
return result;
}