//
// FLAlertLayer::init_1 from 0x14005a720 to 0x14005a801 (225 bytes)
//
// 64 xrefs:
// > AccountRegisterLayer::init @ 0x14008cd33
// > AudioAssetsBrowser::init @ 0x140098fa7
// > ChallengesPage::init @ 0x14009d9c1
// > CharacterColorPage::init @ 0x1400a085b
// > ClearPlatformerSavesPopup::init @ 0x1400a321f
// > DropdownListPopup::init @ 0x1401215cb
// > ColorSelectLiveOverlay::init @ 0x140124e63
// > CommunityCreditsPage::init @ 0x14012d063
// > HSVWidgetPopup::init @ 0x14012f6c3
// > ConfigureValuePopup::init @ 0x140131baf
// > CreateGuidelinesLayer::init @ 0x140132e35
// > CustomizeObjectLayer::init @ 0x14013f4a5
// > SongOptionsLayer::init @ 0x1401656eb
// > NewgroundsInfoLayer::init @ 0x140166787
// > NCSInfoLayer::init @ 0x140167348
// > DailyRecallUnlockPopup::init @ 0x140173d0e
// > FollowRewardPage::init @ 0x14020aff6
// > FRequestProfilePage::init @ 0x14020f483
// > GJColorSetupLayer::init @ 0x14035eba2
// > ItemInfoPopup::init @ 0x14038434e
// > TOSPopup::init @ 0x1403a92c3
// > GJSpecialColorSelect::init @ 0x1403be4ba
// > HSVLiveOverlay::init @ 0x1403c0b42
// > InfoLayer::init @ 0x1403cddd8
// > EditorSoundsSettingsPopup::init @ 0x1403d4994
// > KeybindingsSettingsPopup::init @ 0x1403d8ec4
// > LevelStatsInfoPopup::init @ 0x140426954
// > LevelLeaderboard::init @ 0x1404284c2
// > DemonFilterSelectLayer::init @ 0x140440bf6
// > LevelSettingsLayer::init @ 0x140457b9b
// > LikeItemLayer::init @ 0x140468a14
// > MessagesProfilePage::init @ 0x14047595c
// > NotificationsPage::init @ 0x140477d08
// > MusicBrowser::init @ 0x14047a3a6
// > OptionsScrollLayer::init @ 0x14047e5b3
// > NewsPopup::init @ 0x14049dc19
// > NumberInputLayer::init @ 0x1404a12a9
// > ParentalOptionsLayer::init @ 0x1404d1556
// > StartPosBrowser::init @ 0x1404dba3d
// > ProfilePage::init @ 0x140550934
// > DemonInfoPopup::init @ 0x14055b0b6
// > StarInfoPopup::init @ 0x14055c11c
// > MyStuffPopup::init @ 0x14055c91f
// > RateDemonLayer::init @ 0x14055d00d
// > RateLevelLayer::init @ 0x14055dc6d
// > RateStarsLayer::init @ 0x14055e533
// > RateStarsModLayer::init @ 0x14055f50e
// > RewardUnlockLayer::init @ 0x140563740
// > SetupObjectOptionsPopup::init @ 0x140594a5e
// > SelectPremadeLayer::init @ 0x14059e143
// > CreateParticlePopup::init @ 0x1405c14b2
// > SetupSmartBlockLayer::init @ 0x1405ec373
// > SetupSmartTemplateLayer::init @ 0x1405ee586
// > BrowseSmartTemplateLayer::init @ 0x1405ef885
// > BrowseSmartKeyLayer::init @ 0x1405f0fef
// > SetupTriggerPopup::init @ 0x14060aebb
// > SFXBrowser::init @ 0x1406167c8
// > ScrollViewPopup::initPopup @ 0x1406219a8
// > ShardsPage::init @ 0x14062a9fe
// > ShareCommentLayer::init @ 0x14062df06
// > ShareLevelSettingsLayer::init @ 0x140632b74
// > SongInfoLayer::init @ 0x140634cbe
// > TopArtistsLayer::init @ 0x14066e004
// > ??> @ 0x1409106dc
//
// 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:25:42 +0000
//
// Hidden C++ exception states: #wind=1
bool __fastcall FLAlertLayer::init_1(__int64 a1, char a2)
{
bool result; // al
__int64 v4; // rcx
__int64 v5; // rdx
__int64 v6; // rdx
__int64 v7; // rax
__int16 v8; // [rsp+38h] [rbp+10h] BYREF
char v9; // [rsp+3Ah] [rbp+12h]
char v10; // [rsp+3Bh] [rbp+13h]
void *v11; // [rsp+40h] [rbp+18h]
v8 = 0;
v9 = 0;
v10 = a2;
result = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v8);
if ( result )
{
v4 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v4 = qword_14090BFD0;
}
if ( (unsigned __int8)GameManager::getGameVariable(v4, "0168") )
*(_BYTE *)(a1 + 596) = 1;
FLAlertLayer::incrementForcePrio(a1);
LOBYTE(v5) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v5);
LOBYTE(v6) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v6);
v7 = cocos2d::CCLayer::create();
*(_QWORD *)(a1 + 584) = v7;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7);
*(_DWORD *)(a1 + 640) = -1;
return 1;
}
return result;
}