//
// ssl3_do_compress from 0xd33fb0 to 0xd34010 (96 bytes)
//
// 3 xrefs:
// > do_dtls1_write @ 0xd31624
// > do_ssl3_write @ 0xd32664
// > ??> @ 0xa05f0
//
// 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
//
__int64 __fastcall ssl3_do_compress(__int64 a1, __int64 a2)
{
int v3; // w0
__int64 v4; // x2
__int64 result; // x0
v3 = COMP_compress_block(
*(_QWORD *)(a1 + 296),
*(_QWORD *)(a2 + 24),
17408,
*(_QWORD *)(a2 + 32),
*(unsigned int *)(a2 + 8));
if ( v3 < 0 )
return 0;
v4 = *(_QWORD *)(a2 + 24);
*(_DWORD *)(a2 + 8) = v3;
result = 1;
*(_QWORD *)(a2 + 32) = v4;
return result;
}