{"type": "func", "start": 5371657360, "end": 5371657506, "name": "LevelBrowserLayer::onEnter", "pseudocode": "// \n// LevelBrowserLayer::onEnter from 0x1402cfc90 to 0x1402cfd22 (146 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140585010\n// > <???> @ 0x1406d2e40\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\nvoid LevelBrowserLayer::onEnter(LevelBrowserLayer *a1)\n{\n  GJSearchObject *m_searchObject; // rdx\n  SearchType m_searchType; // ecx\n  CustomListView *m_listView; // rcx\n\n  cocos2d::CCLayer::onEnter(a1);\n  if ( a1->m_unk )\n  {\n    m_searchObject = a1->m_searchObject;\n    if ( m_searchObject )\n    {\n      m_searchType = m_searchObject->m_searchType;\n      if ( (unsigned int)(m_searchType - 25) <= 1 )\n      {\n        LevelBrowserLayer::setupLevelBrowser(a1, nullptr);\n      }\n      else if ( ((m_searchType - 98) & 0xFFFFFFFB) != 0 )\n      {\n        if ( m_searchType != (Sends|Downloaded) )\n        {\n          LevelBrowserLayer::loadPage(a1, m_searchObject);\n          a1->m_unk = 1;\n          return;\n        }\n        m_listView = (CustomListView *)a1->m_list->m_listView;\n        if ( m_listView )\n        {\n          CustomListView::reloadAll(m_listView);\n          a1->m_unk = 1;\n          return;\n        }\n      }\n    }\n  }\n  a1->m_unk = 1;\n}", "assembly": "; \n; LevelBrowserLayer::onEnter from 0x1402cfc90 to 0x1402cfd22 (146 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140585010\n; > <???> @ 0x1406d2e40\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    rbx                                                            ; +0x0, 0x1402cfc90\nsub     rsp, 20h                                                       ; +0x2, 0x1402cfc92\nmov     rbx, rcx                                                       ; +0x6, 0x1402cfc96\ncall    cs:__imp_?onEnter@CCLayer@cocos2d@@UEAAXXZ; cocos2d::CCLayer::onEnter(void) ; +0x9, 0x1402cfc99\ncmp     byte ptr [rbx+250h], 0                                         ; +0xf, 0x1402cfc9f\njz      short loc_1402CFD15                                            ; +0x16, 0x1402cfca6\nmov     rdx, [rbx+298h]                                                ; +0x18, 0x1402cfca8\ntest    rdx, rdx                                                       ; +0x1f, 0x1402cfcaf\njz      short loc_1402CFD15                                            ; +0x22, 0x1402cfcb2\nmov     ecx, [rdx+140h]                                                ; +0x24, 0x1402cfcb4\nlea     eax, [rcx-19h]                                                 ; +0x2a, 0x1402cfcba\ncmp     eax, 1                                                         ; +0x2d, 0x1402cfcbd\njbe     short loc_1402CFD0B                                            ; +0x30, 0x1402cfcc0\nlea     eax, [rcx-62h]                                                 ; +0x32, 0x1402cfcc2\ntest    eax, 0FFFFFFFBh                                                ; +0x35, 0x1402cfcc5\njz      short loc_1402CFD15                                            ; +0x3a, 0x1402cfcca\ncmp     ecx, 9                                                         ; +0x3c, 0x1402cfccc\njz      short loc_1402CFCE6                                            ; +0x3f, 0x1402cfccf\nmov     rcx, rbx                                                       ; +0x41, 0x1402cfcd1\ncall    LevelBrowserLayer__loadPage                                    ; +0x44, 0x1402cfcd4\nmov     byte ptr [rbx+250h], 1                                         ; +0x49, 0x1402cfcd9\nadd     rsp, 20h                                                       ; +0x50, 0x1402cfce0\npop     rbx                                                            ; +0x54, 0x1402cfce4\nretn                                                                   ; +0x55, 0x1402cfce5\nmov     rax, [rbx+260h]                                                ; +0x56, 0x1402cfce6\nmov     rcx, [rax+220h]                                                ; +0x5d, 0x1402cfced\ntest    rcx, rcx                                                       ; +0x64, 0x1402cfcf4\njz      short loc_1402CFD15                                            ; +0x67, 0x1402cfcf7\ncall    CustomListView__reloadAll                                      ; +0x69, 0x1402cfcf9\nmov     byte ptr [rbx+250h], 1                                         ; +0x6e, 0x1402cfcfe\nadd     rsp, 20h                                                       ; +0x75, 0x1402cfd05\npop     rbx                                                            ; +0x79, 0x1402cfd09\nretn                                                                   ; +0x7a, 0x1402cfd0a\nxor     edx, edx                                                       ; +0x7b, 0x1402cfd0b\nmov     rcx, rbx                                                       ; +0x7d, 0x1402cfd0d\ncall    LevelBrowserLayer__setupLevelBrowser                           ; +0x80, 0x1402cfd10\nmov     byte ptr [rbx+250h], 1                                         ; +0x85, 0x1402cfd15\nadd     rsp, 20h                                                       ; +0x8c, 0x1402cfd1c\npop     rbx                                                            ; +0x90, 0x1402cfd20\nretn                                                                   ; +0x91, 0x1402cfd21", "xrefs": ["<???> @ 0x140585010", "<???> @ 0x1406d2e40"], "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"}