//
// PauseLayer::goEdit from 0x1003c30c0 to 0x1003c3131 (113 bytes)
//
// 1 xrefs:
// > PauseLayer::onEdit @ 0x1003c3084
//
// 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 12:29:33 +0000
//
_QWORD *__fastcall PauseLayer::goEdit(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // r14
_QWORD *result; // rax
_QWORD *v4; // rdi
_QWORD *v5; // rbx
CCBlockLayer::decrementForcePrio(a1);
v1 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1936LL);
v2 = *(_QWORD *)(GameManager::sharedState() + 544);
result = GJGameLoadingLayer::transitionToLoadingLayer(v1, 1);
v4 = *(_QWORD **)(v2 + 13808);
if ( v4 != result )
{
v5 = result;
if ( result )
{
result = (_QWORD *)cocos2d::CCObject::retain(result);
v4 = *(_QWORD **)(v2 + 13808);
}
if ( v4 )
result = (_QWORD *)cocos2d::CCObject::release(v4);
*(_QWORD *)(v2 + 13808) = v5;
}
return result;
}