; ; cocos2d::CCMenu::registerWithTouchDispatcher from 0x18005b8b0 to 0x18005b931 (129 bytes) ; ; 3 xrefs: ; > @ 0x1800fd4a8 ; > @ 0x18014cf68 ; > @ 0x1801bce14 ; ; 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:49 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18005b8b0 mov [rsp+arg_8], rsi ; +0x5, 0x18005b8b5 mov [rsp+arg_10], rdi ; +0xa, 0x18005b8ba mov [rsp+arg_18], r14 ; +0xf, 0x18005b8bf push r15 ; +0x14, 0x18005b8c4 sub rsp, 20h ; +0x16, 0x18005b8c6 mov r15, rcx ; +0x1a, 0x18005b8ca call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1d, 0x18005b8cd mov rdx, [r15] ; +0x22, 0x18005b8d2 mov rcx, r15 ; +0x25, 0x18005b8d5 mov r14, rax ; +0x28, 0x18005b8d8 mov r8, [rdx+3B8h] ; +0x2b, 0x18005b8db mov rdx, [rax] ; +0x32, 0x18005b8e2 mov rdi, [rdx+90h] ; +0x35, 0x18005b8e5 call r8 ; +0x3c, 0x18005b8ec mov esi, eax ; +0x3f, 0x18005b8ef lea rbx, [r15+140h] ; +0x41, 0x18005b8f1 xor eax, eax ; +0x48, 0x18005b8f8 mov rcx, r14 ; +0x4a, 0x18005b8fa test r15, r15 ; +0x4d, 0x18005b8fd cmovz rbx, rax ; +0x50, 0x18005b900 call rdi ; +0x54, 0x18005b904 mov rcx, rax; this ; +0x56, 0x18005b906 mov r9b, 1; bool ; +0x59, 0x18005b909 mov r8d, esi; int ; +0x5c, 0x18005b90c mov rdx, rbx; struct cocos2d::CCTouchDelegate * ; +0x5f, 0x18005b90f mov rbx, [rsp+28h+arg_0] ; +0x62, 0x18005b912 mov rsi, [rsp+28h+arg_8] ; +0x67, 0x18005b917 mov rdi, [rsp+28h+arg_10] ; +0x6c, 0x18005b91c mov r14, [rsp+28h+arg_18] ; +0x71, 0x18005b921 add rsp, 20h ; +0x76, 0x18005b926 pop r15 ; +0x7a, 0x18005b92a jmp ?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x7c, 0x18005b92c