; ; cocos2d::CCLayer::setTouchEnabled from 0x180050eb0 to 0x180050f20 (112 bytes) ; ; 10 xrefs: ; > @ 0x1800ed278 ; > @ 0x1800ed738 ; > @ 0x1800edc70 ; > @ 0x1800ee1d8 ; > @ 0x1800ee7b0 ; > @ 0x1800f7080 ; > @ 0x18013801c ; > @ 0x18013802c ; > @ 0x1801438a8 ; > @ 0x1801b2148 ; ; 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 rdi ; +0x0, 0x180050eb0 sub rsp, 20h ; +0x2, 0x180050eb2 mov rdi, rcx ; +0x6, 0x180050eb6 cmp [rcx+168h], dl ; +0x9, 0x180050eb9 jz short loc_180050F1A ; +0xf, 0x180050ebf cmp byte ptr [rcx+110h], 0 ; +0x11, 0x180050ec1 mov [rcx+168h], dl ; +0x18, 0x180050ec8 jz short loc_180050F1A ; +0x1e, 0x180050ece test dl, dl ; +0x20, 0x180050ed0 jz short loc_180050EE3 ; +0x22, 0x180050ed2 mov rax, [rcx] ; +0x24, 0x180050ed4 add rsp, 20h ; +0x27, 0x180050ed7 pop rdi ; +0x2b, 0x180050edb jmp qword ptr [rax+368h] ; +0x2c, 0x180050edc mov [rsp+28h+arg_0], rbx ; +0x33, 0x180050ee3 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x180050ee8 xor ecx, ecx ; +0x3d, 0x180050eed lea rbx, [rdi+140h] ; +0x3f, 0x180050eef test rdi, rdi ; +0x46, 0x180050ef6 mov r8, [rax] ; +0x49, 0x180050ef9 cmovz rbx, rcx ; +0x4c, 0x180050efc mov rcx, rax ; +0x50, 0x180050f00 call qword ptr [r8+90h] ; +0x53, 0x180050f03 mov rcx, rax; this ; +0x5a, 0x180050f0a mov rdx, rbx; struct cocos2d::CCTouchDelegate * ; +0x5d, 0x180050f0d call ?removeDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::removeDelegate(cocos2d::CCTouchDelegate *) ; +0x60, 0x180050f10 mov rbx, [rsp+28h+arg_0] ; +0x65, 0x180050f15 add rsp, 20h ; +0x6a, 0x180050f1a pop rdi ; +0x6e, 0x180050f1e retn ; +0x6f, 0x180050f1f