{"type": "func", "start": 6443199264, "end": 6443199540, "name": "cocos2d::CCTouchDispatcher::ownerLevelOf", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::ownerLevelOf from 0x1800b6b20 to 0x1800b6c34 (276 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x1800b6443\n// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b6583\n// > cocos2d::CCTouchDispatcher::ownerLevelFor @ 0x1800b6af1\n// > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6bf9\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2964\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:22 +0000\n// \n\nchar __fastcall cocos2d::CCTouchDispatcher::ownerLevelOf(\n        cocos2d::CCDictionary **this,\n        struct cocos2d::CCNode *a2,\n        int *a3)\n{\n  struct cocos2d::CCObject *v6; // rax\n  struct cocos2d::CCObject *v7; // rax\n  __int64 v8; // rdx\n  int v10; // ebp\n  __int64 v11; // rax\n  struct cocos2d::CCNode *v12; // rax\n  int v13; // ecx\n  unsigned int v14; // ebx\n  cocos2d::CCDictionary *v15; // rdi\n  struct cocos2d::CCInteger *v16; // rax\n  int v17; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( !(unsigned int)cocos2d::CCDictionary::count(*(this + 18)) || !a2 )\n    return 0;\n  while ( 1 )\n  {\n    v6 = cocos2d::CCDictionary::objectForKey(*(this + 18), *((unsigned int *)a2 + 2));\n    if ( v6 )\n    {\n      *a3 = *((_DWORD *)v6 + 14);\n      return 1;\n    }\n    v7 = cocos2d::CCDictionary::objectForKey(*(this + 19), *((unsigned int *)a2 + 2));\n    v8 = *((unsigned int *)a2 + 2);\n    if ( v7 )\n      break;\n    if ( !cocos2d::CCDictionary::objectForKey(*(this + 17), v8) )\n    {\n      a2 = (struct cocos2d::CCNode *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 504LL))(a2);\n      if ( a2 )\n        continue;\n    }\n    return 0;\n  }\n  v10 = *((_DWORD *)v7 + 14);\n  cocos2d::CCDictionary::removeObjectForKey(*(this + 19), v8);\n  v11 = *(_QWORD *)a2;\n  v17 = 0;\n  v12 = (struct cocos2d::CCNode *)(*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(v11 + 504))(a2);\n  if ( !cocos2d::CCTouchDispatcher::ownerLevelOf((cocos2d::CCTouchDispatcher *)this, v12, &v17) )\n    return 0;\n  v13 = v17 - v10;\n  *a3 = v17 - v10;\n  v14 = *((_DWORD *)a2 + 2);\n  v15 = *(this + 18);\n  v16 = cocos2d::CCInteger::create(v13);\n  cocos2d::CCDictionary::setObject(v15, v16, v14);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::ownerLevelOf from 0x1800b6b20 to 0x1800b6c34 (276 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x1800b6443\n; > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b6583\n; > cocos2d::CCTouchDispatcher::ownerLevelFor @ 0x1800b6af1\n; > cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6bf9\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2964\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:22 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800b6b20\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800b6b25\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800b6b2a\npush    rdi                                                            ; +0xf, 0x1800b6b2f\nsub     rsp, 20h                                                       ; +0x10, 0x1800b6b30\nmov     rdi, rcx                                                       ; +0x14, 0x1800b6b34\nmov     rsi, r8                                                        ; +0x17, 0x1800b6b37\nmov     rcx, [rcx+90h]; this                                           ; +0x1a, 0x1800b6b3a\nmov     rbx, rdx                                                       ; +0x21, 0x1800b6b41\ncall    ?count@CCDictionary@cocos2d@@QEAAIXZ; cocos2d::CCDictionary::count(void) ; +0x24, 0x1800b6b44\ntest    eax, eax                                                       ; +0x29, 0x1800b6b49\njz      short loc_1800B6BB4                                            ; +0x2b, 0x1800b6b4b\ntest    rbx, rbx                                                       ; +0x2d, 0x1800b6b4d\njz      short loc_1800B6BB4                                            ; +0x30, 0x1800b6b50\nnop     dword ptr [rax+00h]                                            ; +0x32, 0x1800b6b52\nnop     word ptr [rax+rax+00000000h]                                   ; +0x36, 0x1800b6b56\nmov     edx, [rbx+8]; __int64                                          ; +0x40, 0x1800b6b60\nmov     rcx, [rdi+90h]; this                                           ; +0x43, 0x1800b6b63\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x4a, 0x1800b6b6a\ntest    rax, rax                                                       ; +0x4f, 0x1800b6b6f\njnz     loc_1800B6C2B                                                  ; +0x52, 0x1800b6b72\nmov     edx, [rbx+8]; __int64                                          ; +0x58, 0x1800b6b78\nmov     rcx, [rdi+98h]; this                                           ; +0x5b, 0x1800b6b7b\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x62, 0x1800b6b82\nmov     edx, [rbx+8]; __int64                                          ; +0x67, 0x1800b6b87\ntest    rax, rax                                                       ; +0x6a, 0x1800b6b8a\njnz     short loc_1800B6BCB                                            ; +0x6d, 0x1800b6b8d\nmov     rcx, [rdi+88h]; this                                           ; +0x6f, 0x1800b6b8f\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x76, 0x1800b6b96\ntest    rax, rax                                                       ; +0x7b, 0x1800b6b9b\njnz     short loc_1800B6BB4                                            ; +0x7e, 0x1800b6b9e\nmov     rax, [rbx]                                                     ; +0x80, 0x1800b6ba0\nmov     rcx, rbx                                                       ; +0x83, 0x1800b6ba3\ncall    qword ptr [rax+1F8h]                                           ; +0x86, 0x1800b6ba6\nmov     rbx, rax                                                       ; +0x8c, 0x1800b6bac\ntest    rax, rax                                                       ; +0x8f, 0x1800b6baf\njnz     short loc_1800B6B60                                            ; +0x92, 0x1800b6bb2\nxor     al, al                                                         ; +0x94, 0x1800b6bb4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x96, 0x1800b6bb6\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x9b, 0x1800b6bbb\nmov     rsi, [rsp+28h+arg_18]                                          ; +0xa0, 0x1800b6bc0\nadd     rsp, 20h                                                       ; +0xa5, 0x1800b6bc5\npop     rdi                                                            ; +0xa9, 0x1800b6bc9\nretn                                                                   ; +0xaa, 0x1800b6bca\nmov     rcx, [rdi+98h]; this                                           ; +0xab, 0x1800b6bcb\nmov     ebp, [rax+38h]                                                 ; +0xb2, 0x1800b6bd2\ncall    ?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0xb5, 0x1800b6bd5\nmov     rax, [rbx]                                                     ; +0xba, 0x1800b6bda\nmov     rcx, rbx                                                       ; +0xbd, 0x1800b6bdd\nmov     [rsp+28h+arg_0], 0                                             ; +0xc0, 0x1800b6be0\ncall    qword ptr [rax+1F8h]                                           ; +0xc8, 0x1800b6be8\nlea     r8, [rsp+28h+arg_0]; int *                                     ; +0xce, 0x1800b6bee\nmov     rcx, rdi; this                                                 ; +0xd3, 0x1800b6bf3\nmov     rdx, rax; struct cocos2d::CCNode *                             ; +0xd6, 0x1800b6bf6\ncall    ?ownerLevelOf@CCTouchDispatcher@cocos2d@@QEAA_NPEAVCCNode@2@AEAH@Z; cocos2d::CCTouchDispatcher::ownerLevelOf(cocos2d::CCNode *,int &) ; +0xd9, 0x1800b6bf9\ntest    al, al                                                         ; +0xde, 0x1800b6bfe\njz      short loc_1800B6BB4                                            ; +0xe0, 0x1800b6c00\nmov     ecx, [rsp+28h+arg_0]                                           ; +0xe2, 0x1800b6c02\nsub     ecx, ebp; int                                                  ; +0xe6, 0x1800b6c06\nmov     [rsi], ecx                                                     ; +0xe8, 0x1800b6c08\nmov     ebx, [rbx+8]                                                   ; +0xea, 0x1800b6c0a\nmov     rdi, [rdi+90h]                                                 ; +0xed, 0x1800b6c0d\ncall    ?create@CCInteger@cocos2d@@SAPEAV12@H@Z; cocos2d::CCInteger::create(int) ; +0xf4, 0x1800b6c14\nmov     rdx, rax; struct cocos2d::CCObject *                           ; +0xf9, 0x1800b6c19\nmov     r8d, ebx; __int64                                              ; +0xfc, 0x1800b6c1c\nmov     rcx, rdi; this                                                 ; +0xff, 0x1800b6c1f\ncall    ?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x102, 0x1800b6c22\nmov     al, 1                                                          ; +0x107, 0x1800b6c27\njmp     short loc_1800B6BB6                                            ; +0x109, 0x1800b6c29\nmov     eax, [rax+38h]                                                 ; +0x10b, 0x1800b6c2b\nmov     [rsi], eax                                                     ; +0x10e, 0x1800b6c2e\nmov     al, 1                                                          ; +0x110, 0x1800b6c30\njmp     short loc_1800B6BB6                                            ; +0x112, 0x1800b6c32", "xrefs": ["cocos2d::CCTouchDispatcher::addPrioTargetedDelegate @ 0x1800b6443", "cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b6583", "cocos2d::CCTouchDispatcher::ownerLevelFor @ 0x1800b6af1", "cocos2d::CCTouchDispatcher::ownerLevelOf @ 0x1800b6bf9", "<???> @ 0x18014cf68", "<???> @ 0x1801c2964"], "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"}