{"type": "func", "start": 5372372736, "end": 5372373220, "name": "PauseLayer::onEdit", "pseudocode": "// \n// PauseLayer::onEdit from 0x14037e700 to 0x14037e8e4 (484 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::onTryEdit @ 0x14037e6fa\n// > PauseLayer::FLAlert_Clicked @ 0x14037eb89\n// > <???> @ 0x1406d5dbc\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\n// Hidden C++ exception states: #wind=6\nvoid PauseLayer::onEdit(PauseLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  __int64 v6; // rax\n  __int64 v7; // rcx\n  __int64 v8; // rcx\n  __int64 v9; // rcx\n  GJBaseGameLayer *v10; // rcx\n  __int64 v11; // rbx\n  struct cocos2d::CCDelayTime *v12; // rax\n  struct cocos2d::CCSequence *v13; // rax\n  cocos2d::ccColor3B *v14; // r8\n  float v15; // [rsp+20h] [rbp-8h]\n  void *v16; // [rsp+38h] [rbp+10h]\n  void *v17; // [rsp+38h] [rbp+10h]\n  void *v18; // [rsp+38h] [rbp+10h]\n  void *v19; // [rsp+38h] [rbp+10h]\n  void *v20; // [rsp+38h] [rbp+10h]\n\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v16 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v16);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  v5 = *(_QWORD *)(*(_QWORD *)(v4 + 520) + 2168LL);\n  if ( *(_DWORD *)(v5 + 1108) == 2 || *(_DWORD *)(v4 + 1012) - *(_DWORD *)(v4 + 1016) > 0 )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(v5);\n    *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 112LL))(v6) + 56) = 1065353216;\n    v7 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v17 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v17);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v7 = qword_1406C2ED8;\n    }\n    cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v7 + 520), 31);\n    v8 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v18 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v18);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v8 = qword_1406C2ED8;\n    }\n    cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v8 + 520));\n    v9 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v19 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v19);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v9 = qword_1406C2ED8;\n    }\n    cocos2d::CCNode::unscheduleAllSelectors(*(cocos2d::CCNode **)(v9 + 520));\n    if ( !qword_1406C2ED8 )\n    {\n      v20 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v20);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n    GJBaseGameLayer::resetAudio(v10);\n    v11 = cocos2d::CCCallFunc::create(a1, PauseLayer::goEdit);\n    v12 = cocos2d::CCDelayTime::create(0.0);\n    v13 = cocos2d::CCSequence::create(v12, v11, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v13, v14, v2, v15);\n  }\n}", "assembly": "; \n; PauseLayer::onEdit from 0x14037e700 to 0x14037e8e4 (484 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::onTryEdit @ 0x14037e6fa\n; > PauseLayer::FLAlert_Clicked @ 0x14037eb89\n; > <???> @ 0x1406d5dbc\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, 0x14037e700\nmov     [rsp+arg_8], rdx                                               ; +0x5, 0x14037e705\npush    rdi                                                            ; +0xa, 0x14037e70a\nsub     rsp, 20h                                                       ; +0xb, 0x14037e70b\nmov     rdi, rcx                                                       ; +0xf, 0x14037e70f\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x12, 0x14037e712\ntest    rdx, rdx                                                       ; +0x19, 0x14037e719\njnz     short loc_14037E74D                                            ; +0x1c, 0x14037e71c\nmov     ecx, 668h; Size                                                ; +0x1e, 0x14037e71e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x14037e723\nmov     [rsp+28h+arg_8], rax                                           ; +0x28, 0x14037e728\nmov     rcx, rax                                                       ; +0x2d, 0x14037e72d\ncall    sub_14017AB00                                                  ; +0x30, 0x14037e730\nnop                                                                    ; +0x35, 0x14037e735\nmov     cs:qword_1406C2ED8, rax                                        ; +0x36, 0x14037e736\nmov     rdx, [rax]                                                     ; +0x3d, 0x14037e73d\nmov     rcx, rax                                                       ; +0x40, 0x14037e740\ncall    qword ptr [rdx+48h]                                            ; +0x43, 0x14037e743\nmov     rdx, cs:qword_1406C2ED8                                        ; +0x46, 0x14037e746\nmov     rax, [rdx+208h]                                                ; +0x4d, 0x14037e74d\nmov     rcx, [rax+878h]                                                ; +0x54, 0x14037e754\ncmp     dword ptr [rcx+454h], 2                                        ; +0x5b, 0x14037e75b\njz      short loc_14037E778                                            ; +0x62, 0x14037e762\nmov     eax, [rdx+3F4h]                                                ; +0x64, 0x14037e764\nsub     eax, [rdx+3F8h]                                                ; +0x6a, 0x14037e76a\ntest    eax, eax                                                       ; +0x70, 0x14037e770\njle     loc_14037E8D9                                                  ; +0x72, 0x14037e772\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x78, 0x14037e778\nmov     rdx, [rax]                                                     ; +0x7e, 0x14037e77e\nmov     rcx, rax                                                       ; +0x81, 0x14037e781\ncall    qword ptr [rdx+70h]                                            ; +0x84, 0x14037e784\nmov     dword ptr [rax+38h], 3F800000h                                 ; +0x87, 0x14037e787\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x8e, 0x14037e78e\ntest    rcx, rcx                                                       ; +0x95, 0x14037e795\njnz     short loc_14037E7C9                                            ; +0x98, 0x14037e798\nmov     ecx, 668h; Size                                                ; +0x9a, 0x14037e79a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9f, 0x14037e79f\nmov     [rsp+28h+arg_8], rax                                           ; +0xa4, 0x14037e7a4\nmov     rcx, rax                                                       ; +0xa9, 0x14037e7a9\ncall    sub_14017AB00                                                  ; +0xac, 0x14037e7ac\nnop                                                                    ; +0xb1, 0x14037e7b1\nmov     cs:qword_1406C2ED8, rax                                        ; +0xb2, 0x14037e7b2\nmov     rdx, [rax]                                                     ; +0xb9, 0x14037e7b9\nmov     rcx, rax                                                       ; +0xbc, 0x14037e7bc\ncall    qword ptr [rdx+48h]                                            ; +0xbf, 0x14037e7bf\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xc2, 0x14037e7c2\nmov     edx, 1Fh                                                       ; +0xc9, 0x14037e7c9\nmov     rcx, [rcx+208h]                                                ; +0xce, 0x14037e7ce\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0xd5, 0x14037e7d5\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xdb, 0x14037e7db\ntest    rcx, rcx                                                       ; +0xe2, 0x14037e7e2\njnz     short loc_14037E816                                            ; +0xe5, 0x14037e7e5\nmov     ecx, 668h; Size                                                ; +0xe7, 0x14037e7e7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xec, 0x14037e7ec\nmov     [rsp+28h+arg_8], rax                                           ; +0xf1, 0x14037e7f1\nmov     rcx, rax                                                       ; +0xf6, 0x14037e7f6\ncall    sub_14017AB00                                                  ; +0xf9, 0x14037e7f9\nnop                                                                    ; +0xfe, 0x14037e7fe\nmov     cs:qword_1406C2ED8, rax                                        ; +0xff, 0x14037e7ff\nmov     rdx, [rax]                                                     ; +0x106, 0x14037e806\nmov     rcx, rax                                                       ; +0x109, 0x14037e809\ncall    qword ptr [rdx+48h]                                            ; +0x10c, 0x14037e80c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x10f, 0x14037e80f\nmov     rcx, [rcx+208h]                                                ; +0x116, 0x14037e816\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x11d, 0x14037e81d\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x123, 0x14037e823\ntest    rcx, rcx                                                       ; +0x12a, 0x14037e82a\njnz     short loc_14037E85E                                            ; +0x12d, 0x14037e82d\nmov     ecx, 668h; Size                                                ; +0x12f, 0x14037e82f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x134, 0x14037e834\nmov     [rsp+28h+arg_8], rax                                           ; +0x139, 0x14037e839\nmov     rcx, rax                                                       ; +0x13e, 0x14037e83e\ncall    sub_14017AB00                                                  ; +0x141, 0x14037e841\nnop                                                                    ; +0x146, 0x14037e846\nmov     cs:qword_1406C2ED8, rax                                        ; +0x147, 0x14037e847\nmov     rdx, [rax]                                                     ; +0x14e, 0x14037e84e\nmov     rcx, rax                                                       ; +0x151, 0x14037e851\ncall    qword ptr [rdx+48h]                                            ; +0x154, 0x14037e854\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x157, 0x14037e857\nmov     rcx, [rcx+208h]                                                ; +0x15e, 0x14037e85e\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x165, 0x14037e865\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x16b, 0x14037e86b\njnz     short loc_14037E89D                                            ; +0x173, 0x14037e873\nmov     ecx, 668h; Size                                                ; +0x175, 0x14037e875\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17a, 0x14037e87a\nmov     [rsp+28h+arg_8], rax                                           ; +0x17f, 0x14037e87f\nmov     rcx, rax                                                       ; +0x184, 0x14037e884\ncall    sub_14017AB00                                                  ; +0x187, 0x14037e887\nnop                                                                    ; +0x18c, 0x14037e88c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x18d, 0x14037e88d\nmov     rdx, [rax]                                                     ; +0x194, 0x14037e894\nmov     rcx, rax                                                       ; +0x197, 0x14037e897\ncall    qword ptr [rdx+48h]                                            ; +0x19a, 0x14037e89a\ncall    GJBaseGameLayer__resetAudio                                    ; +0x19d, 0x14037e89d\nlea     rdx, PauseLayer__goEdit                                        ; +0x1a2, 0x14037e8a2\nmov     rcx, rdi                                                       ; +0x1a9, 0x14037e8a9\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x1ac, 0x14037e8ac\nmov     rbx, rax                                                       ; +0x1b2, 0x14037e8b2\nxorps   xmm0, xmm0                                                     ; +0x1b5, 0x14037e8b5\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x1b8, 0x14037e8b8\nmov     rcx, rax                                                       ; +0x1be, 0x14037e8be\nxor     r8d, r8d                                                       ; +0x1c1, 0x14037e8c1\nmov     rdx, rbx                                                       ; +0x1c4, 0x14037e8c4\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x1c7, 0x14037e8c7\nmov     rdx, rax                                                       ; +0x1cd, 0x14037e8cd\nmov     rcx, rdi                                                       ; +0x1d0, 0x14037e8d0\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x1d3, 0x14037e8d3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1d9, 0x14037e8d9\nadd     rsp, 20h                                                       ; +0x1de, 0x14037e8de\npop     rdi                                                            ; +0x1e2, 0x14037e8e2\nretn                                                                   ; +0x1e3, 0x14037e8e3", "xrefs": ["PauseLayer::onTryEdit @ 0x14037e6fa", "PauseLayer::FLAlert_Clicked @ 0x14037eb89", "<???> @ 0x1406d5dbc"], "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"}