//
// ChallengesPage::challengeStatusFailed from 0x140085f90 to 0x14008605c (204 bytes)
//
// 2 xrefs:
// > ??> @ 0x14053d700
// > ??> @ 0x1406c6c24
//
// 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
//
// Hidden C++ exception states: #wind=1
void ChallengesPage::challengeStatusFailed(ChallengesPage *a1)
{
float v1; // xmm3_4
__int64 v3; // rax
__int64 v4; // rbx
struct cocos2d::CCDelayTime *v5; // rax
struct cocos2d::CCSequence *v6; // rax
cocos2d::ccColor3B *v7; // r8
__int64 v8; // rcx
float v9; // [rsp+20h] [rbp-8h]
void *v10; // [rsp+30h] [rbp+8h]
v3 = qword_1406C2EE8;
if ( !qword_1406C2EE8 )
{
v10 = operator new(0x3E0u);
qword_1406C2EE8 = sub_1401D0AE0(v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);
v3 = qword_1406C2EE8;
}
if ( *(double *)(v3 + 568) <= 0.0 )
{
v4 = cocos2d::CCCallFunc::create(&a1[-1].m_fScaleX, ChallengesPage::tryGetChallenges);
v5 = cocos2d::CCDelayTime::create(5.0);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
cocos2d::CCNode::runAction((CCLightFlash *)&a1[-1].m_fScaleX, (cocos2d::CCPoint)v6, v7, v1, v9);
}
v8 = *(_QWORD *)&a1->m_uIndexInArray;
if ( v8 )
{
if ( LOBYTE(a1->m_unknown2) )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 320LL))(v8, 0);
}
}