{"type": "func", "start": 5370832448, "end": 5370832647, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x140206640 to 0x140206707 (199 bytes)\n// \n// 2 xrefs:\n// > EndLevelLayer::onEdit @ 0x1402065fb\n// > <???> @ 0x14091b194\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:15 +0000\n// \n\nvoid __fastcall EndLevelLayer::goEdit(cocos2d::CCNode **a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  __int64 v5; // rdx\n  cocos2d::CCObject *v6; // rax\n  cocos2d::CCNode *v7; // rsi\n  cocos2d::CCObject *v8; // rbx\n  cocos2d::CCObject *v9; // rcx\n\n  (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*a1 + 134))(a1, 0);\n  cocos2d::CCNode::stopAllActions(a1[76]);\n  cocos2d::CCNode::unscheduleAllSelectors(a1[76]);\n  GJBaseGameLayer::resetAudio();\n  v3 = cocos2d::CCDirector::sharedDirector(v2);\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (struct cocos2d::CCObject *)a1);\n  LOBYTE(v5) = 1;\n  v6 = (cocos2d::CCObject *)GJGameLoadingLayer::transitionToLoadingLayer(*((_QWORD *)a1[76] + 271), v5);\n  v7 = a1[76];\n  v8 = v6;\n  if ( *((cocos2d::CCObject **)v7 + 1805) != v6 )\n  {\n    if ( v6 )\n      cocos2d::CCObject::retain(v6);\n    v9 = *((cocos2d::CCObject **)v7 + 1805);\n    if ( v9 )\n      cocos2d::CCObject::release(v9);\n    *((_QWORD *)v7 + 1805) = v8;\n  }\n  a1[76] = nullptr;\n}", "assembly": "; \n; EndLevelLayer::goEdit from 0x140206640 to 0x140206707 (199 bytes)\n; \n; 2 xrefs:\n; > EndLevelLayer::onEdit @ 0x1402065fb\n; > <???> @ 0x14091b194\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:15 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140206640\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140206645\npush    rdi                                                            ; +0xa, 0x14020664a\nsub     rsp, 20h                                                       ; +0xb, 0x14020664b\nmov     rax, [rcx]                                                     ; +0xf, 0x14020664f\nxor     edx, edx                                                       ; +0x12, 0x140206652\nmov     rdi, rcx                                                       ; +0x14, 0x140206654\ncall    qword ptr [rax+430h]                                           ; +0x17, 0x140206657\nmov     rcx, [rdi+260h]                                                ; +0x1d, 0x14020665d\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x24, 0x140206664\nmov     rcx, [rdi+260h]                                                ; +0x2a, 0x14020666a\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x31, 0x140206671\ncall    GJBaseGameLayer__resetAudio                                    ; +0x37, 0x140206677\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x14020667c\nmov     rcx, [rax]                                                     ; +0x42, 0x140206682\nmov     rdx, [rcx+90h]                                                 ; +0x45, 0x140206685\nmov     rcx, rax                                                       ; +0x4c, 0x14020668c\ncall    rdx                                                            ; +0x4f, 0x14020668f\nmov     rcx, rax                                                       ; +0x51, 0x140206691\nmov     rdx, rdi                                                       ; +0x54, 0x140206694\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x57, 0x140206697\nmov     rcx, [rdi+260h]                                                ; +0x5d, 0x14020669d\nmov     dl, 1                                                          ; +0x64, 0x1402066a4\nmov     rcx, [rcx+878h]                                                ; +0x66, 0x1402066a6\ncall    GJGameLoadingLayer__transitionToLoadingLayer                   ; +0x6d, 0x1402066ad\nmov     rsi, [rdi+260h]                                                ; +0x72, 0x1402066b2\nmov     rbx, rax                                                       ; +0x79, 0x1402066b9\ncmp     [rsi+3868h], rax                                               ; +0x7c, 0x1402066bc\njz      short loc_1402066EC                                            ; +0x83, 0x1402066c3\ntest    rax, rax                                                       ; +0x85, 0x1402066c5\njz      short loc_1402066D3                                            ; +0x88, 0x1402066c8\nmov     rcx, rax                                                       ; +0x8a, 0x1402066ca\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x8d, 0x1402066cd\nmov     rcx, [rsi+3868h]                                               ; +0x93, 0x1402066d3\ntest    rcx, rcx                                                       ; +0x9a, 0x1402066da\njz      short loc_1402066E5                                            ; +0x9d, 0x1402066dd\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x9f, 0x1402066df\nmov     [rsi+3868h], rbx                                               ; +0xa5, 0x1402066e5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xac, 0x1402066ec\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb1, 0x1402066f1\nmov     qword ptr [rdi+260h], 0                                        ; +0xb6, 0x1402066f6\nadd     rsp, 20h                                                       ; +0xc1, 0x140206701\npop     rdi                                                            ; +0xc5, 0x140206705\nretn                                                                   ; +0xc6, 0x140206706", "xrefs": ["EndLevelLayer::onEdit @ 0x1402065fb", "<???> @ 0x14091b194"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}