{"type": "func", "start": 4296298032, "end": 4296298125, "name": "GJGameLoadingLayer::loadLevel", "pseudocode": "// \n// GJGameLoadingLayer::loadLevel from 0x100144e30 to 0x100144e8d (93 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::dGJBaseGameLayer @ 0x1000eb2b4\n// > GJGameLoadingLayer::gameLayerDidUnload @ 0x1000ebd0a\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 12:24:57 +0000\n// \n\n__int64 __fastcall GJGameLoadingLayer::loadLevel(__int64 a1, __int64 a2)\n{\n  char v2; // r15\n  __int64 v3; // rbx\n  __int64 v4; // rdi\n  _DWORD *v5; // rax\n  char *v6; // rax\n\n  v2 = *(_BYTE *)(a1 + 416);\n  v3 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  v4 = *(_QWORD *)(a1 + 408);\n  if ( v2 == 1 )\n    v5 = LevelEditorLayer::scene(v4, 0);\n  else\n    v5 = PlayLayer::scene(v4, 0);\n  v6 = cocos2d::CCTransitionFade::create_1((__int64)v5, 0.40000001);\n  return cocos2d::CCDirector::replaceScene(v3, v6);\n}", "assembly": "; \n; GJGameLoadingLayer::loadLevel from 0x100144e30 to 0x100144e8d (93 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::dGJBaseGameLayer @ 0x1000eb2b4\n; > GJGameLoadingLayer::gameLayerDidUnload @ 0x1000ebd0a\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 12:24:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x100144e30\nmov     rbp, rsp                                                       ; +0x1, 0x100144e31\npush    r15                                                            ; +0x4, 0x100144e34\npush    r14                                                            ; +0x6, 0x100144e36\npush    rbx                                                            ; +0x8, 0x100144e38\npush    rax                                                            ; +0x9, 0x100144e39\nmov     r14, rdi                                                       ; +0xa, 0x100144e3a\nmovzx   r15d, byte ptr [rdi+1A0h]                                      ; +0xd, 0x100144e3d\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x15, 0x100144e45\nmov     rbx, rax                                                       ; +0x1a, 0x100144e4a\nmov     rdi, [r14+198h]                                                ; +0x1d, 0x100144e4d\nxor     esi, esi                                                       ; +0x24, 0x100144e54\ncmp     r15b, 1                                                        ; +0x26, 0x100144e56\njnz     short loc_100144E63                                            ; +0x2a, 0x100144e5a\ncall    LevelEditorLayer__scene                                        ; +0x2c, 0x100144e5c\njmp     short loc_100144E68                                            ; +0x31, 0x100144e61\ncall    PlayLayer__scene                                               ; +0x33, 0x100144e63\nmovss   xmm0, cs:dword_100A040AC                                       ; +0x38, 0x100144e68\nmov     rdi, rax                                                       ; +0x40, 0x100144e70\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x43, 0x100144e73\nmov     rdi, rbx                                                       ; +0x48, 0x100144e78\nmov     rsi, rax                                                       ; +0x4b, 0x100144e7b\nadd     rsp, 8                                                         ; +0x4e, 0x100144e7e\npop     rbx                                                            ; +0x52, 0x100144e82\npop     r14                                                            ; +0x53, 0x100144e83\npop     r15                                                            ; +0x55, 0x100144e85\npop     rbp                                                            ; +0x57, 0x100144e87\njmp     cocos2d__CCDirector__replaceScene                              ; +0x58, 0x100144e88", "xrefs": ["GJBaseGameLayer::dGJBaseGameLayer @ 0x1000eb2b4", "GJGameLoadingLayer::gameLayerDidUnload @ 0x1000ebd0a"], "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"}