//
// sub_180018020 from 0x180018020 to 0x18001807e (94 bytes)
//
// 6 xrefs:
// > sub_1800E6520 @ 0x1800e6527
// > sub_1800E6700 @ 0x1800e6707
// > ??> @ 0x18013bf52
// > ??> @ 0x18013bfd4
// > ??> @ 0x18013c747
// > ??> @ 0x1801b8854
//
// 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:25 +0000
//
__int64 __fastcall sub_180018020(__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_180017410(a1 + 8);
std::ostream::~ostream>(v1 - 152);
return std::ios::~ios>(v1);
}