//
// sub_1005748EC from 0x1005748ec to 0x100574940 (84 bytes)
//
// 9 xrefs:
// > sub_100557CD4 @ 0x100557d88
// > sub_10056AEA0 @ 0x10056b72c
// > sub_1005730E4 @ 0x100573154
// > sub_1005730E4 @ 0x10057350c
// > sub_1005735E0 @ 0x100573690
// > sub_1005735E0 @ 0x10057371c
// > sub_1005735E0 @ 0x100573758
// > sub_1005735E0 @ 0x10057382c
// > sub_1005735E0 @ 0x100573f74
//
// 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_1005748EC(int a1, int a2)
{
int v4; // w0
__int64 v5; // x8
v4 = fcntl(a1, 3, 0);
if ( a2 )
v5 = v4 | 4u;
else
v5 = v4 & 0xFFFFFFFB;
return fcntl(a1, 4, v5);
}