{"type": "func", "start": 4296430080, "end": 4296430343, "name": "GJGameLoadingLayer::transitionToLoadingLayer", "pseudocode": "// \n// GJGameLoadingLayer::transitionToLoadingLayer from 0x100165200 to 0x100165307 (263 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::playStep3 @ 0x100294dcf\n// > PauseLayer::goEdit @ 0x1003d7903\n// > EndLevelLayer::goEdit @ 0x1004c315b\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\nGJGameLoadingLayer *__fastcall GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2)\n{\n  cocos2d::CCScene *v2; // r14\n  GJGameLoadingLayer *v3; // rbx\n  cocos2d::CCDirector *v4; // r15\n  cocos2d::CCTransitionFade *v5; // rax\n\n  v2 = cocos2d::CCScene::create();\n  AppDelegate::get()->m_runningScene = v2;\n  v3 = (GJGameLoadingLayer *)operator new(0x1A8u);\n  cocos2d::CCLayer::CCLayer(v3);\n  v3->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGameLoadingLayer_vtbl *)off_1008C1B10;\n  v3->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1008C1F90;\n  v3->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1008C2000;\n  v3->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1008C2018;\n  v3->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1008C2038;\n  v3->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1008C2058;\n  v3->m_level = nullptr;\n  v3->m_editor = 0;\n  if ( GJGameLoadingLayer::init(v3, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJGameLoadingLayer *))v3->~GJGameLoadingLayer_0)(v3);\n    v3 = nullptr;\n  }\n  ((void (__fastcall *)(cocos2d::CCScene *, GJGameLoadingLayer *))v2->addChild)(v2, v3);\n  v2->m_eObjType = PlayLayerObjectType;\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = cocos2d::CCTransitionFade::create_1(0.1, v2);\n  cocos2d::CCDirector::replaceScene(v4, v5);\n  return v3;\n}", "assembly": "; \n; GJGameLoadingLayer::transitionToLoadingLayer from 0x100165200 to 0x100165307 (263 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::playStep3 @ 0x100294dcf\n; > PauseLayer::goEdit @ 0x1003d7903\n; > EndLevelLayer::goEdit @ 0x1004c315b\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, 0x100165200\nmov     rbp, rsp                                                       ; +0x1, 0x100165201\npush    r15                                                            ; +0x4, 0x100165204\npush    r14                                                            ; +0x6, 0x100165206\npush    r12                                                            ; +0x8, 0x100165208\npush    rbx                                                            ; +0xa, 0x10016520a\nmov     r12d, esi                                                      ; +0xb, 0x10016520b\nmov     r15, rdi                                                       ; +0xe, 0x10016520e\ncall    cocos2d__CCScene__create                                       ; +0x11, 0x100165211\nmov     r14, rax                                                       ; +0x16, 0x100165216\ncall    AppDelegate__get                                               ; +0x19, 0x100165219\nmov     [rax+48h], r14                                                 ; +0x1e, 0x10016521e\nmov     edi, 1A8h; __sz                                                ; +0x22, 0x100165222\ncall    __Znwm; operator new(ulong)                                    ; +0x27, 0x100165227\nmov     rbx, rax                                                       ; +0x2c, 0x10016522c\nmov     rdi, rax                                                       ; +0x2f, 0x10016522f\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x32, 0x100165232\nlea     rax, off_1008C1B10                                             ; +0x37, 0x100165237\nmov     [rbx], rax                                                     ; +0x3e, 0x10016523e\nlea     rax, off_1008C1F90                                             ; +0x41, 0x100165241\nmov     [rbx+140h], rax                                                ; +0x48, 0x100165248\nlea     rax, off_1008C2000                                             ; +0x4f, 0x10016524f\nmov     [rbx+148h], rax                                                ; +0x56, 0x100165256\nlea     rax, off_1008C2018                                             ; +0x5d, 0x10016525d\nmov     [rbx+150h], rax                                                ; +0x64, 0x100165264\nlea     rax, off_1008C2038                                             ; +0x6b, 0x10016526b\nmov     [rbx+158h], rax                                                ; +0x72, 0x100165272\nlea     rax, off_1008C2058                                             ; +0x79, 0x100165279\nmov     [rbx+160h], rax                                                ; +0x80, 0x100165280\nmov     qword ptr [rbx+198h], 0                                        ; +0x87, 0x100165287\nmov     byte ptr [rbx+1A0h], 0                                         ; +0x92, 0x100165292\nmovzx   edx, r12b                                                      ; +0x99, 0x100165299\nmov     rdi, rbx                                                       ; +0x9d, 0x10016529d\nmov     rsi, r15                                                       ; +0xa0, 0x1001652a0\ncall    GJGameLoadingLayer__init                                       ; +0xa3, 0x1001652a3\ntest    al, al                                                         ; +0xa8, 0x1001652a8\njz      short loc_1001652B6                                            ; +0xaa, 0x1001652aa\nmov     rdi, rbx                                                       ; +0xac, 0x1001652ac\ncall    cocos2d__CCObject__autorelease                                 ; +0xaf, 0x1001652af\njmp     short loc_1001652C1                                            ; +0xb4, 0x1001652b4\nmov     rax, [rbx]                                                     ; +0xb6, 0x1001652b6\nmov     rdi, rbx                                                       ; +0xb9, 0x1001652b9\ncall    qword ptr [rax+10h]                                            ; +0xbc, 0x1001652bc\nxor     ebx, ebx                                                       ; +0xbf, 0x1001652bf\nmov     rax, [r14]                                                     ; +0xc1, 0x1001652c1\nmov     rdi, r14                                                       ; +0xc4, 0x1001652c4\nmov     rsi, rbx                                                       ; +0xc7, 0x1001652c7\ncall    qword ptr [rax+1B8h]                                           ; +0xca, 0x1001652ca\nmov     dword ptr [r14+1Ch], 5                                         ; +0xd0, 0x1001652d0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xd8, 0x1001652d8\nmov     r15, rax                                                       ; +0xdd, 0x1001652dd\nmovss   xmm0, cs:dword_100815058                                       ; +0xe0, 0x1001652e0\nmov     rdi, r14                                                       ; +0xe8, 0x1001652e8\ncall    cocos2d__CCTransitionFade__create_1                            ; +0xeb, 0x1001652eb\nmov     rdi, r15                                                       ; +0xf0, 0x1001652f0\nmov     rsi, rax                                                       ; +0xf3, 0x1001652f3\ncall    cocos2d__CCDirector__replaceScene                              ; +0xf6, 0x1001652f6\nmov     rax, rbx                                                       ; +0xfb, 0x1001652fb\npop     rbx                                                            ; +0xfe, 0x1001652fe\npop     r12                                                            ; +0xff, 0x1001652ff\npop     r14                                                            ; +0x101, 0x100165301\npop     r15                                                            ; +0x103, 0x100165303\npop     rbp                                                            ; +0x105, 0x100165305\nretn                                                                   ; +0x106, 0x100165306", "xrefs": ["EditorPauseLayer::playStep3 @ 0x100294dcf", "PauseLayer::goEdit @ 0x1003d7903", "EndLevelLayer::goEdit @ 0x1004c315b"], "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"}