//
// ssl3_release_write_buffer from 0x78a7e8 to 0x78a844 (92 bytes)
//
// 4 xrefs:
// > RECORD_LAYER_release @ 0x788398
// > ssl3_write_bytes @ 0x7895ec
// > ssl3_write_bytes @ 0x78962c
// > ??> @ 0x5a7ec
//
// 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_release_write_buffer(int a1)
{
int v1; // r5
int v3; // r4
v1 = *(_DWORD *)(a1 + 572);
if ( v1 )
{
v3 = a1 + 20 * v1;
do
{
--v1;
CRYPTO_free(*(_DWORD *)(v3 + 576), "ssl/record/ssl3_buffer.c", 143);
*(_DWORD *)(v3 + 576) = 0;
v3 -= 20;
}
while ( v1 );
}
*(_DWORD *)(a1 + 572) = 0;
return 1;
}