//
// sub_180017B60 from 0x180017b60 to 0x180017b8b (43 bytes)
//
// 5 xrefs:
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e0c27
// > sub_1800E3480 @ 0x1800e3487
// > ??> @ 0x180133c33
// > ??> @ 0x180140e9f
// > ??> @ 0x1801ae71c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_180017B60(__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;
}