//
// RewardsPage::rewardsStatusFailed from 0x140562f80 to 0x140563031 (177 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407db168
// > ??> @ 0x14092c4c8
//
// 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:34:15 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCAction *__fastcall RewardsPage::rewardsStatusFailed(__int64 a1)
{
__int64 v2; // rcx
struct cocos2d::CCAction *result; // rax
__int64 v4; // rbx
struct cocos2d::CCFiniteTimeAction *v5; // rax
struct cocos2d::CCAction *v6; // rax
void *v7; // [rsp+38h] [rbp+10h]
v2 = qword_14090BFE0;
if ( !qword_14090BFE0 )
{
v7 = operator new(0x3E8u);
qword_14090BFE0 = sub_1402D6480((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);
v2 = qword_14090BFE0;
}
result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v2 + 528), 1);
if ( !result )
{
v4 = cocos2d::CCCallFunc::create(a1 - 672, RewardsPage::tryGetRewards);
v5 = cocos2d::CCDelayTime::create(1.0);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)(a1 - 672), v6);
}
return result;
}