{"type": "func", "start": 4299800224, "end": 4299800427, "name": "FLAlertLayer::init_1", "pseudocode": "// \n// FLAlertLayer::init_1 from 0x10049bea0 to 0x10049bf6b (203 bytes)\n// \n// 60 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f5112\n// > GJColorSetupLayer::init @ 0x10020b57c\n// > SongOptionsLayer::init @ 0x10021668f\n// > NewgroundsInfoLayer::init @ 0x100217599\n// > NCSInfoLayer::init @ 0x1002180ec\n// > RewardUnlockLayer::init @ 0x10021bedf\n// > MessagesProfilePage::init @ 0x10022da4c\n// > SetupTriggerPopup::init @ 0x100234ebc\n// > HSVLiveOverlay::init @ 0x10026a96c\n// > LevelSettingsLayer::init @ 0x10026b762\n// > ShareLevelSettingsLayer::init @ 0x1002825cf\n// > RateDemonLayer::init @ 0x100283bac\n// > CollisionBlockPopup::init @ 0x100285d82\n// > RateStarsLayer::init @ 0x10028b951\n// > TOSPopup::init @ 0x1002afe89\n// > PromoInterstitial::create @ 0x1002d44f8\n// > PromoInterstitial::init @ 0x1002d4562\n// > SelectPremadeLayer::init @ 0x100309f99\n// > TopArtistsLayer::init @ 0x1003107c9\n// > SetupObjectOptionsPopup::init @ 0x100318065\n// > CommunityCreditsPage::init @ 0x10031ea6c\n// > ItemInfoPopup::init @ 0x1003719b1\n// > ChallengesPage::init @ 0x10039d0e9\n// > WorldLevelPage::init @ 0x1003c5757\n// > SetupGravityModPopup::init @ 0x1003d82d5\n// > LevelLeaderboard::init @ 0x1003da0b5\n// > FollowRewardPage::init @ 0x10041f8dc\n// > HSVWidgetPopup::init @ 0x10042f646\n// > SFXBrowser::init @ 0x10043e66c\n// > CreateParticlePopup::init @ 0x10046e8c5\n// > NumberInputLayer::init @ 0x100492439\n// > AccountRegisterLayer::init @ 0x10049556c\n// > ShardsPage::init @ 0x1004c5b4c\n// > SetupSmartBlockLayer::init @ 0x1004e5dc2\n// > SetupSmartTemplateLayer::init @ 0x1004e7b7f\n// > BrowseSmartTemplateLayer::init @ 0x1004e8e6f\n// > BrowseSmartKeyLayer::init @ 0x1004eac02\n// > LevelFeatureLayer::init @ 0x100504d2c\n// > CreateGuidelinesLayer::init @ 0x10050b3d2\n// > RateLevelLayer::init @ 0x100567cbc\n// > ColorSelectLiveOverlay::init @ 0x10056896f\n// > SetupPortalPopup::init @ 0x10056f832\n// > ShareCommentLayer::init @ 0x1005dfaaf\n// > LikeItemLayer::init @ 0x1005f8d82\n// > SongInfoLayer::init @ 0x100600a8c\n// > KeybindingsLayer::init @ 0x100609ea9\n// > MusicBrowser::init @ 0x10060dd7f\n// > OptionsScrollLayer::init @ 0x100610492\n// > ConfigureValuePopup::init @ 0x1006248e7\n// > GJSpecialColorSelect::init @ 0x100626094\n// > DemonFilterSelectLayer::init @ 0x10062f529\n// > FriendsProfilePage::init @ 0x100657c1c\n// > CharacterColorPage::init @ 0x10065cbb9\n// > FRequestProfilePage::init @ 0x10078fdec\n// > ParentalOptionsLayer::init @ 0x1007a3579\n// > InfoLayer::init @ 0x1007ae3a5\n// > AudioAssetsBrowser::init @ 0x1007b3eff\n// > ProfilePage::init @ 0x1007b879e\n// > DemonInfoPopup::init @ 0x1007c144f\n// > StarInfoPopup::init @ 0x1007c1fd8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall FLAlertLayer::init_1(FLAlertLayer *a1, int a2)\n{\n  bool result; // al\n  bool v3; // r14\n  GameManager *v4; // rax\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  cocos2d::CCLayer *v7; // rax\n  int v8; // [rsp+Ch] [rbp-14h] BYREF\n\n  v8 = a2 << 24;\n  result = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)&v8);\n  if ( result )\n  {\n    v3 = result;\n    v4 = GameManager::sharedState();\n    if ( GameManager::getGameVariable(v4, \"0168\") )\n      a1->m_noElasticity = 1;\n    if ( !a1->m_forcePrioRegistered )\n    {\n      a1->m_forcePrioRegistered = 1;\n      v5 = cocos2d::CCDirector::sharedDirector();\n      v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);\n      cocos2d::CCTouchDispatcher::registerForcePrio(v6, a1, 2);\n    }\n    ((void (__fastcall *)(FLAlertLayer *, __int64))a1->setTouchEnabled)(a1, 1);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))a1->setKeypadEnabled)(a1, 1);\n    v7 = cocos2d::CCLayer::create();\n    a1->m_mainLayer = v7;\n    ((void (__fastcall *)(FLAlertLayer *, cocos2d::CCLayer *))a1->addChild)(a1, v7);\n    a1->m_joystickConnected = -1;\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; FLAlertLayer::init_1 from 0x10049bea0 to 0x10049bf6b (203 bytes)\n; \n; 60 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f5112\n; > GJColorSetupLayer::init @ 0x10020b57c\n; > SongOptionsLayer::init @ 0x10021668f\n; > NewgroundsInfoLayer::init @ 0x100217599\n; > NCSInfoLayer::init @ 0x1002180ec\n; > RewardUnlockLayer::init @ 0x10021bedf\n; > MessagesProfilePage::init @ 0x10022da4c\n; > SetupTriggerPopup::init @ 0x100234ebc\n; > HSVLiveOverlay::init @ 0x10026a96c\n; > LevelSettingsLayer::init @ 0x10026b762\n; > ShareLevelSettingsLayer::init @ 0x1002825cf\n; > RateDemonLayer::init @ 0x100283bac\n; > CollisionBlockPopup::init @ 0x100285d82\n; > RateStarsLayer::init @ 0x10028b951\n; > TOSPopup::init @ 0x1002afe89\n; > PromoInterstitial::create @ 0x1002d44f8\n; > PromoInterstitial::init @ 0x1002d4562\n; > SelectPremadeLayer::init @ 0x100309f99\n; > TopArtistsLayer::init @ 0x1003107c9\n; > SetupObjectOptionsPopup::init @ 0x100318065\n; > CommunityCreditsPage::init @ 0x10031ea6c\n; > ItemInfoPopup::init @ 0x1003719b1\n; > ChallengesPage::init @ 0x10039d0e9\n; > WorldLevelPage::init @ 0x1003c5757\n; > SetupGravityModPopup::init @ 0x1003d82d5\n; > LevelLeaderboard::init @ 0x1003da0b5\n; > FollowRewardPage::init @ 0x10041f8dc\n; > HSVWidgetPopup::init @ 0x10042f646\n; > SFXBrowser::init @ 0x10043e66c\n; > CreateParticlePopup::init @ 0x10046e8c5\n; > NumberInputLayer::init @ 0x100492439\n; > AccountRegisterLayer::init @ 0x10049556c\n; > ShardsPage::init @ 0x1004c5b4c\n; > SetupSmartBlockLayer::init @ 0x1004e5dc2\n; > SetupSmartTemplateLayer::init @ 0x1004e7b7f\n; > BrowseSmartTemplateLayer::init @ 0x1004e8e6f\n; > BrowseSmartKeyLayer::init @ 0x1004eac02\n; > LevelFeatureLayer::init @ 0x100504d2c\n; > CreateGuidelinesLayer::init @ 0x10050b3d2\n; > RateLevelLayer::init @ 0x100567cbc\n; > ColorSelectLiveOverlay::init @ 0x10056896f\n; > SetupPortalPopup::init @ 0x10056f832\n; > ShareCommentLayer::init @ 0x1005dfaaf\n; > LikeItemLayer::init @ 0x1005f8d82\n; > SongInfoLayer::init @ 0x100600a8c\n; > KeybindingsLayer::init @ 0x100609ea9\n; > MusicBrowser::init @ 0x10060dd7f\n; > OptionsScrollLayer::init @ 0x100610492\n; > ConfigureValuePopup::init @ 0x1006248e7\n; > GJSpecialColorSelect::init @ 0x100626094\n; > DemonFilterSelectLayer::init @ 0x10062f529\n; > FriendsProfilePage::init @ 0x100657c1c\n; > CharacterColorPage::init @ 0x10065cbb9\n; > FRequestProfilePage::init @ 0x10078fdec\n; > ParentalOptionsLayer::init @ 0x1007a3579\n; > InfoLayer::init @ 0x1007ae3a5\n; > AudioAssetsBrowser::init @ 0x1007b3eff\n; > ProfilePage::init @ 0x1007b879e\n; > DemonInfoPopup::init @ 0x1007c144f\n; > StarInfoPopup::init @ 0x1007c1fd8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10049bea0\nmov     rbp, rsp                                                       ; +0x1, 0x10049bea1\npush    r14                                                            ; +0x4, 0x10049bea4\npush    rbx                                                            ; +0x6, 0x10049bea6\nsub     rsp, 10h                                                       ; +0x7, 0x10049bea7\nmov     rbx, rdi                                                       ; +0xb, 0x10049beab\nshl     esi, 18h                                                       ; +0xe, 0x10049beae\nmov     [rbp+var_14], esi                                              ; +0x11, 0x10049beb1\nlea     rsi, [rbp+var_14]                                              ; +0x14, 0x10049beb4\ncall    cocos2d__CCLayerColor__initWithColor                           ; +0x18, 0x10049beb8\ntest    al, al                                                         ; +0x1d, 0x10049bebd\njz      loc_10049BF62                                                  ; +0x1f, 0x10049bebf\nmov     r14d, eax                                                      ; +0x25, 0x10049bec5\ncall    GameManager__sharedState                                       ; +0x28, 0x10049bec8\nlea     rsi, a0168; \"0168\"                                             ; +0x2d, 0x10049becd\nmov     rdi, rax                                                       ; +0x34, 0x10049bed4\ncall    GameManager__getGameVariable                                   ; +0x37, 0x10049bed7\ntest    al, al                                                         ; +0x3c, 0x10049bedc\njz      short loc_10049BEE7                                            ; +0x3e, 0x10049bede\nmov     byte ptr [rbx+24Ch], 1                                         ; +0x40, 0x10049bee0\ncmp     byte ptr [rbx+274h], 0                                         ; +0x47, 0x10049bee7\njnz     short loc_10049BF18                                            ; +0x4e, 0x10049beee\nmov     byte ptr [rbx+274h], 1                                         ; +0x50, 0x10049bef0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x57, 0x10049bef7\nmov     rcx, [rax]                                                     ; +0x5c, 0x10049befc\nmov     rdi, rax                                                       ; +0x5f, 0x10049beff\ncall    qword ptr [rcx+0A0h]                                           ; +0x62, 0x10049bf02\nmov     rdi, rax                                                       ; +0x68, 0x10049bf08\nmov     rsi, rbx                                                       ; +0x6b, 0x10049bf0b\nmov     edx, 2                                                         ; +0x6e, 0x10049bf0e\ncall    cocos2d__CCTouchDispatcher__registerForcePrio                  ; +0x73, 0x10049bf13\nmov     rax, [rbx]                                                     ; +0x78, 0x10049bf18\nmov     rdi, rbx                                                       ; +0x7b, 0x10049bf1b\nmov     esi, 1                                                         ; +0x7e, 0x10049bf1e\ncall    qword ptr [rax+3D8h]                                           ; +0x83, 0x10049bf23\nmov     rax, [rbx]                                                     ; +0x89, 0x10049bf29\nmov     rdi, rbx                                                       ; +0x8c, 0x10049bf2c\nmov     esi, 1                                                         ; +0x8f, 0x10049bf2f\ncall    qword ptr [rax+420h]                                           ; +0x94, 0x10049bf34\ncall    cocos2d__CCLayer__create                                       ; +0x9a, 0x10049bf3a\nmov     [rbx+240h], rax                                                ; +0x9f, 0x10049bf3f\nmov     rcx, [rbx]                                                     ; +0xa6, 0x10049bf46\nmov     rdi, rbx                                                       ; +0xa9, 0x10049bf49\nmov     rsi, rax                                                       ; +0xac, 0x10049bf4c\ncall    qword ptr [rcx+1B8h]                                           ; +0xaf, 0x10049bf4f\nmov     dword ptr [rbx+270h], 0FFFFFFFFh                               ; +0xb5, 0x10049bf55\nmov     eax, r14d                                                      ; +0xbf, 0x10049bf5f\nadd     rsp, 10h                                                       ; +0xc2, 0x10049bf62\npop     rbx                                                            ; +0xc6, 0x10049bf66\npop     r14                                                            ; +0xc7, 0x10049bf67\npop     rbp                                                            ; +0xc9, 0x10049bf69\nretn                                                                   ; +0xca, 0x10049bf6a", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f5112", "GJColorSetupLayer::init @ 0x10020b57c", "SongOptionsLayer::init @ 0x10021668f", "NewgroundsInfoLayer::init @ 0x100217599", "NCSInfoLayer::init @ 0x1002180ec", "RewardUnlockLayer::init @ 0x10021bedf", "MessagesProfilePage::init @ 0x10022da4c", "SetupTriggerPopup::init @ 0x100234ebc", "HSVLiveOverlay::init @ 0x10026a96c", "LevelSettingsLayer::init @ 0x10026b762", "ShareLevelSettingsLayer::init @ 0x1002825cf", "RateDemonLayer::init @ 0x100283bac", "CollisionBlockPopup::init @ 0x100285d82", "RateStarsLayer::init @ 0x10028b951", "TOSPopup::init @ 0x1002afe89", "PromoInterstitial::create @ 0x1002d44f8", "PromoInterstitial::init @ 0x1002d4562", "SelectPremadeLayer::init @ 0x100309f99", "TopArtistsLayer::init @ 0x1003107c9", "SetupObjectOptionsPopup::init @ 0x100318065", "CommunityCreditsPage::init @ 0x10031ea6c", "ItemInfoPopup::init @ 0x1003719b1", "ChallengesPage::init @ 0x10039d0e9", "WorldLevelPage::init @ 0x1003c5757", "SetupGravityModPopup::init @ 0x1003d82d5", "LevelLeaderboard::init @ 0x1003da0b5", "FollowRewardPage::init @ 0x10041f8dc", "HSVWidgetPopup::init @ 0x10042f646", "SFXBrowser::init @ 0x10043e66c", "CreateParticlePopup::init @ 0x10046e8c5", "NumberInputLayer::init @ 0x100492439", "AccountRegisterLayer::init @ 0x10049556c", "ShardsPage::init @ 0x1004c5b4c", "SetupSmartBlockLayer::init @ 0x1004e5dc2", "SetupSmartTemplateLayer::init @ 0x1004e7b7f", "BrowseSmartTemplateLayer::init @ 0x1004e8e6f", "BrowseSmartKeyLayer::init @ 0x1004eac02", "LevelFeatureLayer::init @ 0x100504d2c", "CreateGuidelinesLayer::init @ 0x10050b3d2", "RateLevelLayer::init @ 0x100567cbc", "ColorSelectLiveOverlay::init @ 0x10056896f", "SetupPortalPopup::init @ 0x10056f832", "ShareCommentLayer::init @ 0x1005dfaaf", "LikeItemLayer::init @ 0x1005f8d82", "SongInfoLayer::init @ 0x100600a8c", "KeybindingsLayer::init @ 0x100609ea9", "MusicBrowser::init @ 0x10060dd7f", "OptionsScrollLayer::init @ 0x100610492", "ConfigureValuePopup::init @ 0x1006248e7", "GJSpecialColorSelect::init @ 0x100626094", "DemonFilterSelectLayer::init @ 0x10062f529", "FriendsProfilePage::init @ 0x100657c1c", "CharacterColorPage::init @ 0x10065cbb9", "FRequestProfilePage::init @ 0x10078fdec", "ParentalOptionsLayer::init @ 0x1007a3579", "InfoLayer::init @ 0x1007ae3a5", "AudioAssetsBrowser::init @ 0x1007b3eff", "ProfilePage::init @ 0x1007b879e", "DemonInfoPopup::init @ 0x1007c144f", "StarInfoPopup::init @ 0x1007c1fd8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}