//
// FLAlertLayer::init_1 from 0x1002ac8f0 to 0x1002ac9a0 (176 bytes)
//
// 53 xrefs:
// > ChallengesPage::init @ 0x100031bd4
// > SetupObjectOptionsPopup::init @ 0x10003f24c
// > CustomizeObjectLayer::init @ 0x10004d584
// > DemonFilterSelectLayer::init @ 0x10005723c
// > RateLevelLayer::init @ 0x10005e5d8
// > SelectPremadeLayer::init @ 0x100063304
// > SetupSmartBlockLayer::init @ 0x10006f144
// > SetupSmartTemplateLayer::init @ 0x100070628
// > BrowseSmartTemplateLayer::init @ 0x10007147c
// > BrowseSmartKeyLayer::init @ 0x100072ab8
// > CreateGuidelinesLayer::init @ 0x10007c3b4
// > RateStarsLayer::init @ 0x1000801f4
// > AccountRegisterLayer::init @ 0x10008101c
// > CollisionBlockPopup::init @ 0x100084c48
// > ParentalOptionsLayer::init @ 0x1000f292c
// > ColorSelectLiveOverlay::init @ 0x1000f515c
// > NumberInputLayer::init @ 0x1000f8f34
// > HSVWidgetPopup::init @ 0x1000fec90
// > CharacterColorPage::init @ 0x100128d18
// > SetupTriggerPopup::init @ 0x10012e324
// > SongOptionsLayer::init @ 0x100144e6c
// > NewgroundsInfoLayer::init @ 0x100145b54
// > NCSInfoLayer::init @ 0x100146634
// > ConfigureValuePopup::init @ 0x10014fa7c
// > SFXBrowser::init @ 0x1001688ac
// > LevelSettingsLayer::init @ 0x1001792e8
// > GJColorSetupLayer::init @ 0x10018dc94
// > ProfilePage::init @ 0x100196a58
// > DemonInfoPopup::init @ 0x10019d074
// > StarInfoPopup::init @ 0x10019dae8
// > HSVLiveOverlay::init @ 0x10019fa08
// > CommunityCreditsPage::init @ 0x1001a0568
// > TopArtistsLayer::init @ 0x1001a476c
// > GJSpecialColorSelect::init @ 0x1001aedd4
// > FRequestProfilePage::init @ 0x1001b5fd4
// > RewardUnlockLayer::init @ 0x1001c4fe4
// > MessagesProfilePage::init @ 0x1001cbf38
// > AudioAssetsBrowser::init @ 0x1001d15cc
// > ShareCommentLayer::init @ 0x1001d4698
// > FriendsProfilePage::init @ 0x1001d8dbc
// > LikeItemLayer::init @ 0x10024cbc8
// > LevelLeaderboard::init @ 0x10024f3d4
// > ShareLevelSettingsLayer::init @ 0x100276ee0
// > CreateParticlePopup::init @ 0x1002ca4a4
// > TOSPopup::init @ 0x1002e0748
// > ItemInfoPopup::init @ 0x1003081d0
// > InfoLayer::init @ 0x10034f9d4
// > ShardsPage::init @ 0x1003a1c40
// > SongInfoLayer::init @ 0x1003a78ec
// > MusicBrowser::init @ 0x1003c0ee0
// > OptionsScrollLayer::init @ 0x1003c2cb0
// > FollowRewardPage::init @ 0x100424778
// > RateDemonLayer::init @ 0x100426344
//
// 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
//
bool __fastcall FLAlertLayer::init_1(FLAlertLayer *a1, int a2)
{
_BOOL4 v3; // w20
GameManager *v4; // x0
cocos2d::CCLayer *v5; // x0
int v7; // [xsp+Ch] [xbp-14h] BYREF
v7 = a2 << 24;
v3 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v7);
if ( v3 )
{
v4 = GameManager::sharedState();
if ( GameManager::getGameVariable(v4, "0168") )
a1->m_noElasticity = 1;
FLAlertLayer::incrementForcePrio(a1);
((void (__fastcall *)(FLAlertLayer *, __int64))a1->setTouchEnabled)(a1, 1);
((void (__fastcall *)(FLAlertLayer *, __int64))a1->setKeypadEnabled)(a1, 1);
v5 = cocos2d::CCLayer::create();
a1->m_mainLayer = v5;
((void (__fastcall *)(FLAlertLayer *, cocos2d::CCLayer *))a1->addChild)(a1, v5);
a1->m_joystickConnected = -1;
}
return v3;
}