// // sub_180083180 from 0x180083180 to 0x180083216 (150 bytes) // // 1 xrefs: // > sub_180082B00 @ 0x180082ced // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:03 +0000 // __int64 __fastcall sub_180083180(unsigned __int16 *a1, __int64 a2, __int64 a3) { unsigned __int64 v3; // r10 unsigned __int16 *i; // r9 unsigned int v5; // eax __int64 v6; // rax __int64 v7; // rax __int64 v9; // rax unsigned int v10; // ecx v3 = (unsigned __int64)&a1[a2]; for ( i = a1; (unsigned __int64)i < v3; i = (unsigned __int16 *)((char *)i + v7) ) { v5 = *i; if ( v5 >= 0xD800 ) { if ( v5 - 57344 >= 0x2000 ) { if ( v5 - 55296 < 0x400 && (unsigned __int64)(i + 1) < v3 ) { v9 = a3 + 4; v10 = i[1] - 56320; if ( v10 >= 0x400 ) v9 = a3; a3 = v9; v7 = 4; if ( v10 >= 0x400 ) v7 = 2; continue; } } else { a3 += 3; } } else { if ( v5 >= 0x80 ) v6 = 3LL - (v5 < 0x800); else v6 = 1; a3 += v6; } v7 = 2; } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source