//
// sub_180135F5C from 0x180135f5c to 0x180135f8d (49 bytes)
//
// 4 xrefs:
// > _LocaleUpdate::_LocaleUpdate @ 0x1801294b1
// > __pctype_func @ 0x180136b11
// > ___lc_codepage_func @ 0x18013d35d
// > ??> @ 0x1802034a0
//
// 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_180135F5C(__int64 a1, __int64 *a2)
{
__int64 result; // rax
result = qword_1801F5158;
if ( *a2 != qword_1801F5158 )
{
result = *(unsigned int *)(a1 + 936);
if ( ((unsigned int)result & dword_1801B1F90) == 0 )
{
result = _acrt_update_thread_locale_data();
*a2 = result;
}
}
return result;
}