//
// FLAlertLayer::init from 0x699cf8 to 0x699de4 (236 bytes)
//
// 69 xrefs:
// > CreateGuidelinesLayer::init @ 0x6e8618
// > StartPosBrowser::init @ 0x7d6df0
// > DemonFilterSelectLayer::init @ 0x7e460c
// > ShareLevelSettingsLayer::init @ 0x7f2c0c
// > ItemInfoPopup::init @ 0x8be254
// > RateLevelLayer::init @ 0x8c34b8
// > ParentalOptionsLayer::init @ 0x8f6b28
// > SongInfoLayer::init @ 0x904548
// > InfoLayer::init @ 0x90b178
// > ShareCommentLayer::init @ 0x90eb88
// > LikeItemLayer::init @ 0x9154b4
// > PromoInterstitial::init @ 0x916130
// > LevelFeatureLayer::init @ 0x9510ec
// > NumberInputLayer::init @ 0x9569b4
// > RateStarsLayer::init @ 0x9579ec
// > NewgroundsInfoLayer::init @ 0x97e86c
// > SongOptionsLayer::init @ 0x9815bc
// > NCSInfoLayer::init @ 0x982174
// > CustomizeObjectLayer::init @ 0x984f6c
// > AccountRegisterLayer::init @ 0x9908c4
// > GJColorSetupLayer::init @ 0x9f7650
// > TOSPopup::init @ 0xa24f68
// > HSVWidgetPopup::init @ 0xa3bd7c
// > GJSpecialColorSelect::init @ 0xa3fc20
// > MessagesProfilePage::init @ 0xa4b270
// > FRequestProfilePage::init @ 0xa4e050
// > MyStuffPopup::init @ 0xa55c80
// > DemonInfoPopup::init @ 0xa56db4
// > StarInfoPopup::init @ 0xa57910
// > ProfilePage::init @ 0xa5bac4
// > ChallengesPage::init @ 0xa6395c
// > ColorSelectLiveOverlay::init @ 0xa65a04
// > ConfigureValuePopup::init @ 0xa67244
// > LevelLeaderboard::init @ 0xa82aa0
// > RateDemonLayer::init @ 0xa84390
// > RewardUnlockLayer::init @ 0xa890f8
// > ShardsPage::init @ 0xaa3d50
// > WorldLevelPage::init @ 0xaa8c7c
// > FollowRewardPage::init @ 0xaab29c
// > TopArtistsLayer::init @ 0xaacabc
// > SetupPortalPopup::init @ 0xab0c60
// > CommunityCreditsPage::init @ 0xab5df8
// > SetupObjectOptionsPopup::init @ 0xabc708
// > SetupGravityModPopup::init @ 0xafb69c
// > CreateParticlePopup::init @ 0xb013f4
// > SetupSmartBlockLayer::init @ 0xb14e90
// > SetupSmartTemplateLayer::init @ 0xb16994
// > BrowseSmartKeyLayer::init @ 0xb17e40
// > BrowseSmartTemplateLayer::init @ 0xb18d4c
// > SetupTriggerPopup::init @ 0xb1a8cc
// > SelectPremadeLayer::init @ 0xb4c7f4
// > HSVLiveOverlay::init @ 0xb50990
// > CharacterColorPage::init @ 0xb523f8
// > LevelSettingsLayer::init @ 0xb65890
// > MusicBrowser::init @ 0xb87088
// > OptionsScrollLayer::init @ 0xb8848c
// > NewsPopup::init @ 0xb8d4f0
// > SFXBrowser::init @ 0xb96410
// > ScrollViewPopup::initPopup @ 0xb98dec
// > AudioAssetsBrowser::init @ 0xbc267c
// > DailyRecallUnlockPopup::init @ 0xc5dba8
// > NotificationsPage::init @ 0xc5efa0
// > ClearPlatformerSavesPopup::init @ 0xc8f8a4
// > DropdownListPopup::init @ 0xcb7e44
// > EditorSoundsSettingsPopup::init @ 0xcd7e1c
// > KeybindingsSettingsPopup::init @ 0xcf0134
// > LevelStatsInfoPopup::init @ 0xcf9824
// > RateStarsModLayer::init @ 0xcfd054
// > ??> @ 0xea958
//
// This function is hookable on this platform (idp: arm, 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 12:50:39 +0000
//
__int64 __fastcall FLAlertLayer::init(FLAlertLayer *this, char a2)
{
GameManager *v3; // x0
unsigned int v4; // w21
GameManager *v6; // x0
cocos2d::CCLayer *v7; // x0
__int64 v8; // x0
__int64 v9; // x2
_BYTE v10[8]; // [xsp+30h] [xbp+30h] BYREF
v10[3] = a2;
v10[0] = 0;
v10[1] = 0;
v10[2] = 0;
v3 = (GameManager *)(unsigned __int8)cocos2d::CCLayerColor::initWithColor(this, v10);
v4 = (unsigned __int8)v3;
if ( (_BYTE)v3 )
{
v6 = (GameManager *)GameManager::sharedState(v3);
if ( (unsigned __int8)GameManager::getGameVariable(v6, "0168") )
*((_BYTE *)this + 596) = 1;
FLAlertLayer::incrementForcePrio(this);
(*(void (__fastcall **)(FLAlertLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
v7 = (cocos2d::CCLayer *)(*(__int64 (__fastcall **)(FLAlertLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v8 = cocos2d::CCLayer::create(v7);
v9 = *(_QWORD *)this;
*((_QWORD *)this + 73) = v8;
(*(void (__fastcall **)(FLAlertLayer *))(v9 + 456))(this);
*((_DWORD *)this + 160) = -1;
}
return v4;
}