//
// EndLevelLayer::goEdit from 0x1004bc130 to 0x1004bc1ea (186 bytes)
//
// 1 xrefs:
// > EndLevelLayer::onEdit @ 0x1004bb08f
//
// 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:31:03 +0000
//
void __fastcall EndLevelLayer::goEdit(__int64 *a1, double a2)
{
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // r15
_QWORD *v6; // rax
_DWORD *v7; // rdi
_QWORD *v8; // r14
(*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1320))(a1, 0);
cocos2d::CCNode::stopAllActions(a1[76]);
cocos2d::CCNode::unscheduleAllSelectors(a1[76]);
GJBaseGameLayer::resetAudio(a2);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);
v5 = a1[76];
v6 = GJGameLoadingLayer::transitionToLoadingLayer(*(_QWORD *)(v5 + 1936), 1);
v7 = *(_DWORD **)(v5 + 13808);
if ( v7 != (_DWORD *)v6 )
{
v8 = v6;
if ( v6 )
{
cocos2d::CCObject::retain((__int64)v6);
v7 = *(_DWORD **)(v5 + 13808);
}
if ( v7 )
cocos2d::CCObject::release(v7);
*(_QWORD *)(v5 + 13808) = v8;
}
a1[76] = 0;
}