//
// sub_1800A65A0 from 0x1800a65a0 to 0x1800a65fb (91 bytes)
//
// 3 xrefs:
// > sub_1800E87E0 @ 0x1800e87e7
// > ??> @ 0x180148ba5
// > ??> @ 0x1801c1cc8
//
// 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_1800A65A0(__int64 a1)
{
__int64 v1; // rbx
v1 = a1 + 136;
*(_QWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 136) = &std::ostringstream::`vftable';
*(_DWORD *)(*(int *)(*(_QWORD *)a1 + 4LL) + v1 - 140) = *(_DWORD *)(*(_QWORD *)a1 + 4LL) - 136;
sub_1800174E0(a1 + 8);
std::ostream::~ostream>(v1 - 120);
return std::ios::~ios>(v1);
}