//
// ChallengesPage::challengeStatusFailed from 0x14009e640 to 0x14009e70f (207 bytes)
//
// 2 xrefs:
// > ??> @ 0x14071c3d8
// > ??> @ 0x140912fd4
//
// This function is hookable on this platform (idp: pc, 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 11:26:05 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCAction *__fastcall ChallengesPage::challengeStatusFailed(__int64 a1)
{
struct cocos2d::CCAction *result; // rax
__int64 v3; // rbx
struct cocos2d::CCFiniteTimeAction *v4; // rax
struct cocos2d::CCAction *v5; // rax
__int64 v6; // rcx
void *v7; // [rsp+30h] [rbp+8h]
result = (struct cocos2d::CCAction *)qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v7 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
result = (struct cocos2d::CCAction *)qword_14090BFE0;
}
if ( *((double *)result + 71) <= 0.0 )
{
v3 = cocos2d::CCCallFunc::create(a1 - 672, ChallengesPage::tryGetChallenges);
v4 = cocos2d::CCDelayTime::create(5.0);
v5 = cocos2d::CCSequence::create(v4, v3, 0);
result = cocos2d::CCNode::runAction((cocos2d::CCNode *)(a1 - 672), v5);
}
v6 = *(_QWORD *)(a1 + 32);
if ( v6 )
{
if ( *(_BYTE *)(a1 + 40) )
return (struct cocos2d::CCAction *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, 0);
}
return result;
}