{"type": "func", "start": 6443098544, "end": 6443098585, "name": "sub_18009E1B0", "pseudocode": "// \n// sub_18009E1B0 from 0x18009e1b0 to 0x18009e1d9 (41 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b2ace\n// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2bb4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall sub_18009E1B0(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n\n  v2 = 0;\n  if ( *(_DWORD *)a1 )\n  {\n    while ( *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * v2) != a2 )\n    {\n      v2 = (unsigned int)(v2 + 1);\n      if ( (unsigned int)v2 >= *(_DWORD *)a1 )\n        goto LABEL_4;\n    }\n  }\n  else\n  {\nLABEL_4:\n    LODWORD(v2) = -1;\n  }\n  return (_DWORD)v2 != -1;\n}", "assembly": "; \n; sub_18009E1B0 from 0x18009e1b0 to 0x18009e1d9 (41 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b2ace\n; > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2bb4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     r8d, [rcx]                                                     ; +0x0, 0x18009e1b0\nxor     eax, eax                                                       ; +0x3, 0x18009e1b3\ntest    r8d, r8d                                                       ; +0x5, 0x18009e1b5\njz      short loc_18009E1CD                                            ; +0x8, 0x18009e1b8\nmov     r9, [rcx+10h]                                                  ; +0xa, 0x18009e1ba\nxchg    ax, ax                                                         ; +0xe, 0x18009e1be\ncmp     [r9+rax*8], rdx                                                ; +0x10, 0x18009e1c0\njz      short loc_18009E1D2                                            ; +0x14, 0x18009e1c4\ninc     eax                                                            ; +0x16, 0x18009e1c6\ncmp     eax, r8d                                                       ; +0x18, 0x18009e1c8\njb      short loc_18009E1C0                                            ; +0x1b, 0x18009e1cb\nmov     eax, 0FFFFFFFFh                                                ; +0x1d, 0x18009e1cd\ncmp     eax, 0FFFFFFFFh                                                ; +0x22, 0x18009e1d2\nsetnz   al                                                             ; +0x25, 0x18009e1d5\nretn                                                                   ; +0x28, 0x18009e1d8", "xrefs": ["cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b2ace", "cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2bb4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}