{"type": "func", "start": 5369985408, "end": 5369985601, "name": "CreatorLayer::onMapPacks", "pseudocode": "// \n// CreatorLayer::onMapPacks from 0x140137980 to 0x140137a41 (193 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x140135e38\n// > <???> @ 0x140917168\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=1\n__int64 CreatorLayer::onMapPacks()\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+40h] [rbp+18h]\n\n  v0 = GJSearchObject::create_2(9);\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::onMapPacks from 0x140137980 to 0x140137a41 (193 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x140135e38\n; > <???> @ 0x140917168\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, 0x140137980\npush    rdi                                                            ; +0x5, 0x140137985\nsub     rsp, 20h                                                       ; +0x6, 0x140137986\nmov     ecx, 9                                                         ; +0xa, 0x14013798a\ncall    GJSearchObject__create_2                                       ; +0xf, 0x14013798f\nmov     rbx, rax                                                       ; +0x14, 0x140137994\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x17, 0x140137997\nmov     rdi, rax                                                       ; +0x1d, 0x14013799d\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x20, 0x1401379a0\nmov     [rax+0E8h], rdi                                                ; +0x26, 0x1401379a6\nmov     rcx, rbx                                                       ; +0x2d, 0x1401379ad\ncall    LevelBrowserLayer__create                                      ; +0x30, 0x1401379b0\nmov     rcx, [rdi]                                                     ; +0x35, 0x1401379b5\nmov     r8, [rcx+1D0h]                                                 ; +0x38, 0x1401379b8\nmov     rdx, rax                                                       ; +0x3f, 0x1401379bf\nmov     rcx, rdi                                                       ; +0x42, 0x1401379c2\ncall    r8                                                             ; +0x45, 0x1401379c5\nmov     rdx, rdi                                                       ; +0x48, 0x1401379c8\nmovss   xmm0, cs:dword_140834F20                                       ; +0x4b, 0x1401379cb\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x53, 0x1401379d3\nmov     rbx, rax                                                       ; +0x59, 0x1401379d9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5c, 0x1401379dc\nmov     rcx, rax                                                       ; +0x62, 0x1401379e2\nmov     rdx, rbx                                                       ; +0x65, 0x1401379e5\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x68, 0x1401379e8\nmov     rax, cs:qword_14090BFD0                                        ; +0x6e, 0x1401379ee\ntest    rax, rax                                                       ; +0x75, 0x1401379f5\njnz     short loc_140137A2C                                            ; +0x78, 0x1401379f8\nmov     ecx, 6E8h; Size                                                ; +0x7a, 0x1401379fa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7f, 0x1401379ff\nmov     [rsp+28h+arg_10], rax                                          ; +0x84, 0x140137a04\nmov     rcx, rax                                                       ; +0x89, 0x140137a09\ncall    GameManager__GameManager                                       ; +0x8c, 0x140137a0c\nnop                                                                    ; +0x91, 0x140137a11\nmov     cs:qword_14090BFD0, rax                                        ; +0x92, 0x140137a12\nmov     rcx, [rax]                                                     ; +0x99, 0x140137a19\nmov     rdx, [rcx+48h]                                                 ; +0x9c, 0x140137a1c\nmov     rcx, rax                                                       ; +0xa0, 0x140137a20\ncall    rdx                                                            ; +0xa3, 0x140137a23\nmov     rax, cs:qword_14090BFD0                                        ; +0xa5, 0x140137a25\nmov     dword ptr [rax+2E4h], 1                                        ; +0xac, 0x140137a2c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb6, 0x140137a36\nadd     rsp, 20h                                                       ; +0xbb, 0x140137a3b\npop     rdi                                                            ; +0xbf, 0x140137a3f\nretn                                                                   ; +0xc0, 0x140137a40", "xrefs": ["CreatorLayer::init @ 0x140135e38", "<???> @ 0x140917168"], "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"}