//
// sub_1001EAAE0 from 0x1001eaae0 to 0x1001eab69 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae01f0
//
// 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 12:26:31 +0000
//
__int64 __fastcall sub_1001EAAE0(_QWORD *a1)
{
std::locale *v1; // rbx
v1 = (std::locale *)((char *)a1 + *(_QWORD *)(*a1 - 24LL));
v1->__locale_ = (std::locale::__imp *)&off_100AE01C8;
v1[14].__locale_ = (std::locale::__imp *)off_100AE01F0;
v1[1].__locale_ = (std::locale::__imp *)&off_100BB1EA0;
if ( ((__int64)v1[9].__locale_ & 1) != 0 )
operator delete(v1[11].__locale_);
v1[1].__locale_ = (std::locale::__imp *)&`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale(v1 + 2);
std::ostream::~ostream(v1, off_100AE0208);
return std::ios::~ios(&v1[14]);
}