; ; cocos2d::CCLayer::setTouchEnabled from 0x180052cd0 to 0x180052d43 (115 bytes) ; ; 10 xrefs: ; > @ 0x1800f33d8 ; > @ 0x1800f38b8 ; > @ 0x1800f3e10 ; > @ 0x1800f4398 ; > @ 0x1800f4990 ; > @ 0x1800fd4c8 ; > @ 0x180141244 ; > @ 0x180141254 ; > @ 0x18014cf68 ; > @ 0x1801bc3dc ; ; 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:46 +0000 ; push rdi ; +0x0, 0x180052cd0 sub rsp, 20h ; +0x2, 0x180052cd2 mov rdi, rcx ; +0x6, 0x180052cd6 cmp [rcx+168h], dl ; +0x9, 0x180052cd9 jz short loc_180052D3D ; +0xf, 0x180052cdf cmp byte ptr [rcx+110h], 0 ; +0x11, 0x180052ce1 mov [rcx+168h], dl ; +0x18, 0x180052ce8 jz short loc_180052D3D ; +0x1e, 0x180052cee test dl, dl ; +0x20, 0x180052cf0 jz short loc_180052D03 ; +0x22, 0x180052cf2 mov rax, [rcx] ; +0x24, 0x180052cf4 add rsp, 20h ; +0x27, 0x180052cf7 pop rdi ; +0x2b, 0x180052cfb jmp qword ptr [rax+378h] ; +0x2c, 0x180052cfc mov [rsp+28h+arg_0], rbx ; +0x33, 0x180052d03 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x38, 0x180052d08 xor ecx, ecx ; +0x3d, 0x180052d0d lea rbx, [rdi+140h] ; +0x3f, 0x180052d0f test rdi, rdi ; +0x46, 0x180052d16 cmovz rbx, rcx ; +0x49, 0x180052d19 mov rcx, [rax] ; +0x4d, 0x180052d1d mov r8, [rcx+90h] ; +0x50, 0x180052d20 mov rcx, rax ; +0x57, 0x180052d27 call r8 ; +0x5a, 0x180052d2a mov rcx, rax; this ; +0x5d, 0x180052d2d mov rdx, rbx; struct cocos2d::CCTouchDelegate * ; +0x60, 0x180052d30 call ?removeDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@@Z; cocos2d::CCTouchDispatcher::removeDelegate(cocos2d::CCTouchDelegate *) ; +0x63, 0x180052d33 mov rbx, [rsp+28h+arg_0] ; +0x68, 0x180052d38 add rsp, 20h ; +0x6d, 0x180052d3d pop rdi ; +0x71, 0x180052d41 retn ; +0x72, 0x180052d42