//
// sub_180018850 from 0x180018850 to 0x18001888e (62 bytes)
//
// 4 xrefs:
// > sub_18001E3A0 @ 0x18001e42e
// > sub_18001E630 @ 0x18001e688
// > sub_180022270 @ 0x18002231b
// > ??> @ 0x1801b895c
//
// 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_180018850(__int64 a1)
{
__int64 result; // rax
result = std::streambuf::eback(a1);
if ( result == a1 + 112 )
return std::streambuf::setg(a1, *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 136), *(_QWORD *)(a1 + 144));
return result;
}