{"type": "func", "start": 5369975568, "end": 5369975764, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x140135310 to 0x1401353d4 (196 bytes)\n// \n// 2 xrefs:\n// > EndLevelLayer::onEdit @ 0x1401352cd\n// > <???> @ 0x1406c9edc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EndLevelLayer::goEdit(EndLevelLayer *a1)\n{\n  GJBaseGameLayer *v2; // rcx\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  GJGameLoadingLayer *v6; // rax\n  PlayLayer *m_playLayer; // rsi\n  GJGameLoadingLayer *v8; // rbx\n  cocos2d::CCObject *m_loadingLayer; // rcx\n\n  a1->exitLayer(a1, nullptr);\n  cocos2d::CCNode::stopAllActions(a1->m_playLayer);\n  cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);\n  GJBaseGameLayer::resetAudio(v2);\n  v4 = cocos2d::CCDirector::sharedDirector(v3);\n  v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1);\n  v6 = GJGameLoadingLayer::transitionToLoadingLayer(a1->m_playLayer->m_level, 1);\n  m_playLayer = a1->m_playLayer;\n  v8 = v6;\n  if ( m_playLayer->m_loadingLayer != v6 )\n  {\n    if ( v6 )\n      cocos2d::CCObject::retain(v6);\n    m_loadingLayer = m_playLayer->m_loadingLayer;\n    if ( m_loadingLayer )\n      cocos2d::CCObject::release(m_loadingLayer);\n    m_playLayer->m_loadingLayer = v8;\n  }\n  a1->m_playLayer = nullptr;\n}", "assembly": "; \n; EndLevelLayer::goEdit from 0x140135310 to 0x1401353d4 (196 bytes)\n; \n; 2 xrefs:\n; > EndLevelLayer::onEdit @ 0x1401352cd\n; > <???> @ 0x1406c9edc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140135310\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140135315\npush    rdi                                                            ; +0xa, 0x14013531a\nsub     rsp, 20h                                                       ; +0xb, 0x14013531b\nmov     rax, [rcx]                                                     ; +0xf, 0x14013531f\nxor     edx, edx                                                       ; +0x12, 0x140135322\nmov     rdi, rcx                                                       ; +0x14, 0x140135324\ncall    qword ptr [rax+420h]                                           ; +0x17, 0x140135327\nmov     rcx, [rdi+260h]                                                ; +0x1d, 0x14013532d\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x24, 0x140135334\nmov     rcx, [rdi+260h]                                                ; +0x2a, 0x14013533a\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x31, 0x140135341\ncall    GJBaseGameLayer__resetAudio                                    ; +0x37, 0x140135347\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x14013534c\nmov     rcx, rax                                                       ; +0x42, 0x140135352\nmov     rdx, [rax]                                                     ; +0x45, 0x140135355\ncall    qword ptr [rdx+90h]                                            ; +0x48, 0x140135358\nmov     rcx, rax                                                       ; +0x4e, 0x14013535e\nmov     rdx, rdi                                                       ; +0x51, 0x140135361\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x54, 0x140135364\nmov     rax, [rdi+260h]                                                ; +0x5a, 0x14013536a\nmov     dl, 1                                                          ; +0x61, 0x140135371\nmov     rcx, [rax+878h]                                                ; +0x63, 0x140135373\ncall    GJGameLoadingLayer__transitionToLoadingLayer                   ; +0x6a, 0x14013537a\nmov     rsi, [rdi+260h]                                                ; +0x6f, 0x14013537f\nmov     rbx, rax                                                       ; +0x76, 0x140135386\ncmp     [rsi+3768h], rax                                               ; +0x79, 0x140135389\njz      short loc_1401353B9                                            ; +0x80, 0x140135390\ntest    rax, rax                                                       ; +0x82, 0x140135392\njz      short loc_1401353A0                                            ; +0x85, 0x140135395\nmov     rcx, rax                                                       ; +0x87, 0x140135397\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x8a, 0x14013539a\nmov     rcx, [rsi+3768h]                                               ; +0x90, 0x1401353a0\ntest    rcx, rcx                                                       ; +0x97, 0x1401353a7\njz      short loc_1401353B2                                            ; +0x9a, 0x1401353aa\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9c, 0x1401353ac\nmov     [rsi+3768h], rbx                                               ; +0xa2, 0x1401353b2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa9, 0x1401353b9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x1401353be\nmov     qword ptr [rdi+260h], 0                                        ; +0xb3, 0x1401353c3\nadd     rsp, 20h                                                       ; +0xbe, 0x1401353ce\npop     rdi                                                            ; +0xc2, 0x1401353d2\nretn                                                                   ; +0xc3, 0x1401353d3", "xrefs": ["EndLevelLayer::onEdit @ 0x1401352cd", "<???> @ 0x1406c9edc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}