; ; EditorUI::playerTouchBegan from 0x10004ed40 to 0x10004ee41 (257 bytes) ; ; 0 xrefs: ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x10004ed40 mov rbp, rsp ; +0x1, 0x10004ed41 push r15 ; +0x4, 0x10004ed44 push r14 ; +0x6, 0x10004ed46 push r12 ; +0x8, 0x10004ed48 push rbx ; +0xa, 0x10004ed4a sub rsp, 20h ; +0xb, 0x10004ed4b mov rbx, rsi ; +0xf, 0x10004ed4f mov r14, rdi ; +0x12, 0x10004ed52 call cocos2d__CCDirector__sharedDirector ; +0x15, 0x10004ed55 lea rdi, [rbp+var_38] ; +0x1a, 0x10004ed5a mov rsi, rax ; +0x1e, 0x10004ed5e call cocos2d__CCDirector__getWinSize ; +0x21, 0x10004ed61 lea r15, [rbp+var_30] ; +0x26, 0x10004ed66 mov rdi, r15 ; +0x2a, 0x10004ed6a mov rsi, rbx ; +0x2d, 0x10004ed6d call cocos2d__CCTouch__getLocation ; +0x30, 0x10004ed70 lea r12, [rbp+var_40] ; +0x35, 0x10004ed75 mov rdi, r12 ; +0x39, 0x10004ed79 mov rsi, r14 ; +0x3c, 0x10004ed7c mov rdx, r15 ; +0x3f, 0x10004ed7f call cocos2d__CCNode__convertToNodeSpace ; +0x42, 0x10004ed82 mov rdi, r15 ; +0x47, 0x10004ed87 mov rsi, r12 ; +0x4a, 0x10004ed8a call sub_10028CC90 ; +0x4d, 0x10004ed8d movss xmm0, [rbp+var_38] ; +0x52, 0x10004ed92 mulss xmm0, cs:dword_100814FA8 ; +0x57, 0x10004ed97 movss xmm1, [rbp+var_30] ; +0x5f, 0x10004ed9f mov rax, [r14+4E8h] ; +0x64, 0x10004eda4 cmp byte ptr [rax+3F2h], 0 ; +0x6b, 0x10004edab jz short loc_10004EDBB ; +0x72, 0x10004edb2 ucomiss xmm0, xmm1 ; +0x74, 0x10004edb4 jb short loc_10004EDE8 ; +0x77, 0x10004edb7 jmp short loc_10004EE00 ; +0x79, 0x10004edb9 movss [rbp+var_24], xmm1 ; +0x7b, 0x10004edbb movss [rbp+var_28], xmm0 ; +0x80, 0x10004edc0 call GameManager__sharedState ; +0x85, 0x10004edc5 lea rsi, a0011; "0011" ; +0x8a, 0x10004edca mov rdi, rax ; +0x91, 0x10004edd1 call GameManager__getGameVariable ; +0x94, 0x10004edd4 test al, al ; +0x99, 0x10004edd9 jz short loc_10004EE00 ; +0x9b, 0x10004eddb movss xmm0, [rbp+var_28] ; +0x9d, 0x10004eddd ucomiss xmm0, [rbp+var_24] ; +0xa2, 0x10004ede2 jnb short loc_10004EE00 ; +0xa6, 0x10004ede6 cmp dword ptr [r14+268h], 0FFFFFFFFh ; +0xa8, 0x10004ede8 jnz short loc_10004EE34 ; +0xb0, 0x10004edf0 mov eax, [rbx+38h] ; +0xb2, 0x10004edf2 mov [r14+268h], eax ; +0xb5, 0x10004edf5 mov al, 1 ; +0xbc, 0x10004edfc jmp short loc_10004EE16 ; +0xbe, 0x10004edfe cmp dword ptr [r14+264h], 0FFFFFFFFh ; +0xc0, 0x10004ee00 jnz short loc_10004EE34 ; +0xc8, 0x10004ee08 mov eax, [rbx+38h] ; +0xca, 0x10004ee0a mov [r14+264h], eax ; +0xcd, 0x10004ee0d xor eax, eax ; +0xd4, 0x10004ee14 mov rdi, [r14+4E8h] ; +0xd6, 0x10004ee16 movsd xmm0, qword ptr [rbx+58h] ; +0xdd, 0x10004ee1d movzx ecx, al ; +0xe2, 0x10004ee22 mov esi, 1 ; +0xe5, 0x10004ee25 mov edx, 1 ; +0xea, 0x10004ee2a call GJBaseGameLayer__queueButton ; +0xef, 0x10004ee2f add rsp, 20h ; +0xf4, 0x10004ee34 pop rbx ; +0xf8, 0x10004ee38 pop r12 ; +0xf9, 0x10004ee39 pop r14 ; +0xfb, 0x10004ee3b pop r15 ; +0xfd, 0x10004ee3d pop rbp ; +0xff, 0x10004ee3f retn ; +0x100, 0x10004ee40