{"type": "func", "start": 4299770128, "end": 4299770350, "name": "FLAlertLayer::init_1", "pseudocode": "// \n// FLAlertLayer::init_1 from 0x100494910 to 0x1004949ee (222 bytes)\n// \n// 69 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001d74c2\n// > GJColorSetupLayer::init @ 0x1001ee8cc\n// > SongOptionsLayer::init @ 0x1001f9cff\n// > NewgroundsInfoLayer::init @ 0x1001fac09\n// > NCSInfoLayer::init @ 0x1001fb56c\n// > RewardUnlockLayer::init @ 0x1001ff5ef\n// > MessagesProfilePage::init @ 0x100211d3c\n// > SetupTriggerPopup::init @ 0x100219571\n// > HSVLiveOverlay::init @ 0x100254a32\n// > LevelSettingsLayer::init @ 0x1002556e2\n// > ShareLevelSettingsLayer::init @ 0x10026f182\n// > RateDemonLayer::init @ 0x10027074c\n// > RateStarsLayer::init @ 0x100276de1\n// > TOSPopup::init @ 0x10029d219\n// > sub_1002C0F80 @ 0x1002c1132\n// > PromoInterstitial::init @ 0x1002c11c2\n// > SelectPremadeLayer::init @ 0x1002f4b09\n// > TopArtistsLayer::init @ 0x1002fb2e9\n// > SetupObjectOptionsPopup::init @ 0x1003030e2\n// > CommunityCreditsPage::init @ 0x100309e0c\n// > ItemInfoPopup::init @ 0x10035ae81\n// > ChallengesPage::init @ 0x100386b19\n// > WorldLevelPage::init @ 0x1003aec47\n// > StartPosBrowser::init @ 0x1003c390f\n// > SetupGravityModPopup::init @ 0x1003c5605\n// > LevelLeaderboard::init @ 0x1003c7095\n// > FollowRewardPage::init @ 0x10040c32c\n// > HSVWidgetPopup::init @ 0x10041c7e8\n// > SFXBrowser::init @ 0x10042bfcf\n// > CreateParticlePopup::init @ 0x100462b25\n// > NumberInputLayer::init @ 0x100489379\n// > AccountRegisterLayer::init @ 0x10048c5ac\n// > ShardsPage::init @ 0x1004bff1c\n// > SetupSmartBlockLayer::init @ 0x1004e06c2\n// > SetupSmartTemplateLayer::init @ 0x1004e253f\n// > BrowseSmartTemplateLayer::init @ 0x1004e392f\n// > BrowseSmartKeyLayer::init @ 0x1004e5792\n// > LevelFeatureLayer::init @ 0x100503a8c\n// > CreateGuidelinesLayer::init @ 0x10050c9f2\n// > RateLevelLayer::init @ 0x100594bbc\n// > ColorSelectLiveOverlay::init @ 0x1005957ef\n// > SetupPortalPopup::init @ 0x10059c9a2\n// > ShareCommentLayer::init @ 0x1006b128f\n// > LikeItemLayer::init @ 0x1006cfb72\n// > SongInfoLayer::init @ 0x1006d7f0f\n// > MusicBrowser::init @ 0x1006e741f\n// > OptionsScrollLayer::init @ 0x1006eb1a5\n// > ConfigureValuePopup::init @ 0x100701187\n// > GJSpecialColorSelect::init @ 0x100702a24\n// > DemonFilterSelectLayer::init @ 0x10070c159\n// > CharacterColorPage::init @ 0x10073c209\n// > FRequestProfilePage::init @ 0x10086ef8c\n// > ParentalOptionsLayer::init @ 0x100884469\n// > InfoLayer::init @ 0x100891578\n// > AudioAssetsBrowser::init @ 0x10089941f\n// > ProfilePage::init @ 0x10089db5e\n// > DemonInfoPopup::init @ 0x1008a7e8f\n// > StarInfoPopup::init @ 0x1008a8ac8\n// > MyStuffPopup::init @ 0x1008a97ba\n// > ClearPlatformerSavesPopup::init @ 0x1008b41dc\n// > DropdownListPopup::init @ 0x1008dab0e\n// > sub_1008FF5F0 @ 0x1008ff60c\n// > sub_10091DEE0 @ 0x10091deff\n// > LevelStatsInfoPopup::init @ 0x10092601c\n// > NewsPopup::init @ 0x1009587e9\n// > RateStarsModLayer::init @ 0x10096294e\n// > ScrollViewPopup::initPopup @ 0x10096ec6c\n// > DailyRecallUnlockPopup::init @ 0x10098a382\n// > NotificationsPage::init @ 0x10098b229\n// \n// This function is hookable on this platform (idp: pc, 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 12:30:48 +0000\n// \n\n__int64 __fastcall FLAlertLayer::init_1(_BYTE *a1, int a2)\n{\n  __int64 result; // rax\n  unsigned int v3; // r15d\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // r14\n  unsigned __int8 v7; // al\n  __int64 v8; // rax\n  _DWORD v9[7]; // [rsp+0h] [rbp-1Ch] BYREF\n\n  v9[0] = a2 << 24;\n  result = cocos2d::CCLayerColor::initWithColor(a1, v9);\n  if ( (_BYTE)result )\n  {\n    v3 = result;\n    v4 = GameManager::sharedState();\n    if ( (unsigned __int8)GameManager::getGameVariable(v4, \"0168\") )\n      a1[596] = 1;\n    if ( !a1[644] )\n    {\n      a1[644] = 1;\n      v5 = cocos2d::CCDirector::sharedDirector();\n      v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);\n      v7 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1320LL))(a1);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v6, a1, 2, v7);\n    }\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1);\n    v8 = cocos2d::CCLayer::create(a1);\n    *((_QWORD *)a1 + 73) = v8;\n    (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8);\n    *((_DWORD *)a1 + 160) = -1;\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; FLAlertLayer::init_1 from 0x100494910 to 0x1004949ee (222 bytes)\n; \n; 69 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001d74c2\n; > GJColorSetupLayer::init @ 0x1001ee8cc\n; > SongOptionsLayer::init @ 0x1001f9cff\n; > NewgroundsInfoLayer::init @ 0x1001fac09\n; > NCSInfoLayer::init @ 0x1001fb56c\n; > RewardUnlockLayer::init @ 0x1001ff5ef\n; > MessagesProfilePage::init @ 0x100211d3c\n; > SetupTriggerPopup::init @ 0x100219571\n; > HSVLiveOverlay::init @ 0x100254a32\n; > LevelSettingsLayer::init @ 0x1002556e2\n; > ShareLevelSettingsLayer::init @ 0x10026f182\n; > RateDemonLayer::init @ 0x10027074c\n; > RateStarsLayer::init @ 0x100276de1\n; > TOSPopup::init @ 0x10029d219\n; > sub_1002C0F80 @ 0x1002c1132\n; > PromoInterstitial::init @ 0x1002c11c2\n; > SelectPremadeLayer::init @ 0x1002f4b09\n; > TopArtistsLayer::init @ 0x1002fb2e9\n; > SetupObjectOptionsPopup::init @ 0x1003030e2\n; > CommunityCreditsPage::init @ 0x100309e0c\n; > ItemInfoPopup::init @ 0x10035ae81\n; > ChallengesPage::init @ 0x100386b19\n; > WorldLevelPage::init @ 0x1003aec47\n; > StartPosBrowser::init @ 0x1003c390f\n; > SetupGravityModPopup::init @ 0x1003c5605\n; > LevelLeaderboard::init @ 0x1003c7095\n; > FollowRewardPage::init @ 0x10040c32c\n; > HSVWidgetPopup::init @ 0x10041c7e8\n; > SFXBrowser::init @ 0x10042bfcf\n; > CreateParticlePopup::init @ 0x100462b25\n; > NumberInputLayer::init @ 0x100489379\n; > AccountRegisterLayer::init @ 0x10048c5ac\n; > ShardsPage::init @ 0x1004bff1c\n; > SetupSmartBlockLayer::init @ 0x1004e06c2\n; > SetupSmartTemplateLayer::init @ 0x1004e253f\n; > BrowseSmartTemplateLayer::init @ 0x1004e392f\n; > BrowseSmartKeyLayer::init @ 0x1004e5792\n; > LevelFeatureLayer::init @ 0x100503a8c\n; > CreateGuidelinesLayer::init @ 0x10050c9f2\n; > RateLevelLayer::init @ 0x100594bbc\n; > ColorSelectLiveOverlay::init @ 0x1005957ef\n; > SetupPortalPopup::init @ 0x10059c9a2\n; > ShareCommentLayer::init @ 0x1006b128f\n; > LikeItemLayer::init @ 0x1006cfb72\n; > SongInfoLayer::init @ 0x1006d7f0f\n; > MusicBrowser::init @ 0x1006e741f\n; > OptionsScrollLayer::init @ 0x1006eb1a5\n; > ConfigureValuePopup::init @ 0x100701187\n; > GJSpecialColorSelect::init @ 0x100702a24\n; > DemonFilterSelectLayer::init @ 0x10070c159\n; > CharacterColorPage::init @ 0x10073c209\n; > FRequestProfilePage::init @ 0x10086ef8c\n; > ParentalOptionsLayer::init @ 0x100884469\n; > InfoLayer::init @ 0x100891578\n; > AudioAssetsBrowser::init @ 0x10089941f\n; > ProfilePage::init @ 0x10089db5e\n; > DemonInfoPopup::init @ 0x1008a7e8f\n; > StarInfoPopup::init @ 0x1008a8ac8\n; > MyStuffPopup::init @ 0x1008a97ba\n; > ClearPlatformerSavesPopup::init @ 0x1008b41dc\n; > DropdownListPopup::init @ 0x1008dab0e\n; > sub_1008FF5F0 @ 0x1008ff60c\n; > sub_10091DEE0 @ 0x10091deff\n; > LevelStatsInfoPopup::init @ 0x10092601c\n; > NewsPopup::init @ 0x1009587e9\n; > RateStarsModLayer::init @ 0x10096294e\n; > ScrollViewPopup::initPopup @ 0x10096ec6c\n; > DailyRecallUnlockPopup::init @ 0x10098a382\n; > NotificationsPage::init @ 0x10098b229\n; \n; This function is hookable on this platform (idp: pc, 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 12:30:48 +0000\n; \npush    rbp                                                            ; +0x0, 0x100494910\nmov     rbp, rsp                                                       ; +0x1, 0x100494911\npush    r15                                                            ; +0x4, 0x100494914\npush    r14                                                            ; +0x6, 0x100494916\npush    rbx                                                            ; +0x8, 0x100494918\npush    rax                                                            ; +0x9, 0x100494919\nmov     rbx, rdi                                                       ; +0xa, 0x10049491a\nshl     esi, 18h                                                       ; +0xd, 0x10049491d\nmov     [rbp+var_1C], esi                                              ; +0x10, 0x100494920\nlea     rsi, [rbp+var_1C]                                              ; +0x13, 0x100494923\ncall    cocos2d__CCLayerColor__initWithColor                           ; +0x17, 0x100494927\ntest    al, al                                                         ; +0x1c, 0x10049492c\njz      loc_1004949E3                                                  ; +0x1e, 0x10049492e\nmov     r15d, eax                                                      ; +0x24, 0x100494934\ncall    GameManager__sharedState                                       ; +0x27, 0x100494937\nlea     rsi, a0168; \"0168\"                                             ; +0x2c, 0x10049493c\nmov     rdi, rax                                                       ; +0x33, 0x100494943\ncall    GameManager__getGameVariable                                   ; +0x36, 0x100494946\ntest    al, al                                                         ; +0x3b, 0x10049494b\njz      short loc_100494956                                            ; +0x3d, 0x10049494d\nmov     byte ptr [rbx+254h], 1                                         ; +0x3f, 0x10049494f\ncmp     byte ptr [rbx+284h], 0                                         ; +0x46, 0x100494956\njnz     short loc_100494999                                            ; +0x4d, 0x10049495d\nmov     byte ptr [rbx+284h], 1                                         ; +0x4f, 0x10049495f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x56, 0x100494966\nmov     rcx, [rax]                                                     ; +0x5b, 0x10049496b\nmov     rdi, rax                                                       ; +0x5e, 0x10049496e\ncall    qword ptr [rcx+0A0h]                                           ; +0x61, 0x100494971\nmov     r14, rax                                                       ; +0x67, 0x100494977\nmov     rax, [rbx]                                                     ; +0x6a, 0x10049497a\nmov     rdi, rbx                                                       ; +0x6d, 0x10049497d\ncall    qword ptr [rax+528h]                                           ; +0x70, 0x100494980\nmovzx   ecx, al                                                        ; +0x76, 0x100494986\nmov     rdi, r14                                                       ; +0x79, 0x100494989\nmov     rsi, rbx                                                       ; +0x7c, 0x10049498c\nmov     edx, 2                                                         ; +0x7f, 0x10049498f\ncall    cocos2d__CCTouchDispatcher__registerForcePrio                  ; +0x84, 0x100494994\nmov     rax, [rbx]                                                     ; +0x89, 0x100494999\nmov     rdi, rbx                                                       ; +0x8c, 0x10049499c\nmov     esi, 1                                                         ; +0x8f, 0x10049499f\ncall    qword ptr [rax+3E8h]                                           ; +0x94, 0x1004949a4\nmov     rax, [rbx]                                                     ; +0x9a, 0x1004949aa\nmov     rdi, rbx                                                       ; +0x9d, 0x1004949ad\nmov     esi, 1                                                         ; +0xa0, 0x1004949b0\ncall    qword ptr [rax+430h]                                           ; +0xa5, 0x1004949b5\ncall    cocos2d__CCLayer__create                                       ; +0xab, 0x1004949bb\nmov     [rbx+248h], rax                                                ; +0xb0, 0x1004949c0\nmov     rcx, [rbx]                                                     ; +0xb7, 0x1004949c7\nmov     rdi, rbx                                                       ; +0xba, 0x1004949ca\nmov     rsi, rax                                                       ; +0xbd, 0x1004949cd\ncall    qword ptr [rcx+1C8h]                                           ; +0xc0, 0x1004949d0\nmov     dword ptr [rbx+280h], 0FFFFFFFFh                               ; +0xc6, 0x1004949d6\nmov     eax, r15d                                                      ; +0xd0, 0x1004949e0\nadd     rsp, 8                                                         ; +0xd3, 0x1004949e3\npop     rbx                                                            ; +0xd7, 0x1004949e7\npop     r14                                                            ; +0xd8, 0x1004949e8\npop     r15                                                            ; +0xda, 0x1004949ea\npop     rbp                                                            ; +0xdc, 0x1004949ec\nretn                                                                   ; +0xdd, 0x1004949ed", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}