{"type": "func", "start": 5372195584, "end": 5372195732, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x140353300 to 0x140353394 (148 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c1e7\n// > <???> @ 0x140920438\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:30:48 +0000\n// \n\nbool __fastcall GJGameLoadingLayer::loadLevel(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  __int64 v4; // rdi\n  struct cocos2d::CCScene *v5; // rbx\n  __int64 v6; // rcx\n  __int64 v7; // rax\n  struct cocos2d::CCScene *v8; // rdx\n  struct cocos2d::CCScene *v9; // rbx\n  __int64 v10; // rcx\n  cocos2d::CCDirector *v11; // rax\n\n  v4 = *(_QWORD *)(a1 + 408);\n  if ( *(_BYTE *)(a1 + 416) )\n  {\n    v5 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1, a2, a3, a4);\n    *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;\n    v7 = LevelEditorLayer::create(v4, 0);\n    (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v5 + 464LL))(v5, v7);\n    v8 = v5;\n    *((_DWORD *)v5 + 7) = 6;\n  }\n  else\n  {\n    v8 = (struct cocos2d::CCScene *)PlayLayer::scene(*(_QWORD *)(a1 + 408), 0);\n  }\n  v9 = cocos2d::CCTransitionFade::create(0.40000001, v8);\n  v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);\n  return cocos2d::CCDirector::replaceScene(v11, v9);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x140353300 to 0x140353394 (148 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c1e7\n; > <???> @ 0x140920438\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:30:48 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140353300\npush    rdi                                                            ; +0x5, 0x140353305\nsub     rsp, 20h                                                       ; +0x6, 0x140353306\ncmp     byte ptr [rcx+1A0h], 0                                         ; +0xa, 0x14035330a\nmov     rdi, [rcx+198h]                                                ; +0x11, 0x140353311\njz      short loc_140353359                                            ; +0x18, 0x140353318\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x1a, 0x14035331a\nmov     rbx, rax                                                       ; +0x20, 0x140353320\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x23, 0x140353323\nxor     edx, edx                                                       ; +0x29, 0x140353329\nmov     rcx, rdi                                                       ; +0x2b, 0x14035332b\nmov     [rax+0E8h], rbx                                                ; +0x2e, 0x14035332e\ncall    LevelEditorLayer__create                                       ; +0x35, 0x140353335\nmov     rcx, [rbx]                                                     ; +0x3a, 0x14035333a\nmov     rdx, rax                                                       ; +0x3d, 0x14035333d\nmov     r8, [rcx+1D0h]                                                 ; +0x40, 0x140353340\nmov     rcx, rbx                                                       ; +0x47, 0x140353347\ncall    r8                                                             ; +0x4a, 0x14035334a\nmov     rdx, rbx                                                       ; +0x4d, 0x14035334d\nmov     dword ptr [rbx+1Ch], 6                                         ; +0x50, 0x140353350\njmp     short loc_140353366                                            ; +0x57, 0x140353357\nxor     edx, edx                                                       ; +0x59, 0x140353359\nmov     rcx, rdi                                                       ; +0x5b, 0x14035335b\ncall    PlayLayer__scene                                               ; +0x5e, 0x14035335e\nmov     rdx, rax                                                       ; +0x63, 0x140353363\nmovss   xmm0, cs:dword_140834EDC                                       ; +0x66, 0x140353366\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6e, 0x14035336e\nmov     rbx, rax                                                       ; +0x74, 0x140353374\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x77, 0x140353377\nmov     rcx, rax                                                       ; +0x7d, 0x14035337d\nmov     rdx, rbx                                                       ; +0x80, 0x140353380\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x140353383\nadd     rsp, 20h                                                       ; +0x88, 0x140353388\npop     rdi                                                            ; +0x8c, 0x14035338c\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x8d, 0x14035338d", "xrefs": ["GJBaseGameLayer::dGJBaseGameLayer @ 0x14030c1e7", "<???> @ 0x140920438"], "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"}