//
// FLAlertLayer::show from 0x10049c520 to 0x10049c6c8 (424 bytes)
//
// 82 xrefs:
// > RewardsPage::show @ 0x10021b8f3
// > DailyLevelPage::show @ 0x10023214e
// > GJPromoPopup::show @ 0x1002b68de
// > PromoInterstitial::show @ 0x1002d481e
// > GJPathsLayer::show @ 0x1002fef3e
// > GJPathPage::show @ 0x100302c1e
// > TopArtistsLayer::show @ 0x100311cbe
// > CommunityCreditsPage::show @ 0x100320dde
// > ChallengesPage::show @ 0x10039e56e
// > WorldLevelPage::show @ 0x1003c6a53
// > LevelLeaderboard::show @ 0x1003dc3fe
// > FollowRewardPage::show @ 0x10042180e
// > ShardsPage::show @ 0x1004c784e
// > TutorialPopup::show @ 0x1005d46ba
// > CharacterColorPage::show @ 0x10065e86e
// > InfoLayer::show @ 0x1007b326a
// > ProfilePage::show @ 0x1007bfbc3
// > ??> @ 0x1008d9890
// > ??> @ 0x1008dcbb0
// > ??> @ 0x1008de800
// > ??> @ 0x1008deec8
// > ??> @ 0x1008df5d0
// > ??> @ 0x1008e0448
// > ??> @ 0x1008e1748
// > ??> @ 0x1008ec948
// > ??> @ 0x1008ed0e8
// > ??> @ 0x1008ed798
// > ??> @ 0x1008f1560
// > ??> @ 0x1008f2350
// > ??> @ 0x1008f2a60
// > ??> @ 0x1008f4170
// > ??> @ 0x1008f83b8
// > ??> @ 0x1008f9908
// > ??> @ 0x1008fa0f8
// > ??> @ 0x1008fa7d8
// > ??> @ 0x1008faef8
// > ??> @ 0x1008fb648
// > ??> @ 0x1008ff418
// > ??> @ 0x100901aa8
// > ??> @ 0x10090b4f0
// > ??> @ 0x10090d268
// > ??> @ 0x100910b80
// > ??> @ 0x1009141d8
// > ??> @ 0x100918ef0
// > ??> @ 0x1009195a0
// > ??> @ 0x10091ce30
// > ??> @ 0x100936ab0
// > ??> @ 0x100938660
// > ??> @ 0x100938e80
// > ??> @ 0x10093a490
// > ??> @ 0x100943298
// > ??> @ 0x100944418
// > ??> @ 0x100944b90
// > ??> @ 0x1009453c0
// > ??> @ 0x100955308
// > ??> @ 0x100956e28
// > ??> @ 0x100957558
// > ??> @ 0x100957c10
// > ??> @ 0x10095aa08
// > ??> @ 0x10095c138
// > ??> @ 0x10095c878
// > ??> @ 0x100963290
// > ??> @ 0x100964750
// > ??> @ 0x100976120
// > ??> @ 0x10097c780
// > ??> @ 0x10097e0a8
// > ??> @ 0x100980368
// > ??> @ 0x100980b60
// > ??> @ 0x100981328
// > ??> @ 0x100982f28
// > ??> @ 0x100983668
// > ??> @ 0x1009848c8
// > ??> @ 0x100984fd0
// > ??> @ 0x1009864c0
// > ??> @ 0x10098b9c8
// > ??> @ 0x10098ebb8
// > ??> @ 0x10098f300
// > ??> @ 0x10098f9b0
// > ??> @ 0x1009900a8
// > ??> @ 0x100993228
// > ??> @ 0x100994b60
// > ??> @ 0x100995228
//
// 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 *v1; // rax
cocos2d::CCScene *m_pRunningScene; // r14
unsigned __int8 v3; // r14
cocos2d::CCScaleTo *v4; // rax
cocos2d::CCEaseElasticOut *v5; // rax
cocos2d::CCDirector *v6; // rax
cocos2d::CCScene *m_scene; // r15
cocos2d::CCFadeTo *v8; // rax
int v9; // eax
int v10; // edx
int HighestChildZ; // eax
int v12; // edx
if ( !a1->m_noElasticity )
{
v3 = ((__int64 (__fastcall *)(FLAlertLayer *))a1->getOpacity)(a1);
((void (__fastcall *)(cocos2d::CCLayer *, float))a1->m_mainLayer->setScale)(a1->m_mainLayer, 0.1);
v4 = cocos2d::CCScaleTo::create_1(0.5, 1.0);
v5 = cocos2d::CCEaseElasticOut::create(v4, 0.60000002);
cocos2d::CCNode::runAction(a1->m_mainLayer, v5);
v6 = 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);
v8 = cocos2d::CCFadeTo::create(0.14, v3);
cocos2d::CCNode::runAction(a1, v8);
goto LABEL_10;
}
}
else
{
m_scene = v6->m_pRunningScene;
HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);
v12 = 105;
if ( HighestChildZ >= 105 )
v12 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
a1->m_ZOrder = v12;
if ( v12 )
goto LABEL_9;
}
a1->m_ZOrder = 105;
goto LABEL_9;
}
v1 = cocos2d::CCDirector::sharedDirector();
m_pRunningScene = (cocos2d::CCScene *)a1->m_scene;
if ( !m_pRunningScene )
{
m_pRunningScene = v1->m_pRunningScene;
v9 = cocos2d::CCScene::getHighestChildZ(m_pRunningScene);
v10 = 105;
if ( v9 >= 105 )
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);
}