//
// ssl3_do_uncompress from 0x99f51c to 0x99f5a4 (136 bytes)
//
// 3 xrefs:
// > ssl3_get_record @ 0x9a1078
// > dtls1_process_record @ 0x9a16f4
// > ??> @ 0x743fc
//
// 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_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;
}