; ; cocos2d::CCLayer::registerWithTouchDispatcher from 0x180050910 to 0x18005098e (126 bytes) ; ; 7 xrefs: ; > @ 0x1800ed258 ; > @ 0x1800ed718 ; > @ 0x1800edc50 ; > @ 0x1800ee1b8 ; > @ 0x1800ee790 ; > @ 0x1801438a8 ; > @ 0x1801b2034 ; ; 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 rbx ; +0x0, 0x180050910 sub rsp, 20h ; +0x2, 0x180050912 mov rbx, rcx ; +0x6, 0x180050916 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x180050919 mov rcx, rax ; +0xe, 0x18005091e mov rdx, [rax] ; +0x11, 0x180050921 call qword ptr [rdx+90h] ; +0x14, 0x180050924 mov r8, [rbx+170h] ; +0x1a, 0x18005092a lea rdx, [rbx+140h] ; +0x21, 0x180050931 xor ecx, ecx ; +0x28, 0x180050938 test r8, r8 ; +0x2a, 0x18005093a jz short loc_180050950 ; +0x2d, 0x18005093d cmp [r8+40h], cl ; +0x2f, 0x18005093f jnz short loc_180050959 ; +0x33, 0x180050943 movzx r9d, byte ptr [r8+48h] ; +0x35, 0x180050945 mov r8d, [r8+44h] ; +0x3a, 0x18005094a jmp short loc_18005097A ; +0x3e, 0x18005094e cmp dword ptr [rbx+18Ch], 0 ; +0x40, 0x180050950 jnz short loc_180050970 ; +0x47, 0x180050957 test rbx, rbx ; +0x49, 0x180050959 cmovz rdx, rcx; struct cocos2d::CCTouchDelegate * ; +0x4c, 0x18005095c xor r8d, r8d; int ; +0x50, 0x180050960 mov rcx, rax; this ; +0x53, 0x180050963 add rsp, 20h ; +0x56, 0x180050966 pop rbx ; +0x5a, 0x18005096a jmp ?addStandardDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H@Z; cocos2d::CCTouchDispatcher::addStandardDelegate(cocos2d::CCTouchDelegate *,int) ; +0x5b, 0x18005096b mov r8d, [rbx+188h]; int ; +0x60, 0x180050970 mov r9b, 1; bool ; +0x67, 0x180050977 test rbx, rbx ; +0x6a, 0x18005097a cmovz rdx, rcx; struct cocos2d::CCTouchDelegate * ; +0x6d, 0x18005097d mov rcx, rax; this ; +0x71, 0x180050981 add rsp, 20h ; +0x74, 0x180050984 pop rbx ; +0x78, 0x180050988 jmp ?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x79, 0x180050989