; ; cocos2d::extension::CCControl::registerWithTouchDispatcher from 0x180004340 to 0x1800043b2 (114 bytes) ; ; 10 xrefs: ; > @ 0x180023a58 ; > @ 0x180024058 ; > @ 0x1800245c8 ; > @ 0x180025280 ; > @ 0x180025e18 ; > @ 0x1800263e8 ; > @ 0x180026a10 ; > @ 0x180027ea0 ; > @ 0x18002fdf8 ; > @ 0x1800493e4 ; ; 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, 0x180004340 mov [rsp+arg_8], rbp ; +0x5, 0x180004345 mov [rsp+arg_10], rsi ; +0xa, 0x18000434a push rdi ; +0xf, 0x18000434f sub rsp, 20h ; +0x10, 0x180004350 mov rdi, rcx ; +0x14, 0x180004354 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x180004357 mov rdx, [rdi] ; +0x1d, 0x18000435d mov rcx, rdi ; +0x20, 0x180004360 mov rsi, rax ; +0x23, 0x180004363 call qword ptr [rdx+3A8h] ; +0x26, 0x180004366 mov r8, [rsi] ; +0x2c, 0x18000436c lea rbx, [rdi+140h] ; +0x2f, 0x18000436f mov ebp, eax ; +0x36, 0x180004376 mov rcx, rsi ; +0x38, 0x180004378 xor eax, eax ; +0x3b, 0x18000437b test rdi, rdi ; +0x3d, 0x18000437d cmovz rbx, rax ; +0x40, 0x180004380 call qword ptr [r8+90h] ; +0x44, 0x180004384 mov r9b, 1 ; +0x4b, 0x18000438b mov r8d, ebp ; +0x4e, 0x18000438e mov rcx, rax ; +0x51, 0x180004391 mov rdx, rbx ; +0x54, 0x180004394 mov rbx, [rsp+28h+arg_0] ; +0x57, 0x180004397 mov rbp, [rsp+28h+arg_8] ; +0x5c, 0x18000439c mov rsi, [rsp+28h+arg_10] ; +0x61, 0x1800043a1 add rsp, 20h ; +0x66, 0x1800043a6 pop rdi ; +0x6a, 0x1800043aa jmp cs:?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x6b, 0x1800043ab