//
// dtls1_read_failed from 0xfcb55c to 0xfcb5e8 (140 bytes)
//
// 2 xrefs:
// > dtls1_read_bytes @ 0xfaf550
// > ??> @ 0x4a6b0
//
// 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 13:15:26 +0000
//
__int64 __fastcall dtls1_read_failed(__int64 a1, int a2)
{
unsigned int v3; // w19
__int64 rbio; // x0
if ( a2 > 0 )
{
v3 = 1;
ERR_put_error(20, 339, 68, "ssl/statem/statem_dtls.c", 928);
return v3;
}
v3 = a2;
if ( !(unsigned int)dtls1_is_timer_expired() )
return v3;
if ( !(unsigned int)SSL_in_init(a1) )
{
rbio = SSL_get_rbio(a1);
BIO_set_flags(rbio, 1);
return v3;
}
return dtls1_handle_timeout(a1);
}