//
// ChallengesPage::show from 0x14009eec0 to 0x14009f057 (407 bytes)
//
// 19 xrefs:
// > CreatorLayer::onAdventureMap @ 0x14013829c
// > GJGarageLayer::onShards @ 0x1403817a9
// > GJGarageLayer::onPaint @ 0x140381910
// > CreatorLayer::onAdventureMap @ 0x14013828d
// > GJGarageLayer::onShards @ 0x14038178b
// > GJGarageLayer::onPaint @ 0x140381901
// > ??> @ 0x14071c300
// > ??> @ 0x14071cde0
// > ??> @ 0x140745a00
// > ??> @ 0x140755cc8
// > ??> @ 0x1407741f0
// > ??> @ 0x140774a90
// > ??> @ 0x14077d590
// > ??> @ 0x14078d888
// > ??> @ 0x14081bac8
// > ??> @ 0x140833ad8
// > ??> @ 0x14088da9c
// > ??> @ 0x14088dab4
// > ??> @ 0x140913028
//
// 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
//
// Merged with: ChallengesPage::show, CharacterColorPage::show, DailyLevelPage::show, FollowRewardPage::show, GJPathPage::show, GJPathsLayer::show, GJPromoPopup::show, LevelLeaderboard::show, ShardsPage::show, TopArtistsLayer::show
__int64 __fastcall ChallengesPage::show(__int64 a1)
{
float v3; // xmm6_4
const struct cocos2d::CCPoint *v4; // rax
__int64 *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
struct cocos2d::CCActionInterval *v8; // rax
struct cocos2d::CCAction *v9; // rax
__int64 v10; // rcx
cocos2d::CCScene *v11; // rbx
int v12; // eax
struct cocos2d::CCAction *v13; // rax
__int64 v14; // rdx
char v15; // [rsp+50h] [rbp+8h] BYREF
float v16; // [rsp+54h] [rbp+Ch]
char v17; // [rsp+58h] [rbp+10h] BYREF
if ( *(_BYTE *)(a1 + 596) )
return FLAlertLayer::show(a1);
v3 = (float)(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);
v4 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 200LL))(*(_QWORD *)(a1 + 584));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, v4);
v5 = *(__int64 **)(a1 + 584);
v6 = *v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, -160.0, v16);
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v5, v7);
v8 = cocos2d::CCMoveTo::create(0.5, (const struct cocos2d::CCPoint *)&v15);
v9 = cocos2d::CCEaseElasticOut::create(v8, 0.60000002);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 584), v9);
v11 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v10) + 272);
if ( *(_QWORD *)(a1 + 568) )
{
v11 = *(cocos2d::CCScene **)(a1 + 568);
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v11) + 1 >= 105 )
v12 = cocos2d::CCScene::getHighestChildZ(v11) + 1;
else
v12 = 105;
*(_DWORD *)(a1 + 592) = v12;
}
if ( !*(_DWORD *)(a1 + 592) )
*(_DWORD *)(a1 + 592) = 105;
(*(void (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v11 + 456LL))(v11, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);
v13 = cocos2d::CCFadeTo::create(0.14, (int)v3);
cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v13);
LOBYTE(v14) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, v14);
}