{"type": "func", "start": 5371105296, "end": 5371105444, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x140249010 to 0x1402490a4 (148 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206127\n// > <???> @ 0x1406ce7e4\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\nvoid GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)\n{\n  GJGameLevel *m_level; // rdi\n  struct cocos2d::CCScene *v2; // rbx\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  LevelEditorLayer *v5; // rax\n  struct cocos2d::CCScene *v6; // rdx\n  struct cocos2d::CCTransitionFade *v7; // rbx\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n\n  m_level = a1->m_level;\n  if ( a1->m_editor )\n  {\n    v2 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1);\n    *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;\n    v5 = LevelEditorLayer::create(m_level, 0);\n    v2->addChild_1(v2, v5);\n    v6 = v2;\n    v2->m_eObjType = LevelEditorLayerObjectType;\n  }\n  else\n  {\n    v6 = PlayLayer::scene(a1->m_level, 0, 0);\n  }\n  v7 = cocos2d::CCTransitionFade::create(0.40000001, v6);\n  v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n  cocos2d::CCDirector::replaceScene(v9, v7);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x140249010 to 0x1402490a4 (148 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::dGJBaseGameLayer @ 0x140206127\n; > <???> @ 0x1406ce7e4\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_0], rbx                                               ; +0x0, 0x140249010\npush    rdi                                                            ; +0x5, 0x140249015\nsub     rsp, 20h                                                       ; +0x6, 0x140249016\ncmp     byte ptr [rcx+1A0h], 0                                         ; +0xa, 0x14024901a\nmov     rdi, [rcx+198h]                                                ; +0x11, 0x140249021\njz      short loc_140249066                                            ; +0x18, 0x140249028\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x1a, 0x14024902a\nmov     rbx, rax                                                       ; +0x20, 0x140249030\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x23, 0x140249033\nxor     edx, edx                                                       ; +0x29, 0x140249039\nmov     rcx, rdi                                                       ; +0x2b, 0x14024903b\nmov     [rax+0E0h], rbx                                                ; +0x2e, 0x14024903e\ncall    LevelEditorLayer__create                                       ; +0x35, 0x140249045\nmov     r8, [rbx]                                                      ; +0x3a, 0x14024904a\nmov     rdx, rax                                                       ; +0x3d, 0x14024904d\nmov     rcx, rbx                                                       ; +0x40, 0x140249050\ncall    qword ptr [r8+1C0h]                                            ; +0x43, 0x140249053\nmov     rdx, rbx                                                       ; +0x4a, 0x14024905a\nmov     dword ptr [rbx+1Ch], 6                                         ; +0x4d, 0x14024905d\njmp     short loc_140249076                                            ; +0x54, 0x140249064\nxor     r8d, r8d                                                       ; +0x56, 0x140249066\nxor     edx, edx                                                       ; +0x59, 0x140249069\nmov     rcx, rdi                                                       ; +0x5b, 0x14024906b\ncall    PlayLayer__scene                                               ; +0x5e, 0x14024906e\nmov     rdx, rax                                                       ; +0x63, 0x140249073\nmovss   xmm0, cs:dword_140622AD0                                       ; +0x66, 0x140249076\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6e, 0x14024907e\nmov     rbx, rax                                                       ; +0x74, 0x140249084\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x77, 0x140249087\nmov     rcx, rax                                                       ; +0x7d, 0x14024908d\nmov     rdx, rbx                                                       ; +0x80, 0x140249090\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x83, 0x140249093\nadd     rsp, 20h                                                       ; +0x88, 0x140249098\npop     rdi                                                            ; +0x8c, 0x14024909c\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x8d, 0x14024909d", "xrefs": ["GJBaseGameLayer::dGJBaseGameLayer @ 0x140206127", "<???> @ 0x1406ce7e4"], "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"}