//
// __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 (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 _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;
}