//
// __ascii_wcsnicmp from 0x18013b940 to 0x18013b98b (75 bytes)
//
// 3 xrefs:
// > _wcsnicoll @ 0x18013444a
// > _wcsnicoll_l @ 0x1801344ec
// > __acrt_DownlevelLocaleNameToLCID @ 0x18013c5f7
//
// 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 10:55:02 +0000
//
__int64 __fastcall _ascii_wcsnicmp(unsigned __int16 *a1, unsigned __int16 *a2, __int64 a3)
{
__int64 result; // rax
int v6; // ecx
int v7; // edx
int v8; // r9d
int v9; // ecx
if ( !a3 )
return 0;
do
{
v6 = *a1++;
v7 = *a2++;
v8 = v6 + 32;
if ( (unsigned int)(v6 - 65) > 0x19 )
v8 = v6;
v9 = v7 + 32;
if ( (unsigned int)(v7 - 65) > 0x19 )
v9 = v7;
result = (unsigned int)(v8 - v9);
if ( (_DWORD)result )
break;
if ( !v8 )
break;
--a3;
}
while ( a3 );
return result;
}