//
// sub_1001ECDC4 from 0x1001ecdc4 to 0x1001ece14 (80 bytes)
//
// 1 xrefs:
// > sub_1001EC484 @ 0x1001ec4ac
//
// This function is hookable on this platform (idp: arm, 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:00:36 +0000
//
void __fastcall sub_1001ECDC4(__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;
}
}