{"type": "func", "start": 6443198048, "end": 6443198161, "name": "cocos2d::CCTouchDispatcher::findHandler", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::findHandler from 0x1800b6660 to 0x1800b66d1 (113 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2904\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:21 +0000\n// \n\nstruct cocos2d::CCTouchHandler *__fastcall cocos2d::CCTouchDispatcher::findHandler(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCArray *a2,\n        struct cocos2d::CCTouchDelegate *a3)\n{\n  unsigned int *v4; // rbx\n  __int64 v5; // rax\n  cocos2d::CCNotificationObserver **v6; // rbx\n  cocos2d::CCNotificationObserver **i; // rsi\n  cocos2d::CCNotificationObserver *v8; // rdi\n\n  if ( a2 )\n  {\n    v4 = *((unsigned int **)a2 + 7);\n    v5 = *v4;\n    if ( (_DWORD)v5 )\n    {\n      v6 = *((cocos2d::CCNotificationObserver ***)v4 + 2);\n      for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )\n      {\n        v8 = *v6;\n        if ( !*v6 )\n          break;\n        if ( cocos2d::CCNotificationObserver::getTarget(*v6) == a3 )\n          return v8;\n      }\n    }\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::findHandler from 0x1800b6660 to 0x1800b66d1 (113 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2904\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b6660\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b6665\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b666a\npush    rdi                                                            ; +0xf, 0x1800b666f\nsub     rsp, 20h                                                       ; +0x10, 0x1800b6670\nmov     rbp, r8                                                        ; +0x14, 0x1800b6674\ntest    rdx, rdx                                                       ; +0x17, 0x1800b6677\njz      short loc_1800B66B5                                            ; +0x1a, 0x1800b667a\nmov     rbx, [rdx+38h]                                                 ; +0x1c, 0x1800b667c\nmov     eax, [rbx]                                                     ; +0x20, 0x1800b6680\ntest    eax, eax                                                       ; +0x22, 0x1800b6682\njz      short loc_1800B66B5                                            ; +0x24, 0x1800b6684\nmov     rbx, [rbx+10h]                                                 ; +0x26, 0x1800b6686\nlea     rsi, [rax-1]                                                   ; +0x2a, 0x1800b668a\nlea     rsi, [rbx+rsi*8]                                               ; +0x2e, 0x1800b668e\ncmp     rbx, rsi                                                       ; +0x32, 0x1800b6692\nja      short loc_1800B66B5                                            ; +0x35, 0x1800b6695\nmov     rdi, [rbx]                                                     ; +0x37, 0x1800b6697\ntest    rdi, rdi                                                       ; +0x3a, 0x1800b669a\njz      short loc_1800B66B5                                            ; +0x3d, 0x1800b669d\nmov     rcx, rdi; this                                                 ; +0x3f, 0x1800b669f\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x42, 0x1800b66a2\ncmp     rax, rbp                                                       ; +0x47, 0x1800b66a7\njz      short loc_1800B66CC                                            ; +0x4a, 0x1800b66aa\nadd     rbx, 8                                                         ; +0x4c, 0x1800b66ac\ncmp     rbx, rsi                                                       ; +0x50, 0x1800b66b0\njbe     short loc_1800B6697                                            ; +0x53, 0x1800b66b3\nxor     eax, eax                                                       ; +0x55, 0x1800b66b5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x1800b66b7\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x5c, 0x1800b66bc\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x61, 0x1800b66c1\nadd     rsp, 20h                                                       ; +0x66, 0x1800b66c6\npop     rdi                                                            ; +0x6a, 0x1800b66ca\nretn                                                                   ; +0x6b, 0x1800b66cb\nmov     rax, rdi                                                       ; +0x6c, 0x1800b66cc\njmp     short loc_1800B66B7                                            ; +0x6f, 0x1800b66cf", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c2904"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}