//
// RewardsPage::show from 0x1001fef90 to 0x1001ff0cc (316 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae4230
//
// 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 12:26:51 +0000
//
__int64 __fastcall RewardsPage::show(__int64 a1)
{
unsigned __int8 v3; // r14
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rsi
__int64 v8; // rax
__int64 v9; // r15
__int64 v10; // rax
int HighestChildZ; // eax
int v12; // edx
if ( *(_BYTE *)(a1 + 596) == 1 )
return FLAlertLayer::show(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 584) + 160LL))(*(_QWORD *)(a1 + 584), 0.1);
v4 = cocos2d::CCScaleTo::create_1(0.30000001, 1.0);
v5 = cocos2d::CCEaseElasticOut::create(v4, 1.6);
v6 = *(_QWORD *)(a1 + 584);
v7 = v5;
cocos2d::CCNode::runAction(v6, v5);
v8 = cocos2d::CCDirector::sharedDirector(v6, v7);
v9 = *(_QWORD *)(a1 + 568);
if ( !v9 )
{
v9 = *(_QWORD *)(v8 + 272);
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v9);
v12 = 105;
if ( HighestChildZ >= 105 )
v12 = cocos2d::CCScene::getHighestChildZ(v9) + 1;
*(_DWORD *)(a1 + 592) = v12;
if ( v12 )
goto LABEL_6;
goto LABEL_5;
}
if ( !*(_DWORD *)(a1 + 592) )
LABEL_5:
*(_DWORD *)(a1 + 592) = 105;
LABEL_6:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 464LL))(v9, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1168LL))(a1, 0);
v10 = cocos2d::CCFadeTo::create(v3, 0.14);
cocos2d::CCNode::runAction(a1, v10);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1);
}