{"type": "func", "start": 6442987904, "end": 6442988054, "name": "sub_180083180", "pseudocode": "// \n// sub_180083180 from 0x180083180 to 0x180083216 (150 bytes)\n// \n// 1 xrefs:\n// > sub_180082B00 @ 0x180082ced\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:03 +0000\n// \n\n__int64 __fastcall sub_180083180(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_180083180 from 0x180083180 to 0x180083216 (150 bytes)\n; \n; 1 xrefs:\n; > sub_180082B00 @ 0x180082ced\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:03 +0000\n; \nlea     r10, [rcx+rdx*2]                                               ; +0x0, 0x180083180\nmov     r9, rcx                                                        ; +0x4, 0x180083184\ncmp     rcx, r10                                                       ; +0x7, 0x180083187\njnb     short loc_1800831C4                                            ; +0xa, 0x18008318a\nmov     edx, 2                                                         ; +0xc, 0x18008318c\nmovzx   eax, word ptr [r9]                                             ; +0x11, 0x180083191\ncmp     eax, 0D800h                                                    ; +0x15, 0x180083195\njnb     short loc_1800831C8                                            ; +0x1a, 0x18008319a\ncmp     eax, 80h                                                       ; +0x1c, 0x18008319c\njnb     short loc_1800831AA                                            ; +0x21, 0x1800831a1\nmov     eax, 1                                                         ; +0x23, 0x1800831a3\njmp     short loc_1800831B6                                            ; +0x28, 0x1800831a8\ncmp     eax, 800h                                                      ; +0x2a, 0x1800831aa\nsbb     rax, rax                                                       ; +0x2f, 0x1800831af\nadd     rax, 3                                                         ; +0x32, 0x1800831b2\nadd     r8, rax                                                        ; +0x36, 0x1800831b6\nmov     rax, rdx                                                       ; +0x39, 0x1800831b9\nadd     r9, rax                                                        ; +0x3c, 0x1800831bc\ncmp     r9, r10                                                        ; +0x3f, 0x1800831bf\njb      short loc_180083191                                            ; +0x42, 0x1800831c2\nmov     rax, r8                                                        ; +0x44, 0x1800831c4\nretn                                                                   ; +0x47, 0x1800831c7\nlea     ecx, [rax-0E000h]                                              ; +0x48, 0x1800831c8\ncmp     ecx, 2000h                                                     ; +0x4e, 0x1800831ce\njnb     short loc_1800831DC                                            ; +0x54, 0x1800831d4\nadd     r8, 3                                                          ; +0x56, 0x1800831d6\njmp     short loc_1800831B9                                            ; +0x5a, 0x1800831da\nadd     eax, 0FFFF2800h                                                ; +0x5c, 0x1800831dc\ncmp     eax, 400h                                                      ; +0x61, 0x1800831e1\njnb     short loc_1800831B9                                            ; +0x66, 0x1800831e6\nlea     rax, [r9+2]                                                    ; +0x68, 0x1800831e8\ncmp     rax, r10                                                       ; +0x6c, 0x1800831ec\njnb     short loc_1800831B9                                            ; +0x6f, 0x1800831ef\nmovzx   ecx, word ptr [rax]                                            ; +0x71, 0x1800831f1\nlea     rax, [r8+4]                                                    ; +0x74, 0x1800831f4\nadd     ecx, 0FFFF2400h                                                ; +0x78, 0x1800831f8\ncmp     ecx, 400h                                                      ; +0x7e, 0x1800831fe\ncmovnb  rax, r8                                                        ; +0x84, 0x180083204\nmov     r8, rax                                                        ; +0x88, 0x180083208\nmov     eax, 4                                                         ; +0x8b, 0x18008320b\ncmovnb  rax, rdx                                                       ; +0x90, 0x180083210\njmp     short loc_1800831BC                                            ; +0x94, 0x180083214", "xrefs": ["sub_180082B00 @ 0x180082ced"], "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"}