{"type": "func", "start": 4296296624, "end": 4296296887, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x1001448b0 to 0x1001449b7 (263 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::playStep3 @ 0x10027f3bf\n// > PauseLayer::goEdit @ 0x1003c30f3\n// > EndLevelLayer::goEdit @ 0x1004bc19b\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_QWORD *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(__int64 a1, __int64 a2)\n{\n  _DWORD *v2; // r14\n  _QWORD *v3; // rbx\n  __int64 v4; // r15\n  char *v5; // rax\n\n  v2 = (_DWORD *)cocos2d::CCScene::create(a1);\n  *(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;\n  v3 = operator new(0x1A8u);\n  cocos2d::CCLayer::CCLayer(v3);\n  *v3 = off_100AC5350;\n  v3[40] = off_100AC57E0;\n  v3[41] = &off_100AC5850;\n  v3[42] = off_100AC5868;\n  v3[43] = off_100AC5888;\n  v3[44] = off_100AC58B0;\n  v3[51] = 0;\n  *((_BYTE *)v3 + 416) = 0;\n  if ( (unsigned __int8)GJGameLoadingLayer::init(v3, a1, (unsigned __int8)a2) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v3 + 16LL))(v3);\n    v3 = nullptr;\n  }\n  (*(void (__fastcall **)(_DWORD *, _QWORD *))(*(_QWORD *)v2 + 456LL))(v2, v3);\n  v2[7] = 5;\n  v4 = cocos2d::CCDirector::sharedDirector(v2, v3);\n  v5 = cocos2d::CCTransitionFade::create_1((__int64)v2, 0.1);\n  cocos2d::CCDirector::replaceScene(v4, v5);\n  return v3;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x1001448b0 to 0x1001449b7 (263 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::playStep3 @ 0x10027f3bf\n; > PauseLayer::goEdit @ 0x1003c30f3\n; > EndLevelLayer::goEdit @ 0x1004bc19b\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, 0x1001448b0\nmov     rbp, rsp                                                       ; +0x1, 0x1001448b1\npush    r15                                                            ; +0x4, 0x1001448b4\npush    r14                                                            ; +0x6, 0x1001448b6\npush    r12                                                            ; +0x8, 0x1001448b8\npush    rbx                                                            ; +0xa, 0x1001448ba\nmov     r12d, esi                                                      ; +0xb, 0x1001448bb\nmov     r15, rdi                                                       ; +0xe, 0x1001448be\ncall    cocos2d__CCScene__create                                       ; +0x11, 0x1001448c1\nmov     r14, rax                                                       ; +0x16, 0x1001448c6\ncall    AppDelegate__get                                               ; +0x19, 0x1001448c9\nmov     [rax+48h], r14                                                 ; +0x1e, 0x1001448ce\nmov     edi, 1A8h; __sz                                                ; +0x22, 0x1001448d2\ncall    __Znwm; operator new(ulong)                                    ; +0x27, 0x1001448d7\nmov     rbx, rax                                                       ; +0x2c, 0x1001448dc\nmov     rdi, rax                                                       ; +0x2f, 0x1001448df\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x32, 0x1001448e2\nlea     rax, off_100AC5350                                             ; +0x37, 0x1001448e7\nmov     [rbx], rax                                                     ; +0x3e, 0x1001448ee\nlea     rax, off_100AC57E0                                             ; +0x41, 0x1001448f1\nmov     [rbx+140h], rax                                                ; +0x48, 0x1001448f8\nlea     rax, off_100AC5850                                             ; +0x4f, 0x1001448ff\nmov     [rbx+148h], rax                                                ; +0x56, 0x100144906\nlea     rax, off_100AC5868                                             ; +0x5d, 0x10014490d\nmov     [rbx+150h], rax                                                ; +0x64, 0x100144914\nlea     rax, off_100AC5888                                             ; +0x6b, 0x10014491b\nmov     [rbx+158h], rax                                                ; +0x72, 0x100144922\nlea     rax, off_100AC58B0                                             ; +0x79, 0x100144929\nmov     [rbx+160h], rax                                                ; +0x80, 0x100144930\nmov     qword ptr [rbx+198h], 0                                        ; +0x87, 0x100144937\nmov     byte ptr [rbx+1A0h], 0                                         ; +0x92, 0x100144942\nmovzx   edx, r12b                                                      ; +0x99, 0x100144949\nmov     rdi, rbx                                                       ; +0x9d, 0x10014494d\nmov     rsi, r15                                                       ; +0xa0, 0x100144950\ncall    GJGameLoadingLayer__init                                       ; +0xa3, 0x100144953\ntest    al, al                                                         ; +0xa8, 0x100144958\njz      short loc_100144966                                            ; +0xaa, 0x10014495a\nmov     rdi, rbx                                                       ; +0xac, 0x10014495c\ncall    cocos2d__CCObject__autorelease                                 ; +0xaf, 0x10014495f\njmp     short loc_100144971                                            ; +0xb4, 0x100144964\nmov     rax, [rbx]                                                     ; +0xb6, 0x100144966\nmov     rdi, rbx                                                       ; +0xb9, 0x100144969\ncall    qword ptr [rax+10h]                                            ; +0xbc, 0x10014496c\nxor     ebx, ebx                                                       ; +0xbf, 0x10014496f\nmov     rax, [r14]                                                     ; +0xc1, 0x100144971\nmov     rdi, r14                                                       ; +0xc4, 0x100144974\nmov     rsi, rbx                                                       ; +0xc7, 0x100144977\ncall    qword ptr [rax+1C8h]                                           ; +0xca, 0x10014497a\nmov     dword ptr [r14+1Ch], 5                                         ; +0xd0, 0x100144980\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xd8, 0x100144988\nmov     r15, rax                                                       ; +0xdd, 0x10014498d\nmovss   xmm0, cs:dword_100A03744                                       ; +0xe0, 0x100144990\nmov     rdi, r14                                                       ; +0xe8, 0x100144998\ncall    cocos2d__CCTransitionFade__create_1                            ; +0xeb, 0x10014499b\nmov     rdi, r15                                                       ; +0xf0, 0x1001449a0\nmov     rsi, rax                                                       ; +0xf3, 0x1001449a3\ncall    cocos2d__CCDirector__replaceScene                              ; +0xf6, 0x1001449a6\nmov     rax, rbx                                                       ; +0xfb, 0x1001449ab\npop     rbx                                                            ; +0xfe, 0x1001449ae\npop     r12                                                            ; +0xff, 0x1001449af\npop     r14                                                            ; +0x101, 0x1001449b1\npop     r15                                                            ; +0x103, 0x1001449b3\npop     rbp                                                            ; +0x105, 0x1001449b5\nretn                                                                   ; +0x106, 0x1001449b6", "xrefs": ["EditorPauseLayer::playStep3 @ 0x10027f3bf", "PauseLayer::goEdit @ 0x1003c30f3", "EndLevelLayer::goEdit @ 0x1004bc19b"], "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"}