//
// sub_828914 from 0x828914 to 0x82893e (42 bytes)
//
// 2 xrefs:
// > sub_844F8C @ 0x844fca
// > sub_845000 @ 0x845246
//
// 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:01:58 +0000
//
int __fastcall sub_828914(int a1, void *a2, size_t a3, ssize_t *a4)
{
ssize_t v5; // r2
int v7; // r3
bool v8; // zf
v5 = recv(a1, a2, a3, 0);
if ( v5 == -1 )
{
v7 = *(_DWORD *)_errno();
v8 = v7 == 11;
if ( v7 != 11 )
v8 = v7 == 4;
if ( v8 )
return 81;
else
return 56;
}
else
{
*a4 = v5;
return 0;
}
}