//
// sub_1000D95E0 from 0x1000d95e0 to 0x1000d966c (140 bytes)
//
// 2 xrefs:
// > sub_1000CF9F0 @ 0x1000cfa78
// > sub_1002DB828 @ 0x1002db8a0
//
// 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:58 +0000
//
__int64 __fastcall sub_1000D95E0(__int64 a1, const std::string *a2, int a3)
{
*(_QWORD *)a1 = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::locale((std::locale *)(a1 + 8));
*(_OWORD *)(a1 + 32) = 0u;
*(_OWORD *)(a1 + 48) = 0u;
*(_OWORD *)(a1 + 16) = 0u;
*(_QWORD *)a1 = off_1008CF0A8;
*(_OWORD *)(a1 + 64) = 0u;
*(_OWORD *)(a1 + 80) = 0u;
*(_DWORD *)(a1 + 96) = a3;
std::string::operator=((std::string *)(a1 + 64), a2);
sub_1000D9698(a1);
return a1;
}