{"type": "func", "start": 4296431488, "end": 4296431583, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x100165780 to 0x1001657df (95 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::dGJBaseGameLayer @ 0x10010f224\n// > GJGameLoadingLayer::gameLayerDidUnload @ 0x10010fb0a\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 __fastcall GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)\n{\n  bool m_editor; // r15\n  cocos2d::CCDirector *v2; // rbx\n  GJGameLevel *m_level; // rdi\n  cocos2d::CCScene *v4; // rax\n  cocos2d::CCTransitionFade *v5; // rax\n\n  m_editor = a1->m_editor;\n  v2 = cocos2d::CCDirector::sharedDirector();\n  m_level = a1->m_level;\n  if ( m_editor )\n    v4 = LevelEditorLayer::scene(m_level, 0);\n  else\n    v4 = PlayLayer::scene(m_level, 0, 0);\n  v5 = cocos2d::CCTransitionFade::create_1(0.40000001, v4);\n  cocos2d::CCDirector::replaceScene(v2, v5);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x100165780 to 0x1001657df (95 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::dGJBaseGameLayer @ 0x10010f224\n; > GJGameLoadingLayer::gameLayerDidUnload @ 0x10010fb0a\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\npush    rbp                                                            ; +0x0, 0x100165780\nmov     rbp, rsp                                                       ; +0x1, 0x100165781\npush    r15                                                            ; +0x4, 0x100165784\npush    r14                                                            ; +0x6, 0x100165786\npush    rbx                                                            ; +0x8, 0x100165788\npush    rax                                                            ; +0x9, 0x100165789\nmov     r14, rdi                                                       ; +0xa, 0x10016578a\nmovzx   r15d, byte ptr [rdi+1A0h]                                      ; +0xd, 0x10016578d\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x15, 0x100165795\nmov     rbx, rax                                                       ; +0x1a, 0x10016579a\nmov     rdi, [r14+198h]                                                ; +0x1d, 0x10016579d\nxor     esi, esi                                                       ; +0x24, 0x1001657a4\ncmp     r15b, 1                                                        ; +0x26, 0x1001657a6\njnz     short loc_1001657B3                                            ; +0x2a, 0x1001657aa\ncall    LevelEditorLayer__scene                                        ; +0x2c, 0x1001657ac\njmp     short loc_1001657BA                                            ; +0x31, 0x1001657b1\nxor     edx, edx                                                       ; +0x33, 0x1001657b3\ncall    PlayLayer__scene                                               ; +0x35, 0x1001657b5\nmovss   xmm0, cs:dword_100815004                                       ; +0x3a, 0x1001657ba\nmov     rdi, rax                                                       ; +0x42, 0x1001657c2\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x45, 0x1001657c5\nmov     rdi, rbx                                                       ; +0x4a, 0x1001657ca\nmov     rsi, rax                                                       ; +0x4d, 0x1001657cd\nadd     rsp, 8                                                         ; +0x50, 0x1001657d0\npop     rbx                                                            ; +0x54, 0x1001657d4\npop     r14                                                            ; +0x55, 0x1001657d5\npop     r15                                                            ; +0x57, 0x1001657d7\npop     rbp                                                            ; +0x59, 0x1001657d9\njmp     cocos2d__CCDirector__replaceScene                              ; +0x5a, 0x1001657da", "xrefs": ["GJBaseGameLayer::dGJBaseGameLayer @ 0x10010f224", "GJGameLoadingLayer::gameLayerDidUnload @ 0x10010fb0a"], "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"}