//
// dtls1_read_failed from 0x9b9e8c to 0x9b9f10 (132 bytes)
//
// 2 xrefs:
// > dtls1_read_bytes @ 0x99c4fc
// > ??> @ 0x7408c
//
// 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:01 +0000
//
int __fastcall dtls1_read_failed(int a1, int a2)
{
int rbio; // r0
if ( a2 <= 0 )
{
if ( dtls1_is_timer_expired() )
{
if ( SSL_in_init(a1) )
{
return dtls1_handle_timeout(a1);
}
else
{
rbio = SSL_get_rbio(a1);
BIO_set_flags(rbio, 1);
return a2;
}
}
else
{
return a2;
}
}
else
{
ERR_put_error(20, 339, 68, "ssl/statem/statem_dtls.c", 928);
return 1;
}
}