//
// sub_18001B9D0 from 0x18001b9d0 to 0x18001ba20 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x1800e7080
// > ??> @ 0x1801aea7c
//
// 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
//
char __fastcall sub_18001B9D0(__int64 a1, __int64 a2)
{
struct std::_Facet_base *v3; // rdi
char result; // al
v3 = sub_180016880(a2);
result = std::codecvt_base::always_noconv(v3);
if ( result )
{
*(_QWORD *)(a1 + 104) = 0;
}
else
{
*(_QWORD *)(a1 + 104) = v3;
return std::streambuf::_Init(a1);
}
return result;
}