//
// sub_180021660 from 0x180021660 to 0x1800216a8 (72 bytes)
//
// 2 xrefs:
// > ??> @ 0x1800e7078
// > ??> @ 0x1801aee30
//
// 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_180021660(FILE **a1)
{
if ( !a1[16] || (*(unsigned int (__fastcall **)(FILE **, __int64))&(*a1)->_flag)(a1, 0xFFFFFFFFLL) == -1 )
return 0;
else
return (unsigned int)(fflush(a1[16]) >= 0) - 1;
}