//
// sub_1800A6540 from 0x1800a6540 to 0x1800a659b (91 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800a653f
// > sub_1800E87A0 @ 0x1800e87a7
// > sub_1800E8850 @ 0x1800e8857
// > ??> @ 0x180148bc3
// > ??> @ 0x180148c03
// > ??> @ 0x1801c1cbc
//
// 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:22:15 +0000
//
__int64 __fastcall sub_1800A6540(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 144;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 144) = &std::istringstream::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 148) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 144;
sub_1800174E0(a1 + 16);
std::istream::~istream>(v1 - 120);
return std::ios::~ios>(v1);
}