//
// EndLevelLayer::goEdit from 0x8f98ec to 0x8f9990 (164 bytes)
//
// 3 xrefs:
// > ??> @ 0xa2550
// > EndLevelLayer::onEdit @ 0x8f9820
// > ??> @ 0x1544860
//
// This function is hookable on this platform (idp: arm, 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:57:02 +0000
//
cocos2d::CCObject *__fastcall EndLevelLayer::goEdit(cocos2d::CCNode **this)
{
cocos2d::CCDirector *v2; // x0
__int64 v3; // x0
cocos2d::CCTouchDispatcher *v4; // x0
__int64 v5; // x20
bool v6; // w2
cocos2d::CCObject *result; // x0
cocos2d::CCObject *v8; // x21
cocos2d::CCObject *v9; // x1
(*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 165))(this, 0);
cocos2d::CCNode::stopAllActions(*(this + 76));
cocos2d::CCNode::unscheduleAllSelectors(*(this + 76));
v2 = (cocos2d::CCDirector *)GJBaseGameLayer::resetAudio(*(this + 76));
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)this);
v5 = (__int64)*(this + 76);
result = (cocos2d::CCObject *)GJGameLoadingLayer::transitionToLoadingLayer(
*(GJGameLoadingLayer **)(v5 + 1936),
(GJGameLevel *)((char *)&dword_0 + 1),
v6);
v8 = result;
v9 = *(cocos2d::CCObject **)(v5 + 13808);
if ( result != v9 )
{
if ( result )
{
result = (cocos2d::CCObject *)cocos2d::CCObject::retain(result);
v9 = *(cocos2d::CCObject **)(v5 + 13808);
}
if ( v9 )
result = (cocos2d::CCObject *)cocos2d::CCObject::release(v9);
*(_QWORD *)(v5 + 13808) = v8;
}
*(this + 76) = nullptr;
return result;
}