//
// ProfilePage::show from 0x140559380 to 0x1405594da (346 bytes)
//
// 5 xrefs:
// > MenuLayer::onDaily @ 0x140473cb5
// > MenuLayer::onDaily @ 0x140473c9c
// > ??> @ 0x1407d9070
// > ??> @ 0x1407db748
// > ??> @ 0x14092bfd0
//
// 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:12 +0000
//
// Merged with: ProfilePage::show, RewardsPage::show
__int64 __fastcall ProfilePage::show(__int64 a1)
{
unsigned __int8 v3; // al
float v4; // xmm6_4
struct cocos2d::CCActionInterval *v5; // rax
struct cocos2d::CCAction *v6; // rax
__int64 v7; // rcx
cocos2d::CCScene *v8; // rdi
int v9; // eax
struct cocos2d::CCAction *v10; // rax
__int64 v11; // rdx
if ( *(_BYTE *)(a1 + 596) )
return FLAlertLayer::show(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);
v4 = (float)v3;
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 160LL))(*(_QWORD *)(a1 + 584));
v5 = cocos2d::CCScaleTo::create(0.30000001, 1.0);
v6 = cocos2d::CCEaseElasticOut::create(v5, 1.6);
cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 584), v6);
v8 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v7) + 272);
if ( *(_QWORD *)(a1 + 568) )
{
v8 = *(cocos2d::CCScene **)(a1 + 568);
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v8) + 1 >= 105 )
v9 = cocos2d::CCScene::getHighestChildZ(v8) + 1;
else
v9 = 105;
*(_DWORD *)(a1 + 592) = v9;
}
if ( !*(_DWORD *)(a1 + 592) )
*(_DWORD *)(a1 + 592) = 105;
(*(void (__fastcall **)(cocos2d::CCScene *, __int64))(*(_QWORD *)v8 + 456LL))(v8, a1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);
v10 = cocos2d::CCFadeTo::create(0.14, (int)v4);
cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v10);
LOBYTE(v11) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, v11);
}