//
// BIO_sock_error from 0x9e38d4 to 0x9e3924 (80 bytes)
//
// 4 xrefs:
// > sub_9E60BC @ 0x9e613c
// > sub_9E6944 @ 0x9e69ac
// > sub_9E6E44 @ 0x9e6f70
// > ??> @ 0x7905c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:22 +0000
//
int __fastcall BIO_sock_error(int a1)
{
int v2; // [sp+8h] [bp-Ch] BYREF
socklen_t v3[2]; // [sp+Ch] [bp-8h] BYREF
v3[0] = 4;
v2 = 0;
if ( getsockopt(a1, 1, 4, &v2, v3) < 0 )
return *(_DWORD *)_errno();
else
return v2;
}