//
// x_ismbbtype_l from 0x18013ab4c to 0x18013abc1 (117 bytes)
//
// 2 xrefs:
// > _ismbblead @ 0x18013abd1
// > ??> @ 0x18020389c
//
// 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 x_ismbbtype_l(struct __crt_locale_pointers *a1, unsigned __int8 a2, int a3, unsigned __int8 a4)
{
__int64 result; // rax
_QWORD v8[3]; // [rsp+20h] [rbp-28h] BYREF
char v9; // [rsp+38h] [rbp-10h]
_LocaleUpdate::_LocaleUpdate((_LocaleUpdate *)v8, a1);
if ( (a4 & *(_BYTE *)(a2 + v8[2] + 25LL)) != 0
|| (!a3 ? (result = 0) : (result = (unsigned __int16)(a3 & *(_WORD *)(*(_QWORD *)v8[1] + 2LL * a2))), (_DWORD)result) )
{
result = 1;
}
if ( v9 )
*(_DWORD *)(v8[0] + 936LL) &= ~2u;
return result;
}