//
// x_ismbbtype_l from 0x18013ab4c to 0x18013abc1 (117 bytes)
//
// 2 xrefs:
// > _ismbblead @ 0x18013abd1
// > ??> @ 0x18020389c
//
// 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 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;
}