//
// ssl3_record_sequence_update from 0x99f0a4 to 0x99f158 (180 bytes)
//
// 3 xrefs:
// > do_dtls1_write @ 0x99caf4
// > n_ssl3_mac @ 0x99f81c
// > ??> @ 0x7416c
//
// 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:06:47 +0000
//
_BYTE *__fastcall ssl3_record_sequence_update(_BYTE *result)
{
int v1; // r3
int v2; // r3
int v3; // r3
int v4; // r3
int v5; // r3
int v6; // r3
int v7; // r3
v1 = (unsigned __int8)(result[7] + 1);
result[7] = v1;
if ( !v1 )
{
v2 = (unsigned __int8)(result[6] + 1);
result[6] = v2;
if ( !v2 )
{
v3 = (unsigned __int8)(result[5] + 1);
result[5] = v3;
if ( !v3 )
{
v4 = (unsigned __int8)(result[4] + 1);
result[4] = v4;
if ( !v4 )
{
v5 = (unsigned __int8)(result[3] + 1);
result[3] = v5;
if ( !v5 )
{
v6 = (unsigned __int8)(result[2] + 1);
result[2] = v6;
if ( !v6 )
{
v7 = (unsigned __int8)(result[1] + 1);
result[1] = v7;
if ( !v7 )
++*result;
}
}
}
}
}
}
return result;
}