//
// dtls1_double_timeout from 0x9caf80 to 0x9cafa4 (36 bytes)
//
// 2 xrefs:
// > dtls1_handle_timeout @ 0x9cb11c
// > ??> @ 0x776ec
//
// 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:08 +0000
//
int __fastcall dtls1_double_timeout(int a1)
{
_WORD *v1; // r2
unsigned int v2; // r3
v1 = (_WORD *)(*(_DWORD *)(a1 + 108) + 396);
v2 = (unsigned __int16)(2 * *v1);
if ( v2 > 0x3C )
LOWORD(v2) = 60;
*v1 = v2;
return dtls1_start_timer(a1);
}