//
// sub_100164184 from 0x100164184 to 0x1001641f8 (116 bytes)
//
// 1 xrefs:
// > sub_10023E594 @ 0x10023e600
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100164184(__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_1007814C8;
*(_OWORD *)(a1 + 64) = 0u;
*(_OWORD *)(a1 + 80) = 0u;
*(_DWORD *)(a1 + 96) = a2;
sub_1000B3D1C(a1);
return a1;
}