{"type": "func", "start": 6443114048, "end": 6443114089, "name": "sub_1800A1E40", "pseudocode": "// \n// sub_1800A1E40 from 0x1800a1e40 to 0x1800a1e69 (41 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b64de\n// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b660e\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:13 +0000\n// \n\nbool __fastcall sub_1800A1E40(__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_1800A1E40 from 0x1800a1e40 to 0x1800a1e69 (41 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b64de\n; > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b660e\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:13 +0000\n; \nmov     r8d, [rcx]                                                     ; +0x0, 0x1800a1e40\nxor     eax, eax                                                       ; +0x3, 0x1800a1e43\ntest    r8d, r8d                                                       ; +0x5, 0x1800a1e45\njz      short loc_1800A1E5D                                            ; +0x8, 0x1800a1e48\nmov     r9, [rcx+10h]                                                  ; +0xa, 0x1800a1e4a\nxchg    ax, ax                                                         ; +0xe, 0x1800a1e4e\ncmp     [r9+rax*8], rdx                                                ; +0x10, 0x1800a1e50\njz      short loc_1800A1E62                                            ; +0x14, 0x1800a1e54\ninc     eax                                                            ; +0x16, 0x1800a1e56\ncmp     eax, r8d                                                       ; +0x18, 0x1800a1e58\njb      short loc_1800A1E50                                            ; +0x1b, 0x1800a1e5b\nmov     eax, 0FFFFFFFFh                                                ; +0x1d, 0x1800a1e5d\ncmp     eax, 0FFFFFFFFh                                                ; +0x22, 0x1800a1e62\nsetnz   al                                                             ; +0x25, 0x1800a1e65\nretn                                                                   ; +0x28, 0x1800a1e68", "xrefs": ["cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1800b64de", "cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b660e"], "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"}