//
// ssl3_record_sequence_update from 0x78a4a0 to 0x78a554 (180 bytes)
//
// 3 xrefs:
// > do_dtls1_write @ 0x787ef0
// > n_ssl3_mac @ 0x78ac18
// > ??> @ 0x5a6ec
//
// 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
//
_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;
}