//
// EditorPauseLayer::playStep3 from 0x1400de090 to 0x1400de125 (149 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::playStep2 @ 0x1400de043
// > ??> @ 0x1406c8a6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorPauseLayer::playStep3(EditorPauseLayer *a1)
{
__int64 v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
GJGameLoadingLayer *v4; // rax
LevelEditorLayer *m_editorLayer; // rdi
GJGameLoadingLayer *v6; // rbx
cocos2d::CCObject *m_loadingLayer; // rcx
if ( a1->m_forcePrioRegistered )
{
a1->m_forcePrioRegistered = 0;
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);
}
v4 = GJGameLoadingLayer::transitionToLoadingLayer(a1->m_editorLayer->m_level, 0);
m_editorLayer = a1->m_editorLayer;
v6 = v4;
if ( m_editorLayer->m_loadingLayer != v4 )
{
if ( v4 )
cocos2d::CCObject::retain(v4);
m_loadingLayer = m_editorLayer->m_loadingLayer;
if ( m_loadingLayer )
cocos2d::CCObject::release(m_loadingLayer);
m_editorLayer->m_loadingLayer = v6;
}
}