//
// sub_10061BA78 from 0x10061ba78 to 0x10061baec (116 bytes)
//
// 1 xrefs:
// > sub_10061BB2C @ 0x10061bdf4
//
// 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:10:16 +0000
//
__int64 __fastcall sub_10061BA78(int a1, int a2)
{
int v4; // w0
__int64 v5; // x19
int v6; // w9
v4 = fcntl(a1, 3);
v5 = 43;
if ( v4 != -1 )
{
if ( a2 )
v6 = 4;
else
v6 = 0;
if ( fcntl(a1, 4, v4 & 0xFFFFFFFB | v6) == -1 )
return 43;
else
return 0;
}
return v5;
}