{"type": "func", "start": 6442975648, "end": 6442975798, "name": "sub_1800801A0", "pseudocode": "// \n// sub_1800801A0 from 0x1800801a0 to 0x180080236 (150 bytes)\n// \n// 1 xrefs:\n// > sub_18007FBB0 @ 0x18007fdb5\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\n__int64 __fastcall sub_1800801A0(unsigned __int16 *a1, __int64 a2, __int64 a3)\n{\n  unsigned __int64 v3; // r10\n  unsigned __int16 *i; // r9\n  unsigned int v5; // eax\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v9; // rax\n  unsigned int v10; // ecx\n\n  v3 = (unsigned __int64)&a1[a2];\n  for ( i = a1; (unsigned __int64)i < v3; i = (unsigned __int16 *)((char *)i + v7) )\n  {\n    v5 = *i;\n    if ( v5 >= 0xD800 )\n    {\n      if ( v5 - 57344 >= 0x2000 )\n      {\n        if ( v5 - 55296 < 0x400 && (unsigned __int64)(i + 1) < v3 )\n        {\n          v9 = a3 + 4;\n          v10 = i[1] - 56320;\n          if ( v10 >= 0x400 )\n            v9 = a3;\n          a3 = v9;\n          v7 = 4;\n          if ( v10 >= 0x400 )\n            v7 = 2;\n          continue;\n        }\n      }\n      else\n      {\n        a3 += 3;\n      }\n    }\n    else\n    {\n      if ( v5 >= 0x80 )\n        v6 = 3LL - (v5 < 0x800);\n      else\n        v6 = 1;\n      a3 += v6;\n    }\n    v7 = 2;\n  }\n  return a3;\n}", "assembly": "; \n; sub_1800801A0 from 0x1800801a0 to 0x180080236 (150 bytes)\n; \n; 1 xrefs:\n; > sub_18007FBB0 @ 0x18007fdb5\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\nlea     r10, [rcx+rdx*2]                                               ; +0x0, 0x1800801a0\nmov     r9, rcx                                                        ; +0x4, 0x1800801a4\ncmp     rcx, r10                                                       ; +0x7, 0x1800801a7\njnb     short loc_1800801E4                                            ; +0xa, 0x1800801aa\nmov     edx, 2                                                         ; +0xc, 0x1800801ac\nmovzx   eax, word ptr [r9]                                             ; +0x11, 0x1800801b1\ncmp     eax, 0D800h                                                    ; +0x15, 0x1800801b5\njnb     short loc_1800801E8                                            ; +0x1a, 0x1800801ba\ncmp     eax, 80h                                                       ; +0x1c, 0x1800801bc\njnb     short loc_1800801CA                                            ; +0x21, 0x1800801c1\nmov     eax, 1                                                         ; +0x23, 0x1800801c3\njmp     short loc_1800801D6                                            ; +0x28, 0x1800801c8\ncmp     eax, 800h                                                      ; +0x2a, 0x1800801ca\nsbb     rax, rax                                                       ; +0x2f, 0x1800801cf\nadd     rax, 3                                                         ; +0x32, 0x1800801d2\nadd     r8, rax                                                        ; +0x36, 0x1800801d6\nmov     rax, rdx                                                       ; +0x39, 0x1800801d9\nadd     r9, rax                                                        ; +0x3c, 0x1800801dc\ncmp     r9, r10                                                        ; +0x3f, 0x1800801df\njb      short loc_1800801B1                                            ; +0x42, 0x1800801e2\nmov     rax, r8                                                        ; +0x44, 0x1800801e4\nretn                                                                   ; +0x47, 0x1800801e7\nlea     ecx, [rax-0E000h]                                              ; +0x48, 0x1800801e8\ncmp     ecx, 2000h                                                     ; +0x4e, 0x1800801ee\njnb     short loc_1800801FC                                            ; +0x54, 0x1800801f4\nadd     r8, 3                                                          ; +0x56, 0x1800801f6\njmp     short loc_1800801D9                                            ; +0x5a, 0x1800801fa\nadd     eax, 0FFFF2800h                                                ; +0x5c, 0x1800801fc\ncmp     eax, 400h                                                      ; +0x61, 0x180080201\njnb     short loc_1800801D9                                            ; +0x66, 0x180080206\nlea     rax, [r9+2]                                                    ; +0x68, 0x180080208\ncmp     rax, r10                                                       ; +0x6c, 0x18008020c\njnb     short loc_1800801D9                                            ; +0x6f, 0x18008020f\nmovzx   ecx, word ptr [rax]                                            ; +0x71, 0x180080211\nlea     rax, [r8+4]                                                    ; +0x74, 0x180080214\nadd     ecx, 0FFFF2400h                                                ; +0x78, 0x180080218\ncmp     ecx, 400h                                                      ; +0x7e, 0x18008021e\ncmovnb  rax, r8                                                        ; +0x84, 0x180080224\nmov     r8, rax                                                        ; +0x88, 0x180080228\nmov     eax, 4                                                         ; +0x8b, 0x18008022b\ncmovnb  rax, rdx                                                       ; +0x90, 0x180080230\njmp     short loc_1800801DC                                            ; +0x94, 0x180080234", "xrefs": ["sub_18007FBB0 @ 0x18007fdb5"], "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"}