//
// __acrt_update_thread_locale_data from 0x18013c4cc to 0x18013c53a (110 bytes)
//
// 3 xrefs:
// > sub_180135F5C @ 0x180135f7f
// > ??> @ 0x1802039d4
// > ??> @ 0x1802039e0
//
// 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 _acrt_update_thread_locale_data()
{
__int64 v0; // rax
__int64 *v1; // rdi
__int64 v2; // rbx
v0 = _acrt_getptd();
v1 = (__int64 *)(v0 + 144);
if ( (*(_DWORD *)(v0 + 936) & dword_1801B1F90) == 0 || (v2 = *v1) == 0 )
{
sub_1801346AC(4);
v2 = updatetlocinfoEx_nolock(v1, qword_1801F5158);
sub_180134700(4);
if ( !v2 )
abort();
}
return v2;
}