; ; EditorUI::onPlaytest from 0x1401b4770 to 0x1401b4986 (534 bytes) ; ; 4 xrefs: ; > EditorUI::onPlaytest @ 0x1401b4955 ; > EditorUI::handleAction @ 0x1401c1d9a ; > EditorUI::init @ 0x1401aabd8 ; > @ 0x14091a0fc ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:57 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401b4770 mov [rsp+arg_10], rbp ; +0x5, 0x1401b4775 mov [rsp+arg_18], rsi ; +0xa, 0x1401b477a push rdi ; +0xf, 0x1401b477f push r14 ; +0x10, 0x1401b4780 push r15 ; +0x12, 0x1401b4782 sub rsp, 20h ; +0x14, 0x1401b4784 mov r15, rdx ; +0x18, 0x1401b4788 mov rbx, rcx ; +0x1b, 0x1401b478b cmp byte ptr [rcx+67Ch], 0 ; +0x1e, 0x1401b478e jnz loc_1401B496D ; +0x25, 0x1401b4795 call EditorSFXManager__sharedState ; +0x2b, 0x1401b479b mov rcx, rax ; +0x30, 0x1401b47a0 mov edx, 0D2h ; +0x33, 0x1401b47a3 call EditorSFXManager__playAction ; +0x38, 0x1401b47a8 xor sil, sil ; +0x3d, 0x1401b47ad mov rax, [rbx+5E8h] ; +0x40, 0x1401b47b0 cmp dword ptr [rax+89Ch], 1 ; +0x47, 0x1401b47b7 jz short loc_1401B47C8 ; +0x4e, 0x1401b47be mov sil, 1 ; +0x50, 0x1401b47c0 call GJBaseGameLayer__pauseAudio ; +0x53, 0x1401b47c3 xor dil, dil ; +0x58, 0x1401b47c8 mov [rbx+298h], dil ; +0x5b, 0x1401b47cb mov rax, [rbx+5E8h] ; +0x62, 0x1401b47d2 cmp dword ptr [rax+89Ch], 1 ; +0x69, 0x1401b47d9 jz short loc_1401B47F1 ; +0x70, 0x1401b47e0 mov rdx, [rbx+3D8h] ; +0x72, 0x1401b47e2 mov rcx, rbx ; +0x79, 0x1401b47e9 call EditorUI__toggleMode ; +0x7c, 0x1401b47ec mov rcx, rbx ; +0x81, 0x1401b47f1 call EditorUI__deselectAll ; +0x84, 0x1401b47f4 mov rcx, [rbx+5E8h] ; +0x89, 0x1401b47f9 mov eax, [rcx+89Ch] ; +0x90, 0x1401b4800 cmp eax, 1 ; +0x96, 0x1401b4806 jnz short loc_1401B4815 ; +0x99, 0x1401b4809 call LevelEditorLayer__onPausePlaytest ; +0x9b, 0x1401b480b jmp loc_1401B48B8 ; +0xa0, 0x1401b4810 cmp eax, 2 ; +0xa5, 0x1401b4815 jnz short loc_1401B4824 ; +0xa8, 0x1401b4818 call LevelEditorLayer__onResumePlaytest ; +0xaa, 0x1401b481a jmp loc_1401B48B8 ; +0xaf, 0x1401b481f cmp eax, 0 ; +0xb4, 0x1401b4824 jnz loc_1401B48B8 ; +0xb7, 0x1401b4827 mov rcx, [rcx+10C8h] ; +0xbd, 0x1401b482d mov rax, [rcx] ; +0xc4, 0x1401b4834 call qword ptr [rax+0A8h] ; +0xc7, 0x1401b4837 movss dword ptr [rbx+678h], xmm0 ; +0xcd, 0x1401b483d mov rcx, [rbx+5E8h] ; +0xd5, 0x1401b4845 call LevelEditorLayer__onPlaytest ; +0xdc, 0x1401b484c mov rax, [rbx+5E8h] ; +0xe1, 0x1401b4851 cmp qword ptr [rax+3270h], 0 ; +0xe8, 0x1401b4858 jz short loc_1401B48B5 ; +0xf0, 0x1401b4860 mov rcx, cs:qword_14090BFD0 ; +0xf2, 0x1401b4862 test rcx, rcx ; +0xf9, 0x1401b4869 jnz short loc_1401B48A0 ; +0xfc, 0x1401b486c mov ecx, 6E8h; Size ; +0xfe, 0x1401b486e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x103, 0x1401b4873 mov [rsp+38h+arg_0], rax ; +0x108, 0x1401b4878 mov rcx, rax ; +0x10d, 0x1401b487d call GameManager__GameManager ; +0x110, 0x1401b4880 nop ; +0x115, 0x1401b4885 mov cs:qword_14090BFD0, rax ; +0x116, 0x1401b4886 mov rcx, [rax] ; +0x11d, 0x1401b488d mov rdx, [rcx+48h] ; +0x120, 0x1401b4890 mov rcx, rax ; +0x124, 0x1401b4894 call rdx ; +0x127, 0x1401b4897 mov rcx, cs:qword_14090BFD0 ; +0x129, 0x1401b4899 lea rdx, a0150; "0150" ; +0x130, 0x1401b48a0 call GameManager__getGameVariable ; +0x137, 0x1401b48a7 test al, al ; +0x13c, 0x1401b48ac jz short loc_1401B48B5 ; +0x13e, 0x1401b48ae mov dil, 1 ; +0x140, 0x1401b48b0 jmp short loc_1401B48B8 ; +0x143, 0x1401b48b3 xor dil, dil ; +0x145, 0x1401b48b5 mov rax, [rbx+5E8h] ; +0x148, 0x1401b48b8 cmp dword ptr [rax+89Ch], 1 ; +0x14f, 0x1401b48bf setnz dl ; +0x156, 0x1401b48c6 mov rcx, rbx ; +0x159, 0x1401b48c9 call EditorUI__showUI ; +0x15c, 0x1401b48cc mov rcx, [rbx+418h] ; +0x161, 0x1401b48d1 mov rax, [rcx] ; +0x168, 0x1401b48d8 call qword ptr [rax+3B8h] ; +0x16b, 0x1401b48db mov r14, rax ; +0x171, 0x1401b48e1 mov rbp, [rax] ; +0x174, 0x1401b48e4 mov rcx, [rbx+5E8h] ; +0x177, 0x1401b48e7 cmp dword ptr [rcx+89Ch], 1 ; +0x17e, 0x1401b48ee jnz short loc_1401B4906 ; +0x185, 0x1401b48f5 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x187, 0x1401b48f7 lea rdx, aGjPauseeditorb; "GJ_pauseEditorBtn_001.png" ; +0x18d, 0x1401b48fd jmp short loc_1401B4913 ; +0x194, 0x1401b4904 call cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x196, 0x1401b4906 lea rdx, aGjPlayeditorbt; "GJ_playEditorBtn_001.png" ; +0x19c, 0x1401b490c mov rcx, rax ; +0x1a3, 0x1401b4913 call cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x1a6, 0x1401b4916 mov rdx, rax ; +0x1ac, 0x1401b491c mov rcx, r14 ; +0x1af, 0x1401b491f call qword ptr [rbp+3F0h] ; +0x1b2, 0x1401b4922 mov rcx, [rbx+420h] ; +0x1b8, 0x1401b4928 cmp byte ptr [rbx+67Dh], 0 ; +0x1bf, 0x1401b492f setz dl ; +0x1c6, 0x1401b4936 mov rax, [rcx] ; +0x1c9, 0x1401b4939 call qword ptr [rax+150h] ; +0x1cc, 0x1401b493c mov rcx, rbx ; +0x1d2, 0x1401b4942 call EditorUI__updatePlaybackBtn ; +0x1d5, 0x1401b4945 test dil, dil ; +0x1da, 0x1401b494a jz short loc_1401B495A ; +0x1dd, 0x1401b494d mov rdx, r15 ; +0x1df, 0x1401b494f mov rcx, rbx ; +0x1e2, 0x1401b4952 call EditorUI__onPlaytest ; +0x1e5, 0x1401b4955 test sil, sil ; +0x1ea, 0x1401b495a jz short loc_1401B496D ; +0x1ed, 0x1401b495d mov rax, [rbx+5E8h] ; +0x1ef, 0x1401b495f mov byte ptr [rax+3866h], 1 ; +0x1f6, 0x1401b4966 mov rbx, [rsp+38h+arg_8] ; +0x1fd, 0x1401b496d mov rbp, [rsp+38h+arg_10] ; +0x202, 0x1401b4972 mov rsi, [rsp+38h+arg_18] ; +0x207, 0x1401b4977 add rsp, 20h ; +0x20c, 0x1401b497c pop r15 ; +0x210, 0x1401b4980 pop r14 ; +0x212, 0x1401b4982 pop rdi ; +0x214, 0x1401b4984 retn ; +0x215, 0x1401b4985