{"type": "func", "start": 5372806640, "end": 5372806861, "name": "LevelBrowserLayer::onFavorites", "pseudocode": "// \n// LevelBrowserLayer::onFavorites from 0x1403e85f0 to 0x1403e86cd (221 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e33af\n// > <???> @ 0x140925004\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:44 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nbool __fastcall LevelBrowserLayer::onFavorites(_QWORD *a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdx\n  __int64 v4; // r8\n  __int64 v5; // r9\n  __int64 v6; // rdi\n  __int64 v7; // rcx\n  void **v8; // rdx\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  void *Src[5]; // [rsp+20h] [rbp-28h] BYREF\n\n  (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);\n  (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1008LL))(a1, 0);\n  v2 = GJSearchObject::create_2(100);\n  v6 = v2;\n  v7 = a1[83];\n  if ( v7 )\n  {\n    *(_DWORD *)(v2 + 452) = *(_DWORD *)(v7 + 452);\n    sub_14003F4F0((__int64)Src, a1[83] + 328LL);\n    if ( (void **)(v6 + 328) != Src )\n    {\n      v8 = Src;\n      if ( Src[3] > (void *)0xF )\n        v8 = (void **)Src[0];\n      sub_1400405A0((void **)(v6 + 328), v8, (size_t)Src[2]);\n    }\n    sub_14003D310((__int64)Src);\n  }\n  v9 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v6, v3, v4, v5);\n  v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  return cocos2d::CCDirector::replaceScene(v12, v10);\n}", "assembly": "; \n; LevelBrowserLayer::onFavorites from 0x1403e85f0 to 0x1403e86cd (221 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e33af\n; > <???> @ 0x140925004\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403e85f0\npush    rdi                                                            ; +0x5, 0x1403e85f5\nsub     rsp, 40h                                                       ; +0x6, 0x1403e85f6\nmov     rbx, rcx                                                       ; +0xa, 0x1403e85fa\nmov     rax, [rcx]                                                     ; +0xd, 0x1403e85fd\nxor     edx, edx                                                       ; +0x10, 0x1403e8600\ncall    qword ptr [rax+3E0h]                                           ; +0x12, 0x1403e8602\nmov     rax, [rbx]                                                     ; +0x18, 0x1403e8608\nxor     edx, edx                                                       ; +0x1b, 0x1403e860b\nmov     rcx, rbx                                                       ; +0x1d, 0x1403e860d\ncall    qword ptr [rax+3F0h]                                           ; +0x20, 0x1403e8610\nmov     ecx, 64h ; 'd'                                                 ; +0x26, 0x1403e8616\ncall    GJSearchObject__create_2                                       ; +0x2b, 0x1403e861b\nmov     rdi, rax                                                       ; +0x30, 0x1403e8620\nmov     rcx, [rbx+298h]                                                ; +0x33, 0x1403e8623\ntest    rcx, rcx                                                       ; +0x3a, 0x1403e862a\njz      short loc_1403E8694                                            ; +0x3d, 0x1403e862d\nmov     ecx, [rcx+1C4h]                                                ; +0x3f, 0x1403e862f\nmov     [rax+1C4h], ecx                                                ; +0x45, 0x1403e8635\nmov     rdx, [rbx+298h]                                                ; +0x4b, 0x1403e863b\nadd     rdx, 148h                                                      ; +0x52, 0x1403e8642\nlea     rcx, [rsp+48h+Src]                                             ; +0x59, 0x1403e8649\ncall    sub_14003F4F0                                                  ; +0x5e, 0x1403e864e\nlea     rax, [rsp+48h+Src]                                             ; +0x63, 0x1403e8653\nmov     [rsp+48h+arg_0], rax                                           ; +0x68, 0x1403e8658\nlea     rcx, [rdi+148h]; void *                                        ; +0x6d, 0x1403e865d\nlea     rax, [rsp+48h+Src]                                             ; +0x74, 0x1403e8664\ncmp     rcx, rax                                                       ; +0x79, 0x1403e8669\njz      short loc_1403E868A                                            ; +0x7c, 0x1403e866c\nlea     rdx, [rsp+48h+Src]                                             ; +0x7e, 0x1403e866e\ncmp     [rsp+48h+var_10], 0Fh                                          ; +0x83, 0x1403e8673\ncmova   rdx, [rsp+48h+Src]; Src                                        ; +0x89, 0x1403e8679\nmov     r8, [rsp+48h+Size]; Size                                       ; +0x8f, 0x1403e867f\ncall    sub_1400405A0                                                  ; +0x94, 0x1403e8684\nnop                                                                    ; +0x99, 0x1403e8689\nlea     rcx, [rsp+48h+Src]                                             ; +0x9a, 0x1403e868a\ncall    sub_14003D310                                                  ; +0x9f, 0x1403e868f\nmov     rcx, rdi                                                       ; +0xa4, 0x1403e8694\ncall    LevelBrowserLayer__scene                                       ; +0xa7, 0x1403e8697\nmov     rdx, rax                                                       ; +0xac, 0x1403e869c\nmovss   xmm0, cs:dword_140834F20                                       ; +0xaf, 0x1403e869f\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xb7, 0x1403e86a7\nmov     rbx, rax                                                       ; +0xbd, 0x1403e86ad\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc0, 0x1403e86b0\nmov     rcx, rax                                                       ; +0xc6, 0x1403e86b6\nmov     rdx, rbx                                                       ; +0xc9, 0x1403e86b9\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xcc, 0x1403e86bc\nadd     rsp, 40h                                                       ; +0xd1, 0x1403e86c1\npop     rdi                                                            ; +0xd5, 0x1403e86c5\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xd6, 0x1403e86c6", "xrefs": ["LevelBrowserLayer::init @ 0x1403e33af", "<???> @ 0x140925004"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}