{"type": "func", "start": 5372902144, "end": 5372902575, "name": "LevelEditorLayer::onPausePlaytest", "pseudocode": "// \n// LevelEditorLayer::onPausePlaytest from 0x1403ffb00 to 0x1403ffcaf (431 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onPlaytest @ 0x1401b480b\n// > EditorUI::handleAction @ 0x1401c1d05\n// > <???> @ 0x1408c6944\n// > <???> @ 0x1408c6954\n// > <???> @ 0x140925988\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:31:54 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::onPausePlaytest(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rdi\n  __int64 v4; // rdx\n  __int64 v5; // rcx\n  __int64 v6; // r8\n  __int64 v7; // r9\n  bool v8; // zf\n  __int64 v9; // rax\n  __int64 v10; // rsi\n  __int64 v11; // rdi\n  __int64 v12; // rax\n  __int64 v13; // rax\n  __int64 v14; // rcx\n  __int64 v15; // rdx\n  cocos2d::CCDirector *v16; // rax\n  __int64 v17; // rcx\n  cocos2d::CCNode *v18; // rcx\n  __int64 v19; // rax\n  __int64 v20; // rdx\n  __int64 v21; // rcx\n  __int64 result; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1);\n  *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 176LL))(v2) + 156) = 0;\n  v3 = *(_QWORD *)(a1 + 13888);\n  *(_QWORD *)(v3 + 584) = -1;\n  *(_WORD *)(v3 + 578) = 0;\n  *(_BYTE *)(v3 + 580) = 0;\n  UILayer::resetUINodeState(v3);\n  UILayer::toggleMenuVisibility(v3, 0);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 336LL))(v3, 0);\n  *(_BYTE *)(cocos2d::CCEGLView::sharedOpenGLView(v5, v4, v6, v7) + 237) = 0;\n  v8 = *(_BYTE *)(v3 + 626) == 0;\n  *(_BYTE *)(v3 + 627) = 0;\n  if ( v8\n    && *(_BYTE *)(v3 + 596)\n    && (v9 = *(_QWORD *)(v3 + 640)) != 0\n    && ((v10 = v9 + 72, v11 = v9 + 104, *(_QWORD *)(v9 + 88)) || *(_QWORD *)(v9 + 120)) )\n  {\n    v12 = GJKeybindManager::sharedState();\n    GJKeybindManager::applyMovementOverride(v12, v10, v11);\n  }\n  else\n  {\n    v13 = GJKeybindManager::sharedState();\n    GJKeybindManager::clearMovementOverride(v13);\n  }\n  LevelEditorLayer::quickUpdateAllPositions((_QWORD *)a1);\n  if ( *(_BYTE *)(a1 + 14680) )\n  {\n    v15 = *(_QWORD *)(a1 + 12672);\n    *(_BYTE *)(a1 + 14680) = 0;\n    GJBaseGameLayer::removeObjectFromSection(a1, v15);\n    GJBaseGameLayer::removeObjectFromSection(a1, *(_QWORD *)(a1 + 12680));\n  }\n  if ( *(_BYTE *)(a1 + 14673) )\n  {\n    v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);\n    cocos2d::CCDirector::resetSmoothFixCounter(v16);\n    *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v17) + 178) = 0;\n  }\n  v18 = *(cocos2d::CCNode **)(a1 + 3512);\n  *(_DWORD *)(a1 + 2204) = 2;\n  cocos2d::CCNode::pauseSchedulerAndActions(v18);\n  cocos2d::CCNode::pauseSchedulerAndActions(*(cocos2d::CCNode **)(a1 + 3520));\n  *(_DWORD *)(a1 + 14880) = *(_DWORD *)(a1 + 816);\n  v19 = *(_QWORD *)a1;\n  *(_BYTE *)(a1 + 2214) = 1;\n  (*(void (__fastcall **)(__int64))(v19 + 1312))(a1);\n  *(_DWORD *)(a1 + 14884) = *(_DWORD *)(a1 + 424);\n  result = GJBaseGameLayer::pauseAudio(v21, v20);\n  if ( *(_BYTE *)(a1 + 14667) )\n    *(_BYTE *)(a1 + 14840) = 1;\n  return result;\n}", "assembly": "; \n; LevelEditorLayer::onPausePlaytest from 0x1403ffb00 to 0x1403ffcaf (431 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onPlaytest @ 0x1401b480b\n; > EditorUI::handleAction @ 0x1401c1d05\n; > <???> @ 0x1408c6944\n; > <???> @ 0x1408c6954\n; > <???> @ 0x140925988\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:31:54 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403ffb00\nsub     rsp, 20h                                                       ; +0x2, 0x1403ffb02\nmov     [rsp+28h+arg_0], rsi                                           ; +0x6, 0x1403ffb06\nmov     rbx, rcx                                                       ; +0xb, 0x1403ffb0b\nmov     [rsp+28h+arg_8], rdi                                           ; +0xe, 0x1403ffb0e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x13, 0x1403ffb13\nmov     rcx, rax                                                       ; +0x19, 0x1403ffb19\nmov     rdx, [rax]                                                     ; +0x1c, 0x1403ffb1c\ncall    qword ptr [rdx+0B0h]                                           ; +0x1f, 0x1403ffb1f\nmov     byte ptr [rax+9Ch], 0                                          ; +0x25, 0x1403ffb25\nmov     rdi, [rbx+3640h]                                               ; +0x2c, 0x1403ffb2c\nmov     rcx, rdi                                                       ; +0x33, 0x1403ffb33\nmov     qword ptr [rdi+248h], 0FFFFFFFFFFFFFFFFh                       ; +0x36, 0x1403ffb36\nmov     word ptr [rdi+242h], 0                                         ; +0x41, 0x1403ffb41\nmov     byte ptr [rdi+244h], 0                                         ; +0x4a, 0x1403ffb4a\ncall    UILayer__resetUINodeState                                      ; +0x51, 0x1403ffb51\nxor     edx, edx                                                       ; +0x56, 0x1403ffb56\nmov     rcx, rdi                                                       ; +0x58, 0x1403ffb58\ncall    UILayer__toggleMenuVisibility                                  ; +0x5b, 0x1403ffb5b\nmov     rax, [rdi]                                                     ; +0x60, 0x1403ffb60\nxor     edx, edx                                                       ; +0x63, 0x1403ffb63\nmov     rcx, rdi                                                       ; +0x65, 0x1403ffb65\ncall    qword ptr [rax+150h]                                           ; +0x68, 0x1403ffb68\ncall    cs:?sharedOpenGLView@CCEGLView@cocos2d@@SAPEAV12@XZ; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x6e, 0x1403ffb6e\nmov     byte ptr [rax+0EDh], 0                                         ; +0x74, 0x1403ffb74\ncmp     byte ptr [rdi+272h], 0                                         ; +0x7b, 0x1403ffb7b\nmov     byte ptr [rdi+273h], 0                                         ; +0x82, 0x1403ffb82\njnz     short loc_1403FFBCB                                            ; +0x89, 0x1403ffb89\ncmp     byte ptr [rdi+254h], 0                                         ; +0x8b, 0x1403ffb8b\njz      short loc_1403FFBCB                                            ; +0x92, 0x1403ffb92\nmov     rax, [rdi+280h]                                                ; +0x94, 0x1403ffb94\ntest    rax, rax                                                       ; +0x9b, 0x1403ffb9b\njz      short loc_1403FFBCB                                            ; +0x9e, 0x1403ffb9e\ncmp     qword ptr [rax+58h], 0                                         ; +0xa0, 0x1403ffba0\nlea     rsi, [rax+48h]                                                 ; +0xa5, 0x1403ffba5\nlea     rdi, [rax+68h]                                                 ; +0xa9, 0x1403ffba9\njnz     short loc_1403FFBB6                                            ; +0xad, 0x1403ffbad\ncmp     qword ptr [rdi+10h], 0                                         ; +0xaf, 0x1403ffbaf\njz      short loc_1403FFBCB                                            ; +0xb4, 0x1403ffbb4\ncall    GJKeybindManager__sharedState                                  ; +0xb6, 0x1403ffbb6\nmov     rcx, rax                                                       ; +0xbb, 0x1403ffbbb\nmov     r8, rdi                                                        ; +0xbe, 0x1403ffbbe\nmov     rdx, rsi                                                       ; +0xc1, 0x1403ffbc1\ncall    GJKeybindManager__applyMovementOverride                        ; +0xc4, 0x1403ffbc4\njmp     short loc_1403FFBD8                                            ; +0xc9, 0x1403ffbc9\ncall    GJKeybindManager__sharedState                                  ; +0xcb, 0x1403ffbcb\nmov     rcx, rax                                                       ; +0xd0, 0x1403ffbd0\ncall    GJKeybindManager__clearMovementOverride                        ; +0xd3, 0x1403ffbd3\nmov     rcx, rbx                                                       ; +0xd8, 0x1403ffbd8\ncall    LevelEditorLayer__quickUpdateAllPositions                      ; +0xdb, 0x1403ffbdb\ncmp     byte ptr [rbx+3958h], 0                                        ; +0xe0, 0x1403ffbe0\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xe7, 0x1403ffbe7\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xec, 0x1403ffbec\njz      short loc_1403FFC18                                            ; +0xf1, 0x1403ffbf1\nmov     rdx, [rbx+3180h]                                               ; +0xf3, 0x1403ffbf3\nmov     rcx, rbx                                                       ; +0xfa, 0x1403ffbfa\nmov     byte ptr [rbx+3958h], 0                                        ; +0xfd, 0x1403ffbfd\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x104, 0x1403ffc04\nmov     rdx, [rbx+3188h]                                               ; +0x109, 0x1403ffc09\nmov     rcx, rbx                                                       ; +0x110, 0x1403ffc10\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0x113, 0x1403ffc13\ncmp     byte ptr [rbx+3951h], 0                                        ; +0x118, 0x1403ffc18\njz      short loc_1403FFC3D                                            ; +0x11f, 0x1403ffc1f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x121, 0x1403ffc21\nmov     rcx, rax                                                       ; +0x127, 0x1403ffc27\ncall    cs:?resetSmoothFixCounter@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::resetSmoothFixCounter(void) ; +0x12a, 0x1403ffc2a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x130, 0x1403ffc30\nmov     byte ptr [rax+0B2h], 0                                         ; +0x136, 0x1403ffc36\nmov     rcx, [rbx+0DB8h]                                               ; +0x13d, 0x1403ffc3d\nmov     dword ptr [rbx+89Ch], 2                                        ; +0x144, 0x1403ffc44\ncall    cs:?pauseSchedulerAndActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::pauseSchedulerAndActions(void) ; +0x14e, 0x1403ffc4e\nmov     rcx, [rbx+0DC0h]                                               ; +0x154, 0x1403ffc54\ncall    cs:?pauseSchedulerAndActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::pauseSchedulerAndActions(void) ; +0x15b, 0x1403ffc5b\nmov     eax, [rbx+330h]                                                ; +0x161, 0x1403ffc61\nmov     rcx, rbx                                                       ; +0x167, 0x1403ffc67\nmovss   xmm1, cs:flt_140835080                                         ; +0x16a, 0x1403ffc6a\nmov     [rbx+3A20h], eax                                               ; +0x172, 0x1403ffc72\nmov     rax, [rbx]                                                     ; +0x178, 0x1403ffc78\nmov     byte ptr [rbx+8A6h], 1                                         ; +0x17b, 0x1403ffc7b\ncall    qword ptr [rax+520h]                                           ; +0x182, 0x1403ffc82\nmov     eax, [rbx+1A8h]                                                ; +0x188, 0x1403ffc88\nmov     [rbx+3A24h], eax                                               ; +0x18e, 0x1403ffc8e\ncall    GJBaseGameLayer__pauseAudio                                    ; +0x194, 0x1403ffc94\ncmp     byte ptr [rbx+394Bh], 0                                        ; +0x199, 0x1403ffc99\njz      short loc_1403FFCA9                                            ; +0x1a0, 0x1403ffca0\nmov     byte ptr [rbx+39F8h], 1                                        ; +0x1a2, 0x1403ffca2\nadd     rsp, 20h                                                       ; +0x1a9, 0x1403ffca9\npop     rbx                                                            ; +0x1ad, 0x1403ffcad\nretn                                                                   ; +0x1ae, 0x1403ffcae", "xrefs": ["EditorUI::onPlaytest @ 0x1401b480b", "EditorUI::handleAction @ 0x1401c1d05", "<???> @ 0x1408c6944", "<???> @ 0x1408c6954", "<???> @ 0x140925988"], "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"}