{"type": "func", "start": 5371655888, "end": 5371657346, "name": "LevelBrowserLayer::FLAlert_Clicked", "pseudocode": "// \n// LevelBrowserLayer::FLAlert_Clicked from 0x1402cf6d0 to 0x1402cfc82 (1458 bytes)\n// \n// 3 xrefs:\n// > LevelListLayer::FLAlert_Clicked @ 0x1403075a0\n// > <???> @ 0x140584d20\n// > <???> @ 0x1406d2e34\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\n// Hidden C++ exception states: #wind=6\nvoid LevelBrowserLayer::FLAlert_Clicked(LevelBrowserLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  unsigned int v5; // ebx\n  char v6; // r14\n  int v7; // eax\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  int v10; // eax\n  int v11; // eax\n  __int64 v12; // rax\n  LevelBrowserLayer *v13; // rbp\n  cocos2d::CCArray *v14; // rdi\n  cocos2d::CCArray *m_levels; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rsi\n  cocos2d::CCObject *v20; // rdx\n  cocos2d::ccArray *v21; // rbx\n  __int64 v22; // rax\n  GJGameLevel **v23; // rbx\n  GJGameLevel **j; // rsi\n  GJGameLevel *v25; // rdi\n  GameLevelManager *v26; // rcx\n  __int64 v27; // rax\n  int v28; // edi\n  GameLevelManager *v29; // rcx\n  cocos2d::CCArray *SavedLevelLists; // rdi\n  GJLevelList *v31; // rsi\n  GameLevelManager *v32; // rcx\n  GJSearchObject *v33; // rbx\n  __int64 v34; // rcx\n  struct cocos2d::CCScene *v35; // rdi\n  __int64 v36; // rdx\n  __int64 v37; // rcx\n  LevelBrowserLayer *v38; // rax\n  struct cocos2d::CCTransitionFade *v39; // rbx\n  __int64 v40; // rcx\n  cocos2d::CCDirector *v41; // rax\n  GameLevelManager *v42; // rcx\n  cocos2d::CCArray *ItemsMatchingSearch; // rdi\n  __int64 v44; // rdx\n  bool v45; // si\n  __int64 v46; // rax\n  int v47; // edi\n  GameLevelManager *v48; // rcx\n  cocos2d::CCArray *SavedLevels; // rsi\n  __int64 v50; // rdx\n  bool v51; // di\n  GJGameLevel *v52; // rdi\n  GameLevelManager *v53; // rcx\n  MusicDownloadManager *v54; // rax\n  void *v55; // [rsp+20h] [rbp-48h]\n  void *v56; // [rsp+20h] [rbp-48h]\n  void *v57; // [rsp+20h] [rbp-48h]\n  void *v58; // [rsp+20h] [rbp-48h]\n  void *v59; // [rsp+20h] [rbp-48h]\n  void *v60; // [rsp+20h] [rbp-48h]\n  __int128 v61; // [rsp+28h] [rbp-40h] BYREF\n  __int64 v62; // [rsp+38h] [rbp-30h]\n\n  v5 = 0;\n  v6 = 0;\n  v7 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1;\n  if ( !v7 )\n  {\n    if ( !a3 )\n      return;\n    v46 = *(_QWORD *)&a1->m_obContentSize.height;\n    if ( v46 )\n      v47 = *(_DWORD *)(v46 + 452);\n    else\n      v47 = 0;\n    v48 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v59 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v59);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v48 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    SavedLevels = GameLevelManager::getSavedLevels(v48, 0, v47);\n    v50 = *(_QWORD *)&a1->m_obContentSize.height;\n    v51 = false;\n    if ( v50 )\n    {\n      sub_14003BDB0((__int64)&v61, v50 + 328);\n      v6 = 9;\n      if ( v62 )\n        v51 = true;\n    }\n    if ( (v6 & 1) != 0 )\n      sub_14003A830((__int64)&v61);\n    if ( v51 )\n    {\n      sub_14003BDB0((__int64)&v61, *(_QWORD *)&a1->m_obContentSize.height + 328LL);\n      SavedLevels = LevelBrowserLayer::getItemsMatchingSearch(\n                      (__int64)&a1[-1].m_eGLServerState,\n                      (__int64)SavedLevels,\n                      &v61);\n    }\n    if ( cocos2d::CCArray::count(SavedLevels) )\n    {\n      do\n      {\n        v52 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(SavedLevels, v5);\n        if ( !v52->m_levelFavorited )\n        {\n          v53 = (GameLevelManager *)qword_1406C2EC0;\n          if ( !qword_1406C2EC0 )\n          {\n            v60 = operator new(0x3D0u);\n            qword_1406C2EC0 = sub_140141280((__int64)v60);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n            v53 = (GameLevelManager *)qword_1406C2EC0;\n          }\n          GameLevelManager::deleteLevel(v53, v52);\n        }\n        ++v5;\n      }\n      while ( v5 < cocos2d::CCArray::count(SavedLevels) );\n    }\n    v54 = MusicDownloadManager::sharedState();\n    MusicDownloadManager::clearUnusedSongs(v54);\n    goto LABEL_70;\n  }\n  v10 = v7 - 1;\n  if ( v10 )\n  {\n    v11 = v10 - 3;\n    if ( v11 )\n    {\n      if ( v11 == 1 && a3 )\n      {\n        v12 = cocos2d::CCApplication::sharedApplication(v9, v8);\n        (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 88LL))(\n          v12,\n          \"https://www.boomlings.com/GDRating\");\n      }\n    }\n    else if ( a3 )\n    {\n      v13 = (LevelBrowserLayer *)((char *)a1 - 552);\n      if ( v13->m_levels )\n      {\n        v14 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9);\n        m_levels = v13->m_levels;\n        if ( m_levels )\n        {\n          data = m_levels->data;\n          num = data->num;\n          if ( (_DWORD)num )\n          {\n            arr = data->arr;\n            for ( i = &arr[num - 1]; arr <= i; ++arr )\n            {\n              v20 = *arr;\n              if ( !*arr )\n                break;\n              if ( HIBYTE(v20[12].m_unknown5) )\n                cocos2d::CCArray::addObject(v14, v20);\n            }\n          }\n        }\n        if ( cocos2d::CCArray::count(v14) )\n        {\n          if ( v14 )\n          {\n            v21 = v14->data;\n            v22 = v21->num;\n            if ( (_DWORD)v22 )\n            {\n              v23 = (GJGameLevel **)v21->arr;\n              for ( j = &v23[v22 - 1]; v23 <= j; ++v23 )\n              {\n                v25 = *v23;\n                if ( !*v23 )\n                  break;\n                v26 = (GameLevelManager *)qword_1406C2EC0;\n                if ( !qword_1406C2EC0 )\n                {\n                  v55 = operator new(0x3D0u);\n                  qword_1406C2EC0 = sub_140141280((__int64)v55);\n                  (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n                  v26 = (GameLevelManager *)qword_1406C2EC0;\n                }\n                GameLevelManager::deleteLevel(v26, v25);\n              }\n            }\n          }\n          v13->m_allSelected = 0;\n          CCMenuItemToggler::toggle(v13->m_allObjectsToggler, 0);\n          LevelBrowserLayer::loadPage(v13, v13->m_searchObject);\n        }\n      }\n    }\n    return;\n  }\n  if ( !a3 )\n    return;\n  v27 = *(_QWORD *)&a1->m_obContentSize.height;\n  if ( !v27 )\n  {\n    v28 = 0;\n    goto LABEL_36;\n  }\n  v28 = *(_DWORD *)(v27 + 452);\n  if ( *(_DWORD *)(v27 + 320) != 103 )\n  {\nLABEL_36:\n    v42 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v58 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v58);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v42 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    ItemsMatchingSearch = GameLevelManager::getSavedLevels(v42, 1, v28);\n    v44 = *(_QWORD *)&a1->m_obContentSize.height;\n    v45 = false;\n    if ( v44 )\n    {\n      sub_14003BDB0((__int64)&v61, v44 + 328);\n      v6 = 18;\n      if ( v62 )\n        v45 = true;\n    }\n    if ( (v6 & 2) != 0 )\n      sub_14003A830((__int64)&v61);\n    if ( v45 )\n    {\n      sub_14003BDB0((__int64)&v61, *(_QWORD *)&a1->m_obContentSize.height + 328LL);\n      ItemsMatchingSearch = LevelBrowserLayer::getItemsMatchingSearch(\n                              (__int64)&a1[-1].m_eGLServerState,\n                              (__int64)ItemsMatchingSearch,\n                              &v61);\n    }\n    if ( cocos2d::CCArray::count(ItemsMatchingSearch) )\n    {\n      do\n        LOBYTE(cocos2d::CCArray::objectAtIndex(ItemsMatchingSearch, v5++)[15].m_eObjType) = 0;\n      while ( v5 < cocos2d::CCArray::count(ItemsMatchingSearch) );\n    }\nLABEL_70:\n    (*(void (__fastcall **)(cocos2d::ccGLServerState *, _QWORD))(*(_QWORD *)&a1[-1].m_eGLServerState + 976LL))(\n      &a1[-1].m_eGLServerState,\n      0);\n    (*(void (__fastcall **)(cocos2d::ccGLServerState *, _QWORD))(*(_QWORD *)&a1[-1].m_eGLServerState + 992LL))(\n      &a1[-1].m_eGLServerState,\n      0);\n    LevelBrowserLayer::onSaved((LevelBrowserLayer *)((char *)a1 - 552), nullptr);\n    return;\n  }\n  v29 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v56 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v56);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v29 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  SavedLevelLists = GameLevelManager::getSavedLevelLists(v29, v28);\n  if ( cocos2d::CCArray::count(SavedLevelLists) )\n  {\n    do\n    {\n      v31 = (GJLevelList *)cocos2d::CCArray::objectAtIndex(SavedLevelLists, v5);\n      v32 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v57 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v57);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v32 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      GameLevelManager::deleteLevelList(v32, v31);\n      ++v5;\n    }\n    while ( v5 < cocos2d::CCArray::count(SavedLevelLists) );\n  }\n  (*(void (__fastcall **)(cocos2d::ccGLServerState *, _QWORD))(*(_QWORD *)&a1[-1].m_eGLServerState + 976LL))(\n    &a1[-1].m_eGLServerState,\n    0);\n  (*(void (__fastcall **)(cocos2d::ccGLServerState *, _QWORD))(*(_QWORD *)&a1[-1].m_eGLServerState + 992LL))(\n    &a1[-1].m_eGLServerState,\n    0);\n  v33 = *(GJSearchObject **)&a1->m_obContentSize.height;\n  v35 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v34);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v37, v36) + 224) = v35;\n  v38 = LevelBrowserLayer::create(v33);\n  v35->addChild_1(v35, v38);\n  v39 = cocos2d::CCTransitionFade::create(0.5, v35);\n  v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v40);\n  cocos2d::CCDirector::replaceScene(v41, v39);\n}", "assembly": "; \n; LevelBrowserLayer::FLAlert_Clicked from 0x1402cf6d0 to 0x1402cfc82 (1458 bytes)\n; \n; 3 xrefs:\n; > LevelListLayer::FLAlert_Clicked @ 0x1403075a0\n; > <???> @ 0x140584d20\n; > <???> @ 0x1406d2e34\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402cf6d0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1402cf6d5\npush    rsi                                                            ; +0xa, 0x1402cf6da\npush    rdi                                                            ; +0xb, 0x1402cf6db\npush    r14                                                            ; +0xc, 0x1402cf6dc\nsub     rsp, 50h                                                       ; +0xe, 0x1402cf6de\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1402cf6e2\nxor     rax, rsp                                                       ; +0x19, 0x1402cf6e9\nmov     [rsp+68h+var_20], rax                                          ; +0x1c, 0x1402cf6ec\nmovzx   edi, r8b                                                       ; +0x21, 0x1402cf6f1\nmov     rbp, rcx                                                       ; +0x25, 0x1402cf6f5\nxor     ebx, ebx                                                       ; +0x28, 0x1402cf6f8\nmov     r14d, ebx                                                      ; +0x2a, 0x1402cf6fa\nmov     dword ptr [rsp+68h+var_48], ebx                                ; +0x2d, 0x1402cf6fd\nmov     rax, [rdx]                                                     ; +0x31, 0x1402cf701\nmov     rcx, rdx                                                       ; +0x34, 0x1402cf704\ncall    qword ptr [rax+38h]                                            ; +0x37, 0x1402cf707\nsub     eax, 1                                                         ; +0x3a, 0x1402cf70a\njz      loc_1402CFACB                                                  ; +0x3d, 0x1402cf70d\nsub     eax, 1                                                         ; +0x43, 0x1402cf713\njz      loc_1402CF872                                                  ; +0x46, 0x1402cf716\nsub     eax, 3                                                         ; +0x4c, 0x1402cf71c\njz      short loc_1402CF74F                                            ; +0x4f, 0x1402cf71f\ncmp     eax, 1                                                         ; +0x51, 0x1402cf721\njnz     loc_1402CFC60                                                  ; +0x54, 0x1402cf724\ntest    dil, dil                                                       ; +0x5a, 0x1402cf72a\njz      loc_1402CFC60                                                  ; +0x5d, 0x1402cf72d\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x63, 0x1402cf733\nmov     r8, [rax]                                                      ; +0x69, 0x1402cf739\nlea     rdx, aHttpsWwwBoomli_9; \"https://www.boomlings.com/GDRating\"   ; +0x6c, 0x1402cf73c\nmov     rcx, rax                                                       ; +0x73, 0x1402cf743\ncall    qword ptr [r8+58h]                                             ; +0x76, 0x1402cf746\njmp     loc_1402CFC60                                                  ; +0x7a, 0x1402cf74a\ntest    dil, dil                                                       ; +0x7f, 0x1402cf74f\njz      loc_1402CFC60                                                  ; +0x82, 0x1402cf752\nadd     rbp, 0FFFFFFFFFFFFFDD8h                                        ; +0x88, 0x1402cf758\ncmp     [rbp+290h], rbx                                                ; +0x8f, 0x1402cf75f\njz      loc_1402CFC60                                                  ; +0x96, 0x1402cf766\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x9c, 0x1402cf76c\nmov     rdi, rax                                                       ; +0xa2, 0x1402cf772\nmov     rax, [rbp+290h]                                                ; +0xa5, 0x1402cf775\ntest    rax, rax                                                       ; +0xac, 0x1402cf77c\njz      short loc_1402CF7C3                                            ; +0xaf, 0x1402cf77f\nmov     rbx, [rax+38h]                                                 ; +0xb1, 0x1402cf781\nmov     eax, [rbx]                                                     ; +0xb5, 0x1402cf785\ntest    eax, eax                                                       ; +0xb7, 0x1402cf787\njz      short loc_1402CF7C3                                            ; +0xb9, 0x1402cf789\nmov     rbx, [rbx+10h]                                                 ; +0xbb, 0x1402cf78b\nlea     rsi, [rax-1]                                                   ; +0xbf, 0x1402cf78f\nlea     rsi, [rbx+rsi*8]                                               ; +0xc3, 0x1402cf793\ncmp     rbx, rsi                                                       ; +0xc7, 0x1402cf797\nja      short loc_1402CF7C3                                            ; +0xca, 0x1402cf79a\nnop     dword ptr [rax+00h]                                            ; +0xcc, 0x1402cf79c\nmov     rdx, [rbx]                                                     ; +0xd0, 0x1402cf7a0\ntest    rdx, rdx                                                       ; +0xd3, 0x1402cf7a3\njz      short loc_1402CF7C3                                            ; +0xd6, 0x1402cf7a6\ncmp     [rdx+2D7h], r14b                                               ; +0xd8, 0x1402cf7a8\njz      short loc_1402CF7BA                                            ; +0xdf, 0x1402cf7af\nmov     rcx, rdi                                                       ; +0xe1, 0x1402cf7b1\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xe4, 0x1402cf7b4\nadd     rbx, 8                                                         ; +0xea, 0x1402cf7ba\ncmp     rbx, rsi                                                       ; +0xee, 0x1402cf7be\njbe     short loc_1402CF7A0                                            ; +0xf1, 0x1402cf7c1\nmov     rcx, rdi                                                       ; +0xf3, 0x1402cf7c3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf6, 0x1402cf7c6\ntest    eax, eax                                                       ; +0xfc, 0x1402cf7cc\njz      loc_1402CFC60                                                  ; +0xfe, 0x1402cf7ce\ntest    rdi, rdi                                                       ; +0x104, 0x1402cf7d4\njz      short loc_1402CF849                                            ; +0x107, 0x1402cf7d7\nmov     rbx, [rdi+38h]                                                 ; +0x109, 0x1402cf7d9\nmov     eax, [rbx]                                                     ; +0x10d, 0x1402cf7dd\ntest    eax, eax                                                       ; +0x10f, 0x1402cf7df\njz      short loc_1402CF849                                            ; +0x111, 0x1402cf7e1\nmov     rbx, [rbx+10h]                                                 ; +0x113, 0x1402cf7e3\nlea     rsi, [rax-1]                                                   ; +0x117, 0x1402cf7e7\nlea     rsi, [rbx+rsi*8]                                               ; +0x11b, 0x1402cf7eb\ncmp     rbx, rsi                                                       ; +0x11f, 0x1402cf7ef\nja      short loc_1402CF849                                            ; +0x122, 0x1402cf7f2\nmov     rdi, [rbx]                                                     ; +0x124, 0x1402cf7f4\ntest    rdi, rdi                                                       ; +0x127, 0x1402cf7f7\njz      short loc_1402CF849                                            ; +0x12a, 0x1402cf7fa\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x12c, 0x1402cf7fc\ntest    rcx, rcx                                                       ; +0x133, 0x1402cf803\njnz     short loc_1402CF838                                            ; +0x136, 0x1402cf806\nmov     ecx, 3D0h; Size                                                ; +0x138, 0x1402cf808\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x13d, 0x1402cf80d\nmov     [rsp+68h+var_48], rax                                          ; +0x142, 0x1402cf812\nmov     rcx, rax                                                       ; +0x147, 0x1402cf817\ncall    sub_140141280                                                  ; +0x14a, 0x1402cf81a\nnop                                                                    ; +0x14f, 0x1402cf81f\nmov     cs:qword_1406C2EC0, rax                                        ; +0x150, 0x1402cf820\nmov     r8, [rax]                                                      ; +0x157, 0x1402cf827\nmov     rcx, rax                                                       ; +0x15a, 0x1402cf82a\ncall    qword ptr [r8+48h]                                             ; +0x15d, 0x1402cf82d\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x161, 0x1402cf831\nmov     rdx, rdi                                                       ; +0x168, 0x1402cf838\ncall    GameLevelManager__deleteLevel                                  ; +0x16b, 0x1402cf83b\nadd     rbx, 8                                                         ; +0x170, 0x1402cf840\ncmp     rbx, rsi                                                       ; +0x174, 0x1402cf844\njbe     short loc_1402CF7F4                                            ; +0x177, 0x1402cf847\nmov     byte ptr [rbp+251h], 0                                         ; +0x179, 0x1402cf849\nxor     edx, edx                                                       ; +0x180, 0x1402cf850\nmov     rcx, [rbp+2C8h]                                                ; +0x182, 0x1402cf852\ncall    CCMenuItemToggler__toggle                                      ; +0x189, 0x1402cf859\nmov     rdx, [rbp+298h]                                                ; +0x18e, 0x1402cf85e\nmov     rcx, rbp                                                       ; +0x195, 0x1402cf865\ncall    LevelBrowserLayer__loadPage                                    ; +0x198, 0x1402cf868\njmp     loc_1402CFC60                                                  ; +0x19d, 0x1402cf86d\ntest    dil, dil                                                       ; +0x1a2, 0x1402cf872\njz      loc_1402CFC60                                                  ; +0x1a5, 0x1402cf875\nmov     rax, [rbp+70h]                                                 ; +0x1ab, 0x1402cf87b\ntest    rax, rax                                                       ; +0x1af, 0x1402cf87f\njz      loc_1402CF9D9                                                  ; +0x1b2, 0x1402cf882\nmov     edi, [rax+1C4h]                                                ; +0x1b8, 0x1402cf888\ncmp     dword ptr [rax+140h], 67h ; 'g'                                ; +0x1be, 0x1402cf88e\njnz     loc_1402CF9DB                                                  ; +0x1c5, 0x1402cf895\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x1cb, 0x1402cf89b\ntest    rcx, rcx                                                       ; +0x1d2, 0x1402cf8a2\njnz     short loc_1402CF8D7                                            ; +0x1d5, 0x1402cf8a5\nmov     ecx, 3D0h; Size                                                ; +0x1d7, 0x1402cf8a7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1dc, 0x1402cf8ac\nmov     [rsp+68h+var_48], rax                                          ; +0x1e1, 0x1402cf8b1\nmov     rcx, rax                                                       ; +0x1e6, 0x1402cf8b6\ncall    sub_140141280                                                  ; +0x1e9, 0x1402cf8b9\nnop                                                                    ; +0x1ee, 0x1402cf8be\nmov     cs:qword_1406C2EC0, rax                                        ; +0x1ef, 0x1402cf8bf\nmov     r8, [rax]                                                      ; +0x1f6, 0x1402cf8c6\nmov     rcx, rax                                                       ; +0x1f9, 0x1402cf8c9\ncall    qword ptr [r8+48h]                                             ; +0x1fc, 0x1402cf8cc\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x200, 0x1402cf8d0\nmov     edx, edi                                                       ; +0x207, 0x1402cf8d7\ncall    GameLevelManager__getSavedLevelLists                           ; +0x209, 0x1402cf8d9\nmov     rdi, rax                                                       ; +0x20e, 0x1402cf8de\nmov     rcx, rax                                                       ; +0x211, 0x1402cf8e1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x214, 0x1402cf8e4\ntest    eax, eax                                                       ; +0x21a, 0x1402cf8ea\njz      short loc_1402CF950                                            ; +0x21c, 0x1402cf8ec\nxchg    ax, ax                                                         ; +0x21e, 0x1402cf8ee\nmov     edx, ebx                                                       ; +0x220, 0x1402cf8f0\nmov     rcx, rdi                                                       ; +0x222, 0x1402cf8f2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x225, 0x1402cf8f5\nmov     rsi, rax                                                       ; +0x22b, 0x1402cf8fb\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x22e, 0x1402cf8fe\ntest    rcx, rcx                                                       ; +0x235, 0x1402cf905\njnz     short loc_1402CF939                                            ; +0x238, 0x1402cf908\nmov     ecx, 3D0h; Size                                                ; +0x23a, 0x1402cf90a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23f, 0x1402cf90f\nmov     [rsp+68h+var_48], rax                                          ; +0x244, 0x1402cf914\nmov     rcx, rax                                                       ; +0x249, 0x1402cf919\ncall    sub_140141280                                                  ; +0x24c, 0x1402cf91c\nnop                                                                    ; +0x251, 0x1402cf921\nmov     cs:qword_1406C2EC0, rax                                        ; +0x252, 0x1402cf922\nmov     rdx, [rax]                                                     ; +0x259, 0x1402cf929\nmov     rcx, rax                                                       ; +0x25c, 0x1402cf92c\ncall    qword ptr [rdx+48h]                                            ; +0x25f, 0x1402cf92f\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x262, 0x1402cf932\nmov     rdx, rsi                                                       ; +0x269, 0x1402cf939\ncall    GameLevelManager__deleteLevelList                              ; +0x26c, 0x1402cf93c\ninc     ebx                                                            ; +0x271, 0x1402cf941\nmov     rcx, rdi                                                       ; +0x273, 0x1402cf943\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x276, 0x1402cf946\ncmp     ebx, eax                                                       ; +0x27c, 0x1402cf94c\njb      short loc_1402CF8F0                                            ; +0x27e, 0x1402cf94e\nmov     rax, [rbp-228h]                                                ; +0x280, 0x1402cf950\nxor     edx, edx                                                       ; +0x287, 0x1402cf957\nlea     rcx, [rbp-228h]                                                ; +0x289, 0x1402cf959\ncall    qword ptr [rax+3D0h]                                           ; +0x290, 0x1402cf960\nmov     rax, [rbp-228h]                                                ; +0x296, 0x1402cf966\nxor     edx, edx                                                       ; +0x29d, 0x1402cf96d\nlea     rcx, [rbp-228h]                                                ; +0x29f, 0x1402cf96f\ncall    qword ptr [rax+3E0h]                                           ; +0x2a6, 0x1402cf976\nmov     rbx, [rbp+70h]                                                 ; +0x2ac, 0x1402cf97c\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x2b0, 0x1402cf980\nmov     rdi, rax                                                       ; +0x2b6, 0x1402cf986\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x2b9, 0x1402cf989\nmov     [rax+0E0h], rdi                                                ; +0x2bf, 0x1402cf98f\nmov     rcx, rbx                                                       ; +0x2c6, 0x1402cf996\ncall    LevelBrowserLayer__create                                      ; +0x2c9, 0x1402cf999\nmov     r8, [rdi]                                                      ; +0x2ce, 0x1402cf99e\nmov     rdx, rax                                                       ; +0x2d1, 0x1402cf9a1\nmov     rcx, rdi                                                       ; +0x2d4, 0x1402cf9a4\ncall    qword ptr [r8+1C0h]                                            ; +0x2d7, 0x1402cf9a7\nmov     rdx, rdi                                                       ; +0x2de, 0x1402cf9ae\nmovss   xmm0, cs:dword_140622B08                                       ; +0x2e1, 0x1402cf9b1\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x2e9, 0x1402cf9b9\nmov     rbx, rax                                                       ; +0x2ef, 0x1402cf9bf\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2f2, 0x1402cf9c2\nmov     rcx, rax                                                       ; +0x2f8, 0x1402cf9c8\nmov     rdx, rbx                                                       ; +0x2fb, 0x1402cf9cb\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x2fe, 0x1402cf9ce\njmp     loc_1402CFC60                                                  ; +0x304, 0x1402cf9d4\nmov     edi, ebx                                                       ; +0x309, 0x1402cf9d9\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x30b, 0x1402cf9db\ntest    rcx, rcx                                                       ; +0x312, 0x1402cf9e2\njnz     short loc_1402CFA16                                            ; +0x315, 0x1402cf9e5\nmov     ecx, 3D0h; Size                                                ; +0x317, 0x1402cf9e7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31c, 0x1402cf9ec\nmov     [rsp+68h+var_48], rax                                          ; +0x321, 0x1402cf9f1\nmov     rcx, rax                                                       ; +0x326, 0x1402cf9f6\ncall    sub_140141280                                                  ; +0x329, 0x1402cf9f9\nnop                                                                    ; +0x32e, 0x1402cf9fe\nmov     cs:qword_1406C2EC0, rax                                        ; +0x32f, 0x1402cf9ff\nmov     rdx, [rax]                                                     ; +0x336, 0x1402cfa06\nmov     rcx, rax                                                       ; +0x339, 0x1402cfa09\ncall    qword ptr [rdx+48h]                                            ; +0x33c, 0x1402cfa0c\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x33f, 0x1402cfa0f\nmov     r8d, edi                                                       ; +0x346, 0x1402cfa16\nmov     dl, 1                                                          ; +0x349, 0x1402cfa19\ncall    GameLevelManager__getSavedLevels                               ; +0x34b, 0x1402cfa1b\nmov     rdi, rax                                                       ; +0x350, 0x1402cfa20\nmov     rdx, [rbp+70h]                                                 ; +0x353, 0x1402cfa23\ntest    rdx, rdx                                                       ; +0x357, 0x1402cfa27\njz      short loc_1402CFA50                                            ; +0x35a, 0x1402cfa2a\nadd     rdx, 148h                                                      ; +0x35c, 0x1402cfa2c\nlea     rcx, [rsp+68h+var_40]                                          ; +0x363, 0x1402cfa33\ncall    sub_14003BDB0                                                  ; +0x368, 0x1402cfa38\nmov     r14d, 12h                                                      ; +0x36d, 0x1402cfa3d\ncmp     [rsp+68h+var_30], 0                                            ; +0x373, 0x1402cfa43\njz      short loc_1402CFA50                                            ; +0x379, 0x1402cfa49\nmov     sil, 1                                                         ; +0x37b, 0x1402cfa4b\njmp     short loc_1402CFA53                                            ; +0x37e, 0x1402cfa4e\nxor     sil, sil                                                       ; +0x380, 0x1402cfa50\ntest    r14b, 2                                                        ; +0x383, 0x1402cfa53\njz      short loc_1402CFA63                                            ; +0x387, 0x1402cfa57\nlea     rcx, [rsp+68h+var_40]                                          ; +0x389, 0x1402cfa59\ncall    sub_14003A830                                                  ; +0x38e, 0x1402cfa5e\ntest    sil, sil                                                       ; +0x393, 0x1402cfa63\njz      short loc_1402CFA94                                            ; +0x396, 0x1402cfa66\nmov     rdx, [rbp+70h]                                                 ; +0x398, 0x1402cfa68\nadd     rdx, 148h                                                      ; +0x39c, 0x1402cfa6c\nlea     rcx, [rsp+68h+var_40]                                          ; +0x3a3, 0x1402cfa73\ncall    sub_14003BDB0                                                  ; +0x3a8, 0x1402cfa78\nlea     rcx, [rbp-228h]                                                ; +0x3ad, 0x1402cfa7d\nlea     r8, [rsp+68h+var_40]                                           ; +0x3b4, 0x1402cfa84\nmov     rdx, rdi                                                       ; +0x3b9, 0x1402cfa89\ncall    LevelBrowserLayer__getItemsMatchingSearch                      ; +0x3bc, 0x1402cfa8c\nmov     rdi, rax                                                       ; +0x3c1, 0x1402cfa91\nmov     rcx, rdi                                                       ; +0x3c4, 0x1402cfa94\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3c7, 0x1402cfa97\ntest    eax, eax                                                       ; +0x3cd, 0x1402cfa9d\njz      loc_1402CFC26                                                  ; +0x3cf, 0x1402cfa9f\nmov     edx, ebx                                                       ; +0x3d5, 0x1402cfaa5\nmov     rcx, rdi                                                       ; +0x3d7, 0x1402cfaa7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3da, 0x1402cfaaa\nmov     byte ptr [rax+364h], 0                                         ; +0x3e0, 0x1402cfab0\ninc     ebx                                                            ; +0x3e7, 0x1402cfab7\nmov     rcx, rdi                                                       ; +0x3e9, 0x1402cfab9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3ec, 0x1402cfabc\ncmp     ebx, eax                                                       ; +0x3f2, 0x1402cfac2\njb      short loc_1402CFAA5                                            ; +0x3f4, 0x1402cfac4\njmp     loc_1402CFC26                                                  ; +0x3f6, 0x1402cfac6\ntest    dil, dil                                                       ; +0x3fb, 0x1402cfacb\njz      loc_1402CFC60                                                  ; +0x3fe, 0x1402cface\nmov     rax, [rbp+70h]                                                 ; +0x404, 0x1402cfad4\ntest    rax, rax                                                       ; +0x408, 0x1402cfad8\njz      short loc_1402CFAE5                                            ; +0x40b, 0x1402cfadb\nmov     edi, [rax+1C4h]                                                ; +0x40d, 0x1402cfadd\njmp     short loc_1402CFAE7                                            ; +0x413, 0x1402cfae3\nmov     edi, ebx                                                       ; +0x415, 0x1402cfae5\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x417, 0x1402cfae7\ntest    rcx, rcx                                                       ; +0x41e, 0x1402cfaee\njnz     short loc_1402CFB22                                            ; +0x421, 0x1402cfaf1\nmov     ecx, 3D0h; Size                                                ; +0x423, 0x1402cfaf3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x428, 0x1402cfaf8\nmov     [rsp+68h+var_48], rax                                          ; +0x42d, 0x1402cfafd\nmov     rcx, rax                                                       ; +0x432, 0x1402cfb02\ncall    sub_140141280                                                  ; +0x435, 0x1402cfb05\nnop                                                                    ; +0x43a, 0x1402cfb0a\nmov     cs:qword_1406C2EC0, rax                                        ; +0x43b, 0x1402cfb0b\nmov     rdx, [rax]                                                     ; +0x442, 0x1402cfb12\nmov     rcx, rax                                                       ; +0x445, 0x1402cfb15\ncall    qword ptr [rdx+48h]                                            ; +0x448, 0x1402cfb18\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x44b, 0x1402cfb1b\nmov     r8d, edi                                                       ; +0x452, 0x1402cfb22\nxor     edx, edx                                                       ; +0x455, 0x1402cfb25\ncall    GameLevelManager__getSavedLevels                               ; +0x457, 0x1402cfb27\nmov     rsi, rax                                                       ; +0x45c, 0x1402cfb2c\nmov     rdx, [rbp+70h]                                                 ; +0x45f, 0x1402cfb2f\ntest    rdx, rdx                                                       ; +0x463, 0x1402cfb33\njz      short loc_1402CFB5C                                            ; +0x466, 0x1402cfb36\nadd     rdx, 148h                                                      ; +0x468, 0x1402cfb38\nlea     rcx, [rsp+68h+var_40]                                          ; +0x46f, 0x1402cfb3f\ncall    sub_14003BDB0                                                  ; +0x474, 0x1402cfb44\nmov     r14d, 9                                                        ; +0x479, 0x1402cfb49\ncmp     [rsp+68h+var_30], 0                                            ; +0x47f, 0x1402cfb4f\njz      short loc_1402CFB5C                                            ; +0x485, 0x1402cfb55\nmov     dil, 1                                                         ; +0x487, 0x1402cfb57\njmp     short loc_1402CFB5F                                            ; +0x48a, 0x1402cfb5a\nxor     dil, dil                                                       ; +0x48c, 0x1402cfb5c\ntest    r14b, 1                                                        ; +0x48f, 0x1402cfb5f\njz      short loc_1402CFB6F                                            ; +0x493, 0x1402cfb63\nlea     rcx, [rsp+68h+var_40]                                          ; +0x495, 0x1402cfb65\ncall    sub_14003A830                                                  ; +0x49a, 0x1402cfb6a\ntest    dil, dil                                                       ; +0x49f, 0x1402cfb6f\njz      short loc_1402CFBA0                                            ; +0x4a2, 0x1402cfb72\nmov     rdx, [rbp+70h]                                                 ; +0x4a4, 0x1402cfb74\nadd     rdx, 148h                                                      ; +0x4a8, 0x1402cfb78\nlea     rcx, [rsp+68h+var_40]                                          ; +0x4af, 0x1402cfb7f\ncall    sub_14003BDB0                                                  ; +0x4b4, 0x1402cfb84\nlea     rcx, [rbp-228h]                                                ; +0x4b9, 0x1402cfb89\nlea     r8, [rsp+68h+var_40]                                           ; +0x4c0, 0x1402cfb90\nmov     rdx, rsi                                                       ; +0x4c5, 0x1402cfb95\ncall    LevelBrowserLayer__getItemsMatchingSearch                      ; +0x4c8, 0x1402cfb98\nmov     rsi, rax                                                       ; +0x4cd, 0x1402cfb9d\nmov     rcx, rsi                                                       ; +0x4d0, 0x1402cfba0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4d3, 0x1402cfba3\ntest    eax, eax                                                       ; +0x4d9, 0x1402cfba9\njz      short loc_1402CFC19                                            ; +0x4db, 0x1402cfbab\nnop     dword ptr [rax]                                                ; +0x4dd, 0x1402cfbad\nmov     edx, ebx                                                       ; +0x4e0, 0x1402cfbb0\nmov     rcx, rsi                                                       ; +0x4e2, 0x1402cfbb2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4e5, 0x1402cfbb5\nmov     rdi, rax                                                       ; +0x4eb, 0x1402cfbbb\ncmp     byte ptr [rax+364h], 0                                         ; +0x4ee, 0x1402cfbbe\njnz     short loc_1402CFC0A                                            ; +0x4f5, 0x1402cfbc5\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x4f7, 0x1402cfbc7\ntest    rcx, rcx                                                       ; +0x4fe, 0x1402cfbce\njnz     short loc_1402CFC02                                            ; +0x501, 0x1402cfbd1\nmov     ecx, 3D0h; Size                                                ; +0x503, 0x1402cfbd3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x508, 0x1402cfbd8\nmov     [rsp+68h+var_48], rax                                          ; +0x50d, 0x1402cfbdd\nmov     rcx, rax                                                       ; +0x512, 0x1402cfbe2\ncall    sub_140141280                                                  ; +0x515, 0x1402cfbe5\nnop                                                                    ; +0x51a, 0x1402cfbea\nmov     cs:qword_1406C2EC0, rax                                        ; +0x51b, 0x1402cfbeb\nmov     rdx, [rax]                                                     ; +0x522, 0x1402cfbf2\nmov     rcx, rax                                                       ; +0x525, 0x1402cfbf5\ncall    qword ptr [rdx+48h]                                            ; +0x528, 0x1402cfbf8\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x52b, 0x1402cfbfb\nmov     rdx, rdi                                                       ; +0x532, 0x1402cfc02\ncall    GameLevelManager__deleteLevel                                  ; +0x535, 0x1402cfc05\ninc     ebx                                                            ; +0x53a, 0x1402cfc0a\nmov     rcx, rsi                                                       ; +0x53c, 0x1402cfc0c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x53f, 0x1402cfc0f\ncmp     ebx, eax                                                       ; +0x545, 0x1402cfc15\njb      short loc_1402CFBB0                                            ; +0x547, 0x1402cfc17\ncall    MusicDownloadManager__sharedState                              ; +0x549, 0x1402cfc19\nmov     rcx, rax                                                       ; +0x54e, 0x1402cfc1e\ncall    MusicDownloadManager__clearUnusedSongs                         ; +0x551, 0x1402cfc21\nmov     rax, [rbp-228h]                                                ; +0x556, 0x1402cfc26\nxor     edx, edx                                                       ; +0x55d, 0x1402cfc2d\nlea     rcx, [rbp-228h]                                                ; +0x55f, 0x1402cfc2f\ncall    qword ptr [rax+3D0h]                                           ; +0x566, 0x1402cfc36\nmov     rax, [rbp-228h]                                                ; +0x56c, 0x1402cfc3c\nxor     edx, edx                                                       ; +0x573, 0x1402cfc43\nlea     rcx, [rbp-228h]                                                ; +0x575, 0x1402cfc45\ncall    qword ptr [rax+3E0h]                                           ; +0x57c, 0x1402cfc4c\nxor     edx, edx                                                       ; +0x582, 0x1402cfc52\nlea     rcx, [rbp-228h]                                                ; +0x584, 0x1402cfc54\ncall    LevelBrowserLayer__onSaved                                     ; +0x58b, 0x1402cfc5b\nmov     rcx, [rsp+68h+var_20]                                          ; +0x590, 0x1402cfc60\nxor     rcx, rsp; StackCookie                                          ; +0x595, 0x1402cfc65\ncall    __security_check_cookie                                        ; +0x598, 0x1402cfc68\nlea     r11, [rsp+68h+var_18]                                          ; +0x59d, 0x1402cfc6d\nmov     rbx, [r11+30h]                                                 ; +0x5a2, 0x1402cfc72\nmov     rbp, [r11+38h]                                                 ; +0x5a6, 0x1402cfc76\nmov     rsp, r11                                                       ; +0x5aa, 0x1402cfc7a\npop     r14                                                            ; +0x5ad, 0x1402cfc7d\npop     rdi                                                            ; +0x5af, 0x1402cfc7f\npop     rsi                                                            ; +0x5b0, 0x1402cfc80\nretn                                                                   ; +0x5b1, 0x1402cfc81", "xrefs": ["LevelListLayer::FLAlert_Clicked @ 0x1403075a0", "<???> @ 0x140584d20", "<???> @ 0x1406d2e34"], "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"}