//
// dtls1_start_timer from 0xfdb3d4 to 0xfdb444 (112 bytes)
//
// 4 xrefs:
// > sub_FC5998 @ 0xfc6014
// > dtls1_double_timeout @ 0xfdb574
// > dtls1_handle_timeout @ 0xfdb6e4
// > ??> @ 0xce590
//
// 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:34 +0000
//
__int64 __fastcall dtls1_start_timer(__int64 a1)
{
__int64 v2; // x0
__int64 rbio; // x0
v2 = *(_QWORD *)(a1 + 152);
if ( !*(_QWORD *)(v2 + 488) && !*(_QWORD *)(v2 + 496) )
*(_WORD *)(v2 + 504) = 1;
gettimeofday((struct timeval *)(v2 + 488), nullptr);
*(_QWORD *)(*(_QWORD *)(a1 + 152) + 488LL) += *(unsigned __int16 *)(*(_QWORD *)(a1 + 152) + 504LL);
rbio = SSL_get_rbio(a1);
return BIO_ctrl(rbio, 45, 0, *(_QWORD *)(a1 + 152) + 488LL);
}