//
// sub_E1AE64 from 0xe1ae64 to 0xe1aeb4 (80 bytes)
//
// 9 xrefs:
// > sub_DF3680 @ 0xdf3774
// > sub_E0D708 @ 0xe0d9bc
// > sub_E1949C @ 0xe19518
// > sub_E1949C @ 0xe199d0
// > sub_E19A3C @ 0xe19ae4
// > sub_E19A3C @ 0xe19b48
// > sub_E19A3C @ 0xe19ca0
// > sub_E19A3C @ 0xe19d2c
// > sub_E19A3C @ 0xe1a320
//
// 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 13:09:43 +0000
//
__int64 __fastcall sub_E1AE64(int a1, int a2)
{
int v4; // w2
__int64 v5; // x2
v4 = fcntl(a1, 3, 0);
if ( a2 )
v5 = v4 | 0x800u;
else
v5 = v4 & 0xFFFFF7FF;
return fcntl(a1, 4, v5);
}