//
// FLAlertLayer::init_1 from 0x10034b588 to 0x10034b638 (176 bytes)
//
// 63 xrefs:
// > ChallengesPage::init @ 0x100035688
// > SetupObjectOptionsPopup::init @ 0x100042fa8
// > CustomizeObjectLayer::init @ 0x100055d58
// > DemonFilterSelectLayer::init @ 0x10005f9bc
// > sub_100067294 @ 0x1000672c0
// > SelectPremadeLayer::init @ 0x10006bfd8
// > SetupSmartBlockLayer::init @ 0x1000778c0
// > sub_100078D94 @ 0x100078db8
// > sub_100079BF0 @ 0x100079c1c
// > sub_10007B234 @ 0x10007b268
// > sub_100084AD4 @ 0x100084b04
// > RateStarsLayer::init @ 0x1000889a8
// > AccountRegisterLayer::init @ 0x1000897e0
// > ParentalOptionsLayer::init @ 0x100116808
// > ColorSelectLiveOverlay::init @ 0x1001198b8
// > NumberInputLayer::init @ 0x10011d944
// > HSVWidgetPopup::init @ 0x1001236b8
// > CharacterColorPage::init @ 0x10015274c
// > SetupTriggerPopup::init @ 0x1001abd48
// > sub_1001C1470 @ 0x1001c149c
// > SongOptionsLayer::init @ 0x1001c3918
// > NewgroundsInfoLayer::init @ 0x1001c4600
// > sub_1001C4F04 @ 0x1001c4f30
// > sub_1001CE6A8 @ 0x1001ce6f0
// > SFXBrowser::init @ 0x1001f16b4
// > LevelSettingsLayer::init @ 0x10020a9b0
// > sub_100220E68 @ 0x100220e9c
// > ProfilePage::init @ 0x100229cf8
// > DemonInfoPopup::init @ 0x100231658
// > StarInfoPopup::init @ 0x1002320d4
// > MyStuffPopup::init @ 0x100232a34
// > HSVLiveOverlay::init @ 0x1002347c0
// > CommunityCreditsPage::init @ 0x100235370
// > TopArtistsLayer::init @ 0x1002396dc
// > GJSpecialColorSelect::init @ 0x100243ec0
// > FRequestProfilePage::init @ 0x10024ad70
// > RewardUnlockLayer::init @ 0x10025ab9c
// > MessagesProfilePage::init @ 0x100263d74
// > AudioAssetsBrowser::init @ 0x1002695b4
// > ShareCommentLayer::init @ 0x10026c670
// > LikeItemLayer::init @ 0x1002e9e14
// > LevelLeaderboard::init @ 0x1002ec5c4
// > sub_100314E5C @ 0x100314e90
// > sub_100369218 @ 0x10036925c
// > TOSPopup::init @ 0x10037e838
// > ItemInfoPopup::init @ 0x1003a4ee8
// > InfoLayer::init @ 0x1003ededc
// > ShardsPage::init @ 0x1004486ec
// > SongInfoLayer::init @ 0x10044e588
// > sub_100467BDC @ 0x100467c18
// > OptionsScrollLayer::init @ 0x10046ae3c
// > FollowRewardPage::init @ 0x1004a6c5c
// > RateDemonLayer::init @ 0x1004a8a30
// > ClearPlatformerSavesPopup::init @ 0x1004a9ca4
// > sub_1004C2E30 @ 0x1004c2e7c
// > sub_1004D8BA4 @ 0x1004d8bc8
// > sub_1004EE2C0 @ 0x1004ee2f4
// > LevelStatsInfoPopup::init @ 0x1004f25a8
// > NewsPopup::init @ 0x100517b58
// > sub_10051E954 @ 0x10051e988
// > sub_100526DA8 @ 0x100526de8
// > DailyRecallUnlockPopup::init @ 0x10053a344
// > NotificationsPage::init @ 0x10053ae7c
//
// 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 11:03:17 +0000
//
__int64 __fastcall FLAlertLayer::init_1(_DWORD *a1, int a2)
{
__int64 v3; // x0
__int64 v4; // x20
__int64 v5; // x0
__n128 GameVariable; // q0
int v7; // w0
void *v8; // x0
int v10; // [xsp+Ch] [xbp-14h] BYREF
v10 = a2 << 24;
v3 = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)&v10);
v4 = v3;
if ( (_DWORD)v3 )
{
v5 = GameManager::sharedState(v3);
GameVariable = GameManager::getGameVariable(v5, "0168");
if ( v7 )
*((_BYTE *)a1 + 596) = 1;
FLAlertLayer::incrementForcePrio(a1, GameVariable);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
(*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);
v8 = cocos2d::CCLayer::create();
*((_QWORD *)a1 + 73) = v8;
(*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)a1 + 456LL))(a1, v8);
a1[160] = -1;
}
return v4;
}