//
// sub_1800183C0 from 0x1800183c0 to 0x180018421 (97 bytes)
//
// 7 xrefs:
// > sub_180018700 @ 0x180018716
// > int `_wcrtomb_s_l @ 0x1800e0ec7
// > sub_1800E10C0 @ 0x1800e10c7
// > ??> @ 0x180132fba
// > ??> @ 0x18013303c
// > ??> @ 0x180133777
// > ??> @ 0x1801ae7e8
//
// 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_1800183C0(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 168;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 168) = &std::ofstream::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 172) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 168;
sub_1800178D0(a1 + 8);
std::ostream::~ostream>(v1 - 152);
return std::ios::~ios>(v1);
}