//
// FLAlertLayer::show from 0x140052c00 to 0x140052dc6 (454 bytes)
//
// 122 xrefs:
// > AccountLayer::onRegister @ 0x14007e001
// > ChallengesPage::show @ 0x140086802
// > CommunityCreditsPage::show @ 0x140096232
// > CustomSongLayer::onOptions @ 0x1400c398c
// > CustomSongLayer::onNCSBrowser @ 0x1400c400b
// > CustomSongLayer::onNewgroundsBrowser @ 0x1400c4113
// > CustomSongWidget::onInfo @ 0x1400c9ec6
// > EditLevelLayer::onShare @ 0x1400d8ac6
// > EditorUI::editGroup @ 0x14011f472
// > GJPathsLayer::onPath @ 0x1402853bd
// > InfoLayer::show @ 0x1402bf6b7
// > LevelInfoLayer::tryCloneLevel @ 0x1402fd670
// > LevelInfoLayer::onRate @ 0x1402fe1f8
// > LevelInfoLayer::onRateDemon @ 0x1402fe881
// > LevelListLayer::onSelectIcon @ 0x140307dde
// > LevelListLayer::onShare @ 0x140308088
// > LevelSearchLayer::onSpecialDemon @ 0x14030e2bc
// > LevelSearchLayer::onMoreOptions @ 0x14030e663
// > LevelSettingsLayer::onSelectFont @ 0x140321e11
// > MenuLayer::showTOS @ 0x1403355cb
// > OptionsLayer::onOptions @ 0x140372cb1
// > MoreOptionsLayer::onParental @ 0x1403766aa
// > VideoOptionsLayer::onAdvanced @ 0x140377fbe
// > ProfilePage::show @ 0x1403c53c7
// > ProfilePage::onSettings @ 0x1403c5e2e
// > SetupAdvFollowPopup::onPremade @ 0x140405c93
// > SetupSFXPopup::onBrowseSFX @ 0x1404493cb
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x14045b2af
// > SFXBrowser::onSorting @ 0x1404803dd
// > ShareLevelLayer::onSettings @ 0x14049025c
// > AccountLayer::onRegister @ 0x14007dfe8
// > CustomSongLayer::onOptions @ 0x1400c3973
// > CustomSongLayer::onNCSBrowser @ 0x1400c3ff2
// > CustomSongLayer::onNewgroundsBrowser @ 0x1400c40ff
// > CustomSongWidget::onInfo @ 0x1400c9eb7
// > EditLevelLayer::onShare @ 0x1400d8ab7
// > EditorUI::editGroup @ 0x14011f463
// > GJPathsLayer::onPath @ 0x1402853ae
// > LevelInfoLayer::tryCloneLevel @ 0x1402fd661
// > LevelInfoLayer::onRate @ 0x1402fe1e9
// > LevelInfoLayer::onRateDemon @ 0x1402fe872
// > LevelListLayer::onSelectIcon @ 0x140307dc0
// > LevelListLayer::onShare @ 0x140308079
// > LevelSearchLayer::onSpecialDemon @ 0x14030e29e
// > LevelSearchLayer::onMoreOptions @ 0x14030e64f
// > LevelSettingsLayer::onSelectFont @ 0x140321df8
// > MenuLayer::showTOS @ 0x1403355b2
// > OptionsLayer::onOptions @ 0x140372c98
// > MoreOptionsLayer::onParental @ 0x140376696
// > VideoOptionsLayer::onAdvanced @ 0x140377fa5
// > ProfilePage::onSettings @ 0x1403c5e13
// > SetupAdvFollowPopup::onPremade @ 0x140405c75
// > SetupSFXPopup::onBrowseSFX @ 0x1404493bc
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x14045b2a0
// > SFXBrowser::onSorting @ 0x1404803bf
// > ShareLevelLayer::onSettings @ 0x140490243
// > ??> @ 0x140532ce0
// > ??> @ 0x1405399c0
// > ??> @ 0x140539df8
// > ??> @ 0x14053cc00
// > ??> @ 0x140541560
// > ??> @ 0x140541a20
// > ??> @ 0x140542450
// > ??> @ 0x140542968
// > ??> @ 0x140545268
// > ??> @ 0x14054da08
// > ??> @ 0x14054e048
// > ??> @ 0x14054e478
// > ??> @ 0x140558150
// > ??> @ 0x1405586e8
// > ??> @ 0x140567c98
// > ??> @ 0x14056a720
// > ??> @ 0x14056ec40
// > ??> @ 0x1405722f0
// > ??> @ 0x140573ca8
// > ??> @ 0x1405742f8
// > ??> @ 0x1405748f8
// > ??> @ 0x140575320
// > ??> @ 0x140577be8
// > ??> @ 0x140578158
// > ??> @ 0x14057b960
// > ??> @ 0x14057e6d0
// > ??> @ 0x140580100
// > ??> @ 0x1405823a0
// > ??> @ 0x1405890b8
// > ??> @ 0x140589610
// > ??> @ 0x14058b248
// > ??> @ 0x14058baf0
// > ??> @ 0x14058e718
// > ??> @ 0x14058eb50
// > ??> @ 0x14058fbb0
// > ??> @ 0x1405a8e38
// > ??> @ 0x1405ab838
// > ??> @ 0x1405ac010
// > ??> @ 0x1405ac4d0
// > ??> @ 0x1405ae058
// > ??> @ 0x1405c4e48
// > ??> @ 0x1405c5310
// > ??> @ 0x1405c5e78
// > ??> @ 0x1405c6470
// > ??> @ 0x1405cafe0
// > ??> @ 0x1405cb7b8
// > ??> @ 0x1405cc250
// > ??> @ 0x1405cc7e8
// > ??> @ 0x1405ccd98
// > ??> @ 0x1405ce018
// > ??> @ 0x1405d6fd8
// > ??> @ 0x1405d8d18
// > ??> @ 0x1405e9bd8
// > ??> @ 0x1405f5a20
// > ??> @ 0x1405f6008
// > ??> @ 0x1405f65b0
// > ??> @ 0x140605028
// > ??> @ 0x1406057d0
// > ??> @ 0x14060b020
// > ??> @ 0x14060bf68
// > ??> @ 0x14060c490
// > ??> @ 0x14060ccd8
// > ??> @ 0x140621ed8
// > ??> @ 0x140664134
// > ??> @ 0x140664144
// > ??> @ 0x1406c4e78
//
// 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 FLAlertLayer::show(FLAlertLayer *a1)
{
float v1; // xmm3_4
float v2; // xmm6_4
unsigned __int8 v4; // al
float v5; // xmm6_4
struct cocos2d::CCScaleTo *v6; // rax
struct cocos2d::CCEaseElasticOut *v7; // rax
cocos2d::ccColor3B *v8; // r8
__int64 v9; // rcx
cocos2d::CCScene *v10; // rdi
int v11; // eax
struct cocos2d::CCFadeTo *v12; // rax
cocos2d::ccColor3B *v13; // r8
_BOOL8 v14; // rdx
cocos2d::CCScene *m_scene; // rdi
int v16; // eax
float v17; // [rsp+20h] [rbp-18h]
float v18; // [rsp+20h] [rbp-18h]
if ( a1->m_noElasticity )
{
m_scene = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(a1) + 264);
if ( a1->m_scene )
{
m_scene = (cocos2d::CCScene *)a1->m_scene;
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(m_scene) + 1 >= 105 )
v16 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;
else
v16 = 105;
a1->m_ZOrder = v16;
}
if ( !a1->m_ZOrder )
a1->m_ZOrder = 105;
((void (__fastcall *)(cocos2d::CCScene *, FLAlertLayer *))m_scene->addChild_0)(m_scene, a1);
}
else
{
v17 = v2;
a1->getOpacity(&a1->cocos2d::CCRGBAProtocol);
v5 = (float)v4;
((void (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->setScale_0)(a1->m_mainLayer);
v6 = cocos2d::CCScaleTo::create(0.5, 1.0);
v7 = cocos2d::CCEaseElasticOut::create(v6, 0.60000002);
cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v7, v8, v1, v17);
v10 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v9) + 264);
if ( a1->m_scene )
{
v10 = (cocos2d::CCScene *)a1->m_scene;
}
else
{
if ( cocos2d::CCScene::getHighestChildZ(v10) + 1 >= 105 )
v11 = cocos2d::CCScene::getHighestChildZ(v10) + 1;
else
v11 = 105;
a1->m_ZOrder = v11;
}
if ( !a1->m_ZOrder )
a1->m_ZOrder = 105;
((void (__fastcall *)(cocos2d::CCScene *, FLAlertLayer *))v10->addChild_0)(v10, a1);
a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);
v12 = cocos2d::CCFadeTo::create(0.14, (int)v5);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v12, v13, v1, v18);
}
LOBYTE(v14) = 1;
a1->setVisible(a1, v14);
}