// // sub_1800801A0 from 0x1800801a0 to 0x180080236 (150 bytes) // // 1 xrefs: // > sub_18007FBB0 @ 0x18007fdb5 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall sub_1800801A0(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