//
// FLAlertLayer::show from 0x1002acdb4 to 0x1002acf3c (392 bytes)
//
// 76 xrefs:
// > ChallengesPage::show @ 0x100032afc
// > CharacterColorPage::show @ 0x10012a3c4
// > ProfilePage::show @ 0x10019c264
// > CommunityCreditsPage::show @ 0x1001a2948
// > TopArtistsLayer::show @ 0x1001a5604
// > DailyLevelPage::show @ 0x1001ba940
// > RewardsPage::show @ 0x1001c4d2c
// > LevelLeaderboard::show @ 0x1002510cc
// > GJPromoPopup::show @ 0x1002e5590
// > InfoLayer::show @ 0x10035337c
// > ShardsPage::show @ 0x1003a344c
// > GJPathsLayer::show @ 0x1003b8894
// > GJPathPage::show @ 0x1003bb510
// > FollowRewardPage::show @ 0x100425e70
// > ??> @ 0x10076d478
// > ??> @ 0x100771480
// > ??> @ 0x100772a88
// > ??> @ 0x100773190
// > ??> @ 0x100774cd0
// > ??> @ 0x100775938
// > ??> @ 0x100778c50
// > ??> @ 0x100779380
// > ??> @ 0x100779a38
// > ??> @ 0x10077a888
// > ??> @ 0x10077afc8
// > ??> @ 0x10077c8f8
// > ??> @ 0x10077d060
// > ??> @ 0x10077d7d8
// > ??> @ 0x100782bf8
// > ??> @ 0x100783340
// > ??> @ 0x1007839f0
// > ??> @ 0x1007840e8
// > ??> @ 0x100786cd0
// > ??> @ 0x100787c38
// > ??> @ 0x1007955d0
// > ??> @ 0x100795c98
// > ??> @ 0x1007963a0
// > ??> @ 0x100799388
// > ??> @ 0x10079a1a0
// > ??> @ 0x10079dbd8
// > ??> @ 0x10079e408
// > ??> @ 0x1007a0988
// > ??> @ 0x1007a1128
// > ??> @ 0x1007a17d8
// > ??> @ 0x1007a64c8
// > ??> @ 0x1007a9788
// > ??> @ 0x1007a9e50
// > ??> @ 0x1007afca8
// > ??> @ 0x1007b2ca8
// > ??> @ 0x1007b5ca8
// > ??> @ 0x1007b87f0
// > ??> @ 0x1007ba790
// > ??> @ 0x1007bd838
// > ??> @ 0x1007be8f8
// > ??> @ 0x1007c03e0
// > ??> @ 0x1007cbb68
// > ??> @ 0x1007cc218
// > ??> @ 0x1007ce3f8
// > ??> @ 0x1007d48f8
// > ??> @ 0x1007d56e8
// > ??> @ 0x1007d6180
// > ??> @ 0x1007d78a8
// > ??> @ 0x1007d8988
// > ??> @ 0x1007d9ed8
// > ??> @ 0x1007da6c0
// > ??> @ 0x1007dada0
// > ??> @ 0x1007db4c0
// > ??> @ 0x1007dbc10
// > ??> @ 0x1007df9d0
// > ??> @ 0x1007e2050
// > ??> @ 0x1007ed368
// > ??> @ 0x10080cd70
// > ??> @ 0x1008109e0
// > ??> @ 0x100812238
// > ??> @ 0x100812a00
// > ??> @ 0x100826a30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall FLAlertLayer::show(FLAlertLayer *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCScene *m_pRunningScene; // x20
unsigned __int8 v4; // w20
cocos2d::CCScaleTo *v5; // x0
cocos2d::CCEaseElasticOut *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCScene *m_scene; // x21
cocos2d::CCFadeTo *v9; // x0
int v10; // w2
int v11; // w2
if ( !a1->m_noElasticity )
{
v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a1->getOpacity)(a1);
((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(a1->m_mainLayer, 0.1);
v5 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v6 = cocos2d::CCEaseElasticOut::create(v5, 0.6);
cocos2d::CCNode::runAction(a1->m_mainLayer, v6);
v7 = cocos2d::CCDirector::sharedDirector();
m_scene = (cocos2d::CCScene *)a1->m_scene;
if ( m_scene )
{
if ( a1->m_ZOrder )
{
LABEL_9:
((void (__fastcall *)(cocos2d::CCScene *, FLAlertLayer *))m_scene->addChild_0)(m_scene, a1);
((void (__fastcall *)(FLAlertLayer *, _QWORD))a1->setOpacity)(a1, 0);
v9 = cocos2d::CCFadeTo::create(0.14, v4);
cocos2d::CCNode::runAction(a1, v9);
goto LABEL_10;
}
}
else
{
m_scene = v7->m_pRunningScene;
if ( cocos2d::CCScene::getHighestChildZ(m_scene) < 105 )
v11 = 105;
else
v11 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v11;
if ( v11 )
goto LABEL_9;
}
a1->m_ZOrder = 105;
goto LABEL_9;
}
v2 = cocos2d::CCDirector::sharedDirector();
m_pRunningScene = (cocos2d::CCScene *)a1->m_scene;
if ( !m_pRunningScene )
{
m_pRunningScene = v2->m_pRunningScene;
if ( cocos2d::CCScene::getHighestChildZ(m_pRunningScene) < 105 )
v10 = 105;
else
v10 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene) + 1;
a1->m_ZOrder = v10;
if ( v10 )
goto LABEL_5;
goto LABEL_4;
}
if ( !a1->m_ZOrder )
LABEL_4:
a1->m_ZOrder = 105;
LABEL_5:
((void (__fastcall *)(cocos2d::CCScene *, FLAlertLayer *))m_pRunningScene->addChild_0)(m_pRunningScene, a1);
LABEL_10:
((void (__fastcall *)(FLAlertLayer *, __int64))a1->setVisible)(a1, 1);
}