//
// sub_18001B8F0 from 0x18001b8f0 to 0x18001b940 (80 bytes)
//
// 2 xrefs:
// > ??> @ 0x1800ed0e0
// > ??> @ 0x1801b8ad0
//
// This function is hookable on this platform (idp: pc, 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:21:26 +0000
//
char __fastcall sub_18001B8F0(__int64 a1, __int64 a2)
{
std::codecvt_base *v3; // rdi
char result; // al
v3 = (std::codecvt_base *)sub_180016430(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;
}