//
// FLAlertLayer::init_1 from 0x100494910 to 0x1004949ee (222 bytes)
//
// 69 xrefs:
// > CustomizeObjectLayer::init @ 0x1001d74c2
// > GJColorSetupLayer::init @ 0x1001ee8cc
// > SongOptionsLayer::init @ 0x1001f9cff
// > NewgroundsInfoLayer::init @ 0x1001fac09
// > NCSInfoLayer::init @ 0x1001fb56c
// > RewardUnlockLayer::init @ 0x1001ff5ef
// > MessagesProfilePage::init @ 0x100211d3c
// > SetupTriggerPopup::init @ 0x100219571
// > HSVLiveOverlay::init @ 0x100254a32
// > LevelSettingsLayer::init @ 0x1002556e2
// > ShareLevelSettingsLayer::init @ 0x10026f182
// > RateDemonLayer::init @ 0x10027074c
// > RateStarsLayer::init @ 0x100276de1
// > TOSPopup::init @ 0x10029d219
// > sub_1002C0F80 @ 0x1002c1132
// > PromoInterstitial::init @ 0x1002c11c2
// > SelectPremadeLayer::init @ 0x1002f4b09
// > TopArtistsLayer::init @ 0x1002fb2e9
// > SetupObjectOptionsPopup::init @ 0x1003030e2
// > CommunityCreditsPage::init @ 0x100309e0c
// > ItemInfoPopup::init @ 0x10035ae81
// > ChallengesPage::init @ 0x100386b19
// > WorldLevelPage::init @ 0x1003aec47
// > StartPosBrowser::init @ 0x1003c390f
// > SetupGravityModPopup::init @ 0x1003c5605
// > LevelLeaderboard::init @ 0x1003c7095
// > FollowRewardPage::init @ 0x10040c32c
// > HSVWidgetPopup::init @ 0x10041c7e8
// > SFXBrowser::init @ 0x10042bfcf
// > CreateParticlePopup::init @ 0x100462b25
// > NumberInputLayer::init @ 0x100489379
// > AccountRegisterLayer::init @ 0x10048c5ac
// > ShardsPage::init @ 0x1004bff1c
// > SetupSmartBlockLayer::init @ 0x1004e06c2
// > SetupSmartTemplateLayer::init @ 0x1004e253f
// > BrowseSmartTemplateLayer::init @ 0x1004e392f
// > BrowseSmartKeyLayer::init @ 0x1004e5792
// > LevelFeatureLayer::init @ 0x100503a8c
// > CreateGuidelinesLayer::init @ 0x10050c9f2
// > RateLevelLayer::init @ 0x100594bbc
// > ColorSelectLiveOverlay::init @ 0x1005957ef
// > SetupPortalPopup::init @ 0x10059c9a2
// > ShareCommentLayer::init @ 0x1006b128f
// > LikeItemLayer::init @ 0x1006cfb72
// > SongInfoLayer::init @ 0x1006d7f0f
// > MusicBrowser::init @ 0x1006e741f
// > OptionsScrollLayer::init @ 0x1006eb1a5
// > ConfigureValuePopup::init @ 0x100701187
// > GJSpecialColorSelect::init @ 0x100702a24
// > DemonFilterSelectLayer::init @ 0x10070c159
// > CharacterColorPage::init @ 0x10073c209
// > FRequestProfilePage::init @ 0x10086ef8c
// > ParentalOptionsLayer::init @ 0x100884469
// > InfoLayer::init @ 0x100891578
// > AudioAssetsBrowser::init @ 0x10089941f
// > ProfilePage::init @ 0x10089db5e
// > DemonInfoPopup::init @ 0x1008a7e8f
// > StarInfoPopup::init @ 0x1008a8ac8
// > MyStuffPopup::init @ 0x1008a97ba
// > ClearPlatformerSavesPopup::init @ 0x1008b41dc
// > DropdownListPopup::init @ 0x1008dab0e
// > sub_1008FF5F0 @ 0x1008ff60c
// > sub_10091DEE0 @ 0x10091deff
// > LevelStatsInfoPopup::init @ 0x10092601c
// > NewsPopup::init @ 0x1009587e9
// > RateStarsModLayer::init @ 0x10096294e
// > ScrollViewPopup::initPopup @ 0x10096ec6c
// > DailyRecallUnlockPopup::init @ 0x10098a382
// > NotificationsPage::init @ 0x10098b229
//
// 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 12:30:48 +0000
//
__int64 __fastcall FLAlertLayer::init_1(_BYTE *a1, int a2)
{
__int64 result; // rax
unsigned int v3; // r15d
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // r14
unsigned __int8 v7; // al
__int64 v8; // rax
_DWORD v9[7]; // [rsp+0h] [rbp-1Ch] BYREF
v9[0] = a2 << 24;
result = cocos2d::CCLayerColor::initWithColor(a1, v9);
if ( (_BYTE)result )
{
v3 = result;
v4 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::getGameVariable(v4, "0168") )
a1[596] = 1;
if ( !a1[644] )
{
a1[644] = 1;
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
v7 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1320LL))(a1);
cocos2d::CCTouchDispatcher::registerForcePrio(v6, a1, 2, v7);
}
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
v8 = cocos2d::CCLayer::create(a1);
*((_QWORD *)a1 + 73) = v8;
(*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8);
*((_DWORD *)a1 + 160) = -1;
return v3;
}
return result;
}