//
// sub_1000D85AC from 0x1000d85ac to 0x1000d8640 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008cef08
//
// This function is hookable on this platform (idp: arm, 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:58:57 +0000
//
__int64 __fastcall sub_1000D85AC(_QWORD *a1)
{
std::locale *v1; // x19
v1 = (std::locale *)((char *)a1 + *(_QWORD *)(*a1 - 24LL));
v1->__locale_ = (std::locale::__imp *)off_1008CEEB8;
v1[16].__locale_ = (std::locale::__imp *)off_1008CEF08;
v1[2].__locale_ = (std::locale::__imp *)off_1008CEEE0;
v1[3].__locale_ = (std::locale::__imp *)off_1008CF0A8;
if ( SHIBYTE(v1[13].__locale_) < 0 )
operator delete(v1[11].__locale_);
v1[3].__locale_ = (std::locale::__imp *)&`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale(v1 + 4);
std::iostream::~iostream(v1, off_1008CEF20);
return std::ios::~ios(&v1[16]);
}