//
// sub_100163F84 from 0x100163f84 to 0x100163fd4 (80 bytes)
//
// 1 xrefs:
// > sub_100163644 @ 0x10016366c
//
// 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
//
void __fastcall sub_100163F84(__int64 a1, __int64 a2, __int64 a3)
{
FILE *v4; // x0
int v5; // w8
if ( !a3 && !a2 && *(_DWORD *)(a1 + 396) == 32 )
{
v4 = *(FILE **)(a1 + 120);
if ( v4 )
{
setbuf(v4, nullptr);
v5 = 0;
}
else
{
v5 = 34;
}
*(_DWORD *)(a1 + 396) = v5;
}
}