{"type": "func", "start": 5369984832, "end": 5369985025, "name": "CreatorLayer::onFeaturedLevels", "pseudocode": "// \n// CreatorLayer::onFeaturedLevels from 0x140137740 to 0x140137801 (193 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x140135d55\n// > <???> @ 0x140917138\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:27:05 +0000\n// \n\n// Hidden C++ exception states: #wind=4\n__int64 CreatorLayer::onFeaturedLevels()\n{\n  __int64 v0; // rbx\n  struct cocos2d::CCScene *v1; // rdi\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  struct cocos2d::CCScene *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  __int64 result; // rax\n  void *v8; // [rsp+20h] [rbp-18h]\n\n  v0 = GJSearchObject::create_2(6);\n  v1 = (struct cocos2d::CCScene *)cocos2d::CCScene::create();\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v2) + 232) = v1;\n  v3 = LevelBrowserLayer::create(v0);\n  (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v1 + 464LL))(v1, v3);\n  v4 = cocos2d::CCTransitionFade::create(0.5, v1);\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  cocos2d::CCDirector::pushScene(v6, v4);\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v8 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  *(_DWORD *)(result + 740) = 1;\n  return result;\n}", "assembly": "; \n; CreatorLayer::onFeaturedLevels from 0x140137740 to 0x140137801 (193 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x140135d55\n; > <???> @ 0x140917138\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:27:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140137740\npush    rdi                                                            ; +0x5, 0x140137745\nsub     rsp, 30h                                                       ; +0x6, 0x140137746\nmov     ecx, 6                                                         ; +0xa, 0x14013774a\ncall    GJSearchObject__create_2                                       ; +0xf, 0x14013774f\nmov     rbx, rax                                                       ; +0x14, 0x140137754\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x17, 0x140137757\nmov     rdi, rax                                                       ; +0x1d, 0x14013775d\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x20, 0x140137760\nmov     [rax+0E8h], rdi                                                ; +0x26, 0x140137766\nmov     rcx, rbx                                                       ; +0x2d, 0x14013776d\ncall    LevelBrowserLayer__create                                      ; +0x30, 0x140137770\nmov     rcx, [rdi]                                                     ; +0x35, 0x140137775\nmov     r8, [rcx+1D0h]                                                 ; +0x38, 0x140137778\nmov     rdx, rax                                                       ; +0x3f, 0x14013777f\nmov     rcx, rdi                                                       ; +0x42, 0x140137782\ncall    r8                                                             ; +0x45, 0x140137785\nmov     rdx, rdi                                                       ; +0x48, 0x140137788\nmovss   xmm0, cs:dword_140834F20                                       ; +0x4b, 0x14013778b\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x53, 0x140137793\nmov     rbx, rax                                                       ; +0x59, 0x140137799\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5c, 0x14013779c\nmov     rcx, rax                                                       ; +0x62, 0x1401377a2\nmov     rdx, rbx                                                       ; +0x65, 0x1401377a5\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x68, 0x1401377a8\nmov     rax, cs:qword_14090BFD0                                        ; +0x6e, 0x1401377ae\ntest    rax, rax                                                       ; +0x75, 0x1401377b5\njnz     short loc_1401377EC                                            ; +0x78, 0x1401377b8\nmov     ecx, 6E8h; Size                                                ; +0x7a, 0x1401377ba\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7f, 0x1401377bf\nmov     [rsp+38h+var_18], rax                                          ; +0x84, 0x1401377c4\nmov     rcx, rax                                                       ; +0x89, 0x1401377c9\ncall    GameManager__GameManager                                       ; +0x8c, 0x1401377cc\nnop                                                                    ; +0x91, 0x1401377d1\nmov     cs:qword_14090BFD0, rax                                        ; +0x92, 0x1401377d2\nmov     rcx, [rax]                                                     ; +0x99, 0x1401377d9\nmov     rdx, [rcx+48h]                                                 ; +0x9c, 0x1401377dc\nmov     rcx, rax                                                       ; +0xa0, 0x1401377e0\ncall    rdx                                                            ; +0xa3, 0x1401377e3\nmov     rax, cs:qword_14090BFD0                                        ; +0xa5, 0x1401377e5\nmov     dword ptr [rax+2E4h], 1                                        ; +0xac, 0x1401377ec\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb6, 0x1401377f6\nadd     rsp, 30h                                                       ; +0xbb, 0x1401377fb\npop     rdi                                                            ; +0xbf, 0x1401377ff\nretn                                                                   ; +0xc0, 0x140137800", "xrefs": ["CreatorLayer::init @ 0x140135d55", "<???> @ 0x140917138"], "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"}