{"type": "func", "start": 5372195088, "end": 5372195580, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x140353110 to 0x1403532fc (492 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::playStep3 @ 0x1401827ab\n// > EndLevelLayer::goEdit @ 0x1402066ad\n// > PauseLayer::goEdit @ 0x1404db4d9\n// > <???> @ 0x14092042c\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCLayer *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(\n        cocos2d::CCObject *a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4)\n{\n  char v4; // di\n  struct cocos2d::CCScene *v6; // r14\n  __int64 v7; // rcx\n  cocos2d::CCLayer *v8; // rsi\n  __int64 v9; // rcx\n  __int64 v10; // rax\n  struct cocos2d::CCLabelBMFont *v11; // rdi\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v14; // rbx\n  __int64 v15; // rax\n  struct cocos2d::CCScene *v16; // rbx\n  __int64 v17; // rcx\n  cocos2d::CCDirector *v18; // rax\n  cocos2d::CCLayer *v20; // [rsp+50h] [rbp+18h] BYREF\n  char v21; // [rsp+58h] [rbp+20h] BYREF\n\n  v4 = a2;\n  v6 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1, a2, a3, a4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v7) + 232) = v6;\n  v8 = (cocos2d::CCLayer *)operator new(0x1A8u);\n  v20 = v8;\n  cocos2d::CCLayer::CCLayer(v8);\n  *(_QWORD *)v8 = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 40) = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 41) = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 42) = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 43) = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 44) = &GJGameLoadingLayer::`vftable';\n  *((_QWORD *)v8 + 51) = 0;\n  *((_BYTE *)v8 + 416) = 0;\n  if ( cocos2d::CCLayer::init(v8) )\n  {\n    if ( a1 )\n    {\n      *((_QWORD *)v8 + 51) = a1;\n      cocos2d::CCObject::retain(a1);\n    }\n    *((_BYTE *)v8 + 416) = v4;\n    v10 = cocos2d::CCDirector::sharedDirector(v9);\n    cocos2d::CCDirector::getWinSize(v10, &v20);\n    v11 = cocos2d::CCLabelBMFont::create(\"Loading...\", (const char *)&qword_140704F78);\n    (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v11 + 160LL))(v11);\n    (*(void (__fastcall **)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v8 + 456LL))(\n      v8,\n      v11,\n      1);\n    v12 = *(_QWORD *)v11;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 1.0, 0.0);\n    (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v12 + 288))(v11, v13);\n    v14 = *(_QWORD *)v11;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, *(float *)&v20 - 20.0, 20.0);\n    (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v14 + 184))(v11, v15);\n    cocos2d::CCObject::autorelease(v8);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v8 + 8LL))(v8, 1);\n    v8 = nullptr;\n  }\n  (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCLayer *))(*(_QWORD *)v6 + 464LL))(v6, v8);\n  *((_DWORD *)v6 + 7) = 5;\n  v16 = cocos2d::CCTransitionFade::create(0.1, v6);\n  v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17);\n  cocos2d::CCDirector::replaceScene(v18, v16);\n  return v8;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x140353110 to 0x1403532fc (492 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::playStep3 @ 0x1401827ab\n; > EndLevelLayer::goEdit @ 0x1402066ad\n; > PauseLayer::goEdit @ 0x1404db4d9\n; > <???> @ 0x14092042c\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, 0x140353110\npush    rsi                                                            ; +0x5, 0x140353115\npush    rdi                                                            ; +0x6, 0x140353116\npush    r14                                                            ; +0x7, 0x140353117\nsub     rsp, 20h                                                       ; +0x9, 0x140353119\nmovzx   edi, dl                                                        ; +0xd, 0x14035311d\nmov     rbx, rcx                                                       ; +0x10, 0x140353120\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x13, 0x140353123\nmov     r14, rax                                                       ; +0x19, 0x140353129\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1c, 0x14035312c\nmov     [rax+0E8h], r14                                                ; +0x22, 0x140353132\nmov     ecx, 1A8h; Size                                                ; +0x29, 0x140353139\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x14035313e\nmov     rsi, rax                                                       ; +0x33, 0x140353143\nmov     [rsp+38h+arg_10], rax                                          ; +0x36, 0x140353146\nmov     rcx, rax                                                       ; +0x3b, 0x14035314b\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3e, 0x14035314e\nlea     rax, ??_7GJGameLoadingLayer@@6B@; const GJGameLoadingLayer::`vftable' ; +0x44, 0x140353154\nmov     [rsi], rax                                                     ; +0x4b, 0x14035315b\nlea     rax, ??_7GJGameLoadingLayer@@6B@_0; const GJGameLoadingLayer::`vftable' ; +0x4e, 0x14035315e\nmov     [rsi+140h], rax                                                ; +0x55, 0x140353165\nlea     rax, ??_7GJGameLoadingLayer@@6B@_1; const GJGameLoadingLayer::`vftable' ; +0x5c, 0x14035316c\nmov     [rsi+148h], rax                                                ; +0x63, 0x140353173\nlea     rax, ??_7GJGameLoadingLayer@@6B@_2; const GJGameLoadingLayer::`vftable' ; +0x6a, 0x14035317a\nmov     [rsi+150h], rax                                                ; +0x71, 0x140353181\nlea     rax, ??_7GJGameLoadingLayer@@6B@_3; const GJGameLoadingLayer::`vftable' ; +0x78, 0x140353188\nmov     [rsi+158h], rax                                                ; +0x7f, 0x14035318f\nlea     rax, ??_7GJGameLoadingLayer@@6B@_4; const GJGameLoadingLayer::`vftable' ; +0x86, 0x140353196\nmov     [rsi+160h], rax                                                ; +0x8d, 0x14035319d\nmov     qword ptr [rsi+198h], 0                                        ; +0x94, 0x1403531a4\nmov     byte ptr [rsi+1A0h], 0                                         ; +0x9f, 0x1403531af\nmov     rcx, rsi                                                       ; +0xa6, 0x1403531b6\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0xa9, 0x1403531b9\ntest    al, al                                                         ; +0xaf, 0x1403531bf\njz      loc_14035329A                                                  ; +0xb1, 0x1403531c1\ntest    rbx, rbx                                                       ; +0xb7, 0x1403531c7\njz      short loc_1403531DC                                            ; +0xba, 0x1403531ca\nmov     [rsi+198h], rbx                                                ; +0xbc, 0x1403531cc\nmov     rcx, rbx                                                       ; +0xc3, 0x1403531d3\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xc6, 0x1403531d6\nmov     [rsi+1A0h], dil                                                ; +0xcc, 0x1403531dc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd3, 0x1403531e3\nmov     rcx, rax                                                       ; +0xd9, 0x1403531e9\nlea     rdx, [rsp+38h+arg_10]                                          ; +0xdc, 0x1403531ec\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xe1, 0x1403531f1\nlea     rdx, qword_140704F78                                           ; +0xe7, 0x1403531f7\nlea     rcx, aLoading; \"Loading...\"                                    ; +0xee, 0x1403531fe\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xf5, 0x140353205\nmov     rdi, rax                                                       ; +0xfb, 0x14035320b\nmov     rcx, [rax]                                                     ; +0xfe, 0x14035320e\nmov     rdx, [rcx+0A0h]                                                ; +0x101, 0x140353211\nmovss   xmm1, cs:dword_140834FAC                                       ; +0x108, 0x140353218\nmov     rcx, rax                                                       ; +0x110, 0x140353220\ncall    rdx                                                            ; +0x113, 0x140353223\nmov     rcx, [rsi]                                                     ; +0x115, 0x140353225\nmov     r9, [rcx+1C8h]                                                 ; +0x118, 0x140353228\nmov     r8d, 1                                                         ; +0x11f, 0x14035322f\nmov     rdx, rdi                                                       ; +0x125, 0x140353235\nmov     rcx, rsi                                                       ; +0x128, 0x140353238\ncall    r9                                                             ; +0x12b, 0x14035323b\nmov     rbx, [rdi]                                                     ; +0x12e, 0x14035323e\nxorps   xmm2, xmm2                                                     ; +0x131, 0x140353241\nmovss   xmm1, cs:flt_140835080                                         ; +0x134, 0x140353244\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x13c, 0x14035324c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x141, 0x140353251\nmov     rdx, rax                                                       ; +0x147, 0x140353257\nmov     rcx, rdi                                                       ; +0x14a, 0x14035325a\ncall    qword ptr [rbx+120h]                                           ; +0x14d, 0x14035325d\nmov     rbx, [rdi]                                                     ; +0x153, 0x140353263\nmovss   xmm1, dword ptr [rsp+38h+arg_10]                               ; +0x156, 0x140353266\nmovss   xmm2, cs:dword_1408355B4                                       ; +0x15c, 0x14035326c\nsubss   xmm1, xmm2                                                     ; +0x164, 0x140353274\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x168, 0x140353278\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x16d, 0x14035327d\nmov     rdx, rax                                                       ; +0x173, 0x140353283\nmov     rcx, rdi                                                       ; +0x176, 0x140353286\ncall    qword ptr [rbx+0B8h]                                           ; +0x179, 0x140353289\nmov     rcx, rsi                                                       ; +0x17f, 0x14035328f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x182, 0x140353292\njmp     short loc_1403532AA                                            ; +0x188, 0x140353298\nmov     rax, [rsi]                                                     ; +0x18a, 0x14035329a\nmov     edx, 1                                                         ; +0x18d, 0x14035329d\nmov     rcx, rsi                                                       ; +0x192, 0x1403532a2\ncall    qword ptr [rax+8]                                              ; +0x195, 0x1403532a5\nxor     esi, esi                                                       ; +0x198, 0x1403532a8\nmov     rcx, [r14]                                                     ; +0x19a, 0x1403532aa\nmov     r8, [rcx+1D0h]                                                 ; +0x19d, 0x1403532ad\nmov     rdx, rsi                                                       ; +0x1a4, 0x1403532b4\nmov     rcx, r14                                                       ; +0x1a7, 0x1403532b7\ncall    r8                                                             ; +0x1aa, 0x1403532ba\nmov     dword ptr [r14+1Ch], 5                                         ; +0x1ad, 0x1403532bd\nmov     rdx, r14                                                       ; +0x1b5, 0x1403532c5\nmovss   xmm0, cs:dword_140834E00                                       ; +0x1b8, 0x1403532c8\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1c0, 0x1403532d0\nmov     rbx, rax                                                       ; +0x1c6, 0x1403532d6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c9, 0x1403532d9\nmov     rcx, rax                                                       ; +0x1cf, 0x1403532df\nmov     rdx, rbx                                                       ; +0x1d2, 0x1403532e2\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x1d5, 0x1403532e5\nmov     rax, rsi                                                       ; +0x1db, 0x1403532eb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x1de, 0x1403532ee\nadd     rsp, 20h                                                       ; +0x1e3, 0x1403532f3\npop     r14                                                            ; +0x1e7, 0x1403532f7\npop     rdi                                                            ; +0x1e9, 0x1403532f9\npop     rsi                                                            ; +0x1ea, 0x1403532fa\nretn                                                                   ; +0x1eb, 0x1403532fb", "xrefs": ["EditorPauseLayer::playStep3 @ 0x1401827ab", "EndLevelLayer::goEdit @ 0x1402066ad", "PauseLayer::goEdit @ 0x1404db4d9", "<???> @ 0x14092042c"], "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"}