//
// ssl3_do_compress from 0x78a9ac to 0x78a9f4 (72 bytes)
//
// 3 xrefs:
// > do_dtls1_write @ 0x787e08
// > do_ssl3_write @ 0x788e84
// > ??> @ 0x5a6dc
//
// 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
//
int __fastcall ssl3_do_compress(int a1, _DWORD *a2)
{
int result; // r0
int v4; // r3
bool v5; // nf
result = COMP_compress_block(*(_DWORD *)(a1 + 184), a2[5], 17408, a2[6], a2[2]);
v5 = result < 0;
if ( result < 0 )
{
result = 0;
}
else
{
v4 = a2[5];
a2[2] = result;
}
if ( !v5 )
{
a2[6] = v4;
return 1;
}
return result;
}