//
// sub_10061B978 from 0x10061b978 to 0x10061ba78 (256 bytes)
//
// 1 xrefs:
// > sub_10061BB2C @ 0x10061bc20
//
// 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_10061B978(int a1)
{
int v2; // w8
__int64 v3; // x20
int v5; // [xsp+0h] [xbp-20h] BYREF
int v6; // [xsp+4h] [xbp-1Ch] BYREF
int v7; // [xsp+8h] [xbp-18h] BYREF
int v8; // [xsp+Ch] [xbp-14h] BYREF
v8 = 1;
if ( setsockopt(a1, 0xFFFF, 8, &v8, 4u) == -1 )
return 43;
v7 = 10;
if ( setsockopt(a1, 6, 258, &v7, 4u) == -1 )
return 43;
if ( dword_1009DB3B4 / v7 <= 1999 )
v2 = 1;
else
v2 = dword_1009DB3B4 / v7 / 1000;
v6 = v2;
v3 = 43;
if ( setsockopt(a1, 6, 16, &v6, 4u) != -1 )
{
v5 = v6;
if ( setsockopt(a1, 6, 257, &v5, 4u) == -1 )
return 43;
else
return 0;
}
return v3;
}