//
// sub_9E68A8 from 0x9e68a8 to 0x9e6944 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77a40
//
// 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:24 +0000
//
int __fastcall sub_9E68A8(int a1, char *a2)
{
size_t v4; // r0
int *v5; // r1
size_t v6; // r7
int result; // r0
ssize_t v8; // r4
v4 = strlen(a2);
v5 = *(int **)(a1 + 32);
v6 = v4;
if ( *v5 == 5 || (result = sub_9E60BC(a1, v5), result > 0) )
{
*(_DWORD *)_errno() = 0;
v8 = write(*(_DWORD *)(a1 + 28), a2, v6);
BIO_clear_flags(a1, 15);
result = v8;
if ( v8 <= 0 )
{
if ( BIO_sock_should_retry(v8) )
BIO_set_flags(a1, 10);
return v8;
}
}
return result;
}