{"type": "func", "start": 5369618576, "end": 5369618725, "name": "EditorPauseLayer::playStep3", "pseudocode": "// \n// EditorPauseLayer::playStep3 from 0x1400de090 to 0x1400de125 (149 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::playStep2 @ 0x1400de043\n// > <???> @ 0x1406c8a6c\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\nvoid EditorPauseLayer::playStep3(EditorPauseLayer *a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  GJGameLoadingLayer *v4; // rax\n  LevelEditorLayer *m_editorLayer; // rdi\n  GJGameLoadingLayer *v6; // rbx\n  cocos2d::CCObject *m_loadingLayer; // rcx\n\n  if ( a1->m_forcePrioRegistered )\n  {\n    a1->m_forcePrioRegistered = 0;\n    v2 = cocos2d::CCDirector::sharedDirector(a1);\n    v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  }\n  v4 = GJGameLoadingLayer::transitionToLoadingLayer(a1->m_editorLayer->m_level, 0);\n  m_editorLayer = a1->m_editorLayer;\n  v6 = v4;\n  if ( m_editorLayer->m_loadingLayer != v4 )\n  {\n    if ( v4 )\n      cocos2d::CCObject::retain(v4);\n    m_loadingLayer = m_editorLayer->m_loadingLayer;\n    if ( m_loadingLayer )\n      cocos2d::CCObject::release(m_loadingLayer);\n    m_editorLayer->m_loadingLayer = v6;\n  }\n}", "assembly": "; \n; EditorPauseLayer::playStep3 from 0x1400de090 to 0x1400de125 (149 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::playStep2 @ 0x1400de043\n; > <???> @ 0x1406c8a6c\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, 0x1400de090\npush    rdi                                                            ; +0x5, 0x1400de095\nsub     rsp, 20h                                                       ; +0x6, 0x1400de096\ncmp     byte ptr [rcx+221h], 0                                         ; +0xa, 0x1400de09a\nmov     rdi, rcx                                                       ; +0x11, 0x1400de0a1\njz      short loc_1400DE0CB                                            ; +0x14, 0x1400de0a4\nmov     byte ptr [rcx+221h], 0                                         ; +0x16, 0x1400de0a6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x1400de0ad\nmov     rcx, rax                                                       ; +0x23, 0x1400de0b3\nmov     rdx, [rax]                                                     ; +0x26, 0x1400de0b6\ncall    qword ptr [rdx+90h]                                            ; +0x29, 0x1400de0b9\nmov     rcx, rax                                                       ; +0x2f, 0x1400de0bf\nmov     rdx, rdi                                                       ; +0x32, 0x1400de0c2\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x35, 0x1400de0c5\nmov     rcx, [rdi+248h]                                                ; +0x3b, 0x1400de0cb\nxor     edx, edx                                                       ; +0x42, 0x1400de0d2\nmov     rcx, [rcx+878h]                                                ; +0x44, 0x1400de0d4\ncall    GJGameLoadingLayer__transitionToLoadingLayer                   ; +0x4b, 0x1400de0db\nmov     rdi, [rdi+248h]                                                ; +0x50, 0x1400de0e0\nmov     rbx, rax                                                       ; +0x57, 0x1400de0e7\ncmp     [rdi+3768h], rax                                               ; +0x5a, 0x1400de0ea\njz      short loc_1400DE11A                                            ; +0x61, 0x1400de0f1\ntest    rax, rax                                                       ; +0x63, 0x1400de0f3\njz      short loc_1400DE101                                            ; +0x66, 0x1400de0f6\nmov     rcx, rax                                                       ; +0x68, 0x1400de0f8\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6b, 0x1400de0fb\nmov     rcx, [rdi+3768h]                                               ; +0x71, 0x1400de101\ntest    rcx, rcx                                                       ; +0x78, 0x1400de108\njz      short loc_1400DE113                                            ; +0x7b, 0x1400de10b\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7d, 0x1400de10d\nmov     [rdi+3768h], rbx                                               ; +0x83, 0x1400de113\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8a, 0x1400de11a\nadd     rsp, 20h                                                       ; +0x8f, 0x1400de11f\npop     rdi                                                            ; +0x93, 0x1400de123\nretn                                                                   ; +0x94, 0x1400de124", "xrefs": ["EditorPauseLayer::playStep2 @ 0x1400de043", "<???> @ 0x1406c8a6c"], "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"}