//
// PauseLayer::goEdit from 0x1404db450 to 0x1404db51c (204 bytes)
//
// 2 xrefs:
// > PauseLayer::onEdit @ 0x1404db401
// > ??> @ 0x1409299d8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:33:04 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall PauseLayer::goEdit(struct cocos2d::CCObject *a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v5; // rax
cocos2d::CCTouchDispatcher *v6; // rax
__int64 v7; // rdi
__int64 v8; // rdi
cocos2d::CCLayer *v9; // rax
cocos2d::CCLayer *v10; // rbx
cocos2d::CCObject *v11; // rcx
void *v12; // [rsp+30h] [rbp+8h]
if ( *((_BYTE *)a1 + 545) )
{
*((_BYTE *)a1 + 545) = 0;
v5 = cocos2d::CCDirector::sharedDirector(a1);
v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
}
v7 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v7 = qword_14090BFD0;
}
v8 = *(_QWORD *)(v7 + 560);
LOBYTE(a2) = 1;
v9 = GJGameLoadingLayer::transitionToLoadingLayer(*(cocos2d::CCObject **)(v8 + 2168), a2, a3, a4);
v10 = v9;
if ( *(cocos2d::CCLayer **)(v8 + 14440) != v9 )
{
if ( v9 )
cocos2d::CCObject::retain(v9);
v11 = *(cocos2d::CCObject **)(v8 + 14440);
if ( v11 )
cocos2d::CCObject::release(v11);
*(_QWORD *)(v8 + 14440) = v10;
}
}