//
// ssl3_do_uncompress from 0x78a918 to 0x78a9a0 (136 bytes)
//
// 3 xrefs:
// > ssl3_get_record @ 0x78c474
// > dtls1_process_record @ 0x78caf0
// > ??> @ 0x5a97c
//
// 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_uncompress(int a1, _DWORD *a2)
{
int v3; // r1
int v5; // r3
int v6; // r2
int v8; // r0
v3 = a2[7];
if ( !v3 )
{
v8 = CRYPTO_malloc(17728, "ssl/record/ssl3_record.c", 523);
a2[7] = v8;
if ( !v8 )
return 0;
v3 = v8;
}
v5 = COMP_expand_block(*(_DWORD *)(a1 + 188), v3, 0x4000, a2[5], a2[2]);
if ( v5 >= 0 )
{
v6 = a2[7];
a2[2] = v5;
a2[5] = v6;
return 1;
}
return 0;
}