//
// sub_180017FC0 from 0x180017fc0 to 0x18001801e (94 bytes)
//
// 6 xrefs:
// > unknown_libname_5 @ 0x1800e6517
// > sub_1800E66F0 @ 0x1800e66f7
// > ??> @ 0x18013bf4b
// > ??> @ 0x18013bfcd
// > ??> @ 0x18013c740
// > ??> @ 0x1801b8848
//
// 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_180017FC0(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 176;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 176) = &std::ifstream::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 180) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 176;
sub_180017410(a1 + 16);
std::istream::~istream>(v1 - 152);
return std::ios::~ios>(v1);
}