//
// sub_10069AA54 from 0x10069aa54 to 0x10069aaa8 (84 bytes)
//
// 9 xrefs:
// > sub_10067DE3C @ 0x10067def0
// > sub_100691008 @ 0x100691894
// > sub_10069924C @ 0x1006992bc
// > sub_10069924C @ 0x100699674
// > sub_100699748 @ 0x1006997f8
// > sub_100699748 @ 0x100699884
// > sub_100699748 @ 0x1006998c0
// > sub_100699748 @ 0x100699994
// > sub_100699748 @ 0x10069a0dc
//
// 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:11:36 +0000
//
__int64 __fastcall sub_10069AA54(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);
}