{"type": "func", "start": 5371650128, "end": 5371650352, "name": "LevelBrowserLayer::onLocalMode", "pseudocode": "// \n// LevelBrowserLayer::onLocalMode from 0x1402ce050 to 0x1402ce130 (224 bytes)\n// \n// 3 xrefs:\n// > LevelBrowserLayer::init @ 0x1402ca4cd\n// > <???> @ 0x1406d2d80\n// > <???> @ 0x1406d2d8c\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::onLocalMode(LevelBrowserLayer *a1, cocos2d::CCObject *a2)\n{\n  SearchType m_searchType; // edi\n  SearchType v4; // ebx\n  __int64 v5; // rax\n  GJSearchObject *v6; // rax\n  struct cocos2d::CCScene *v7; // rax\n  struct cocos2d::CCTransitionFade *v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  void *v11; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_searchObject )\n  {\n    a1->setKeypadEnabled(a1, 0);\n    a1->setKeyboardEnabled(a1, 0);\n    m_searchType = a1->m_searchObject->m_searchType;\n    v4 = MyLevels;\n    if ( m_searchType == MyLevels )\n      v4 = MyLists;\n    v5 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v11 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v5 = qword_1406C2ED8;\n    }\n    *(_DWORD *)(v5 + 1200) = v4;\n    v6 = GJSearchObject::create_2(v4);\n    if ( m_searchType == MyLevels )\n      v6->m_searchMode = 1;\n    v7 = LevelBrowserLayer::scene(v6);\n    v8 = cocos2d::CCTransitionFade::create(0.5, v7);\n    v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n    cocos2d::CCDirector::replaceScene(v10, v8);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onLocalMode from 0x1402ce050 to 0x1402ce130 (224 bytes)\n; \n; 3 xrefs:\n; > LevelBrowserLayer::init @ 0x1402ca4cd\n; > <???> @ 0x1406d2d80\n; > <???> @ 0x1406d2d8c\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_8], rbx                                               ; +0x0, 0x1402ce050\npush    rdi                                                            ; +0x5, 0x1402ce055\nsub     rsp, 20h                                                       ; +0x6, 0x1402ce056\nmov     rbx, rcx                                                       ; +0xa, 0x1402ce05a\ncmp     qword ptr [rcx+298h], 0                                        ; +0xd, 0x1402ce05d\njz      loc_1402CE125                                                  ; +0x15, 0x1402ce065\nmov     rax, [rcx]                                                     ; +0x1b, 0x1402ce06b\nxor     edx, edx                                                       ; +0x1e, 0x1402ce06e\ncall    qword ptr [rax+3D0h]                                           ; +0x20, 0x1402ce070\nmov     rax, [rbx]                                                     ; +0x26, 0x1402ce076\nxor     edx, edx                                                       ; +0x29, 0x1402ce079\nmov     rcx, rbx                                                       ; +0x2b, 0x1402ce07b\ncall    qword ptr [rax+3E0h]                                           ; +0x2e, 0x1402ce07e\nmov     rax, [rbx+298h]                                                ; +0x34, 0x1402ce084\nmov     edi, [rax+140h]                                                ; +0x3b, 0x1402ce08b\nmov     ebx, 62h ; 'b'                                                 ; +0x41, 0x1402ce091\nmov     eax, 66h ; 'f'                                                 ; +0x46, 0x1402ce096\ncmp     edi, ebx                                                       ; +0x4b, 0x1402ce09b\ncmovz   ebx, eax                                                       ; +0x4d, 0x1402ce09d\nmov     rax, cs:qword_1406C2ED8                                        ; +0x50, 0x1402ce0a0\ntest    rax, rax                                                       ; +0x57, 0x1402ce0a7\njnz     short loc_1402CE0DB                                            ; +0x5a, 0x1402ce0aa\nmov     ecx, 668h; Size                                                ; +0x5c, 0x1402ce0ac\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x61, 0x1402ce0b1\nmov     [rsp+28h+arg_0], rax                                           ; +0x66, 0x1402ce0b6\nmov     rcx, rax                                                       ; +0x6b, 0x1402ce0bb\ncall    sub_14017AB00                                                  ; +0x6e, 0x1402ce0be\nnop                                                                    ; +0x73, 0x1402ce0c3\nmov     cs:qword_1406C2ED8, rax                                        ; +0x74, 0x1402ce0c4\nmov     rdx, [rax]                                                     ; +0x7b, 0x1402ce0cb\nmov     rcx, rax                                                       ; +0x7e, 0x1402ce0ce\ncall    qword ptr [rdx+48h]                                            ; +0x81, 0x1402ce0d1\nmov     rax, cs:qword_1406C2ED8                                        ; +0x84, 0x1402ce0d4\nmov     [rax+4B0h], ebx                                                ; +0x8b, 0x1402ce0db\nmov     ecx, ebx                                                       ; +0x91, 0x1402ce0e1\ncall    GJSearchObject__create_2                                       ; +0x93, 0x1402ce0e3\ncmp     edi, 62h ; 'b'                                                 ; +0x98, 0x1402ce0e8\njnz     short loc_1402CE0F7                                            ; +0x9b, 0x1402ce0eb\nmov     dword ptr [rax+1D0h], 1                                        ; +0x9d, 0x1402ce0ed\nmov     rcx, rax                                                       ; +0xa7, 0x1402ce0f7\ncall    LevelBrowserLayer__scene                                       ; +0xaa, 0x1402ce0fa\nmov     rdx, rax                                                       ; +0xaf, 0x1402ce0ff\nmovss   xmm0, cs:dword_140622B08                                       ; +0xb2, 0x1402ce102\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xba, 0x1402ce10a\nmov     rbx, rax                                                       ; +0xc0, 0x1402ce110\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc3, 0x1402ce113\nmov     rcx, rax                                                       ; +0xc9, 0x1402ce119\nmov     rdx, rbx                                                       ; +0xcc, 0x1402ce11c\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xcf, 0x1402ce11f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd5, 0x1402ce125\nadd     rsp, 20h                                                       ; +0xda, 0x1402ce12a\npop     rdi                                                            ; +0xde, 0x1402ce12e\nretn                                                                   ; +0xdf, 0x1402ce12f", "xrefs": ["LevelBrowserLayer::init @ 0x1402ca4cd", "<???> @ 0x1406d2d80", "<???> @ 0x1406d2d8c"], "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"}