//
// DTLS_RECORD_LAYER_set_saved_w_epoch from 0xfae81c to 0xfae87c (96 bytes)
//
// 3 xrefs:
// > dtls1_retransmit_message @ 0xfcb9c4
// > dtls1_retransmit_message @ 0xfcba00
// > ??> @ 0x7f870
//
// 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:10 +0000
//
__int64 __fastcall DTLS_RECORD_LAYER_set_saved_w_epoch(__int64 result, unsigned __int16 a2)
{
__int64 v2; // x3
int v3; // w2
__int64 v4; // x3
v2 = *(_QWORD *)(result + 3464);
v3 = *(unsigned __int16 *)(v2 + 2);
if ( a2 == v3 - 1 )
{
*(_QWORD *)(v2 + 120) = *(_QWORD *)(result + 3448);
v2 = *(_QWORD *)(result + 3464);
*(_QWORD *)(result + 3448) = *(_QWORD *)(v2 + 112);
goto LABEL_3;
}
if ( a2 != v3 + 1 )
{
LABEL_3:
*(_WORD *)(v2 + 2) = a2;
return result;
}
*(_QWORD *)(v2 + 112) = *(_QWORD *)(result + 3448);
v4 = *(_QWORD *)(result + 3464);
*(_QWORD *)(result + 3448) = *(_QWORD *)(v4 + 120);
*(_WORD *)(v4 + 2) = a2;
return result;
}