//
// sub_100679234 from 0x100679234 to 0x10067928c (88 bytes)
//
// 5 xrefs:
// > sub_10069924C @ 0x100699564
// > sub_100699748 @ 0x100699a1c
// > sub_100699748 @ 0x100699c08
// > sub_100699748 @ 0x100699eb0
// > sub_100699748 @ 0x10069a0a4
//
// 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:13 +0000
//
__int64 __fastcall sub_100679234(int a1, void *a2, size_t a3, ssize_t *a4)
{
ssize_t v5; // x0
int v7; // w8
unsigned int v8; // w9
v5 = recv(a1, a2, a3, 0);
if ( v5 == -1 )
{
v7 = *__error();
if ( v7 == 4 )
v8 = 81;
else
v8 = 56;
if ( v7 == 35 )
return 81;
else
return v8;
}
else
{
*a4 = v5;
return 0;
}
}