//
// dtls1_double_timeout from 0xd5d200 to 0xd5d224 (36 bytes)
//
// 2 xrefs:
// > dtls1_handle_timeout @ 0xd5d360
// > ??> @ 0x64878
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall dtls1_double_timeout(__int64 a1)
{
__int64 v1; // x2
__int16 v2; // w1
v1 = *(_QWORD *)(a1 + 152);
v2 = 2 * (*(_WORD *)(v1 + 504) & 0x7FFF);
if ( 2 * (*(_WORD *)(v1 + 504) & 0x7FFFu) > 0x3C )
v2 = 60;
*(_WORD *)(v1 + 504) = v2;
return dtls1_start_timer(a1);
}