//
// sub_180018350 from 0x180018350 to 0x1800183b1 (97 bytes)
//
// 7 xrefs:
// > sub_1800186C0 @ 0x1800186d6
// > unknown_libname_3 @ 0x1800e0eb7
// > sub_1800E10B0 @ 0x1800e10b7
// > ??> @ 0x180132fb3
// > ??> @ 0x180133035
// > ??> @ 0x180133770
// > ??> @ 0x1801ae7dc
//
// 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_180018350(__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_1800178D0(a1 + 16);
std::istream::~istream>(v1 - 152);
return std::ios::~ios>(v1);
}