{"type": "func", "start": 4299960560, "end": 4299960746, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x1004c30f0 to 0x1004c31aa (186 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::onEdit @ 0x1004c20af\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 __fastcall EndLevelLayer::goEdit(EndLevelLayer *a1)\n{\n  cocos2d::CCDirector *v2; // rax\n  cocos2d::CCTouchDispatcher *v3; // rax\n  PlayLayer *m_playLayer; // r15\n  GJGameLoadingLayer *v5; // rax\n  cocos2d::CCObject *m_loadingLayer; // rdi\n  GJGameLoadingLayer *v7; // r14\n\n  ((void (__fastcall *)(EndLevelLayer *, _QWORD))a1->exitLayer)(a1, 0);\n  cocos2d::CCNode::stopAllActions(a1->m_playLayer);\n  cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);\n  GJBaseGameLayer::resetAudio(a1->m_playLayer);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  m_playLayer = a1->m_playLayer;\n  v5 = GJGameLoadingLayer::transitionToLoadingLayer(m_playLayer->m_level, 1);\n  m_loadingLayer = m_playLayer->m_loadingLayer;\n  if ( m_loadingLayer != v5 )\n  {\n    v7 = v5;\n    if ( v5 )\n    {\n      cocos2d::CCObject::retain(v5);\n      m_loadingLayer = m_playLayer->m_loadingLayer;\n    }\n    if ( m_loadingLayer )\n      cocos2d::CCObject::release(m_loadingLayer);\n    m_playLayer->m_loadingLayer = v7;\n  }\n  a1->m_playLayer = nullptr;\n}", "assembly": "; \n; EndLevelLayer::goEdit from 0x1004c30f0 to 0x1004c31aa (186 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::onEdit @ 0x1004c20af\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\npush    rbp                                                            ; +0x0, 0x1004c30f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004c30f1\npush    r15                                                            ; +0x4, 0x1004c30f4\npush    r14                                                            ; +0x6, 0x1004c30f6\npush    rbx                                                            ; +0x8, 0x1004c30f8\npush    rax                                                            ; +0x9, 0x1004c30f9\nmov     rbx, rdi                                                       ; +0xa, 0x1004c30fa\nmov     rax, [rdi]                                                     ; +0xd, 0x1004c30fd\nxor     esi, esi                                                       ; +0x10, 0x1004c3100\ncall    qword ptr [rax+518h]                                           ; +0x12, 0x1004c3102\nmov     rdi, [rbx+260h]                                                ; +0x18, 0x1004c3108\ncall    cocos2d__CCNode__stopAllActions                                ; +0x1f, 0x1004c310f\nmov     rdi, [rbx+260h]                                                ; +0x24, 0x1004c3114\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0x2b, 0x1004c311b\nmov     rdi, [rbx+260h]                                                ; +0x30, 0x1004c3120\ncall    GJBaseGameLayer__resetAudio                                    ; +0x37, 0x1004c3127\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x3c, 0x1004c312c\nmov     rcx, [rax]                                                     ; +0x41, 0x1004c3131\nmov     rdi, rax                                                       ; +0x44, 0x1004c3134\ncall    qword ptr [rcx+0A0h]                                           ; +0x47, 0x1004c3137\nmov     rdi, rax                                                       ; +0x4d, 0x1004c313d\nmov     rsi, rbx                                                       ; +0x50, 0x1004c3140\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x53, 0x1004c3143\nmov     r15, [rbx+260h]                                                ; +0x58, 0x1004c3148\nmov     rdi, [r15+790h]                                                ; +0x5f, 0x1004c314f\nmov     esi, 1                                                         ; +0x66, 0x1004c3156\ncall    GJGameLoadingLayer__transitionToLoadingLayer                   ; +0x6b, 0x1004c315b\nmov     rdi, [r15+3538h]                                               ; +0x70, 0x1004c3160\ncmp     rdi, rax                                                       ; +0x77, 0x1004c3167\njz      short loc_1004C3194                                            ; +0x7a, 0x1004c316a\nmov     r14, rax                                                       ; +0x7c, 0x1004c316c\ntest    rax, rax                                                       ; +0x7f, 0x1004c316f\njz      short loc_1004C3183                                            ; +0x82, 0x1004c3172\nmov     rdi, r14                                                       ; +0x84, 0x1004c3174\ncall    cocos2d__CCObject__retain                                      ; +0x87, 0x1004c3177\nmov     rdi, [r15+3538h]                                               ; +0x8c, 0x1004c317c\ntest    rdi, rdi                                                       ; +0x93, 0x1004c3183\njz      short loc_1004C318D                                            ; +0x96, 0x1004c3186\ncall    cocos2d__CCObject__release                                     ; +0x98, 0x1004c3188\nmov     [r15+3538h], r14                                               ; +0x9d, 0x1004c318d\nmov     qword ptr [rbx+260h], 0                                        ; +0xa4, 0x1004c3194\nadd     rsp, 8                                                         ; +0xaf, 0x1004c319f\npop     rbx                                                            ; +0xb3, 0x1004c31a3\npop     r14                                                            ; +0xb4, 0x1004c31a4\npop     r15                                                            ; +0xb6, 0x1004c31a6\npop     rbp                                                            ; +0xb8, 0x1004c31a8\nretn                                                                   ; +0xb9, 0x1004c31a9", "xrefs": ["EndLevelLayer::onEdit @ 0x1004c20af"], "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"}