{"type": "func", "start": 6442956352, "end": 6442956402, "name": "cocos2d::CCEGLView::scanCodeForPositionalKey", "pseudocode": "// \n// cocos2d::CCEGLView::scanCodeForPositionalKey from 0x18007b640 to 0x18007b672 (50 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18014cf68\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:00 +0000\n// \n\n__int64 __fastcall cocos2d::CCEGLView::scanCodeForPositionalKey(int a1)\n{\n  unsigned int v1; // r8d\n  __int64 v2; // rax\n\n  if ( a1 <= 0 )\n    return 0;\n  v1 = 1;\n  v2 = 1;\n  while ( byte_180106F20[v2] != a1 )\n  {\n    ++v1;\n    if ( ++v2 >= 128 )\n      return 0;\n  }\n  return v1;\n}", "assembly": "; \n; cocos2d::CCEGLView::scanCodeForPositionalKey from 0x18007b640 to 0x18007b672 (50 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18014cf68\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:00 +0000\n; \ntest    ecx, ecx                                                       ; +0x0, 0x18007b640\njle     short loc_18007B66B                                            ; +0x2, 0x18007b642\nmov     r8d, 1                                                         ; +0x4, 0x18007b644\nlea     r9, byte_180106F20                                             ; +0xa, 0x18007b64a\nmov     eax, r8d                                                       ; +0x11, 0x18007b651\nmovzx   edx, byte ptr [rax+r9]                                         ; +0x14, 0x18007b654\ncmp     edx, ecx                                                       ; +0x19, 0x18007b659\njz      short loc_18007B66E                                            ; +0x1b, 0x18007b65b\ninc     r8d                                                            ; +0x1d, 0x18007b65d\ninc     rax                                                            ; +0x20, 0x18007b660\ncmp     rax, 80h                                                       ; +0x23, 0x18007b663\njl      short loc_18007B654                                            ; +0x29, 0x18007b669\nxor     eax, eax                                                       ; +0x2b, 0x18007b66b\nretn                                                                   ; +0x2d, 0x18007b66d\nmov     eax, r8d                                                       ; +0x2e, 0x18007b66e\nretn                                                                   ; +0x31, 0x18007b671", "xrefs": ["<???> @ 0x18014cf68"], "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"}