{"type": "func", "start": 4298421640, "end": 4298421816, "name": "FLAlertLayer::init_1", "pseudocode": "// \n// FLAlertLayer::init_1 from 0x10034b588 to 0x10034b638 (176 bytes)\n// \n// 63 xrefs:\n// > ChallengesPage::init @ 0x100035688\n// > SetupObjectOptionsPopup::init @ 0x100042fa8\n// > CustomizeObjectLayer::init @ 0x100055d58\n// > DemonFilterSelectLayer::init @ 0x10005f9bc\n// > sub_100067294 @ 0x1000672c0\n// > SelectPremadeLayer::init @ 0x10006bfd8\n// > SetupSmartBlockLayer::init @ 0x1000778c0\n// > sub_100078D94 @ 0x100078db8\n// > sub_100079BF0 @ 0x100079c1c\n// > sub_10007B234 @ 0x10007b268\n// > sub_100084AD4 @ 0x100084b04\n// > RateStarsLayer::init @ 0x1000889a8\n// > AccountRegisterLayer::init @ 0x1000897e0\n// > ParentalOptionsLayer::init @ 0x100116808\n// > ColorSelectLiveOverlay::init @ 0x1001198b8\n// > NumberInputLayer::init @ 0x10011d944\n// > HSVWidgetPopup::init @ 0x1001236b8\n// > CharacterColorPage::init @ 0x10015274c\n// > SetupTriggerPopup::init @ 0x1001abd48\n// > sub_1001C1470 @ 0x1001c149c\n// > SongOptionsLayer::init @ 0x1001c3918\n// > NewgroundsInfoLayer::init @ 0x1001c4600\n// > sub_1001C4F04 @ 0x1001c4f30\n// > sub_1001CE6A8 @ 0x1001ce6f0\n// > SFXBrowser::init @ 0x1001f16b4\n// > LevelSettingsLayer::init @ 0x10020a9b0\n// > sub_100220E68 @ 0x100220e9c\n// > ProfilePage::init @ 0x100229cf8\n// > DemonInfoPopup::init @ 0x100231658\n// > StarInfoPopup::init @ 0x1002320d4\n// > MyStuffPopup::init @ 0x100232a34\n// > HSVLiveOverlay::init @ 0x1002347c0\n// > CommunityCreditsPage::init @ 0x100235370\n// > TopArtistsLayer::init @ 0x1002396dc\n// > GJSpecialColorSelect::init @ 0x100243ec0\n// > FRequestProfilePage::init @ 0x10024ad70\n// > RewardUnlockLayer::init @ 0x10025ab9c\n// > MessagesProfilePage::init @ 0x100263d74\n// > AudioAssetsBrowser::init @ 0x1002695b4\n// > ShareCommentLayer::init @ 0x10026c670\n// > LikeItemLayer::init @ 0x1002e9e14\n// > LevelLeaderboard::init @ 0x1002ec5c4\n// > sub_100314E5C @ 0x100314e90\n// > sub_100369218 @ 0x10036925c\n// > TOSPopup::init @ 0x10037e838\n// > ItemInfoPopup::init @ 0x1003a4ee8\n// > InfoLayer::init @ 0x1003ededc\n// > ShardsPage::init @ 0x1004486ec\n// > SongInfoLayer::init @ 0x10044e588\n// > sub_100467BDC @ 0x100467c18\n// > OptionsScrollLayer::init @ 0x10046ae3c\n// > FollowRewardPage::init @ 0x1004a6c5c\n// > RateDemonLayer::init @ 0x1004a8a30\n// > ClearPlatformerSavesPopup::init @ 0x1004a9ca4\n// > sub_1004C2E30 @ 0x1004c2e7c\n// > sub_1004D8BA4 @ 0x1004d8bc8\n// > sub_1004EE2C0 @ 0x1004ee2f4\n// > LevelStatsInfoPopup::init @ 0x1004f25a8\n// > NewsPopup::init @ 0x100517b58\n// > sub_10051E954 @ 0x10051e988\n// > sub_100526DA8 @ 0x100526de8\n// > DailyRecallUnlockPopup::init @ 0x10053a344\n// > NotificationsPage::init @ 0x10053ae7c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:17 +0000\n// \n\n__int64 __fastcall FLAlertLayer::init_1(_DWORD *a1, int a2)\n{\n  __int64 v3; // x0\n  __int64 v4; // x20\n  __int64 v5; // x0\n  __n128 GameVariable; // q0\n  int v7; // w0\n  void *v8; // x0\n  int v10; // [xsp+Ch] [xbp-14h] BYREF\n\n  v10 = a2 << 24;\n  v3 = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)&v10);\n  v4 = v3;\n  if ( (_DWORD)v3 )\n  {\n    v5 = GameManager::sharedState(v3);\n    GameVariable = GameManager::getGameVariable(v5, \"0168\");\n    if ( v7 )\n      *((_BYTE *)a1 + 596) = 1;\n    FLAlertLayer::incrementForcePrio(a1, GameVariable);\n    (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);\n    (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);\n    v8 = cocos2d::CCLayer::create();\n    *((_QWORD *)a1 + 73) = v8;\n    (*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)a1 + 456LL))(a1, v8);\n    a1[160] = -1;\n  }\n  return v4;\n}", "assembly": "; \n; FLAlertLayer::init_1 from 0x10034b588 to 0x10034b638 (176 bytes)\n; \n; 63 xrefs:\n; > ChallengesPage::init @ 0x100035688\n; > SetupObjectOptionsPopup::init @ 0x100042fa8\n; > CustomizeObjectLayer::init @ 0x100055d58\n; > DemonFilterSelectLayer::init @ 0x10005f9bc\n; > sub_100067294 @ 0x1000672c0\n; > SelectPremadeLayer::init @ 0x10006bfd8\n; > SetupSmartBlockLayer::init @ 0x1000778c0\n; > sub_100078D94 @ 0x100078db8\n; > sub_100079BF0 @ 0x100079c1c\n; > sub_10007B234 @ 0x10007b268\n; > sub_100084AD4 @ 0x100084b04\n; > RateStarsLayer::init @ 0x1000889a8\n; > AccountRegisterLayer::init @ 0x1000897e0\n; > ParentalOptionsLayer::init @ 0x100116808\n; > ColorSelectLiveOverlay::init @ 0x1001198b8\n; > NumberInputLayer::init @ 0x10011d944\n; > HSVWidgetPopup::init @ 0x1001236b8\n; > CharacterColorPage::init @ 0x10015274c\n; > SetupTriggerPopup::init @ 0x1001abd48\n; > sub_1001C1470 @ 0x1001c149c\n; > SongOptionsLayer::init @ 0x1001c3918\n; > NewgroundsInfoLayer::init @ 0x1001c4600\n; > sub_1001C4F04 @ 0x1001c4f30\n; > sub_1001CE6A8 @ 0x1001ce6f0\n; > SFXBrowser::init @ 0x1001f16b4\n; > LevelSettingsLayer::init @ 0x10020a9b0\n; > sub_100220E68 @ 0x100220e9c\n; > ProfilePage::init @ 0x100229cf8\n; > DemonInfoPopup::init @ 0x100231658\n; > StarInfoPopup::init @ 0x1002320d4\n; > MyStuffPopup::init @ 0x100232a34\n; > HSVLiveOverlay::init @ 0x1002347c0\n; > CommunityCreditsPage::init @ 0x100235370\n; > TopArtistsLayer::init @ 0x1002396dc\n; > GJSpecialColorSelect::init @ 0x100243ec0\n; > FRequestProfilePage::init @ 0x10024ad70\n; > RewardUnlockLayer::init @ 0x10025ab9c\n; > MessagesProfilePage::init @ 0x100263d74\n; > AudioAssetsBrowser::init @ 0x1002695b4\n; > ShareCommentLayer::init @ 0x10026c670\n; > LikeItemLayer::init @ 0x1002e9e14\n; > LevelLeaderboard::init @ 0x1002ec5c4\n; > sub_100314E5C @ 0x100314e90\n; > sub_100369218 @ 0x10036925c\n; > TOSPopup::init @ 0x10037e838\n; > ItemInfoPopup::init @ 0x1003a4ee8\n; > InfoLayer::init @ 0x1003ededc\n; > ShardsPage::init @ 0x1004486ec\n; > SongInfoLayer::init @ 0x10044e588\n; > sub_100467BDC @ 0x100467c18\n; > OptionsScrollLayer::init @ 0x10046ae3c\n; > FollowRewardPage::init @ 0x1004a6c5c\n; > RateDemonLayer::init @ 0x1004a8a30\n; > ClearPlatformerSavesPopup::init @ 0x1004a9ca4\n; > sub_1004C2E30 @ 0x1004c2e7c\n; > sub_1004D8BA4 @ 0x1004d8bc8\n; > sub_1004EE2C0 @ 0x1004ee2f4\n; > LevelStatsInfoPopup::init @ 0x1004f25a8\n; > NewsPopup::init @ 0x100517b58\n; > sub_10051E954 @ 0x10051e988\n; > sub_100526DA8 @ 0x100526de8\n; > DailyRecallUnlockPopup::init @ 0x10053a344\n; > NotificationsPage::init @ 0x10053ae7c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:17 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x10034b588\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10034b58c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10034b590\nADD             X29, SP, #0x20                                         ; +0xc, 0x10034b594\nMOV             X19, X0                                                ; +0x10, 0x10034b598\nLSL             W8, W1, #0x18                                          ; +0x14, 0x10034b59c\nSTR             W8, [SP,#0x20+var_14]                                  ; +0x18, 0x10034b5a0\nADD             X1, SP, #0x20+var_14                                   ; +0x1c, 0x10034b5a4\nBL              cocos2d__CCLayerColor__initWithColor                   ; +0x20, 0x10034b5a8\nMOV             X20, X0                                                ; +0x24, 0x10034b5ac\nCBZ             W0, loc_10034B624                                      ; +0x28, 0x10034b5b0\nBL              GameManager__sharedState                               ; +0x2c, 0x10034b5b4\nADRL            X1, a0168; \"0168\"                                      ; +0x30, 0x10034b5b8\nBL              GameManager__getGameVariable                           ; +0x38, 0x10034b5c0\nCBZ             W0, loc_10034B5D0                                      ; +0x3c, 0x10034b5c4\nMOV             W8, #1                                                 ; +0x40, 0x10034b5c8\nSTRB            W8, [X19,#0x254]                                       ; +0x44, 0x10034b5cc\nMOV             X0, X19                                                ; +0x48, 0x10034b5d0\nBL              FLAlertLayer__incrementForcePrio                       ; +0x4c, 0x10034b5d4\nLDR             X8, [X19]                                              ; +0x50, 0x10034b5d8\nLDR             X8, [X8,#0x3E8]                                        ; +0x54, 0x10034b5dc\nMOV             X0, X19                                                ; +0x58, 0x10034b5e0\nMOV             W1, #1                                                 ; +0x5c, 0x10034b5e4\nBLR             X8                                                     ; +0x60, 0x10034b5e8\nLDR             X8, [X19]                                              ; +0x64, 0x10034b5ec\nLDR             X8, [X8,#0x430]                                        ; +0x68, 0x10034b5f0\nMOV             X0, X19                                                ; +0x6c, 0x10034b5f4\nMOV             W1, #1                                                 ; +0x70, 0x10034b5f8\nBLR             X8                                                     ; +0x74, 0x10034b5fc\nBL              cocos2d__CCLayer__create                               ; +0x78, 0x10034b600\nMOV             X1, X0                                                 ; +0x7c, 0x10034b604\nSTR             X0, [X19,#0x248]                                       ; +0x80, 0x10034b608\nLDR             X8, [X19]                                              ; +0x84, 0x10034b60c\nLDR             X8, [X8,#0x1C8]                                        ; +0x88, 0x10034b610\nMOV             X0, X19                                                ; +0x8c, 0x10034b614\nBLR             X8                                                     ; +0x90, 0x10034b618\nMOV             W8, #0xFFFFFFFF                                        ; +0x94, 0x10034b61c\nSTR             W8, [X19,#0x280]                                       ; +0x98, 0x10034b620\nMOV             X0, X20                                                ; +0x9c, 0x10034b624\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa0, 0x10034b628\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa4, 0x10034b62c\nADD             SP, SP, #0x30 ; '0'                                    ; +0xa8, 0x10034b630\nRET                                                                    ; +0xac, 0x10034b634", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}