{"type": "func", "start": 5371651088, "end": 5371651309, "name": "LevelBrowserLayer::onFavorites", "pseudocode": "// \n// LevelBrowserLayer::onFavorites from 0x1402ce410 to 0x1402ce4ed (221 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::init @ 0x1402ca202\n// > <???> @ 0x1406d2db0\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=1\nvoid LevelBrowserLayer::onFavorites(LevelBrowserLayer *a1, cocos2d::CCObject *a2)\n{\n  GJSearchObject *v3; // rax\n  GJSearchObject *v4; // rdi\n  GJSearchObject *m_searchObject; // rcx\n  void **v6; // rdx\n  struct cocos2d::CCScene *v7; // rax\n  struct cocos2d::CCTransitionFade *v8; // rbx\n  __int64 v9; // rcx\n  cocos2d::CCDirector *v10; // rax\n  void *Src[5]; // [rsp+20h] [rbp-28h] BYREF\n\n  a1->setKeypadEnabled(a1, 0);\n  a1->setKeyboardEnabled(a1, 0);\n  v3 = GJSearchObject::create_2(FavouriteLevels);\n  v4 = v3;\n  m_searchObject = a1->m_searchObject;\n  if ( m_searchObject )\n  {\n    v3->m_folder = m_searchObject->m_folder;\n    sub_14003BDB0((__int64)Src, (__int64)&a1->m_searchObject->m_searchQuery);\n    if ( &v4->m_searchQuery != (std::string *)Src )\n    {\n      v6 = Src;\n      if ( Src[3] > (void *)0xF )\n        v6 = (void **)Src[0];\n      sub_14003CCE0((void **)&v4->m_searchQuery, v6, (size_t)Src[2]);\n    }\n    sub_14003A830((__int64)Src);\n  }\n  v7 = LevelBrowserLayer::scene(v4);\n  v8 = cocos2d::CCTransitionFade::create(0.5, v7);\n  v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);\n  cocos2d::CCDirector::replaceScene(v10, v8);\n}", "assembly": "; \n; LevelBrowserLayer::onFavorites from 0x1402ce410 to 0x1402ce4ed (221 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::init @ 0x1402ca202\n; > <???> @ 0x1406d2db0\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, 0x1402ce410\npush    rdi                                                            ; +0x5, 0x1402ce415\nsub     rsp, 40h                                                       ; +0x6, 0x1402ce416\nmov     rbx, rcx                                                       ; +0xa, 0x1402ce41a\nmov     rax, [rcx]                                                     ; +0xd, 0x1402ce41d\nxor     edx, edx                                                       ; +0x10, 0x1402ce420\ncall    qword ptr [rax+3D0h]                                           ; +0x12, 0x1402ce422\nmov     rax, [rbx]                                                     ; +0x18, 0x1402ce428\nxor     edx, edx                                                       ; +0x1b, 0x1402ce42b\nmov     rcx, rbx                                                       ; +0x1d, 0x1402ce42d\ncall    qword ptr [rax+3E0h]                                           ; +0x20, 0x1402ce430\nmov     ecx, 64h ; 'd'                                                 ; +0x26, 0x1402ce436\ncall    GJSearchObject__create_2                                       ; +0x2b, 0x1402ce43b\nmov     rdi, rax                                                       ; +0x30, 0x1402ce440\nmov     rcx, [rbx+298h]                                                ; +0x33, 0x1402ce443\ntest    rcx, rcx                                                       ; +0x3a, 0x1402ce44a\njz      short loc_1402CE4B4                                            ; +0x3d, 0x1402ce44d\nmov     ecx, [rcx+1C4h]                                                ; +0x3f, 0x1402ce44f\nmov     [rax+1C4h], ecx                                                ; +0x45, 0x1402ce455\nmov     rdx, [rbx+298h]                                                ; +0x4b, 0x1402ce45b\nadd     rdx, 148h                                                      ; +0x52, 0x1402ce462\nlea     rcx, [rsp+48h+Src]                                             ; +0x59, 0x1402ce469\ncall    sub_14003BDB0                                                  ; +0x5e, 0x1402ce46e\nlea     rax, [rsp+48h+Src]                                             ; +0x63, 0x1402ce473\nmov     [rsp+48h+arg_0], rax                                           ; +0x68, 0x1402ce478\nlea     rcx, [rdi+148h]; void *                                        ; +0x6d, 0x1402ce47d\nlea     rax, [rsp+48h+Src]                                             ; +0x74, 0x1402ce484\ncmp     rcx, rax                                                       ; +0x79, 0x1402ce489\njz      short loc_1402CE4AA                                            ; +0x7c, 0x1402ce48c\nlea     rdx, [rsp+48h+Src]                                             ; +0x7e, 0x1402ce48e\ncmp     [rsp+48h+var_10], 0Fh                                          ; +0x83, 0x1402ce493\ncmova   rdx, [rsp+48h+Src]; Src                                        ; +0x89, 0x1402ce499\nmov     r8, [rsp+48h+Size]; Size                                       ; +0x8f, 0x1402ce49f\ncall    sub_14003CCE0                                                  ; +0x94, 0x1402ce4a4\nnop                                                                    ; +0x99, 0x1402ce4a9\nlea     rcx, [rsp+48h+Src]                                             ; +0x9a, 0x1402ce4aa\ncall    sub_14003A830                                                  ; +0x9f, 0x1402ce4af\nmov     rcx, rdi                                                       ; +0xa4, 0x1402ce4b4\ncall    LevelBrowserLayer__scene                                       ; +0xa7, 0x1402ce4b7\nmov     rdx, rax                                                       ; +0xac, 0x1402ce4bc\nmovss   xmm0, cs:dword_140622B08                                       ; +0xaf, 0x1402ce4bf\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xb7, 0x1402ce4c7\nmov     rbx, rax                                                       ; +0xbd, 0x1402ce4cd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc0, 0x1402ce4d0\nmov     rcx, rax                                                       ; +0xc6, 0x1402ce4d6\nmov     rdx, rbx                                                       ; +0xc9, 0x1402ce4d9\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xcc, 0x1402ce4dc\nadd     rsp, 40h                                                       ; +0xd1, 0x1402ce4e1\npop     rdi                                                            ; +0xd5, 0x1402ce4e5\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xd6, 0x1402ce4e6", "xrefs": ["LevelBrowserLayer::init @ 0x1402ca202", "<???> @ 0x1406d2db0"], "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"}