//
// sub_1001ECFC4 from 0x1001ecfc4 to 0x1001ed038 (116 bytes)
//
// 1 xrefs:
// > sub_1002DB5E0 @ 0x1002db64c
//
// 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 11:00:36 +0000
//
__int64 __fastcall sub_1001ECFC4(__int64 a1, int a2)
{
*(_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) = a2;
sub_1000D9698(a1);
return a1;
}