//
// ssl3_do_compress from 0x99f5b0 to 0x99f5f8 (72 bytes)
//
// 3 xrefs:
// > do_dtls1_write @ 0x99ca0c
// > do_ssl3_write @ 0x99da88
// > ??> @ 0x7415c
//
// 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
//
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;
}