{"type": "func", "start": 6443197424, "end": 6443197577, "name": "cocos2d::CCTouchDispatcher::addPrioTargetedDelegate", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::addPrioTargetedDelegate from 0x1800b63f0 to 0x1800b6489 (153 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c28e0\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\nvoid __fastcall cocos2d::CCTouchDispatcher::addPrioTargetedDelegate(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCTouchDelegate *a2,\n        int a3,\n        bool a4)\n{\n  struct cocos2d::CCNode *v8; // rax\n  int v9; // ebx\n  int v10[6]; // [rsp+30h] [rbp-18h] BYREF\n\n  v10[0] = 0;\n  v8 = (struct cocos2d::CCNode *)_RTDynamicCast(\n                                   a2,\n                                   0,\n                                   &cocos2d::CCTouchDelegate `RTTI Type Descriptor',\n                                   &cocos2d::CCNode `RTTI Type Descriptor',\n                                   0);\n  if ( v8 && cocos2d::CCTouchDispatcher::ownerLevelOf(this, v8, v10) )\n  {\n    v9 = v10[0];\nLABEL_6:\n    a3 = v9 - 1;\n    goto LABEL_7;\n  }\n  if ( *((int *)this + 40) > 0 )\n  {\n    v9 = *((_DWORD *)this + 32);\n    goto LABEL_6;\n  }\nLABEL_7:\n  cocos2d::CCTouchDispatcher::addTargetedDelegate(this, a2, a3, a4);\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::addPrioTargetedDelegate from 0x1800b63f0 to 0x1800b6489 (153 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c28e0\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, 0x1800b63f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b63f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b63fa\npush    rdi                                                            ; +0xf, 0x1800b63ff\nsub     rsp, 40h                                                       ; +0x10, 0x1800b6400\nmov     rsi, rdx                                                       ; +0x14, 0x1800b6404\nxor     eax, eax                                                       ; +0x17, 0x1800b6407\nmovzx   ebp, r9b                                                       ; +0x19, 0x1800b6409\nmov     [rsp+48h+var_18], eax                                          ; +0x1d, 0x1800b640d\nmov     ebx, r8d                                                       ; +0x21, 0x1800b6411\nmov     [rsp+48h+var_28], eax                                          ; +0x24, 0x1800b6414\nmov     rdi, rcx                                                       ; +0x28, 0x1800b6418\nlea     r9, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x2b, 0x1800b641b\nmov     rcx, rsi                                                       ; +0x32, 0x1800b6422\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x35, 0x1800b6425\nxor     edx, edx                                                       ; +0x3c, 0x1800b642c\ncall    __RTDynamicCast                                                ; +0x3e, 0x1800b642e\ntest    rax, rax                                                       ; +0x43, 0x1800b6433\njz      short loc_1800B6452                                            ; +0x46, 0x1800b6436\nlea     r8, [rsp+48h+var_18]; int *                                    ; +0x48, 0x1800b6438\nmov     rdx, rax; struct cocos2d::CCNode *                             ; +0x4d, 0x1800b643d\nmov     rcx, rdi; this                                                 ; +0x50, 0x1800b6440\ncall    ?ownerLevelOf@CCTouchDispatcher@cocos2d@@QEAA_NPEAVCCNode@2@AEAH@Z; cocos2d::CCTouchDispatcher::ownerLevelOf(cocos2d::CCNode *,int &) ; +0x53, 0x1800b6443\ntest    al, al                                                         ; +0x58, 0x1800b6448\njz      short loc_1800B6452                                            ; +0x5a, 0x1800b644a\nmov     ebx, [rsp+48h+var_18]                                          ; +0x5c, 0x1800b644c\njmp     short loc_1800B6461                                            ; +0x60, 0x1800b6450\ncmp     dword ptr [rdi+0A0h], 0                                        ; +0x62, 0x1800b6452\njle     short loc_1800B6463                                            ; +0x69, 0x1800b6459\nmov     ebx, [rdi+80h]                                                 ; +0x6b, 0x1800b645b\ndec     ebx                                                            ; +0x71, 0x1800b6461\nmovzx   r9d, bpl; bool                                                 ; +0x73, 0x1800b6463\nmov     r8d, ebx; int                                                  ; +0x77, 0x1800b6467\nmov     rdx, rsi; struct cocos2d::CCTouchDelegate *                    ; +0x7a, 0x1800b646a\nmov     rcx, rdi; this                                                 ; +0x7d, 0x1800b646d\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x80, 0x1800b6470\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x85, 0x1800b6475\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x8a, 0x1800b647a\nadd     rsp, 40h                                                       ; +0x8f, 0x1800b647f\npop     rdi                                                            ; +0x93, 0x1800b6483\njmp     ?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x94, 0x1800b6484", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c28e0"], "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"}