//
// EndLevelLayer::goEdit from 0x5340a4 to 0x534112 (110 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:06 +0000
//
cocos2d::CCObject *__fastcall EndLevelLayer::goEdit(cocos2d::CCNode **this)
{
cocos2d::CCDirector *v2; // r0
int v3; // r0
cocos2d::CCTouchDispatcher *v4; // r0
int v5; // r5
bool v6; // r2
cocos2d::CCObject *result; // r0
cocos2d::CCObject *v8; // r7
(*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*this + 165))(this, 0);
cocos2d::CCNode::stopAllActions(*(this + 120));
cocos2d::CCNode::unscheduleAllSelectors(*(this + 120));
v2 = (cocos2d::CCDirector *)GJBaseGameLayer::resetAudio(*(this + 120));
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)this);
v5 = (int)*(this + 120);
result = (cocos2d::CCObject *)GJGameLoadingLayer::transitionToLoadingLayer(
*(GJGameLoadingLayer **)(v5 + 1408),
(GJGameLevel *)((char *)&dword_0 + 1),
v6);
v8 = result;
if ( *(cocos2d::CCObject **)(v5 + 11572) != result )
{
if ( result )
cocos2d::CCObject::retain(result);
result = *(cocos2d::CCObject **)(v5 + 11572);
if ( result )
result = (cocos2d::CCObject *)cocos2d::CCObject::release(result);
*(_DWORD *)(v5 + 11572) = v8;
}
*(this + 120) = nullptr;
return result;
}