{"type": "func", "start": 5371104800, "end": 5371105283, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x140248e20 to 0x140249003 (483 bytes)\n// \n// 4 xrefs:\n// > EditorPauseLayer::playStep3 @ 0x1400de0db\n// > EndLevelLayer::goEdit @ 0x14013537a\n// > PauseLayer::goEdit @ 0x14037e976\n// > <???> @ 0x1406ce7d8\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\n// Hidden C++ exception states: #wind=1\nGJGameLoadingLayer *GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)\n{\n  struct cocos2d::CCScene *v4; // r14\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  GJGameLoadingLayer *v7; // rsi\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  struct cocos2d::CCLabelBMFont *v10; // rdi\n  float v11; // xmm0_4\n  cocos2d::CCLabelBMFont_vtbl *v12; // rbx\n  __int64 v13; // rax\n  float v14; // xmm0_4\n  cocos2d::CCLabelBMFont_vtbl *v15; // rbx\n  const cocos2d::CCPoint *v16; // rax\n  struct cocos2d::CCTransitionFade *v17; // rbx\n  __int64 v18; // rcx\n  cocos2d::CCDirector *v19; // rax\n\n  v4 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6, v5) + 224) = v4;\n  v7 = (GJGameLoadingLayer *)operator new(0x1A8u);\n  cocos2d::CCLayer::CCLayer(v7);\n  v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGameLoadingLayer_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJGameLoadingLayer::`vftable';\n  v7->m_level = nullptr;\n  v7->m_editor = 0;\n  if ( cocos2d::CCLayer::init(v7) )\n  {\n    if ( a1 )\n    {\n      v7->m_level = a1;\n      cocos2d::CCObject::retain(a1);\n    }\n    v7->m_editor = a2;\n    v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n    cocos2d::CCDirector::getWinSize(v9);\n    v10 = cocos2d::CCLabelBMFont::create(\"Loading...\", (const char *)&qword_14052A4D8);\n    ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v10->setScale_0)(v10);\n    v11 = ((float (__fastcall *)(GJGameLoadingLayer *, struct cocos2d::CCLabelBMFont *, __int64))v7->addChild_0)(\n            v7,\n            v10,\n            1);\n    v12 = v10->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(v11, 1.0);\n    v14 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64))v12->setAnchorPoint)(v10, v13);\n    v15 = v10->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(v14, *(float *)&v7 - 20.0);\n    v15->setPosition_0(v10, v16);\n    cocos2d::CCObject::autorelease(v7);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJGameLoadingLayer *, __int64))v7->~GJGameLoadingLayer)(v7, 1);\n    v7 = nullptr;\n  }\n  v4->addChild_1(v4, v7);\n  v4->m_eObjType = PlayLayerObjectType;\n  v17 = cocos2d::CCTransitionFade::create(0.1, v4);\n  v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18);\n  cocos2d::CCDirector::replaceScene(v19, v17);\n  return v7;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x140248e20 to 0x140249003 (483 bytes)\n; \n; 4 xrefs:\n; > EditorPauseLayer::playStep3 @ 0x1400de0db\n; > EndLevelLayer::goEdit @ 0x14013537a\n; > PauseLayer::goEdit @ 0x14037e976\n; > <???> @ 0x1406ce7d8\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, 0x140248e20\npush    rsi                                                            ; +0x5, 0x140248e25\npush    rdi                                                            ; +0x6, 0x140248e26\npush    r14                                                            ; +0x7, 0x140248e27\nsub     rsp, 30h                                                       ; +0x9, 0x140248e29\nmovzx   edi, dl                                                        ; +0xd, 0x140248e2d\nmov     rbx, rcx                                                       ; +0x10, 0x140248e30\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x13, 0x140248e33\nmov     r14, rax                                                       ; +0x19, 0x140248e39\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1c, 0x140248e3c\nmov     [rax+0E0h], r14                                                ; +0x22, 0x140248e42\nmov     ecx, 1A8h; Size                                                ; +0x29, 0x140248e49\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x140248e4e\nmov     rsi, rax                                                       ; +0x33, 0x140248e53\nmov     [rsp+48h+arg_10], rax                                          ; +0x36, 0x140248e56\nmov     rcx, rax                                                       ; +0x3b, 0x140248e5b\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3e, 0x140248e5e\nlea     rax, ??_7GJGameLoadingLayer@@6B@; const GJGameLoadingLayer::`vftable' ; +0x44, 0x140248e64\nmov     [rsi], rax                                                     ; +0x4b, 0x140248e6b\nlea     rax, ??_7GJGameLoadingLayer@@6B@_0; const GJGameLoadingLayer::`vftable' ; +0x4e, 0x140248e6e\nmov     [rsi+140h], rax                                                ; +0x55, 0x140248e75\nlea     rax, ??_7GJGameLoadingLayer@@6B@_1; const GJGameLoadingLayer::`vftable' ; +0x5c, 0x140248e7c\nmov     [rsi+148h], rax                                                ; +0x63, 0x140248e83\nlea     rax, ??_7GJGameLoadingLayer@@6B@_2; const GJGameLoadingLayer::`vftable' ; +0x6a, 0x140248e8a\nmov     [rsi+150h], rax                                                ; +0x71, 0x140248e91\nlea     rax, ??_7GJGameLoadingLayer@@6B@_3; const GJGameLoadingLayer::`vftable' ; +0x78, 0x140248e98\nmov     [rsi+158h], rax                                                ; +0x7f, 0x140248e9f\nlea     rax, ??_7GJGameLoadingLayer@@6B@_4; const GJGameLoadingLayer::`vftable' ; +0x86, 0x140248ea6\nmov     [rsi+160h], rax                                                ; +0x8d, 0x140248ead\nmov     qword ptr [rsi+198h], 0                                        ; +0x94, 0x140248eb4\nmov     byte ptr [rsi+1A0h], 0                                         ; +0x9f, 0x140248ebf\nmov     rcx, rsi                                                       ; +0xa6, 0x140248ec6\ncall    cs:__imp_?init@CCLayer@cocos2d@@UEAA_NXZ; cocos2d::CCLayer::init(void) ; +0xa9, 0x140248ec9\ntest    al, al                                                         ; +0xaf, 0x140248ecf\njz      loc_140248FA4                                                  ; +0xb1, 0x140248ed1\ntest    rbx, rbx                                                       ; +0xb7, 0x140248ed7\njz      short loc_140248EEC                                            ; +0xba, 0x140248eda\nmov     [rsi+198h], rbx                                                ; +0xbc, 0x140248edc\nmov     rcx, rbx                                                       ; +0xc3, 0x140248ee3\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xc6, 0x140248ee6\nmov     [rsi+1A0h], dil                                                ; +0xcc, 0x140248eec\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xd3, 0x140248ef3\nmov     rcx, rax                                                       ; +0xd9, 0x140248ef9\nlea     rdx, [rsp+48h+arg_10]                                          ; +0xdc, 0x140248efc\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xe1, 0x140248f01\nlea     rdx, qword_14052A4D8                                           ; +0xe7, 0x140248f07\nlea     rcx, aLoading; \"Loading...\"                                    ; +0xee, 0x140248f0e\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xf5, 0x140248f15\nmov     rdi, rax                                                       ; +0xfb, 0x140248f1b\nmov     rdx, [rax]                                                     ; +0xfe, 0x140248f1e\nmovss   xmm1, cs:dword_140622B74                                       ; +0x101, 0x140248f21\nmov     rcx, rax                                                       ; +0x109, 0x140248f29\ncall    qword ptr [rdx+0A0h]                                           ; +0x10c, 0x140248f2c\nmov     r9, [rsi]                                                      ; +0x112, 0x140248f32\nmov     r8d, 1                                                         ; +0x115, 0x140248f35\nmov     rdx, rdi                                                       ; +0x11b, 0x140248f3b\nmov     rcx, rsi                                                       ; +0x11e, 0x140248f3e\ncall    qword ptr [r9+1B8h]                                            ; +0x121, 0x140248f41\nmov     rbx, [rdi]                                                     ; +0x128, 0x140248f48\nxorps   xmm2, xmm2                                                     ; +0x12b, 0x140248f4b\nmovss   xmm1, cs:flt_140622C24                                         ; +0x12e, 0x140248f4e\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x136, 0x140248f56\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x13b, 0x140248f5b\nmov     rdx, rax                                                       ; +0x141, 0x140248f61\nmov     rcx, rdi                                                       ; +0x144, 0x140248f64\ncall    qword ptr [rbx+110h]                                           ; +0x147, 0x140248f67\nmov     rbx, [rdi]                                                     ; +0x14d, 0x140248f6d\nmovss   xmm1, dword ptr [rsp+48h+arg_10]                               ; +0x150, 0x140248f70\nmovss   xmm2, cs:dword_140623120                                       ; +0x156, 0x140248f76\nsubss   xmm1, xmm2                                                     ; +0x15e, 0x140248f7e\nlea     rcx, [rsp+48h+var_28]                                          ; +0x162, 0x140248f82\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x167, 0x140248f87\nmov     rdx, rax                                                       ; +0x16d, 0x140248f8d\nmov     rcx, rdi                                                       ; +0x170, 0x140248f90\ncall    qword ptr [rbx+0B8h]                                           ; +0x173, 0x140248f93\nmov     rcx, rsi                                                       ; +0x179, 0x140248f99\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x17c, 0x140248f9c\njmp     short loc_140248FB4                                            ; +0x182, 0x140248fa2\nmov     rax, [rsi]                                                     ; +0x184, 0x140248fa4\nmov     edx, 1                                                         ; +0x187, 0x140248fa7\nmov     rcx, rsi                                                       ; +0x18c, 0x140248fac\ncall    qword ptr [rax+8]                                              ; +0x18f, 0x140248faf\nxor     esi, esi                                                       ; +0x192, 0x140248fb2\nmov     r8, [r14]                                                      ; +0x194, 0x140248fb4\nmov     rdx, rsi                                                       ; +0x197, 0x140248fb7\nmov     rcx, r14                                                       ; +0x19a, 0x140248fba\ncall    qword ptr [r8+1C0h]                                            ; +0x19d, 0x140248fbd\nmov     dword ptr [r14+1Ch], 5                                         ; +0x1a4, 0x140248fc4\nmov     rdx, r14                                                       ; +0x1ac, 0x140248fcc\nmovss   xmm0, cs:dword_140622A10                                       ; +0x1af, 0x140248fcf\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x1b7, 0x140248fd7\nmov     rbx, rax                                                       ; +0x1bd, 0x140248fdd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1c0, 0x140248fe0\nmov     rcx, rax                                                       ; +0x1c6, 0x140248fe6\nmov     rdx, rbx                                                       ; +0x1c9, 0x140248fe9\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x1cc, 0x140248fec\nmov     rax, rsi                                                       ; +0x1d2, 0x140248ff2\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x1d5, 0x140248ff5\nadd     rsp, 30h                                                       ; +0x1da, 0x140248ffa\npop     r14                                                            ; +0x1de, 0x140248ffe\npop     rdi                                                            ; +0x1e0, 0x140249000\npop     rsi                                                            ; +0x1e1, 0x140249001\nretn                                                                   ; +0x1e2, 0x140249002", "xrefs": ["EditorPauseLayer::playStep3 @ 0x1400de0db", "EndLevelLayer::goEdit @ 0x14013537a", "PauseLayer::goEdit @ 0x14037e976", "<???> @ 0x1406ce7d8"], "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"}