{"type": "func", "start": 6443198176, "end": 6443198374, "name": "cocos2d::CCTouchDispatcher::findHandler", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::findHandler from 0x1800b66e0 to 0x1800b67a6 (198 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTouchDispatcher::setPriority @ 0x1800b6e47\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2910\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::CCTouchDelegate *a2)\n{\n  __int64 v2; // rax\n  unsigned int *v5; // rbx\n  __int64 v6; // rax\n  cocos2d::CCNotificationObserver **v7; // rbx\n  cocos2d::CCNotificationObserver **i; // rsi\n  cocos2d::CCNotificationObserver *v9; // rdi\n  __int64 v10; // rax\n  unsigned int *v11; // rbx\n  __int64 v12; // rax\n  cocos2d::CCNotificationObserver **v13; // rbx\n  cocos2d::CCNotificationObserver **j; // rsi\n\n  v2 = *((_QWORD *)this + 8);\n  if ( v2 )\n  {\n    v5 = *(unsigned int **)(v2 + 56);\n    v6 = *v5;\n    if ( (_DWORD)v6 )\n    {\n      v7 = *((cocos2d::CCNotificationObserver ***)v5 + 2);\n      for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )\n      {\n        v9 = *v7;\n        if ( !*v7 )\n          break;\n        if ( cocos2d::CCNotificationObserver::getTarget(*v7) == a2 )\n          return v9;\n      }\n    }\n  }\n  v10 = *((_QWORD *)this + 9);\n  if ( v10 )\n  {\n    v11 = *(unsigned int **)(v10 + 56);\n    v12 = *v11;\n    if ( (_DWORD)v12 )\n    {\n      v13 = *((cocos2d::CCNotificationObserver ***)v11 + 2);\n      for ( j = &v13[v12 - 1]; v13 <= j; ++v13 )\n      {\n        v9 = *v13;\n        if ( !*v13 )\n          break;\n        if ( cocos2d::CCNotificationObserver::getTarget(*v13) == a2 )\n          return v9;\n      }\n    }\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::findHandler from 0x1800b66e0 to 0x1800b67a6 (198 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTouchDispatcher::setPriority @ 0x1800b6e47\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2910\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, 0x1800b66e0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b66e5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b66ea\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800b66ef\npush    r14                                                            ; +0x14, 0x1800b66f4\nsub     rsp, 20h                                                       ; +0x16, 0x1800b66f6\nmov     rax, [rcx+40h]                                                 ; +0x1a, 0x1800b66fa\nmov     rbp, rdx                                                       ; +0x1e, 0x1800b66fe\nmov     r14, rcx                                                       ; +0x21, 0x1800b6701\ntest    rax, rax                                                       ; +0x24, 0x1800b6704\njz      short loc_1800B6742                                            ; +0x27, 0x1800b6707\nmov     rbx, [rax+38h]                                                 ; +0x29, 0x1800b6709\nmov     eax, [rbx]                                                     ; +0x2d, 0x1800b670d\ntest    eax, eax                                                       ; +0x2f, 0x1800b670f\njz      short loc_1800B6742                                            ; +0x31, 0x1800b6711\nmov     rbx, [rbx+10h]                                                 ; +0x33, 0x1800b6713\nlea     rsi, [rax-1]                                                   ; +0x37, 0x1800b6717\nlea     rsi, [rbx+rsi*8]                                               ; +0x3b, 0x1800b671b\ncmp     rbx, rsi                                                       ; +0x3f, 0x1800b671f\nja      short loc_1800B6742                                            ; +0x42, 0x1800b6722\nmov     rdi, [rbx]                                                     ; +0x44, 0x1800b6724\ntest    rdi, rdi                                                       ; +0x47, 0x1800b6727\njz      short loc_1800B6742                                            ; +0x4a, 0x1800b672a\nmov     rcx, rdi; this                                                 ; +0x4c, 0x1800b672c\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x4f, 0x1800b672f\ncmp     rax, rbp                                                       ; +0x54, 0x1800b6734\njz      short loc_1800B67A1                                            ; +0x57, 0x1800b6737\nadd     rbx, 8                                                         ; +0x59, 0x1800b6739\ncmp     rbx, rsi                                                       ; +0x5d, 0x1800b673d\njbe     short loc_1800B6724                                            ; +0x60, 0x1800b6740\nmov     rax, [r14+48h]                                                 ; +0x62, 0x1800b6742\ntest    rax, rax                                                       ; +0x66, 0x1800b6746\njz      short loc_1800B6784                                            ; +0x69, 0x1800b6749\nmov     rbx, [rax+38h]                                                 ; +0x6b, 0x1800b674b\nmov     eax, [rbx]                                                     ; +0x6f, 0x1800b674f\ntest    eax, eax                                                       ; +0x71, 0x1800b6751\njz      short loc_1800B6784                                            ; +0x73, 0x1800b6753\nmov     rbx, [rbx+10h]                                                 ; +0x75, 0x1800b6755\nlea     rsi, [rax-1]                                                   ; +0x79, 0x1800b6759\nlea     rsi, [rbx+rsi*8]                                               ; +0x7d, 0x1800b675d\ncmp     rbx, rsi                                                       ; +0x81, 0x1800b6761\nja      short loc_1800B6784                                            ; +0x84, 0x1800b6764\nmov     rdi, [rbx]                                                     ; +0x86, 0x1800b6766\ntest    rdi, rdi                                                       ; +0x89, 0x1800b6769\njz      short loc_1800B6784                                            ; +0x8c, 0x1800b676c\nmov     rcx, rdi; this                                                 ; +0x8e, 0x1800b676e\ncall    ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x91, 0x1800b6771\ncmp     rax, rbp                                                       ; +0x96, 0x1800b6776\njz      short loc_1800B67A1                                            ; +0x99, 0x1800b6779\nadd     rbx, 8                                                         ; +0x9b, 0x1800b677b\ncmp     rbx, rsi                                                       ; +0x9f, 0x1800b677f\njbe     short loc_1800B6766                                            ; +0xa2, 0x1800b6782\nxor     eax, eax                                                       ; +0xa4, 0x1800b6784\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa6, 0x1800b6786\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xab, 0x1800b678b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb0, 0x1800b6790\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xb5, 0x1800b6795\nadd     rsp, 20h                                                       ; +0xba, 0x1800b679a\npop     r14                                                            ; +0xbe, 0x1800b679e\nretn                                                                   ; +0xc0, 0x1800b67a0\nmov     rax, rdi                                                       ; +0xc1, 0x1800b67a1\njmp     short loc_1800B6786                                            ; +0xc4, 0x1800b67a4", "xrefs": ["cocos2d::CCTouchDispatcher::setPriority @ 0x1800b6e47", "<???> @ 0x18014cf68", "<???> @ 0x1801c2910"], "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"}