//
// __acrt_stdio_free_buffer_nolock from 0x180138ac4 to 0x180138b04 (64 bytes)
//
// 4 xrefs:
// > __acrt_uninitialize_stdio @ 0x18012f9a5
// > _fclose_nolock @ 0x18012fa3a
// > _lambda_b4f66040be5f354a654fb75160c27bfc_::operator @ 0x18013944b
// > ??> @ 0x1802036ec
//
// 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 10:55:01 +0000
//
__int64 __fastcall _acrt_stdio_free_buffer_nolock(__int64 a1)
{
__int64 result; // rax
result = *(_DWORD *)(a1 + 20) >> 13;
if ( (*(_DWORD *)(a1 + 20) & 0x2000) != 0 )
{
result = *(_DWORD *)(a1 + 20) >> 6;
if ( (*(_DWORD *)(a1 + 20) & 0x40) != 0 )
{
free_base(*(void **)(a1 + 8));
_InterlockedAnd((volatile signed __int32 *)(a1 + 20), 0xFFFFFEBF);
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)a1 = 0;
*(_DWORD *)(a1 + 16) = 0;
return 0;
}
}
return result;
}