//
// sub_1800B27B0 from 0x1800b27b0 to 0x1800b27de (46 bytes)
//
// 3 xrefs:
// > sub_1800E8A90 @ 0x1800e8a97
// > ??> @ 0x18014a1a9
// > ??> @ 0x1801c2724
//
// 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:20 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_1800B27B0(__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;
}