; ; cocos2d::CCMenu::ccTouchBegan from 0x18005aed0 to 0x18005b029 (345 bytes) ; ; 3 xrefs: ; > @ 0x1800fd558 ; > @ 0x18014cf68 ; > @ 0x1801bcd18 ; ; 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:21:48 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x18005aed0 mov [rsp+arg_10], rbp ; +0x5, 0x18005aed5 mov [rsp+arg_18], rsi ; +0xa, 0x18005aeda push rdi ; +0xf, 0x18005aedf push r14 ; +0x10, 0x18005aee0 push r15 ; +0x12, 0x18005aee2 sub rsp, 30h ; +0x14, 0x18005aee4 cmp dword ptr [rcx+74h], 0 ; +0x18, 0x18005aee8 lea rsi, [rcx-140h] ; +0x1c, 0x18005aeec mov r14, rdx ; +0x23, 0x18005aef3 mov rdi, rcx ; +0x26, 0x18005aef6 jnz loc_18005B00E ; +0x29, 0x18005aef9 cmp byte ptr [rcx-22h], 0 ; +0x2f, 0x18005aeff jz loc_18005B00E ; +0x33, 0x18005af03 cmp byte ptr [rcx+70h], 0 ; +0x39, 0x18005af09 jz loc_18005B00E ; +0x3d, 0x18005af0d mov rbx, [rcx-68h] ; +0x43, 0x18005af13 test rbx, rbx ; +0x47, 0x18005af17 jz short loc_18005AF48 ; +0x4a, 0x18005af1a nop dword ptr [rax+00h] ; +0x4c, 0x18005af1c mov rax, [rbx] ; +0x50, 0x18005af20 mov rcx, rbx ; +0x53, 0x18005af23 call qword ptr [rax+158h] ; +0x56, 0x18005af26 test al, al ; +0x5c, 0x18005af2c jz loc_18005B00E ; +0x5e, 0x18005af2e mov rax, [rbx] ; +0x64, 0x18005af34 mov rcx, rbx ; +0x67, 0x18005af37 call qword ptr [rax+1F8h] ; +0x6a, 0x18005af3a mov rbx, rax ; +0x70, 0x18005af40 test rax, rax ; +0x73, 0x18005af43 jnz short loc_18005AF20 ; +0x76, 0x18005af46 lea rdx, [rsp+48h+arg_0] ; +0x78, 0x18005af48 mov rcx, r14 ; +0x7d, 0x18005af4d call ?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x80, 0x18005af50 mov rbp, rax ; +0x85, 0x18005af55 test rsi, rsi ; +0x88, 0x18005af58 jz short loc_18005AFCA ; +0x8b, 0x18005af5b mov rcx, [rsi] ; +0x8d, 0x18005af5d mov rdx, [rcx+1F8h] ; +0x90, 0x18005af60 mov rcx, rsi ; +0x97, 0x18005af67 call rdx ; +0x9a, 0x18005af6a mov rbx, rax ; +0x9c, 0x18005af6c test rax, rax ; +0x9f, 0x18005af6f jz short loc_18005AFCA ; +0xa2, 0x18005af72 xor r15d, r15d ; +0xa4, 0x18005af74 nop word ptr [rax+rax+00000000h] ; +0xa7, 0x18005af77 lea r9, ??_R0?AVCCTouchClipper@cocos2d@@@8; cocos2d::CCTouchClipper `RTTI Type Descriptor' ; +0xb0, 0x18005af80 mov [rsp+48h+var_28], r15d ; +0xb7, 0x18005af87 lea r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0xbc, 0x18005af8c xor edx, edx ; +0xc3, 0x18005af93 mov rcx, rbx ; +0xc5, 0x18005af95 call __RTDynamicCast ; +0xc8, 0x18005af98 test rax, rax ; +0xcd, 0x18005af9d jz short loc_18005AFB6 ; +0xd0, 0x18005afa0 mov rcx, [rax] ; +0xd2, 0x18005afa2 mov rdx, rbp ; +0xd5, 0x18005afa5 mov r8, [rcx+8] ; +0xd8, 0x18005afa8 mov rcx, rax ; +0xdc, 0x18005afac call r8 ; +0xdf, 0x18005afaf test al, al ; +0xe2, 0x18005afb2 jz short loc_18005B00E ; +0xe4, 0x18005afb4 mov rax, [rbx] ; +0xe6, 0x18005afb6 mov rcx, rbx ; +0xe9, 0x18005afb9 call qword ptr [rax+1F8h] ; +0xec, 0x18005afbc mov rbx, rax ; +0xf2, 0x18005afc2 test rax, rax ; +0xf5, 0x18005afc5 jnz short loc_18005AF80 ; +0xf8, 0x18005afc8 xor r8d, r8d; bool ; +0xfa, 0x18005afca mov rdx, r14; struct cocos2d::CCTouch * ; +0xfd, 0x18005afcd mov rcx, rsi; this ; +0x100, 0x18005afd0 call ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x103, 0x18005afd3 mov rcx, rax ; +0x108, 0x18005afd8 test rax, rax ; +0x10b, 0x18005afdb jnz short loc_18005AFF1 ; +0x10e, 0x18005afde mov r8b, 1; bool ; +0x110, 0x18005afe0 mov rdx, r14; struct cocos2d::CCTouch * ; +0x113, 0x18005afe3 mov rcx, rsi; this ; +0x116, 0x18005afe6 call ?itemForTouch@CCMenu@cocos2d@@IEAAPEAVCCMenuItem@2@PEAVCCTouch@2@_N@Z; cocos2d::CCMenu::itemForTouch(cocos2d::CCTouch *,bool) ; +0x119, 0x18005afe9 mov rcx, rax ; +0x11e, 0x18005afee mov [rdi+78h], rcx ; +0x121, 0x18005aff1 test rcx, rcx ; +0x125, 0x18005aff5 jz short loc_18005B00E ; +0x128, 0x18005aff8 mov dword ptr [rdi+74h], 1 ; +0x12a, 0x18005affa mov rax, [rcx] ; +0x131, 0x18005b001 call qword ptr [rax+380h] ; +0x134, 0x18005b004 mov al, 1 ; +0x13a, 0x18005b00a jmp short loc_18005B010 ; +0x13c, 0x18005b00c xor al, al ; +0x13e, 0x18005b00e mov rbx, [rsp+48h+arg_8] ; +0x140, 0x18005b010 mov rbp, [rsp+48h+arg_10] ; +0x145, 0x18005b015 mov rsi, [rsp+48h+arg_18] ; +0x14a, 0x18005b01a add rsp, 30h ; +0x14f, 0x18005b01f pop r15 ; +0x153, 0x18005b023 pop r14 ; +0x155, 0x18005b025 pop rdi ; +0x157, 0x18005b027 retn ; +0x158, 0x18005b028