; ; cocos2d::CCMenu::ccTouchBegan from 0x180058f70 to 0x180059040 (208 bytes) ; ; 3 xrefs: ; > @ 0x1800f7110 ; > @ 0x1801438a8 ; > @ 0x1801b2a84 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x180058f70 mov [rsp+arg_8], rsi ; +0x5, 0x180058f75 push rdi ; +0xa, 0x180058f7a sub rsp, 20h ; +0xb, 0x180058f7b cmp dword ptr [rcx+74h], 0 ; +0xf, 0x180058f7f mov rsi, rdx ; +0x13, 0x180058f83 mov rdi, rcx ; +0x16, 0x180058f86 jnz loc_18005902E ; +0x19, 0x180058f89 cmp byte ptr [rcx-22h], 0 ; +0x1f, 0x180058f8f jz loc_18005902E ; +0x23, 0x180058f93 cmp byte ptr [rcx+70h], 0 ; +0x29, 0x180058f99 jz loc_18005902E ; +0x2d, 0x180058f9d mov rbx, [rcx-68h] ; +0x33, 0x180058fa3 test rbx, rbx ; +0x37, 0x180058fa7 jz short loc_180058FD4 ; +0x3a, 0x180058faa nop dword ptr [rax+00h] ; +0x3c, 0x180058fac mov rax, [rbx] ; +0x40, 0x180058fb0 mov rcx, rbx ; +0x43, 0x180058fb3 call qword ptr [rax+148h] ; +0x46, 0x180058fb6 test al, al ; +0x4c, 0x180058fbc jz short loc_18005902E ; +0x4e, 0x180058fbe mov rax, [rbx] ; +0x50, 0x180058fc0 mov rcx, rbx ; +0x53, 0x180058fc3 call qword ptr [rax+1E8h] ; +0x56, 0x180058fc6 mov rbx, rax ; +0x5c, 0x180058fcc test rax, rax ; +0x5f, 0x180058fcf jnz short loc_180058FB0 ; +0x62, 0x180058fd2 xor r8d, r8d; bool ; +0x64, 0x180058fd4 lea rcx, [rdi-140h]; this ; +0x67, 0x180058fd7 mov rdx, rsi; struct cocos2d::CCTouch * ; +0x6e, 0x180058fde call ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x71, 0x180058fe1 mov rcx, rax ; +0x76, 0x180058fe6 test rax, rax ; +0x79, 0x180058fe9 jnz short loc_180059003 ; +0x7c, 0x180058fec mov r8b, 1; bool ; +0x7e, 0x180058fee lea rcx, [rdi-140h]; this ; +0x81, 0x180058ff1 mov rdx, rsi; struct cocos2d::CCTouch * ; +0x88, 0x180058ff8 call ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x8b, 0x180058ffb mov rcx, rax ; +0x90, 0x180059000 mov [rdi+78h], rcx ; +0x93, 0x180059003 test rcx, rcx ; +0x97, 0x180059007 jz short loc_18005902E ; +0x9a, 0x18005900a mov dword ptr [rdi+74h], 1 ; +0x9c, 0x18005900c mov rax, [rcx] ; +0xa3, 0x180059013 call qword ptr [rax+370h] ; +0xa6, 0x180059016 mov al, 1 ; +0xac, 0x18005901c mov rbx, [rsp+28h+arg_0] ; +0xae, 0x18005901e mov rsi, [rsp+28h+arg_8] ; +0xb3, 0x180059023 add rsp, 20h ; +0xb8, 0x180059028 pop rdi ; +0xbc, 0x18005902c retn ; +0xbd, 0x18005902d mov rbx, [rsp+28h+arg_0] ; +0xbe, 0x18005902e xor al, al ; +0xc3, 0x180059033 mov rsi, [rsp+28h+arg_8] ; +0xc5, 0x180059035 add rsp, 20h ; +0xca, 0x18005903a pop rdi ; +0xce, 0x18005903e retn ; +0xcf, 0x18005903f