//
// sub_1800177C0 from 0x1800177c0 to 0x1800177ee (46 bytes)
//
// 5 xrefs:
// > sub_1800E6300 @ 0x1800e6307
// > sub_1800E8AA0 @ 0x1800e8aa7
// > ??> @ 0x18013cbab
// > ??> @ 0x18014a1a3
// > ??> @ 0x1801b8788
//
// 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_1800177C0(__int64 a1)
{
__int64 result; // rax
result = std::ios::rdbuf(*(_QWORD *)a1 + *(int *)(**(_QWORD **)a1 + 4LL));
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);
return result;
}