//
// FLAlertLayer::init from 0x3cb8b8 to 0x3cb942 (138 bytes)
//
// 68 xrefs:
// > CreateGuidelinesLayer::init @ 0x3f81c2
// > StartPosBrowser::init @ 0x490054
// > DemonFilterSelectLayer::init @ 0x495d24
// > ShareLevelSettingsLayer::init @ 0x4a2cd4
// > ItemInfoPopup::init @ 0x50d9a8
// > RateLevelLayer::init @ 0x5111f6
// > ParentalOptionsLayer::init @ 0x532246
// > SongInfoLayer::init @ 0x53b230
// > InfoLayer::init @ 0x53ed08
// > ShareCommentLayer::init @ 0x541380
// > LikeItemLayer::init @ 0x544f22
// > PromoInterstitial::init @ 0x5457d0
// > LevelFeatureLayer::init @ 0x565464
// > NumberInputLayer::init @ 0x568ac6
// > RateStarsLayer::init @ 0x569570
// > NewgroundsInfoLayer::init @ 0x57b082
// > SongOptionsLayer::init @ 0x57cf0c
// > NCSInfoLayer::init @ 0x57d84c
// > CustomizeObjectLayer::init @ 0x57f646
// > AccountRegisterLayer::init @ 0x586af6
// > GJColorSetupLayer::init @ 0x5c17fa
// > TOSPopup::init @ 0x5d7c4e
// > HSVWidgetPopup::init @ 0x5e5df6
// > GJSpecialColorSelect::init @ 0x5e899e
// > MessagesProfilePage::init @ 0x5f045c
// > FRequestProfilePage::init @ 0x5f2204
// > MyStuffPopup::init @ 0x5f7336
// > DemonInfoPopup::init @ 0x5f7dbe
// > StarInfoPopup::init @ 0x5f84bc
// > ProfilePage::init @ 0x5fa6cc
// > ChallengesPage::init @ 0x600296
// > ColorSelectLiveOverlay::init @ 0x602526
// > ConfigureValuePopup::init @ 0x602c68
// > LevelLeaderboard::init @ 0x615198
// > RateDemonLayer::init @ 0x616182
// > RewardUnlockLayer::init @ 0x6196ae
// > ShardsPage::init @ 0x62b668
// > WorldLevelPage::init @ 0x62eb0c
// > FollowRewardPage::init @ 0x63067e
// > TopArtistsLayer::init @ 0x63163e
// > SetupPortalPopup::init @ 0x6341d6
// > CommunityCreditsPage::init @ 0x637978
// > SetupObjectOptionsPopup::init @ 0x63b542
// > SetupGravityModPopup::init @ 0x6633ee
// > CreateParticlePopup::init @ 0x667350
// > SetupSmartBlockLayer::init @ 0x672f6e
// > SetupSmartTemplateLayer::init @ 0x67426e
// > BrowseSmartKeyLayer::init @ 0x674bf6
// > BrowseSmartTemplateLayer::init @ 0x6753f4
// > SetupTriggerPopup::init @ 0x676326
// > SelectPremadeLayer::init @ 0x699afc
// > HSVLiveOverlay::init @ 0x69c47a
// > CharacterColorPage::init @ 0x69d67e
// > LevelSettingsLayer::init @ 0x6ab272
// > MusicBrowser::init @ 0x6bf8ae
// > OptionsScrollLayer::init @ 0x6c02d4
// > NewsPopup::init @ 0x6c30bc
// > SFXBrowser::init @ 0x6c818a
// > ScrollViewPopup::initPopup @ 0x6c9b6a
// > AudioAssetsBrowser::init @ 0x6e20c0
// > DailyRecallUnlockPopup::init @ 0x742828
// > NotificationsPage::init @ 0x7435ae
// > ClearPlatformerSavesPopup::init @ 0x761da2
// > DropdownListPopup::init @ 0x778022
// > EditorSoundsSettingsPopup::init @ 0x78b77a
// > KeybindingsSettingsPopup::init @ 0x797178
// > LevelStatsInfoPopup::init @ 0x79c33e
// > RateStarsModLayer::init @ 0x79e96a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:37 +0000
//
GameManager *__fastcall FLAlertLayer::init(FLAlertLayer *this, int a2)
{
GameManager *v3; // r0
GameManager *v4; // r6
GameManager *v5; // r0
cocos2d::CCLayer *v6; // r0
int v7; // r0
int v8; // r3
_BYTE v10[4]; // [sp+0h] [bp-8h] BYREF
int v11; // [sp+4h] [bp-4h]
v11 = a2;
v10[3] = a2;
v10[0] = 0;
v10[1] = 0;
v10[2] = 0;
v3 = (GameManager *)cocos2d::CCLayerColor::initWithColor(this, v10);
v4 = v3;
if ( v3 )
{
v5 = (GameManager *)GameManager::sharedState(v3);
if ( GameManager::getGameVariable(v5, "0168") )
*((_BYTE *)this + 468) = 1;
FLAlertLayer::incrementForcePrio(this);
(*(void (__fastcall **)(FLAlertLayer *, int))(*(_DWORD *)this + 500))(this, 1);
v6 = (cocos2d::CCLayer *)(*(int (__fastcall **)(FLAlertLayer *, int))(*(_DWORD *)this + 536))(this, 1);
v7 = cocos2d::CCLayer::create(v6);
v8 = *(_DWORD *)this;
*((_DWORD *)this + 115) = v7;
(*(void (__fastcall **)(FLAlertLayer *, int))(v8 + 228))(this, v7);
*((_DWORD *)this + 125) = -1;
}
return v4;
}