//
// dtls1_ctrl from 0x9cb164 to 0x9cb1f8 (148 bytes)
//
// 11 xrefs:
// > ??> @ 0x73ecc
// > ??> @ 0xd15b1c
// > ??> @ 0xd15b90
// > ??> @ 0xd15c04
// > ??> @ 0xd15c78
// > ??> @ 0xd15cec
// > ??> @ 0xd15d60
// > ??> @ 0xd15dd4
// > ??> @ 0xd15e48
// > ??> @ 0xd15ebc
// > ??> @ 0xd15f30
//
// 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:09 +0000
//
int __fastcall dtls1_ctrl(_DWORD *a1, int a2, signed int a3, char *a4)
{
if ( a2 != 74 )
{
if ( a2 > 74 )
{
if ( a2 != 120 )
{
if ( a2 == 121 )
return 256;
return ssl3_ctrl(a1, a2, a3, a4);
}
if ( a3 > 255 )
{
*(_DWORD *)(a1[27] + 280) = a3;
return 1;
}
}
else
{
if ( a2 != 17 )
{
if ( a2 == 73 )
return dtls1_get_timeout((int)a1, (int *)a4) != nullptr;
return ssl3_ctrl(a1, a2, a3, a4);
}
if ( a3 > 207 )
{
*(_DWORD *)(a1[27] + 284) = a3;
return a3;
}
}
return 0;
}
return dtls1_handle_timeout((int)a1);
}