//
// sub_180017830 from 0x180017830 to 0x180017877 (71 bytes)
//
// 3 xrefs:
// > sub_1800E62F0 @ 0x1800e62f7
// > ??> @ 0x18013cbb1
// > ??> @ 0x1801b87a0
//
// 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
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_180017830(_QWORD *a1)
{
__int64 result; // rax
if ( !std::uncaught_exception() )
std::ostream::_Osfx(*a1);
result = std::ios::rdbuf(*a1 + *(int *)(*(_QWORD *)*a1 + 4LL));
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);
return result;
}