; ; cocos2d::CCLayer::registerWithTouchDispatcher from 0x180052730 to 0x1800527ae (126 bytes) ; ; 7 xrefs: ; > @ 0x1800f33b8 ; > @ 0x1800f3898 ; > @ 0x1800f3df0 ; > @ 0x1800f4378 ; > @ 0x1800f4970 ; > @ 0x18014cf68 ; > @ 0x1801bc2c8 ; ; 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:45 +0000 ; push rbx ; +0x0, 0x180052730 sub rsp, 20h ; +0x2, 0x180052732 mov rbx, rcx ; +0x6, 0x180052736 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180052739 mov rcx, rax ; +0xe, 0x18005273e mov rdx, [rax] ; +0x11, 0x180052741 call qword ptr [rdx+90h] ; +0x14, 0x180052744 mov r8, [rbx+170h] ; +0x1a, 0x18005274a lea rdx, [rbx+140h] ; +0x21, 0x180052751 xor ecx, ecx ; +0x28, 0x180052758 test r8, r8 ; +0x2a, 0x18005275a jz short loc_180052770 ; +0x2d, 0x18005275d cmp [r8+40h], cl ; +0x2f, 0x18005275f jnz short loc_180052779 ; +0x33, 0x180052763 movzx r9d, byte ptr [r8+48h] ; +0x35, 0x180052765 mov r8d, [r8+44h] ; +0x3a, 0x18005276a jmp short loc_18005279A ; +0x3e, 0x18005276e cmp dword ptr [rbx+18Ch], 0 ; +0x40, 0x180052770 jnz short loc_180052790 ; +0x47, 0x180052777 test rbx, rbx ; +0x49, 0x180052779 cmovz rdx, rcx; struct cocos2d::CCTouchDelegate * ; +0x4c, 0x18005277c xor r8d, r8d; int ; +0x50, 0x180052780 mov rcx, rax; this ; +0x53, 0x180052783 add rsp, 20h ; +0x56, 0x180052786 pop rbx ; +0x5a, 0x18005278a jmp ?addStandardDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H@Z; cocos2d::CCTouchDispatcher::addStandardDelegate(cocos2d::CCTouchDelegate *,int) ; +0x5b, 0x18005278b mov r8d, [rbx+188h]; int ; +0x60, 0x180052790 mov r9b, 1; bool ; +0x67, 0x180052797 test rbx, rbx ; +0x6a, 0x18005279a cmovz rdx, rcx; struct cocos2d::CCTouchDelegate * ; +0x6d, 0x18005279d mov rcx, rax; this ; +0x71, 0x1800527a1 add rsp, 20h ; +0x74, 0x1800527a4 pop rbx ; +0x78, 0x1800527a8 jmp ?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x79, 0x1800527a9